Snip: Open-source tool reduces Claude Code token usage with YAML filters

Snip is an open-source tool written in Go that reduces Claude Code token usage by 60-90% by filtering shell command output before it reaches the context window. Inspired by rtk (Rust Token Killer), it takes a different approach: filters are data (YAML files) rather than compiled code.
How it works
AI coding agents often waste tokens on verbose shell output. For example, a passing go test can produce hundreds of lines that the LLM doesn't need, and git log dumps full metadata when a one-liner would suffice. Snip sits between Claude Code and the shell, filtering output through declarative YAML pipelines.
Benchmark example from the source:
- Before:
go test ./...→ 689 tokens - After: "10 passed, 0 failed" → 16 tokens (97.7% reduction)
Setup and usage
Setup requires one command:
brew install edouard-claude/tap/snip
snip initAfter this, every shell command Claude runs goes through snip.
Key differentiators from rtk
- Filters are YAML files you drop in a folder, not Rust code compiled into the binary
- 16 composable pipeline actions including: keep/remove lines, regex, JSON extract, state machine, group_by, dedup
- Users can write their own filter in 5 minutes without touching Go
- The engine and filters evolve independently
Compatibility
Snip also works with Cursor, Copilot, Gemini CLI, Aider, Windsurf, and Cline.
📖 Read the full source: r/ClaudeAI
👀 See Also

Developer Builds MCP Server for Claude WhatsApp Integration, Shares Challenges
A developer built an MCP server to give Claude access to real WhatsApp conversations, discovering that conversation context management was trickier than expected and required a database to track conversations.

OpenClaw Benchmark Shows Qwen3.5:27B Outperforms Other Local LLMs for Agent Tasks
A benchmark of 7 local LLMs on 22 real agent tasks using OpenClaw found qwen3.5:27b-q4_K_M scored 59.4%, while the runner-up qwen3.5:35b scored only 23.2%. Most models couldn't find basic tools like email functions.

Cloudflare Dynamic Worker Loader: Sandboxing AI Agents with Isolates
Cloudflare's Dynamic Worker Loader API, now in open beta, allows Workers to instantiate new Workers with runtime-specified code in isolated sandboxes using V8 isolates, offering 100x faster startup than containers and no global concurrency limits.

Session Search: Local Full-Text Search for Claude Code and Codex Sessions, Now in Your Menu Bar
Session Search indexes local Claude Code and Codex transcripts using SQLite FTS, enabling deep full-text search across errors, commands, filenames, and decisions—accessible from the macOS menu bar with highlighted snippets.