tokdiet: Cut AI Agent Costs 71% Without Losing Quality
Your AI coding agent is getting expensive. Not because you’re using it more — because it’s re-sending the same files on every turn. Same context, same tokens, same bill. But tokdiet fixes that. tokdiet is a local streaming reverse proxy that sits between your AI agent (Claude Code, Cursor, Codex) and the model API. It meters every token, compresses bloated context, and — here’s the kicker — runs a shadow evaluation to prove quality didn’t drop. Cut your input tokens by ~71% with 95–97% quality parity. And it’s MIT open source, 68 stars on GitHub as of writing. ...