Why I’m Against Claude Code’s Grep-Only Retrieval? It Just Burns Too Many Tokens
Aug 25, 2025Cheney Zhang

Summary
Introduces Claude Context, an open-source MCP plugin that adds semantic code search capabilities to AI coding assistants. It details the system architecture, including the use of Zilliz Cloud (Milvus) as the vector database and support for various embedding models. Key technical challenges addressed include intelligent code chunking using AST-based parsing and LangChain's text splitter, and efficient handling of code changes through a Merkle Tree-based synchronization mechanism. The post highlights the benefits of this approach over grep-only methods, such as reduced token usage and improved search accuracy.
More from the AI Data Storage Engine trail
- Milvus Snapshots: Point-in-Time Collection Views Without Copying Data
- Announcing Milvus 3.0: Lake-Native Vector Search and a More Powerful Retrieval Engine
- How to Recover Milvus Data After etcd Corruption Without a Backup
- Open Tag: An Open-Source Claude Tag for Claude Code and Codex
- How Force Merge Compaction Nearly Doubled Milvus Search QPS