Rustygrep

•

Provides a token-efficient grep solution for AI coding agents, significantly compressing output to save context window tokens.

Rustygrep is a high-performance, ripgrep-compatible code search tool specifically engineered for AI coding agents. It offers ripgrep-class speed, but its unique `--llm` flag compresses search output by 60-95%, drastically reducing the number of context window tokens consumed by LLMs. With a built-in MCP server, rustygrep seamlessly integrates with popular AI coding environments like Claude Code, Cursor, and OpenCode, making it an essential utility for developers leveraging AI for code generation and analysis. It's SIMD-accelerated, gitignore-aware, and requires zero configuration.

Key Features

01Token-compressed LLM output, reducing context window token consumption by 60-95%
02Ripgrep-class search speed with SIMD-accelerated parallel processing
03Built-in MCP server for AI coding agent integration (Claude Code, Cursor, OpenCode)
04Token budgeting (`--llm-budget`) and match ranking (`--top`) for AI-optimized results
05Gitignore-aware, zero-configuration operation with full Rust regex support
060 GitHub stars

Use Cases

01Automating code quality checks and pattern identification within CI/CD pipelines.
02Optimizing code search for AI coding agents to maximize context window usage and reduce token costs.
03Enhancing code review processes by quickly locating specific code patterns or issues (e.g., unsafe code).