{"repo":"edouard-claude/snip","free":true,"listed":false,"github":"https://github.com/edouard-claude/snip","clone":"git clone https://github.com/edouard-claude/snip.git","description":"CLI proxy that reduces LLM token usage by 60-90%. Declarative YAML filters for Claude Code, Cursor, Copilot, Gemini. rtk alternative in Go.","language":"Go","stars":412,"topics":["llm","token-optimization","ai-coding","ai-tools","aider","claude-code","cli","cline","codex","context-window"],"license":"MIT","category":"ai-agents","readme_excerpt":"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, Pi, Grok Build, Kilo Code, Antigravity, OpenCode, OpenClaw, 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. Measured on a real Claude Code session — 128 commands, 2.3M tokens saved. Quick Start How It Works Before — Claude Code sees this (275 tokens): After — snip returns this (8 tokens): That's 97% fewer tokens , measured on this very repository. The filter injects -json and counts individual test results, so the LLM gets more signal — 1125 tests passed, not just 18 packages — in a fraction of the space. No filter match? The command passes through unchanged — zero overhead. Token Savings by Command Command Before After Reduction --------- -------: ------: ----------: cargo test 591 tokens 5 tokens 99.2% go test ./... 275 tokens 8 tokens 97.1% git log 371 tokens 53 tokens 85.7% git status 112 tokens 16 tokens 85.7% git diff 355 ","default_branch":null,"files":null,"tree":[],"storefront":"/r/edouard-claude","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/edouard-claude/snip/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}