Skip to content

[Resource]: token-diet #2134

Description

@KasperChenGH

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

  • I have checked that this resource hasn't already been submitted
  • It has been over one week since the first public commit to the repo I am recommending
  • All provided links are working and publicly accessible
  • I do NOT have any other open issues in this repository
  • I am primarily composed of human-y stuff and not electrical circuits

Metadata

Metadata

Assignees

No one assigned

    Labels

    resource-submissionThis Issue submits a new resource to the listvalidation-passedResource has passed initial validation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions