By alexgreensh
Audit and fix token waste across Claude Code and Codex sessions. Recover 5-25% of context budget through config cleanup and compaction, monitor usage trends via a live dashboard, and get real-time coaching on efficient prompt design.
Audit token waste across agent systems (Claude Code, Codex, OpenClaw, Hermes, OpenCode). Detect idle burns, model misrouting, and config bloat with dollar savings.
Context window coach analyzing setup overhead, historical usage trends, and session habits. Use when building something new and wanting token efficiency from the start, existing sessions feel sluggish or context fills too fast, designing multi-agent systems, or wanting a quick health check with real numbers. Do NOT use for running the full audit and applying fixes (use /token-optimizer instead).
Open the Token Optimizer dashboard. Collects latest session data, regenerates the dashboard, and opens it in your browser.
Find the ghost tokens. Audit Claude Code or Codex setup, see where context goes, fix it. Use when context feels tight.
Executes bash commands
Hook triggers when Bash tool is used
Modifies files
Hook triggers on file write and edit operations
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
It runs automatically in the background. You keep working as usual. Run the audit when you want the full picture.
Token Optimizer cuts the tokens your AI coding assistant wastes, keeps your work alive across sessions and compactions, and shows you where every dollar went on a live dashboard. Most of it runs automatically. You install it, run the audit once, and the hooks do the rest.
npx claudepluginhub alexgreensh/token-optimizer --plugin token-optimizerOffline security scanner for AI-agent repos, skills, plugins, and MCP servers
Opus 4.8-aware context optimization: silent-by-default hooks, honest NET token savings, big-file map-then-load, Context Control Center, per-task tracking, prompt coach
Evaluate and optimize .claude/ directory token efficiency. Reduce cost, improve response quality.
Analyze Claude Code session token usage, costs, trends, and anomalies
Resource optimization and performance monitoring toolkit for efficient Claude Code workflows
Analyze and reduce Claude Code token overhead
Session intelligence for Claude Code — find why your sessions fail and fix them