# snip — Token-Saving CLI Proxy for AI Tools > snip is a token-saving CLI proxy: declarative YAML filters cut 60–90%+ LLM context from noisy command output. Verified 232★; setup ~5–10 minutes. ## Install Copy the content below into your project: ## Quick Use ```bash brew install edouard-claude/tap/snip # or: go install github.com/edouard-claude/snip/cmd/snip@latest snip init # Then run your agent CLI; snip filters shell outputs using YAML pipelines. ``` ## Intro snip is a token-saving CLI proxy: declarative YAML filters cut 60–90%+ LLM context from noisy command output. Verified 232★; setup ~5–10 minutes. **Best for:** AI coding users who want smaller shell outputs without losing pass/fail signal **Works with:** Claude Code, Cursor, Copilot CLI, Gemini CLI, any tool that runs shell commands **Setup time:** 5-10 minutes ### Key facts (verified) - GitHub: 232 stars · 27 forks · pushed 2026-05-13. - License: MIT · owner avatar + repo URL verified via GitHub API. - README-verified entrypoint: `brew install edouard-claude/tap/snip && snip init`. ## Main - Use YAML filters to keep only signal: README shows trimming verbose `go test` output to a one-line pass/fail summary. - Adopt it incrementally: start with a few high-noise commands (tests, logs, git history) and expand your filter set as you observe savings. - Track impact: README mentions reporting and savings metrics so you can quantify how much context you reclaim. ### Source-backed notes - README says snip sits between AI tools and the shell, filtering output via declarative YAML pipelines. - README claims measured token savings on real sessions and includes a report example and per-command reductions table. - README documents install options: curl installer, Homebrew tap, and Go install. ### FAQ - **Is snip only for Claude Code?**: No — README lists many AI tools; it works anywhere shell commands are run. - **How does it stay customizable?**: Filters are YAML data files (README emphasizes declarative pipelines), so you can tune per project. - **Does it change command behavior?**: No — it filters output; commands still run normally (README frames it as a proxy). ## Source & Thanks > Source: https://github.com/edouard-claude/snip > License: MIT > GitHub stars: 232 · forks: 27 --- ## Quick Use ```bash brew install edouard-claude/tap/snip # or: go install github.com/edouard-claude/snip/cmd/snip@latest snip init # Then run your agent CLI; snip filters shell outputs using YAML pipelines. ``` ## Intro snip 是省 token 的 CLI 代理:用 YAML 声明式过滤压缩噪声输出,并将节省记录到 SQLite 报表中(常见 60–90%+)。已验证 232★;约 5–10 分钟可启用。 **Best for:** 希望减少 shell 输出上下文但不丢关键信号的 AI 编码用户 **Works with:** Claude Code、Cursor、Copilot CLI、Gemini CLI,以及任何会跑 shell 命令的工具 **Setup time:** 5-10 minutes ### Key facts (verified) - GitHub:232 stars · 27 forks;最近更新 2026-05-13。 - 许可证:MIT;作者头像与仓库链接均已通过 GitHub API 复核。 - README 中核对过的入口命令:`brew install edouard-claude/tap/snip && snip init`。 ## Main - 用 YAML 过滤保留“信号”:README 示例把冗长的 `go test` 输出压成一行通过/失败摘要。 - 循序渐进:先从高噪声命令(测试/日志/git history)开始,观察收益后再扩展规则集。 - 量化效果:README 提到会输出节省统计与报表,便于你评估上下文回收幅度。 ### Source-backed notes - README 说明 snip 位于 AI 工具与 shell 之间,用 YAML 声明式流水线过滤输出。 - README 给出真实会话的节省示例与报表,并展示按命令统计的压缩比例表格。 - README 提供安装方式:curl 安装脚本、Homebrew tap,以及 Go install。 ### FAQ - **只能配合 Claude Code 吗?**:不是。README 列出多种 AI 工具;只要会跑 shell 命令就能用。 - **怎么做项目级定制?**:按 README:过滤规则是 YAML 文件(声明式 pipeline),可按仓库单独调整。 - **会改变命令行为吗?**:不会。它过滤的是输出,命令仍按原样执行(README 将其描述为代理/中间层)。 ## Source & Thanks > Source: https://github.com/edouard-claude/snip > License: MIT > GitHub stars: 232 · forks: 27 --- Source: https://tokrepo.com/en/workflows/snip-token-saving-cli-proxy-for-ai-tools Author: Script Depot