Interactive Commands
Use these commands inpraisonai chat or praisonai code interactive mode.
/context
Show context summary and statistics./context show
Alias for/context. Shows summary view.
/context stats
Show detailed token ledger by segment./context budget
Show budget allocation details./context dump
Write context snapshot to disk immediately./context on
Enable context monitoring./context off
Disable context monitoring./context path <path>
Set monitor output path./context format <human|json>
Set monitor output format./context frequency <turn|tool_call|manual|overflow>
Set monitor update frequency.| Frequency | Description |
|---|---|
turn | Write after each turn (default) |
tool_call | Write after each tool call |
manual | Only write on /context dump |
overflow | Write when approaching limit |
/context compact
Trigger manual context optimization./context history
Show optimization event history./context config
Show resolved configuration with precedence info.CLI Flags
Use these flags when startingpraisonai chat or praisonai code.
Auto-Compaction
Strategy
smart, truncate, sliding_window, summarize, prune_tools
Threshold
Monitoring
Redaction
Output Reserve
Estimation Mode
heuristic, accurate, validated
Mismatch Logging
Snapshot Timing
pre_optimization, post_optimization, both
Write Mode
sync, async
Show Config
Environment Variables
config.yaml
Precedence
Configuration is resolved in this order (highest to lowest):- CLI flags -
--context-*flags - Environment variables -
PRAISONAI_CONTEXT_* - config.yaml -
context:section - Defaults - Built-in defaults

