MCP-native code retrieval for AI agents — 84-88% fewer read tokens, BM25F + semantic search, AST chunks, session dedup
Pluck is a local code search engine designed to make AI coding assistants work more efficiently. Instead of having AI agents read entire files repeatedly (wasting context window tokens), pluck organizes code into smart chunks that can be searched by keyword or concept. It integrates directly with AI assistants like Claude Code, Codex, and Cursor through a standard protocol, providing tools for reading code files, searching across a codebase, finding function dependencies, and compressing build logs. The project is written in Rust, published on crates.io, MIT-licensed, and includes comprehensive benchmarks showing 84-88% token savings on code reads and 71% compression on CI logs.
How It Works
Your AI coding assistant is wasting time re-reading the same files over and over, burning through your context window.
You run a simple setup command that connects pluck to your AI assistant, making it the default way to read and search code.
Pluck scans your project and builds a lightning-fast index, understanding your code's structure, functions, and relationships.
Instead of dumping entire files, the AI sees smart outlines showing just the important parts - signatures, key functions, and relationships.
You ask 'where is the payment flow handled?' and pluck understands the concept, not just keywords.
You look for a specific function name and pluck finds it instantly with its exact context.
When your AI asks about something it already knows, pluck smartly replaces it with a tiny note instead of repeating the same code.
Your AI assistant finishes the work using far fewer tokens, your build logs are compressed, and everything just works better.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.