Skip to content
BirchDesignLabPublic

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Tare, a plugin for Claude Code: see what every call costs, then spend less of it

See what every Claude Code call costs, then spend less of it.

Claude Code 2.1.308 or later MIT license Version 1.0.0

One plugin for Claude Code, three levels: core prices every call and keeps the prompt lean, flow catches the slips that cost round trips, fleet runs a manager session and its lanes. No server, no telemetry.

claude plugin marketplace add BirchDesignLab/tare
claude plugin install tare@tare

Start a session and core is on. /tare says what is on, and why.

Animated terminal: a Claude Code session with Tare, its one status entry updating with context, cost per call, the PR and the subagent mix as the session works

Three levels

Three stacked levels: core holds usage-meter, lean-gate and tiering-guard; flow adds radar, papercut, shadow-undo and handoff; fleet adds inbox-batcher, fleet-skills and sdd

Each level holds the one before it. Change it with /tare level flow; tare reloads with the new level (if the change does not show, /reload-plugins). Every feature also has its own auto, on or off in the plugin's options, which wins over the level.

core: see the spend

Feature What you see
usage-meter icon usage-meter
Every model call priced, in a local ledger.
44k ctx · $0.02/call · session $0.05 · Nov $4.10 · 5h 22% · cache 1h
lean-gate icon lean-gate
Other extensions stay out of the prompt until you let them in.
16 off · ~8.2k tok kept out
tiering-guard icon tiering-guard
Subagents run on the model and effort you meant.
find loader [lookup: haiku]

flow: fewer wasted round trips

Feature What you see
radar icon radar
Watches git, the PR and CI at zero tokens.
feat/x +2 -1 · 3 dirty · PR #41 checks 4/6 · 1 failed
papercut icon papercut
Rescues near-miss Edits, refuses shell slips, hints at waste.
papercut: old_string differed from the file only in line endings; matched one place and applied it
shadow-undo icon shadow-undo
Undo for the shell and agent writes /rewind misses.
#3 · 14:02 · Bash: npm run gen · 3 changed paths
handoff icon handoff
Writes the handoff from the cache, then starts fresh.
written from the cache (read 212k, wrote 9k)

fleet: run a manager and its lanes

Feature What you see
inbox-batcher icon inbox-batcher
Holds lane messages for an idle manager, then one digest.
inbox 2 held · digest 7m
fleet-skills icon fleet-skills
Manager, lane and planner skills, with the message format.
LANE · BRANCH · HEAD · ASK · OPTIONS
sdd icon sdd
Subagent-driven development as workflows, set up by /sdd install.
sdd-task: implement → review → rule → fix → gate

Figures above are sample data. Each feature's page has its commands, options and limits.

Animated terminal: /tare lists the core features as on, /tare level flow raises the level, and radar, papercut, shadow-undo and handoff come on

Without and with

Side by side: a Claude Code session without Tare, where cost and context are invisible, and the same session with it, where each call's cost, the context size and what the prompt carries are on screen

A first session

  1. Before you type, the band above the prompt says what lean-gate keeps out; Manage opens /lean.
  2. After the first answer, the status entry shows context, cost per call, the session, the month, limits and the cache; /meter backfill once imports past sessions.
  3. When a subagent runs, the entry adds the model mix; a fan-out at xhigh or max asks first, with its price.
  4. When something needs you, the band warns of a large context (Hand off), an expiring cache (Keep warm), a rate limit past 80% or a month over budget. One row at a time, the most urgent first.
  5. At flow, radar adds the PR and CI to the entry and wakes the session when CI finishes; /snapback undoes a shell command that went wrong.
  6. Any time, /tare lists each feature, on or off and why; /tare doctor checks the setup.

Measured

  • A smaller first request. A headless session's first request, on the author's setup: 53.0k input tokens with no gate, 38.9k with lean-gate, 27.1k with the Artifact tool deferred too (Haiku 5.5; lean-gate).
  • Shorter tool descriptions. lean-gate's opt-in trims take a first request from 39,337 to 36,878 input tokens, -6.2% (lean-gate).
  • A handoff without the rebuild. At 300k context, the cache-written handoff read 289k tokens from the cache and wrote 13k, where a cold resume of the same session wrote 246k of cache again (the probe's results).

No overall saving is claimed: a before-and-after census of real sessions has not shown a clear win yet. usage-meter is there so you can measure your own.

Requirements

  • Claude Code 2.1.308 or later. /tare doctor says if yours is older.
  • git for radar, shadow-undo and the commit counts in /meter-report. gh, signed in, is optional: radar uses it for the PR and CI, /meter-report for PR counts.
  • Node 24.22.1 or later (24.x) for /meter backfill, /sdd install and the repo scripts.
  • Platform. Built and checked on Windows 11. The terminal is checked; the desktop app in part (what each check covers). macOS and Linux are not checked yet. papercut's Windows rules (command length, Python encoding, PowerShell 5.1 syntax) fire only on Windows.
  • What goes out. Tare runs no server and sends no telemetry. Its model calls go through Claude Code and are priced in the ledger: tiering-guard's small Haiku router call, the cache ping when you press Keep warm (or on its own, if you set the keeper to auto), /meter ask, and handoff's writing call. radar and /meter-report call gh. Details in SECURITY.md.

Developing

Tare is one person's project, kept to a narrow scope. Issues with bug reports and ideas are welcome; for a change, please open an issue first. CONTRIBUTING.md says how that works and lists the checks a pull request runs. Forks are welcome too (MIT).

tare is read from tare/: edit it, then /reload-plugins in a session. A feature lives in tare/hooks/features/<name>/, its tests in tare/tests/<name>/; how a feature is built. Brand assets: node scripts/brand/build-all.mjs. Demo casts: node scripts/screenshots/build-casts.mjs.

More

Features · The plugin's page · Contributing · Security · Changelog · MIT license

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages