/context budget to see segment allocation.
How It Works
Quick Start
CLI Flags
| Flag | Default | Description |
|---|---|---|
--context-output-reserve | 8000 | Tokens reserved for model output |
Interactive Commands
/context budget output:
config.yaml
PRAISONAI_CONTEXT_OUTPUT_RESERVE.
Best Practices
Raise output reserve before raising compaction threshold
Raise output reserve before raising compaction threshold
If replies are cut off, increase
--context-output-reserve first — compaction may not be the issue.Check /context stats after heavy tool use
Check /context stats after heavy tool use
Tool outputs consume the largest share; stats show which segment is filling fastest.
Pair with token estimation mode
Pair with token estimation mode
Use Token Estimation CLI accurate mode when validating budget numbers.
Related
Token Estimation CLI
Configure estimation accuracy
Context Compaction
Automatic overflow protection

