Skip to main content

Module prompt_budget

Module prompt_budget 

Source
Expand description

Prompt budget defaults shared across instruction and project-doc loading.

Constantsยง

DEFAULT_MAX_BYTES
Shared byte budget used when loading project documentation and instruction files.
DEFAULT_MAX_SYSTEM_PROMPT_TOKENS
Soft token budget for the fully composed system prompt. When the prompt exceeds this, VT Code warns and trims only low-priority advisory sections unless agent.trim_system_prompt is explicitly disabled.