Analysis updated 2026-05-18
Cut the tokens a coding agent's tool output sends to the model, with proof nothing was lost.
Add compression to an existing LangChain or LangGraph pipeline with a small hook.
Run any terminal AI agent through the secondwind proxy with zero code changes.
Verify exactly how many tokens were saved using the built-in proof and receipt system.
| orchetron/secondwind | archledger/irlume | codeitlikemiley/waz | |
|---|---|---|---|
| Stars | 9 | 9 | 9 |
| Language | Rust | Rust | Rust |
| Last pushed | — | — | 2026-07-09 |
| Maintenance | — | — | Active |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 3/5 | 3/5 | 4/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Install script or pip/npm package gets the CLI or library running in minutes.
Secondwind is a tool that shrinks the output an AI coding agent sends back to the language model, without losing any of the actual information, and it proves that nothing was lost. When a coding agent runs a command or reads a file, that output often gets sent back to the model as is, using up a lot of the available context space. Secondwind sits between the agent and the model, rewriting large chunks of that tool output into a more compact form while checking that every value can still be recovered before it allows the rewrite through. If a rewrite cannot be proven safe, the original output passes through unchanged instead. You can use Secondwind in three ways. As a proxy, it runs as a standalone process that your agent talks to instead of talking directly to the model, requiring no code changes. As a library, you can call it directly from Python, Node, or a sandboxed WebAssembly build inside your own program. As middleware, it plugs into existing frameworks like LangChain, LangGraph, Agno, Strands, Cursor, and LiteLLM with a small amount of glue code. Getting started with the command line version involves running an install script or using pip or npm for the language libraries. Two commands are enough to wire it into Claude Code: one sets up the integration, and the other runs your agent through the proxy. After a session ends, Secondwind prints a receipt showing how many blocks it compressed and how many tokens it saved, along with confirmation that every block was verified lossless. The tool works across several API formats, including the Anthropic Messages format, OpenAI's Chat Completions and Responses formats, and AWS Bedrock's Converse format, automatically detecting which one is being used. It reports the token savings as a fact it can verify, rather than an estimate, and it is released under the Apache 2.0 license.
A proxy and library that compresses an AI agent's tool output before it reaches the model, with proof no value was lost.
Mainly Rust. The stack also includes Rust, Python, Node.js.
Use, modify, and distribute freely, including commercially, as long as you keep the license notice and note any changes.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.