Claude Code mod
trim
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-mods.git
claude --plugin-dir ./claude-code-mods/mods/trimThe repo has no marketplace file, so load the plugin folder directly with --plugin-dir.
What it can access
- Reach
- L1Reads: reads mod state, draws
- Sees
- every tool call
- Draws in
ToolResultPane- Hooks
config.setsession.starttool.callui.rendercommand.run
From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.
How Claude Code mods work
- A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
- It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
- Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
- Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Details
- Repository
- modmyclaude/claude-code-mods
- Folder
mods/trim- Author
- modmyclaude
- Website
- modmyclaude.com/mods/trim
- License
- MIT
- Last updated
- 28 October 2026
- Listed in
- awesome-claude-code-mods
FAQ
What is trim?
Long shell output, folded before Claude reads it. Errors, the start and the end stay; you see about how many tokens that saved. It is a mod for Claude Code, from modmyclaude/claude-code-mods on GitHub.
What can the trim mod access?
Its widest reach is "reads" (reads mod state, draws). It sees every tool call. It draws in ToolResult, Pane. Like any mod, it runs with your permissions.
How do I install trim?
Clone modmyclaude/claude-code-mods and start Claude Code with --plugin-dir pointing at the mod's folder (mods/trim).
Is trim popular?
modmyclaude/claude-code-mods has 1 GitHub stars and 0 forks, and is included in 1 curated Claude Code list. It was last updated on 28 October 2026.
More context & usage mods
transcript-makeover
1Broo37/claude-mods
Ends every tool row with a check or a red cross and how long the call took, and every turn with a receipt: time, tools, failures, cost and share of the five-hour limit
usage-band
1Auspexlabs/usage-band
Live Claude plan usage in Claude Code: 5-hour, 7-day and per-model weekly windows as slim meters, in the desktop app and the terminal
tools-usage
1Fazzani/claude-mods
Side pane listing the tools used in the session (built-in, MCP, skill, agent, plugin, hook) with calls and token consumption.
usage-band
1iamkhalid2/usage-band
Mod: a slim retro line above the prompt showing your plan's 5-hour and weekly usage limits.
token-weather-usage
1PedroLaRosa/claude-code
Demo: colored pills above the prompt: context tokens with weather, 5h/7d limits vs time elapsed, prompt cache time left, session cost, running subagents. No network, no files, no process access.
usage-bar
1richardcsuwandi/claude-mods
Usage bars (context, 5h, 7d, cost) above the prompt plus an auto-compact nudge; toggle with /usage-bar
Browse the most popular Claude Code mods, all context & usage mods, or the skills and MCP server directories.