Description
tokentrim is a tool designed to enhance the efficiency of Claude Code by minimizing the amount of conversation history re-read during each step. This reduction in re-read history, measured at 75% on real sessions, allows users to extend their usage limits by up to four times. The tool is free, open-source, and operates entirely locally, ensuring that no data leaves the user's machine. It reads transcripts stored locally by Claude Code and never uploads them. For those opting for the Pro version, a license check sends only a key and machine label, while the hosted Pro dashboard receives usage totals and project folder names without accessing prompts or code.
Read More
The tool offers both a plugin and a full installation option. The plugin is easy to install with a single command, adding hooks and commands like /tokentrim:replay and /tokentrim:dashboard. However, for maximum savings, a full installation is recommended as it allows setting the compaction window, which is crucial for reducing re-read history. Users can safely have both the plugin and full installation, as the plugin's hooks deactivate when the full installation's hooks are active.
tokentrim is particularly beneficial for users on Pro or Max plans, as it helps delay hitting plan limits by reducing token re-reads. It also offers a live dashboard that provides real-time usage insights and recommendations based on the user's sessions. The dashboard allows users to switch settings with ease and includes features like a daily budget guard and model advisor.
The tool requires Claude Code and Python 3.9 or newer, and it is tested on macOS and Linux. The Pro version offers additional features such as a hosted live dashboard accessible from any device, a Monday digest, and budget alerts. A lifetime deal is available for the first 500 buyers at $49, after which the Pro version is available for $9 per month.
- CategoryPrompt Engineering Tools
- Pricing ModelFreemium
- DeploymentLocal
- PlatformsmacOS, Linux
tokentrim's Core Features
75% reduction in history re-read
Free and open-source
Local-only operation
Plugin and full installation options
Live dashboard with real-time insights
Pro version with additional features
Compatible with macOS and Linux
Requires Claude Code and Python 3.9+
How to use tokentrim?
Install: Choose plugin or full installation
Configure: Set compaction window for savings
Use: Monitor usage with live dashboard
Optimize: Adjust settings based on recommendations
tokentrim's Use Cases
- Extend Usage Limits
- Local Data Processing
- Real-Time Usage Insights
- Budget Management
- Pro Version Features





