1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
# VTCode Configuration File
# Getting-started reference; see docs/config/CONFIGURATION_PRECEDENCE.md for override order.
# Copy this file to vtcode.toml and customize as needed.
# Core agent behavior; see docs/config/CONFIGURATION_PRECEDENCE.md.
[]
# Primary LLM provider to use (e.g., "openai", "gemini", "anthropic", "openrouter")
= "ollama"
# Environment variable containing the API key for the provider
= "OLLAMA_API_KEY"
# Default model to use when no specific model is specified
= "gpt-oss:20b-cloud"
# Visual theme for the terminal interface
= "ciapre-dark"
# Enable TODO planning helper mode for structured task management
= true
# UI surface to use ("auto", "alternate", "inline")
= "auto"
# Maximum number of conversation turns before rotating context (affects memory usage)
# Lower values reduce memory footprint but may lose context; higher values preserve context but use more memory
= 50
# Reasoning effort level ("low", "medium", "high") - affects model usage and response speed
= "low"
# Temperature for main LLM responses (0.0-1.0)
# Lower values = more deterministic, higher values = more creative
# Default: 0.7 provides balanced creativity and consistency
# Range: 0.0 (deterministic) to 1.0 (maximum randomness)
= 0.7
# Maximum tokens for main LLM generation responses
# Default: 2000 for standard tasks
# Adjust based on model context window:
# - 16384 for models with 128k context
# - 32768 for models with 256k context
= 2000
# Temperature for prompt refinement (0.0-1.0)
# Lower values ensure more deterministic/consistent prompt improvement
# Default: 0.3 is lower than main temperature for stable refinement
= 0.3
# Maximum tokens for prompt refinement
# Prompts are typically shorter, so 800 tokens is usually sufficient
= 800
# Enable self-review loop to check and improve responses (increases API calls)
= false
# Maximum number of review passes when self-review is enabled
= 1
# Enable prompt refinement loop for improved prompt quality (increases processing time)
= false
# Maximum passes for prompt refinement when enabled
= 1
# Optional alternate model for refinement (leave empty to use default)
= ""
# Maximum size of project documentation to include in context (in bytes)
= 16384
# Maximum size of instruction files to process (in bytes)
= 16384
# List of additional instruction files to include in context
= []
= "medium"
# Small model configuration for efficient operations
# Following Claude Code's pattern, use a smaller model for 50%+ of calls (large reads, parsing, summarization)
# Typically 70-80% cheaper than main model; same quality for summary/parse tasks
[]
# Enable small model tier
= true
# Small model ID (e.g., "claude-3-5-haiku", "gpt-4o-mini", "gemini-2.0-flash")
# Leave empty to auto-select lightweight sibling of main model
= ""
# Maximum tokens for small model responses (use smaller value for summaries/parsing)
= 1000
# Temperature for small model (lower = more deterministic for parsing)
= 0.3
# Use small model for large file reads (>50KB) - significant token savings
= true
# Use small model for web content summarization
= true
# Use small model for git history processing
= true
# Ripgrep dependency management - Auto-install ripgrep on startup for faster file search
[]
# Enable automatic ripgrep installation on startup (disable in CI/CD environments)
= true
# Preferred installation methods in order of preference
# Available: "homebrew", "apt", "cargo", "chocolatey", "scoop"
= [
] # Empty = auto-detect based on platform and available tools
# Skip installation cache and retry failed installations
= false
# Installation timeout in seconds (prevents hung installations)
= 300
# Onboarding configuration - Customize the startup experience
[]
# Enable the onboarding welcome message on startup
= true
# Custom introduction text shown on startup
= "Let's get oriented. I preloaded workspace context so we can move fast."
# Include project overview information in welcome
= true
# Include language summary information in welcome
= false
# Include key guideline highlights from AGENTS.md
= true
# Include usage tips in the welcome message
= false
# Include recommended actions in the welcome message
= false
# Maximum number of guideline highlights to show
= 3
# List of usage tips shown during onboarding
= [
"Describe your current coding goal or ask for a quick status overview.",
"Reference AGENTS.md guidelines when proposing changes.",
"Draft or refresh your TODO list with update_plan before coding.",
"Use the Zed Assistant to interact with VT Code's ACP integration.",
]
# List of recommended actions shown during onboarding
= [
"Start the session by outlining a 3–6 step TODO plan via update_plan.",
"Review the highlighted guidelines and share the task you want to tackle.",
"Try using slash commands like /logs, /status, and /doctor for diagnostics.",
]
# Custom prompts configuration - Define personal assistant commands
[]
# Enable the custom prompts feature with /prompts:<name> syntax
= true
# Directory where custom prompt files are stored
= ".vtcode/prompts"
# Additional directories to search for custom prompts
= []
# Maximum file size for custom prompts (in kilobytes)
= 64
# Custom API keys for specific providers
[]
# Moonshot AI API key (for specific provider access)
# moonshot = ""
# Checkpointing configuration for session persistence
[]
# Enable automatic session checkpointing
= false
# Maximum number of checkpoints to keep on disk
= 50
# Maximum age of checkpoints to keep (in days)
= 30
# Tool security configuration
[]
# Default policy when no specific policy is defined ("allow", "prompt", "deny")
# "allow" - Execute without confirmation
# "prompt" - Ask for confirmation
# "deny" - Block the tool
= "prompt"
# Maximum number of tool loops allowed per turn (prevents infinite loops)
# Higher values allow more complex operations but risk performance issues
# Recommended: 20 for most tasks, 50 for complex multi-step workflows
= 100
# Maximum number of repeated identical tool calls (prevents stuck loops)
= 2
# Web Fetch tool security configuration
[]
# Security mode: "restricted" (blocklist) or "whitelist" (allowlist only)
# "restricted" - Blocks known sensitive/malicious domains (default)
# "whitelist" - Only allows explicitly whitelisted domains (strictest)
= "restricted"
# Enable dynamic blocklist loading from external file
= false
# Path to dynamic blocklist file (JSON format)
# File should contain: { "blocked_domains": [...], "blocked_patterns": [...] }
# Reloaded on each web_fetch call if modified
= "~/.vtcode/web_fetch_blocklist.json"
# Enable dynamic whitelist loading from external file (whitelist mode only)
= false
# Path to dynamic whitelist file (JSON format)
# File should contain: { "allowed_domains": [...], "allowed_patterns": [...] }
# Reloaded on each web_fetch call if modified
= "~/.vtcode/web_fetch_whitelist.json"
# Inline blocklist - Additional domains to block (merged with default blocklist)
= []
# Inline whitelist - Specific domains to allow in restricted mode
# Useful for exempting legitimate services from blocklist
= []
# Additional blocked patterns (merged with defaults)
= []
# Log all URL validation decisions for audit trail
= false
# Audit log file location
= "~/.vtcode/web_fetch_audit.log"
# Strict mode: Block HTTP and require HTTPS
# Disable only for testing/development
= true
# Specific tool policies - Override default policy for individual tools
[]
= "prompt"
= "allow"
= "allow"
= "allow"
= "allow"
= "allow"
= "allow"
= "allow"
= "allow"
= "allow"
= "allow"
= "allow"
= "allow"
= "allow"
= "allow"
# Command security configuration
# Note: Safe command defaults are built into vtcode-core (80+ commands)
# This section allows adding CUSTOM commands beyond the defaults
# For the full list of safe/blocked commands, see: docs/COMMAND_SECURITY_MODEL.md
[]
# Add custom commands here that aren't in the built-in safe list
# Example: allow_list = ["my-custom-tool", "special-build-script"]
= []
# Add custom PATH entries for non-standard tool locations (optional)
# Note: Built-in entries already include ~/.cargo/bin, ~/.local/bin, /opt/homebrew/bin
= []
# Optional: Custom environment variables for command execution
# To set custom variables, uncomment and edit:
# [commands.environment]
# RUST_BACKTRACE = "1"
# CUSTOM_VAR = "value"
# Optional: Rust-specific configuration
# To customize cargo execution, uncomment and edit:
# [commands.rust]
# cargo_timeout_seconds = 120
# cargo_environment_overrides = { CARGO_TERM_COLOR = "never" }
# Optional: Custom command patterns for project-specific tools
# All safe/dangerous defaults are built into vtcode-core
# Add project-specific patterns here:
# allow_glob = ["my-tool *", "custom-build *"]
# deny_glob = ["docker run *"]
# allow_regex = []
# deny_regex = []
# Permission system enhancements - Command resolution, audit logging, and caching
[]
# Enable command resolution to actual paths (helps identify suspicious commands)
= true
# Enable audit logging of all permission decisions
= true
# Directory for audit logs (created if not exists)
# Uses ~/.vtcode/audit by default
= "~/.vtcode/audit"
# What permission decisions to log
= true
= true
= true
= true
# Permission decision caching settings
# Avoids redundant policy evaluations for repeated commands
= true
# Cache time-to-live in seconds (default: 5 minutes = 300 seconds)
= 300
= true
# Security configuration - Safety settings for automated operations
[]
# Require human confirmation for potentially dangerous actions
= true
# Require explicit write tool usage for claims about file modifications
= true
# Auto-apply patches without prompting (DANGEROUS - disable for safety)
= false
# UI configuration - Terminal and display settings
[]
# Tool output display mode
# "compact" - Concise tool output
# "full" - Detailed tool output
= "compact"
# Maximum number of lines to display in tool output (prevents transcript flooding)
# Lines beyond this limit are truncated to a tail preview
= 50
# Maximum bytes threshold for spooling tool output to disk
# Output exceeding this size is written to .vtcode/tool-output/*.log
= 200000
# Optional custom directory for spooled tool output logs
# If not set, defaults to .vtcode/tool-output/
# tool_output_spool_dir = "/path/to/custom/spool/dir"
# Allow ANSI escape sequences in tool output (enables colors but may cause layout issues)
= false
# Number of rows to allocate for inline UI viewport
= 16
# Show timeline navigation panel (displays plan when available, timeline otherwise)
= true
# Status line configuration
[]
# Status line mode ("auto", "command", "hidden")
= "auto"
# How often to refresh status line (milliseconds)
= 2000
# Timeout for command execution in status line (milliseconds)
= 200
# Timeout ceilings and warnings for tool execution
[]
# Maximum duration for standard (non-PTY) tools in seconds. Set to 0 to disable.
= 180
# Maximum duration for PTY-backed commands in seconds. Set to 0 to disable.
= 300
# Maximum duration for MCP tool calls in seconds. Set to 0 to disable.
= 120
# Maximum duration for streaming API responses in seconds. Set to 0 to disable.
# Increase this if you encounter streaming timeouts with long inputs or slow networks
= 600
# Emit a warning once a tool runs longer than this percentage of its ceiling.
= 80
# PTY (Pseudo Terminal) configuration - For interactive command execution
[]
# Enable PTY support for interactive commands
= true
# Default number of terminal rows for PTY sessions
= 24
# Default number of terminal columns for PTY sessions
# Increased to prevent line wrapping issues with unicode characters
= 120
# Maximum number of concurrent PTY sessions
= 10
# Command timeout in seconds (prevents hanging commands)
= 300
# Number of recent lines to show in PTY output
# Reduced to prevent display clutter
= 5
# Total lines to keep in PTY scrollback buffer
= 100
# Preferred shell program for PTY sessions (defaults to $SHELL or auto-detect)
# preferred_shell = "/bin/zsh"
# Debug and tracing configuration - Development and troubleshooting
[]
# Enable structured logging for development and troubleshooting
= false
# Trace level: "error", "warn", "info", "debug", "trace"
# Lower levels (error) are more selective; higher levels (trace) are verbose
= "info"
# Comma-separated list of tracing targets (modules to trace)
# Examples: "vtcode_core::agent", "vtcode_core::tools", "vtcode::*"
# Leave empty to trace all targets
= []
# Directory for debug logs (created if not exists)
= "~/.vtcode/debug"
# Maximum size of debug logs before rotating (in MB)
= 50
# Maximum age of debug logs to keep (in days)
= 7
# Context management configuration - Controls conversation memory
[]
# Enable semantic-aware context compression using structural analysis
= false
# Retain tool outputs longer when related actions are in progress
= false
# Maximum AST depth to preserve when semantic compression is active
= 3
# Number of recent tool responses to keep when tool-aware retention is enabled
= 5
= 90000
= 80
= 12
# Token-based truncation for tool outputs before model input
# Max tokens from a single tool result to include (head+tail strategy)
= 25000
# Secondary byte fuse applied after token truncation (in bytes)
# Provides protection against pathological cases
= 10240
# Decision ledger configuration - Track important decisions
[]
# Enable decision tracking and persistence
= true
# Maximum number of decisions to keep in ledger
= 12
# Include ledger summary in model prompts
= true
= true
[]
= true
= "gpt-5-nano"
= 0.75
= 0.85
= false
# AI model routing - Intelligent model selection
[]
# Enable intelligent model routing
= true
# Enable heuristic-based model selection
= true
# Optional override model for routing decisions (empty = use default)
= ""
# Model mapping for different task types
[]
# Model for simple queries
= "gpt-oss:20b-cloud"
# Model for standard tasks
= "gpt-oss:20b-cloud"
# Model for complex tasks
= "gpt-oss:20b-cloud"
# Model for code generation heavy tasks
= "gpt-oss:20b-cloud"
# Model for information retrieval heavy tasks
= "gpt-oss:20b-cloud"
# Router budget settings (if applicable)
[]
# Router heuristic patterns for task classification
[]
# Maximum characters for short requests
= 120
# Minimum characters for long requests
= 1200
# Text patterns that indicate code patch operations
= [
"```",
"diff --git",
"apply_patch",
"unified diff",
"patch",
"edit_file",
"create_file",
]
# Text patterns that indicate information retrieval
= [
"search",
"web",
"google",
"docs",
"cite",
"source",
"up-to-date",
]
# Text patterns that indicate complex multi-step tasks
= [
"plan",
"multi-step",
"decompose",
"orchestrate",
"architecture",
"benchmark",
"implement end-to-end",
"design api",
"refactor module",
"evaluate",
"tests suite",
]
# Telemetry and analytics
[]
# Enable trajectory logging for usage analysis
= true
# Syntax highlighting configuration
[]
# Enable syntax highlighting for code in tool output
= true
# Theme for syntax highlighting
= "base16-ocean.dark"
# Cache syntax highlighting themes for performance
= true
# Maximum file size for syntax highlighting (in MB)
= 10
# Programming languages to enable syntax highlighting for
= ["rust", "python", "javascript", "typescript", "go", "java"]
# Timeout for syntax highlighting operations (milliseconds)
= 1000
# Automation features - Full-auto mode settings
[]
# Enable full automation mode (DANGEROUS - requires careful oversight)
= true
# Maximum number of turns before asking for human input
= 100
# Tools allowed in full automation mode
= [
"write_file",
"read_file",
"list_files",
"grep_file",
"run_terminal_cmd",
"create_pty_session",
"run_pty_cmd",
"read_pty_session",
"resize_pty_session",
"close_pty_session",
"update_plan",
"apply_patch",
"send_pty_input",
]
# Require profile acknowledgment before using full auto
= false
# Path to full auto profile configuration
= "automation/full_auto_profile.toml"
# Prompt caching - Cache model responses for efficiency
[]
# Enable prompt caching (reduces API calls for repeated prompts)
= false
# Directory for cache storage
= "~/.vtcode/cache/prompts"
# Maximum number of cache entries to keep
= 1000
# Maximum age of cache entries (in days)
= 30
# Enable automatic cache cleanup
= true
# Minimum quality threshold to keep cache entries
= 0.7
# Prompt cache configuration for OpenAI
[]
= true
= 1024
= 3600
= true
# Optional: set server-side prompt cache retention for OpenAI Responses API.
# Example: "24h" will increase model-side prompt caching to 24 hours, which can
# reduce cost and latency for repeated reasoning prompts.
= "24h"
# Prompt cache configuration for Anthropic
[]
= true
= 300
= 3600
= 4
= true
= true
# Prompt cache configuration for Gemini
[]
= true
= "implicit"
= 1024
= 3600
# Prompt cache configuration for OpenRouter
[]
= true
= true
= true
# Prompt cache configuration for Moonshot
[]
= true
# Prompt cache configuration for xAI
[]
= true
# Prompt cache configuration for DeepSeek
[]
= true
= true
# Prompt cache configuration for Z.AI
[]
= false
# Model Context Protocol (MCP) - Connect external tools and services
[]
# Enable Model Context Protocol (may impact startup time if services unavailable)
= true
= 5
= 30
= 3
= true
= 30
# MCP UI configuration
[]
= "compact"
= 50
= true
# MCP renderer profiles for different services
[]
= "sequential-thinking"
= "context7"
[[]]
= "time"
= "uvx"
= ["mcp-server-time"]
= true
= 3
[]
[[]]
= "fetch"
= "uvx"
= ["mcp-server-fetch"]
= true
= 3
[]
# Agent Client Protocol (ACP) - IDE integration
[]
= true
[]
= false
[]
= false
= "127.0.0.1"
= 3000
= "sse"
= "vtcode-mcp-server"
= "0.39.13"
= []
[]
= true
= "stdio"
= "full_auto"
[]
[]
= false
[]
= 100
= 10
[]
= true
= true
[]
[]
= true
= true
= 1048576
[]
= []
= []
= []
= []
= []
[]
= false
= 3
= true
# [hooks.lifecycle]
# # Session start hook that provides project context
# session_start = [{ hooks = [{ command = "$VT_PROJECT_DIR/.vtcode/hooks/setup-env.sh", timeout_seconds = 30 }] }]
# # Session end hook for cleanup/logging
# session_end = [{ hooks = [{ command = "$VT_PROJECT_DIR/.vtcode/hooks/log-session-end.sh" }] }]
# # Security validation for bash commands
# pre_tool_use = [
# { matcher = "Bash", hooks = [{ command = "$VT_PROJECT_DIR/.vtcode/hooks/security-check.sh", timeout_seconds = 10 }] }
# ]
# # Post-tool hook to run linters and log commands
# post_tool_use = [
# { matcher = "Write|Edit", hooks = [{ command = "$VT_PROJECT_DIR/.vtcode/hooks/run-linter.sh" }] },
# { matcher = "Bash", hooks = [{ command = "$VT_PROJECT_DIR/.vtcode/hooks/log-command.sh" }] },
# { matcher = ".*", hooks = [{ command = "$VT_PROJECT_DIR/.vtcode/hooks/log-tool-usage.sh" }] }
# ]