← ClaudeAtlas

setup-context-monitorlisted

Configure the StatusLine-based context percentage monitor. Use when setting up context window warnings for the first time.
ArieGoldkin/claude-forge · ★ 6 · AI & Automation · score 74
Install: claude install-skill ArieGoldkin/claude-forge
# /setup-context-monitor One-time setup to enable proactive context window usage warnings via StatusLine. ## When to Use - First time enabling context monitoring - After reinstalling the plugin - When context warnings aren't appearing - To verify the monitoring pipeline is working ## What It Does - Creates stable launcher script at `~/.config/claude/continuity-statusline.sh` - Configures global StatusLine in `~/.claude/settings.json` (applies to all projects) - Sets `refreshInterval: 30` for periodic auto-refresh (CC 2.1.97+) - Launcher auto-discovers the plugin's context-percentage.js via glob pattern - Verifies context-monitor hook is registered in `hooks.json` - Context warnings inject at thresholds: 70% advisory, 80% warning, 90% critical - Warnings only escalate (never repeat at same tier); reset after compaction drops below 70% ## Step 0: Check for an Existing StatusLine First **Run this before writing anything.** Overwriting a `statusLine` the user deliberately chose is destructive, and the consequence of *not* checking runs both ways — see the conflict note below. ```bash python3 -c "import json,os;d=json.load(open(os.path.expanduser('~/.claude/settings.json')));print(json.dumps(d.get('statusLine','(unset)')))" ``` | Existing value | Action | |---|---| | Unset, or already `continuity-statusline.sh` | Proceed with setup | | Any other program | **Stop and ask.** Name what is configured, explain the trade-off below, and let the user choose | ## What the StatusLin