/context-hogs:leaderboardfrom context-hogs
Shows which files in the repo consumed the most token context, with suggestions to reduce costs.
Ships in context-hogs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
!node "${CLAUDE_SKILL_DIR}/../../context-hogs.js" --render 2>/dev/null || node "${CLAUDE_PLUGIN_ROOT}/context-hogs.js" --render
The table above is this repository's most token-expensive files, aggregated across
your recent sessions (read count, cumulative tokens, estimated cost). It is produced
by the context-hogs hook, which records as you work.
Briefly call out the top 1-3 offenders and suggest one concrete fix each: for
example: split an oversized file, exclude a generated/vendored path, or add the
suggested CLAUDE.md / permissions.deny block for a file Claude keeps re-reading.
Keep it short; do not re-run any commands.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub karanb192/claude-code-hooks --plugin context-hogsOther plugins' skills for the same job