trim

by modmyclaude · ★ 2 · updated 20 days ago

PanesStatus lineReskinsGuardsCommandsvalidates

0

Long shell output, folded before Claude reads it. Errors, the start and the end stay; you see about how many tokens that saved.

install trim

Install

git clone https://github.com/modmyclaude/claude-code-mods
claude --plugin-dir ./claude-code-mods/mods/trim

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

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
ea6cb7b the 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.

★ 2PanesBandsStatus line

bouncer

modmyclaude/claude-code-mods

Checks each mod at the door and lists what it can reach, from Claude Code's own validator.

★ 2PanesBandsCommands

chapters

modmyclaude/claude-code-mods

A diff, told in ordered chapters with risk marks, and a pane that walks you through them.

★ 2PanesBandsGuards

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.

★ 2PanesBandsGuards

crossroads

modmyclaude/claude-code-mods

Three ways forward after every turn, risky ones marked. About $0.0002 a turn.

★ 2BandsCommandsPrompt

fine-print

modmyclaude/claude-code-mods

A second reader that flags what you would miss in a wall of text.

★ 2PanesBandsStatus line

footprints

modmyclaude/claude-code-mods

A live file tree beside the chat that shows where Claude has been.

★ 2PanesStatus lineGuards

halftime

modmyclaude/claude-code-mods

Claude works, you play. The whistle blows the moment it needs you.

★ 2BandsReskinsGuards

hatchling

modmyclaude/claude-code-mods

A collectible pixel pet that hatches, reacts and evolves while you code.

★ 2BandsReskinsGuards

headway

modmyclaude/claude-code-mods

See how far along Claude is, and when it will land.

★ 2PanesBandsReskins

last-look

modmyclaude/claude-code-mods

Holds destructive commands until you approve, and shows what they would destroy.

★ 2PanesBandsStatus line

mulligan

modmyclaude/claude-code-mods

A do-over for risky shell commands: it saves your files first, and /mulligan puts them back.

★ 2PanesBandsGuards