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

✍️ OpenClawRadar📅 Published: April 15, 2026🔗 Source
Snip: Open-source tool reduces Claude Code token usage with YAML filters
Ad

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)
Ad

Setup and usage

Setup requires one command:

brew install edouard-claude/tap/snip
snip init

After 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

Ad

👀 See Also

Aired: A Claude Code Skill for Instant HTML Publishing to Live URLs
Tools

Aired: A Claude Code Skill for Instant HTML Publishing to Live URLs

Aired is an open-source tool that publishes HTML to a live URL in 2 seconds via Claude Code skills or MCP servers. It requires no signup, deployment configuration, or installation for web-based AI tools, and works with Claude Code, Cursor, VS Code, Codex, and Windsurf.

OpenClawRadar
Essential OpenClaw plugins for developers using AI coding agents
Tools

Essential OpenClaw plugins for developers using AI coding agents

A developer tested OpenClaw plugins and identified essential tools including env-guard for security, commit-guard for preventing bad commits, composio for connecting to 860+ tools, cortex-memory for long sessions, cost-tracker for spending visibility, and openclaw-better-gateway for fixing flaky connections.

OpenClawRadar
GuppyLM: A 9M Parameter LLM Built from Scratch for Educational Purposes
Tools

GuppyLM: A 9M Parameter LLM Built from Scratch for Educational Purposes

GuppyLM is a ~9M parameter language model trained from scratch on 60K synthetic conversations, using a vanilla transformer architecture with 6 layers, 384 hidden dimensions, and 6 attention heads. It trains in about 5 minutes on a free Colab T4 GPU and speaks with a fish personality focused on water, food, and tank life.

OpenClawRadar
skill-depot: A Local-First Memory and Skill System for MCP-Compatible AI Agents
Tools

skill-depot: A Local-First Memory and Skill System for MCP-Compatible AI Agents

skill-depot is a retrieval system that stores agent knowledge as Markdown files and uses vector embeddings to semantically search and selectively load only relevant content. It runs 100% locally with no API keys, works with any MCP-compatible agent, and can be set up with npx skill-depot init.

OpenClawRadar