Display Name
token-diet
Category
Tooling
Sub-Category
Tooling: Usage Monitors
Primary Link
https://github.com/KasperChenGH/token-diet
Author Name
KasperChenGH
Author Link
https://github.com/KasperChenGH
License
MIT
Other License
No response
Description
A zero-dependency CLI, agent, and skill that measures token usage from real Claude Code transcripts, scores structural waste across eight levers, and restructures the project to reduce it. Includes audit-first PostToolUse output-filter and PreToolUse read-dedup hooks, both off by default.
Validate Claims
Zero install: run npm i -g token-diet-cli, then token-diet review --dir . in any repository with a .claude/ setup. It scores the design A-F against the eight levers and lists per-lever findings in seconds, reads no usage history, and writes nothing.
Specific Task(s)
Have Claude Code run token-diet review and then token-diet estimate on a project, and report the letter grade and the projected token-reduction percentage.
Specific Prompt(s)
Tell Claude Code: Put this project on a token diet - run token-diet review and estimate, then show me the grade and the projected savings.
Additional Comments
Published on npm as token-diet-cli (the bare token-diet name is taken). MIT, zero runtime dependencies, 191 tests, CI on Node 18/20/22. The README has a demo GIF
Recommendation Checklist
Display Name
token-diet
Category
Tooling
Sub-Category
Tooling: Usage Monitors
Primary Link
https://github.com/KasperChenGH/token-diet
Author Name
KasperChenGH
Author Link
https://github.com/KasperChenGH
License
MIT
Other License
No response
Description
A zero-dependency CLI, agent, and skill that measures token usage from real Claude Code transcripts, scores structural waste across eight levers, and restructures the project to reduce it. Includes audit-first PostToolUse output-filter and PreToolUse read-dedup hooks, both off by default.
Validate Claims
Zero install: run npm i -g token-diet-cli, then token-diet review --dir . in any repository with a .claude/ setup. It scores the design A-F against the eight levers and lists per-lever findings in seconds, reads no usage history, and writes nothing.
Specific Task(s)
Have Claude Code run token-diet review and then token-diet estimate on a project, and report the letter grade and the projected token-reduction percentage.
Specific Prompt(s)
Tell Claude Code: Put this project on a token diet - run token-diet review and estimate, then show me the grade and the projected savings.
Additional Comments
Published on npm as token-diet-cli (the bare token-diet name is taken). MIT, zero runtime dependencies, 191 tests, CI on Node 18/20/22. The README has a demo GIF
Recommendation Checklist