What is context-inspector?
context-inspector is a Claude Code mod by YeonwooSung that context waste analyzer for Claude Code: what fills the window, re-reads, near-duplicate outputs, what compaction kept, advice. It is listed under Context & memory and has 773 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | YeonwooSung |
| Repository | YeonwooSung/my-claude-code-mods |
| Popularity | 773 GitHub stars |
| Category | Context & memory |
| Security | Review before installing (72/100) |
| Rank | #73 of 9,397 Claude Code mods; #8 in Context & memory |
| License | Apache-2.0 |
| Last commit | 2026-11-27 |
| Hooks | 9 events |
| Sees | compaction, every tool call |
| Draws on | Pane |
Is context-inspector safe to install?
context-inspector scores 72/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables. It passed 5 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes files or config | Review |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.command.register | |
$.env.get | reads env vars |
$.fs.write | writes files |
$.session.id | |
$.session.messages | reads the transcript |
$.session.usage | |
$.ui.invalidate | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install context-inspector?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/YeonwooSung/my-claude-code-mods claude plugin validate ./my-claude-code-mods/context-inspector
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add YeonwooSung/my-claude-code-mods && claude plugin install context-inspector@my-claude-code-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs context-inspector for you:
Install the "context-inspector" Claude Code mod from https://github.com/YeonwooSung/my-claude-code-mods/tree/main/context-inspector. Run claude plugin validate on it first and show me what it can access before you enable it.
More from YeonwooSung/my-claude-code-mods
This repository has at least 9 Claude Code mods on MCPMods.
- agent-profiler: Execution profiler for Claude Code: model wait vs tools vs subagents, live, with OTLP export (Review before installing)
- assumption-tracker: Assumption Tracker (Low risk)
- blast-radius: Blast Radius (Low risk)
- command-shelf: Command Shelf (Low risk)
- decision-ledger: Decision Ledger (Low risk)
- dependency-lens: Dependency Lens (Low risk)
- env-doctor: Env Doctor (Low risk)
- handoff-pack: Handoff Pack (Low risk)