claudemods

All Claude Code modsmodmyclaude/claude-code-mods

trim

A Claude Code mod in modmyclaude/claude-code-mods

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

trim reaches L1 (reads) and passed claude plugin validate on Claude Code 2.1.312.

To install it, open the repository and follow the author’s setup instructions. Mods need Claude Code 2.1.287 or later.

Access

L1 Readsreads mod state, draws

Validation

Passed on Claude Code 2.1.312

View the source on GitHub Back to the list

What the scan recorded

Observed events
every tool call
Hooks
config.set {key="trim.enabled"}, session.start, tool.call, ui.render {component=ToolResult}, ui.render {component=Pane, requestId=trim}, ui.render {component=Pane, requestId=trim-output}, command.run {command=trim}
API calls
$.command.register, $.state.get, $.state.set, $.ui.invalidate, $.ui.log, $.ui.open, $.ui.resolve, $.ui.status, $.ui.toast
Validation on 2.1.312
Passed
Scanned revision
ea6cb7b49613

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.

More from modmyclaude/claude-code-mods

See all 27 mods from modmyclaude/claude-code-mods

Badge for your README

Reach badge for trim Validation badge for trim

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/modmyclaude--claude-code-mods--trim-reach.svg)](https://mods.aidojo.si/mods/modmyclaude--claude-code-mods--trim/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/modmyclaude--claude-code-mods--trim-validates.svg)](https://mods.aidojo.si/mods/modmyclaude--claude-code-mods--trim/)