All Claude Code modsdwarvesf/dwarves-kit
context-inspector
Context waste analyzer for Claude Code: what fills the window, re-reads, near-duplicate outputs, what compaction kept, advice
review UI rewrite
context-inspector reaches L2 (writes or runs) and passed claude plugin validate with warnings.
- Events hooked: 9
- API methods referenced: 11
- Access from classified calls: L2, writes or runs: writes files, reads env vars, reads the transcript, draws
- Static scan, not a runtime test
To install it, open the repository and follow the author’s setup instructions. Mods need Claude Code 2.1.287 or later.
Access
L2 Writes or runswrites files, reads env vars, reads the transcript, drawsValidation
Passed with warningsListed under Context and usage meters for Claude Code.
View the source on GitHub Back to the list
What the scan recorded
- Observed events
- every tool call, compaction
- Hooks
session.start, session.end, session.append, tool.call, turn.step, session.compact, turn.complete, command.run {command=context-inspect}, command.run {command=context-pane}, command.run {command=context-export}, ui.render {component=Pane, requestId=context-inspector}- API calls
$.clock.after, $.command.register, $.env.get, $.fs.write, $.session.id, $.session.messages, $.session.usage, $.ui.invalidate, $.ui.open, $.ui.resolve, $.ui.toast- Validation
- Passed with warnings
- Scanned revision
3bb6fc31c374- UI rewrite review
- UI hook source contains control-character strings. Review any values passed to next() as rewritten props.text; the scanner does not trace whether these strings reach that call. integrations/claude-code/context-inspector/hooks/core/analyze/rereads.ts:45, integrations/claude-code/context-inspector/hooks/core/analyze/rereads.ts:54, integrations/claude-code/context-inspector/hooks/core/entities.ts:39, integrations/claude-code/context-inspector/hooks/core/redact.ts:12, integrations/claude-code/context-inspector/hooks/core/redact.ts:19, integrations/claude-code/context-inspector/hooks/core/tokens.ts:28
These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.
More from dwarvesf/dwarves-kit
- board-pane/board opens a pane with the kit's board output and a Refresh button
- loop-detectiveDetect repeated Bash failures and edit/retry cycles with evidence, live cases and investigation prompts
- memory-lensRecalls the few memories related to each prompt: one line for the human, one context entry for the model. Loc…
- secrets-veilMasks secret values in tool results before the model reads them: named vendor variables, value-shape patterns…
Badge for your README
Authors can show the latest scan result in their README. Each badge links to this page.
[](https://mods.aidojo.si/mods/dwarvesf--dwarves-kit--context-inspector/)
[](https://mods.aidojo.si/mods/dwarvesf--dwarves-kit--context-inspector/)