← ClaudeAtlas

context-modelisted

Query, list, inspect and purge entries stored by the Context Mode hook (PostToolUse intercept of verbose outputs). Requires --with-context-mode to have been run at install time.
izo/Ulk · ★ 1 · Web & Frontend · score 68
Install: claude install-skill izo/Ulk
# Context Mode The Context Mode hook intercepts verbose tool outputs (> ~2K tokens) and stores them in a local SQLite database, returning a compact pointer `[context-mode#<id>]` instead. This skill lets you retrieve, inspect, and manage those stored entries. **Database**: `~/.claude/state/context-mode.sqlite` **Requires**: `sqlite3` (standard on macOS/Linux) + Context Mode hook installed (`./install.sh --with-context-mode`) --- ## Commands ### `/context-mode query <id>` Retrieve the full content of an intercepted output. ```bash sqlite3 ~/.claude/state/context-mode.sqlite \ "SELECT tool, byte_size, created_at, content FROM entries WHERE id='<id>';" ``` Display format: ``` tool : Bash size : 42 183 bytes (~10 500 tokens) captured : 2026-04-29 14:32:07 --- [full content] ``` --- ### `/context-mode list [--limit N] [--tool <name>]` List recent intercepted entries (default: last 10). ```bash # All recent entries sqlite3 -column -header ~/.claude/state/context-mode.sqlite \ "SELECT id, tool, byte_size, substr(created_at,1,16) as ts FROM entries ORDER BY created_at DESC LIMIT 10;" # Filter by tool sqlite3 -column -header ~/.claude/state/context-mode.sqlite \ "SELECT id, tool, byte_size, substr(created_at,1,16) as ts FROM entries WHERE tool LIKE '%Bash%' ORDER BY created_at DESC LIMIT 10;" ``` Display format: ``` id tool byte_size ts ---------- ----- --------- ---------------- a1b2c3d4 Bash 42183 2026-04-29 14:32 e5f6g