ClaudeCodeMod

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.

In Claude Code
/plugin install secondwind --marketplace orchetron/secondwind
Open the repo

It 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

The secondwind pane in the Claude desktop app, on in this session: touched 71.5%, all output about 58.8%, verified 2/2, net 9,273 tokens saved, bars for raw, sent, and back, and two recent markers.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • tool.callAround a tool call, where it can hold oneBashmcp__secondwind__recovermcp__secondwind__resolve
  • command.runWhen you run its slash command/secondwind
  • prompt.composeWhile you write a prompt
  • ui.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
Repo
orchetron/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

Other mods in Usage

session-hudbradtraversyDraws a strip above the prompt with the git branch, warned on main, context used against a target you set, and weekly usage, and a Details pane of the rest.time-blamekaranb192Splits each turn's time between Claude, each tool, your approvals, and the rest, under the answer, and /blame opens a panel of the whole session's split.subagent-tunerKruhlikauHolds a commandPicks each subagent's model and effort by asking you in a pane, from a recommendation for the task, or from your saved default, with a band above the prompt.cockpitdrkokorevHolds a commandOpens a panel beside the transcript with context, rate limits, cost, subagents, tool calls, changed files, and tests, and asks before rm -rf or a force push.cache-refresherolddonkeyDraws a bar above the prompt with the time until the prompt cache expires and what a rebuild would cost, and can refresh the cache while you are away.context-alertnathanonnOpens a question dialog when the context window reaches 40 percent, offering to write a handoff doc and then compact, write one only, or compact now.stintdigital-stoic-orgDraws a band above the prompt with context fill, plan headroom, and the stint count, and /pit saves notes, clears, and starts the fresh context from them.orca-movemutlumehmetMoves a session to a twin account as one nears its usage limit: it runs /exit once the prompt box is empty, or shows a toast asking you to clear it.model-relaycablateOpens a panel above the prompt to switch this window to another model provider, routes subagents to providers, and fails over when Claude returns a 429.rtk-gainrtk-aiDraws what RTK saves while Claude works: a band above the prompt, the saving in the spinner, and a /rtk-gain pane where a viking breaks the saved tokens.tokendoctorrsaryevShows where your Claude Code tokens went, audits your settings with 33 checks, and changes a setting only after a dialog shows the change and you press Apply.catnapLippIncHas Claude compact at a clean break: from 50% of the context it asks Claude to finish the piece it is on, write a handoff, and compact, then carry on by itself.
All 183 in Usage