cleo context
Monitor context window usage for agent safeguard system
Part of Context Safeguard System - check context limits before operations
Agent Relevance: High - Frequently used by LLM agents
Synopsis
cleo context <status|check|list|watch> [OPTIONS]
Subcommands
| Subcommand | Description |
|---|
status | Run cleo context status --help for details |
check | Run cleo context check --help for details |
list | Run cleo context list --help for details |
watch | Run cleo context watch --help for details |
Options
| Option | Description |
|---|
--format | Output format: text, json |
--json | Force JSON output |
--human | Force human-readable output |
--session | Session ID or scope |
This command supports JSON output via --json flag for LLM agent integration.
Examples
Exit Codes
| Code | Meaning | Recoverable |
|---|
0 | Success | No |
50 | Context warning (70-84%) | No |
51 | Context caution (85-89%) | No |
52 | Context critical (90-94%) | No |
53 | Context emergency (95%+) | No |
54 | Context stale | No |
See Also