Find out exactly what tool definitions and instructions are bloating your Claude Code requests.
Cut unused context from every request to reduce token cost and speed up responses.
Safely undo a trim using the automatic settings backup if something breaks.
Generate a shareable before and after image showing how much you trimmed.
| kjmagnan1s/trim-hero | 00kaku/gallery-slider-block | 3rd-eden/ircb.io | |
|---|---|---|---|
| Stars | 0 | — | — |
| Language | JavaScript | JavaScript | JavaScript |
| Last pushed | — | 2021-05-19 | 2016-11-16 |
| Maintenance | — | Dormant | Dormant |
| Setup difficulty | easy | easy | easy |
| Complexity | 2/5 | 2/5 | 2/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires Claude Code and Node.js already installed, Windows users need WSL.
Trim Hero is a tool for Claude Code, the AI coding assistant, that finds and removes wasted space in the information sent to the AI on every single request, things like tool definitions, skill lists, and instructions you never actually use. The idea is that a lot of what gets sent to the AI model behind the scenes is unnecessary clutter that costs money and slows things down without adding value, so Trim Hero measures it and helps you cut it. You install it with a single command, and it can set itself up either as a proper Claude Code plugin or, if that is not available, by copying itself into a local skills folder. Once installed, you run it inside any project by typing a single command, or by simply asking what is using up your context window. Under the hood, it works in a clear sequence of steps. First it records how much information a normal request currently sends. Then it starts a small local proxy on your own machine, sends one throwaway test request through it using a cheap AI model, and captures exactly what gets sent, without changing anything or sending your data anywhere else. It then breaks that captured request down into named sections and estimates how many tokens, the units AI models are billed by, each section costs. An AI agent then reviews each section against your actual project and suggests whether to remove it, keep it, or ask you first. Nothing is changed until you personally approve the suggested cuts, and a backup of your settings is always saved first, with a plain way to undo everything if needed. After a trim, the tool can generate a simple shareable image showing how many tools and tokens per request you had before and after, created entirely on your own computer. The README is clear that everything stays local: the temporary file that captures your request contents is never uploaded anywhere, and the local proxy does not log your API key or login token. This tool is for existing Claude Code users who want to reduce cost and slowdown caused by unnecessary content in every request.
A Claude Code skill that measures what's actually in your AI request payload and lets you approve trimming the unused tool definitions and instructions that bloat it.
Mainly JavaScript. The stack also includes JavaScript, Node.js, Claude Code.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.