Home / Claude Code mods / Context & memory / context-inspector

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.

Updated 2026-11-27

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.

TypeClaude code mod
AuthorYeonwooSung
RepositoryYeonwooSung/my-claude-code-mods
Popularity773 GitHub stars
CategoryContext & memory
SecurityReview before installing (72/100)
Rank#73 of 9,397 Claude Code mods; #8 in Context & memory
LicenseApache-2.0
Last commit2026-11-27
Hooks9 events
Seescompaction, every tool call
Draws onPane

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.

CheckResult
No network accessPass
Starts no processesPass
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.command.register
$.env.getreads env vars
$.fs.writewrites files
$.session.id
$.session.messagesreads the transcript
$.session.usage
$.ui.invalidatedraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install context-inspector?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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
  3. 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.