Automation/GitHub/Tool
tokentrim
by suncal·Last observed 2026-10-26
★ 0 stars⑂ 0 forks
tokentrim is a Claude Code utility that measures token use from local transcripts, then replays past sessions against rules that keep context smaller. It configures earlier compaction and hooks to limit context growth from screenshots, images, large files, and long command output.
Useful for
- Review how local Claude Code sessions use tokens and preview the effect of tokentrim’s rules before installing them.
Requirements & limitations
- The source specifies Python 3.9+ standard library and says nothing leaves the machine.
Discussion
No comments yet.
Sign in with Google to comment. Browsing is open to everyone.