AI工具 Skill技能库 关于道场
Go AI工具 开源 ai-coding ai-tools aider claude-code cli cline codex context-window copilot cursor developer-tools filter gemini golang llm rtk-alternative token-optimization token-reduction windsurf yaml

Snip:代理大语言模型令牌代码

GitHub |2026-06-28

CLI 代理 reduces 大语言模型 令牌 usage 由60-90%. Declarative YAML filters 为 Claude 代码, Cursor, Copilot, Gemini. rtk alternative 在 Go. GitHub 350 ⭐ / 37 Fork,主要使用 Go 开发。标签:ai-coding,ai-tools,aider,claude-code,cli。访问项目:https://github.com/edouard-claude/snip

项目介绍

CLI 代理 reduces 大语言模型 令牌 usage 由60-90%. Declarative YAML filters 为 Claude 代码, Cursor, Copilot, Gemini. rtk alternative 在 Go.

核心功能

- 动作: "keep_lines" - 动作: "truncate_lines" - 动作: "format_template"

使用指南

snip - Reduce LLM Token Usage by 60-90% CLI proxy that filters shell output before it reaches your AI coding assistant's context window. Works with Claude Code, Cursor, Copilot, Gemini CLI, Windsurf, Cline, Codex, Kilo Code, Antigravity, Aider, and any tool that runs shell commands. AI coding agents burn tokens on verbose shell output that adds zero signal. A passing `go test` produces hundreds of lines the LLM will never use. `git log` dumps full commit metadata when a one-liner per commit suffices. snip sits between your AI tool and the shell, filtering output through declarative YAML pipelines. Write a YAML file, drop it in a folder, done. The extensible LLM token optimizer: filters are YAML data files, not compiled code. ``` snip — Token Savings Report ══════════════════════════════

Commands filtered 128 Tokens saved 2.3M Avg savings 99.8% Efficiency Elite Total time 725.9s

███████████████████░ 100%

14-day trend ▁█▇

Top commands by tokens saved

Command Runs Saved Savings Impact ───────────────────────── ──── ────── ─────── ──────────── go test ./... 8 806.2K 99.8% ████████████ go test ./pkg/... 3 482.9K 99.8% ███████░░░░░ go test ./... -count=1 3 482.0K 99.8% ███████░░░░░ ``` > Measured on a real Claude Code session — 128 commands, 2.3M tokens saved.

项目信息

项目信息
项目名称edouard-claude/snip
Star 数350
Fork 数37
编程语言Go
开源协议MIT
创建时间2026-02-20
最近更新2026-06-26
主题标签ai-coding、ai-tools、aider、claude-code、cli

项目地址

GitHub 仓库:<https://github.com/edouard-claude/snip>

> 完整 URL:[https://github.com/edouard-claude/snip](https://github.com/edouard-claude/snip)

如需查看完整源码、安装命令、使用示例、API 文档,请直接访问上方项目地址。所有信息均以 GitHub 仓库为准。