pivanov/ctx-wire
关于
ctx-wire runs your commands, compresses the output with declarative filters, scrubs secrets, and hands your agent a short result. The full log stays on disk for when something actually fails. Cut the noise on the wire.
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文ctx-wire
Stop paying tokens for noisy command output.
AI coding agents run constant shell commands, build, test, install, lint, search, git, and read every line of the output into their context. Most of it is noise you pay tokens for. ctx-wire sits between the agent and the shell: it compresses that output with declarative filters, scrubs secrets, and hands back a short result, while keeping the full (scrubbed) log on disk for when a command fails. Wire it into your agent once; from then on it works transparently.
Why ctx-wire
- Automatic token savings. The noisiest commands, package installs, test runs, linters, searches, collapse to the signal the agent actually needs.
- Transparent. One
ctx-wire init <agent>and commands are filtered through the agent's hook (or PATH shims for steering-only agents). Nothing changes about how you or the agent work. - Nothing important is lost. Output is scrubbed of secrets before the model sees it, the full scrubbed log is spooled to disk so failures stay debuggable, and valid JSON is never broken mid-structure.
- Measurable.
ctx-wire gainreports exactly how many bytes and tokens were saved, broken down by program and by agent. - MCP output too.
ctx-wire init claudeautomatically relays known snapshot-heavy MCP servers (chrome-devtools, Playwright) throughmcp-wrap --compress, which measures what each tool costs in tokens and reduces verbose browser snapshots with the raw result spooled locally. Any other server can be wrapped withctx-wire mcp-wrap install <server>. - Extensible. Filters are declarative TOML. Pull community filters, publish your own, or scaffold a new one from a real command transcript.
- Works with your stack. Claude Code, Cursor, Codex, Gemini, GitHub Copilot, Cline, Windsurf, Kilo Code, and more, plus MCP for editors that prefer tools.
Quick start
curl -fsSL https://ctx-wire.dev/install.sh | sh # macOS/Linux, installs to ~/.local/bin
ctx-wire init claude # or codex, cursor, gemini, copilot, ...
ctx-wire gain # watch the savings add up
On Windows (PowerShell), install per-user with no admin:
irm https://www.ctx-wire.dev/install.ps1 | iex # add -Machine (elevated) for machine-wide
ctx-wire init copilot # or vscode, visualstudio, claude, ...
Upgrade anytime with ctx-wire update (checksum-verified, atomic, with
rollback) on macOS, Linux, and Windows.
Documentation
- COMMANDS.md - every command, with deep dives on
explain,tune,doctor, the agent integrations behindinit, and filters & trust. - CONFIGURATION.md -
config.toml, gain storage, telemetry, and environment variables. - FILTERS.md covers writing your own filters: the TOML schema, the transform pipeline, inline tests, and the publish flow.
- TROUBLESHOOTING.md - common problems and known limitations.
- DEVELOPMENT.md - build from source, the
justtasks, and release packaging. - ctx-wire.dev - website and impact stats.
Backed by
License
MIT. Free and open source.
探索相关项目
加载中…