By agiwhitelist
Token/cost meter + context-compaction proxy companion for Claude Code. Ships a lightweight metering hook that logs tool I/O sizes to ~/.tokdiet; the FULL token-saving proxy runs via `npx tokdiet start` + ANTHROPIC_BASE_URL (a plugin cannot set env vars for the Claude Code process).
Matches all tools
Hooks run on every tool call, not just specific ones
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.
npx claudepluginhub agiwhitelist/tokdiet --plugin tokdietAudit, fix, and monitor Claude Code context window usage. Find the ghost tokens.
Opus 4.8-aware context optimization: cache-aware real costs & cache-break detection, session baseline audit (/cco-overhead), auto .contextignore, self-calibrating estimates, delegation advisor, ru/en prompt coach
Token-economy observatory for Claude Code: forensic per-session audit, A/B savings verifier, reproducible benchmark, and cost prediction — directly in Claude chat. Auto-installs via npx on first use; no separate npm install required.
Automatic prompt caching for Claude Code. Cuts Anthropic API token costs by up to 90% with zero configuration.
Honey (I Shrunk the AI) — three reflexive levers that cut agent token cost: less code (YAGNI/stdlib-first), less prose, and denser agent-to-agent handoffs (ESON/compact-JSON). Plus on-demand satellites (review, eco, gain, compress) and a hive of read-only subagents that return compressed handoffs. Auto-intensity lite/full/ultra; correctness and safety-critical paths stay exact.
Rolling context compression - old messages get summarized, recent messages stay verbatim. Never hit the context wall.