ClaudeCodeMod

All shelves / Mods / Usage

headroom-snip

By headroomlabs-ai

headroom-snip is a Claude Code usage mod by headroomlabs-ai.

Draws a band above the prompt showing Headroom cutting each request from its original token count to what was sent, with a /headroom log and a running total.

Draws

Install

The marketplace name is headroom-marketplace.

In your shell
claude plugin marketplace add headroomlabs-ai/headroom
claude plugin install headroom-snip@headroom-marketplace
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.41.0
License
Apache-2.0
Repo stars
77748
Last change
2026-10-14

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Calls another program on this machine

A Headroom proxy already running. If nothing answers, the band says so and suggests headroom wrap claude. When a request goes through the proxy, the band above the prompt shows its original and sent token counts with a scissors animation and the percentage cut, which compressors did the cutting, and the running total since the session started. A request sent unchanged says why. /headroom opens a pane of the requests since the session started, with what was cut and what was protected, how long compression took, the biggest snip, and an all-time total, and /headroom hide and /headroom show toggle the band. The status line shows the tokens saved, and toasts mark 10k, 50k, 100k, 250k, 500k, 1M, and 5M saved. The author says the mod polls the proxy's loopback GET /stats?cached=1 once a second while a turn runs, only on localhost, 127.0.0.1, or [::1], and that nothing leaves your machine. It looks for the proxy in HEADROOM_PROXY_URL, then ANTHROPIC_BASE_URL, then http://127.0.0.1:8787. Totals are not per session, because the proxy cannot tell Claude Code sessions apart: through headroom wrap claude they cover this project, by the launch folder's name, and otherwise every client on the proxy.

The marketplace name is headroom-marketplace. Add headroomlabs-ai/headroom. The same marketplace also lists headroom. To try it from a checkout, run claude --plugin-dir plugins/headroom-snip. The tokens each request saved are why this page files it under usage. secondwind, by orchetron, compresses Bash output of 512 bytes or more through the local secondwind binary and draws a pane of the net tokens saved. output-diet, by VedantAndhale, trims what Claude reads from a long shell, search, or subagent result and counts the savings on the status line. This one cuts nothing itself: it reads the counts from a Headroom proxy you already run, and animates each cut.

Demo

The headroom-snip section on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • turn.startWhen Claude starts a turn
  • turn.completeWhen a turn ends
  • command.runWhen you run its slash command/headroom
  • ui.renderDraws into the sessionAbovePromptPane

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /headroomShow what Headroom snipped from each request (add "hide" or "show" for the band)

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
headroomlabs-ai
Category
Usage
Marketplace
headroom-marketplace
Repo
headroomlabs-ai/headroom
Folder
plugins/headroom-snip
Version
0.41.0
License
Apache-2.0
Repo stars
77748
Last change
2026-10-14
Language
Python
Files
9

Same repo on other shelves

Plugins

  1. 25headroomheadroomlabs-ai/headroomHeadroom startup hooks for Claude Code and GitHub Copilot CLI — part of Headroom, the context compression layer that cuts tool output, logs, and RAG chunks by 60-95% fewer tokens before they reach the LLM.80.6k

Other mods in Usage

leaksdavekissOpens a pane that ranks the avoidable spend in the last 7 days of transcripts, and draws a strip above the prompt when a leak is happening.context-dietdrkokorevReplaces a huge tool output with a short digest and the path of a file that still holds the full text, and /diet opens a panel of what it saved.agent-profilerYeonwooSungDraws where a session's time goes, model wait against tools and subagents, in a status line and a live pane, and can write the session out as an OTLP trace.claude-carbongwittebolleDraws the CO2 of each answer and a pane with a pixel molecule colored against your past sessions, plus this session's total under the prompt.dividendMint-SecurityDraws a tip above the prompt about the prompt cache, the context, or the plan limits, with a status line and a /dividend pane of the session's figures.caliber-jev-compactioncaliber-ai-orgReplaces /compact: Jev scores each tool call, drops the stale ones, and keeps the rest of the conversation word for word, then toasts what it kept.model-effort-bandYeonwooSungDraws a band above the prompt with the selected model and the effort of the latest main-conversation request.shuntpleaseaiDraws a band above the prompt with the shared pool's usage and reset times, or this session's rate limits when you are off shunt.optimaizrblendbunjakuHolds a commandDraws this turn's cost, the 5-hour window, and cache time above the prompt, and holds a command that failed twice unchanged.clawdmeterwelternDraws Clawd and the session, weekly, and context bars in a band above the prompt.ccswaperrhythmDraws your ccswap accounts and their 5-hour and 7-day usage, and switches from a button on the band.routeralexei-ledPicks a model and effort for each turn from a classifier, and draws the tier above the prompt.
All 183 in Usage