| name | check-context |
| description | Accurately check current context window and token usage. Use when the user asks about context usage, token consumption, or when monitoring context levels. |
| user-invocable | false |
Check Context Skill
Check current context/token usage. The data source depends on the active runtime.
When to Use
- When the user asks about context usage
- When the user wants to know token consumption
How to Use
First, check the active runtime:
node -e "try { const c=JSON.parse(require('fs').readFileSync(require('path').join(process.env.HOME,'zylos/.zylos/config.json'),'utf8')); console.log(c.runtime||'claude'); } catch { console.log('claude'); }"
If Claude runtime
Read the statusLine data file (updated after every turn):
cat ~/zylos/activity-monitor/statusline.json
Report from the JSON:
- Context usage:
context_window.used_percentage% used, context_window.remaining_percentage% remaining
- Tokens:
context_window.total_input_tokens input, context_window.total_output_tokens output (window size: context_window.context_window_size)
- Session cost:
cost.total_cost_usd
- Model:
model.display_name
If Codex runtime