trim
by modmyclaude · ★ 2 · updated 20 days ago
Long shell output, folded before Claude reads it. Errors, the start and the end stay; you see about how many tokens that saved.
Install
git clone https://github.com/modmyclaude/claude-code-modsclaude --plugin-dir ./claude-code-mods/mods/trimThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
config.setsession.starttool.callui.rendercommand.run- API calls
$.command.register$.state.get$.state.set$.ui.invalidate$.ui.log$.ui.open$.ui.resolve$.ui.status$.ui.toast- Draws
ToolResultPane- Can see
every tool call- Reach
- level 1 of 3 reads mod statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/modmyclaude/claude-code-mods
- Path in repo
mods/trim- Source commit
ea6cb7bthe exact code the scan read- Author
- @modmyclaude
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from modmyclaude/claude-code-mods
ant-farm
modmyclaude/claude-code-mods
Mission control for your subagents: what each one is doing, its activity and its cost, live.
bouncer
modmyclaude/claude-code-mods
Checks each mod at the door and lists what it can reach, from Claude Code's own validator.
chapters
modmyclaude/claude-code-mods
A diff, told in ordered chapters with risk marks, and a pane that walks you through them.
cloakroom
modmyclaude/claude-code-mods
Check your secrets at the door. Claude gets a ticket; the real value only comes back where you allow it.
crossroads
modmyclaude/claude-code-mods
Three ways forward after every turn, risky ones marked. About $0.0002 a turn.
fine-print
modmyclaude/claude-code-mods
A second reader that flags what you would miss in a wall of text.
footprints
modmyclaude/claude-code-mods
A live file tree beside the chat that shows where Claude has been.
halftime
modmyclaude/claude-code-mods
Claude works, you play. The whistle blows the moment it needs you.
hatchling
modmyclaude/claude-code-mods
A collectible pixel pet that hatches, reacts and evolves while you code.
headway
modmyclaude/claude-code-mods
See how far along Claude is, and when it will land.
last-look
modmyclaude/claude-code-mods
Holds destructive commands until you approve, and shows what they would destroy.
mulligan
modmyclaude/claude-code-mods
A do-over for risky shell commands: it saves your files first, and /mulligan puts them back.