Context Budget
A resource management method that treats the context window as a scarce resource of fixed capacity, presetting token quotas for different sources such as system prompts, retrieved passages and tool outputs, and triggering compression or discarding when limits are exceeded.
Timeline (last 90 days)
The context budgeting pattern allocates token quotas to different sources (system prompts, retrieved snippets, tool outputs, conversation history), treating the window as a resource that needs planning.
In an AI coding agent's configuration file, an overly long file eats into the context budget and instead dilutes the weight of the key rules.
实践中通过设置「上下文预算」为每次模型调用设定 token 上限,并在预算内通过优先级排序决定包含哪些信息
All Facts (3)
The context budgeting pattern allocates token quotas to different sources (system prompts, retrieved snippets, tool outputs, conversation history), treating the window as a resource that needs planning.
50%UnverifiedIn an AI coding agent's configuration file, an overly long file eats into the context budget and instead dilutes the weight of the key rules.
50%Unverified实践中通过设置「上下文预算」为每次模型调用设定 token 上限,并在预算内通过优先级排序决定包含哪些信息
50%