All shelves / Mods / Usage
secondwind
By orchetron
secondwind is a Claude Code usage mod by orchetron.
Compresses Bash output of 512 bytes or more through the local secondwind binary, keeps the full text one call away, and draws a pane of the net tokens saved.
Draws
Install
The marketplace name is secondwind.
/plugin install secondwind --marketplace orchetron/secondwindIt runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.2.0
- License
- Apache-2.0
- Repo stars
- 40
- Last change
- 2026-10-23
What it can reach
- Draws in the session
- Sees tool calls
- Calls another program on this machine
Needs the secondwind binary on PATH. The repository README installs it with an install script, or with cargo from source. Answer y to add the marketplace, then pick the user scope. From a shell the same install is claude plugin install secondwind --marketplace orchetron/secondwind. Compression is off in every session until you turn it on there, with /secondwind on or the pane's turn on button. After a Bash command runs, the binary compresses its output, and Claude reads a stub with a marker. The full output stays one resolve call away, whole or by slice, and output that is usually read whole, such as a large cat, stays in view. Claude Code caps a Bash result at 30,000 characters before any plugin sees it. The pane shows the net tokens saved, raw, sent, and handed back, the blocks verified lossless, and the recent markers. A block Claude reopens in full counts as a cost, in red. The status line shows secondwind off, on, or the net percent. /secondwind status prints the figures, and /secondwind reset clears them. The author says secondwind runs locally and your data never leaves your machine.
The marketplace name is secondwind, and the marketplace source is ./integrations/claude-code. Saving tokens on tool output is why this page files it under usage. context-diet replaces a huge tool output with a short digest and the path of a file that holds the full text. output-diet trims what Claude reads from a long shell, search, or subagent result, and counts the savings on the status line. This one compresses on this machine, checks that each block is lossless, and nets out what Claude fetched back.
Demo

What it hooks into
session.startWhen a session startstool.callAround a tool call, where it can hold oneBashmcp__secondwind__recovermcp__secondwind__resolvecommand.runWhen you run its slash command/secondwindprompt.composeWhile you write a promptui.renderDraws into the sessionPane
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/secondwindTurn secondwind compression on or off for this session, or show its savings
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- orchetron
- Category
- Usage
- Marketplace
- secondwind
- Folder
- integrations/claude-code
- Version
- 0.2.0
- License
- Apache-2.0
- Repo stars
- 40
- Last change
- 2026-10-23
- Language
- Rust
- Files
- 7