claudemods

All Claude Code modsdwarvesf/dwarves-kit

context-inspector

A Claude Code mod in dwarvesf/dwarves-kit

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.

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, draws

Validation

Passed with warnings

Listed 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

Badge for your README

Reach badge for context-inspector Validation badge for context-inspector

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/dwarvesf--dwarves-kit--context-inspector-reach.svg)](https://mods.aidojo.si/mods/dwarvesf--dwarves-kit--context-inspector/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/dwarvesf--dwarves-kit--context-inspector-validates.svg)](https://mods.aidojo.si/mods/dwarvesf--dwarves-kit--context-inspector/)