context-inspector
by YeonwooSung · ★ 15 · updated 2 days ago
Context waste analyzer for Claude Code: what fills the window, re-reads, near-duplicate outputs, what compaction kept, advice
Install
git clone https://github.com/consolelabs/devkitclaude --plugin-dir ./devkit/integrations/claude-code/context-inspectorThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startsession.endsession.appendtool.callturn.stepsession.compactturn.completecommand.runui.render- API calls
$.clock.after$.command.register$.env.get$.fs.write$.session.id$.session.messages$.session.usage$.ui.invalidate$.ui.open$.ui.resolve$.ui.toast- Draws
Pane- Can see
every tool callcompaction- Reach
- level 2 of 3 writes filesreads env varsreads the transcriptdraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/consolelabs/devkit
- Path in repo
integrations/claude-code/context-inspector- Source commit
e75b5b2the exact code the scan read- Author
- YeonwooSung @consolelabs
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from consolelabs/devkit
loop-detective
consolelabs/devkit
Detect repeated Bash failures and edit/retry cycles with evidence, live cases and investigation prompts
memory-lens
consolelabs/devkit
Recalls the few memories related to each prompt: one line for the human, one context entry for the model. Local files only, no network on the hot path.
secrets-veil
consolelabs/devkit
Masks secret values in tool results before the model reads them: named vendor variables, value-shape patterns, and high-entropy tokens. No reveal path.
board-pane
consolelabs/devkit
/board opens a pane with the kit's board output and a Refresh button
Related mods
Other mods in Panes, close to this one by stars.