egorfedorov/claude-context-optimizer

Claude Code plugin that tracks token usage, identifies wasted context, and saves 30-50% on API costs. Heatmaps, ROI reports, budget alerts, efficiency scores, git-aware suggestions — all local, zero config.

102Stars on the repository
30Mods indexed here, across every type
8d agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

PreToolUse

01

egorfedorov/claude-context-optimizer

Hook

Runs before the agent uses a tool for Read tool calls, executing read-cache.js and context-shield.js (2 commands). From egorfedorov/claude-context-optimizer.

102 8d ago A tokens not measured original MIT

PostToolUse

03

egorfedorov/claude-context-optimizer

Hook

Runs after a tool call finishes for Edit, Write, Bash, Read, Edit, Write, Glob, Grep, Agent and mcp__.* tool calls, executing read-cache.js and tracker.js (2 commands). From egorfedorov/claude-context-optimizer.

102 8d ago A tokens not measured original MIT

PreCompact

04

egorfedorov/claude-context-optimizer

Hook

Runs before the context is compacted, executing read-cache.js and tracker.js (2 commands). From egorfedorov/claude-context-optimizer.

102 8d ago A tokens not measured original MIT