scaledown-team/DietCode
Source, issues and the full README.
What it does
On every prompt, DietCode:- Classifies intent and prepends a one-line hint such as
[DietCode intent: file_read (87%)], so the agent picks the right tool. - Compresses large contexts when you paste a big codebase and ask a retrieval-style question, cutting 50-70% of tokens before the prompt reaches the model.
- Compresses large tool outputs.
ls,grepandgit diff/log/statusare compacted with no latency; anything still large goes through ScaleDown. - Tracks savings live in the Claude Code status line, for example
↓ 125.4K saved · 747 reqs.
Install
Set up in about a minute.
Proxy mode
Real per-turn token savings.
Supported clients
Claude Code, Codex CLI, Cursor.
