trimwire

Stop re-sending stale context every turn.

A tiny local gateway that prunes stale, repeated context from every request — your transcript stays untouched.

A Claude Code coding session on the left runs beside the local Trimwire gateway on the right. As the conversation grows, Claude Code's context bar fills; Trimwire intercepts the POST /v1/messages request, prunes redundant messages[] (repeated tool output, superseded reads, oversized logs) while keeping the current task and edits, and forwards a smaller request — so the context bar drops, then grows again as work continues. The transcript is never changed. Byte and token figures are an illustrative demo session.
~/todo-cli
>
trimwire · gateway

what trimwire does

It keeps what matters, trims the rest.

Keeps your recent work and edits, then strips repeated or heavy tool output before each request.

  • Older turns kept raw
≈21–73% smaller request · scales with the session — more tool output, more trimmed

Runs locally on every request — no model call, and your transcript is never changed.

get started

Point your agent at it. That's the install.

  1. 1Install the gateway — one binary, no daemon to babysit.
  2. 2It wires ANTHROPIC_BASE_URL for you, then runs as a local service.
  3. 3Every request is pruned locally before it leaves — your transcript never changes.
install · crates.io$ cargo install trimwire$ trimwire installor one line (downloads the signed binary):$ curl -LsSf https://raw.githubusercontent.com/AZagatti/trimwire/main/scripts/install.sh | sh