Context Monitor
The Context Monitor writes runtime context snapshots to disk, providing visibility into exactly what’s being sent to the model.Agent-Centric Quick Start
Low-Level API
CLI Usage
Output Formats
Human-Readable (context.txt)
JSON (context.json)
Update Frequency
| Frequency | Trigger | Use Case |
|---|---|---|
turn | After each user/assistant turn | General monitoring |
tool_call | Before/after each tool call | Debug tool output growth |
manual | Only via /context dump | On-demand inspection |
overflow | When budget exceeded | Alert-based |
Sensitive Data Redaction
By default, sensitive data is redacted in snapshots:- API keys (
sk-,api_key, etc.) - Passwords
- Tokens
- Connection strings
Multi-Agent Monitoring
Safety Features
- Opt-in by default: Monitoring is disabled unless explicitly enabled
- Redaction: Sensitive data redacted by default
- Atomic writes: Uses temp file + rename to prevent corruption
- Respects ignore rules: Honors
.praisonignorefor file content
Configuration
Environment Variables
Next Steps
- Context Management - Overview
- Context Optimizer - Reduce context size

