A super light-weight embedded code search engine CLI
by Linghua Jin
this week
discussions
this week
CocoIndex Code is an embedded, AST-based semantic code search tool for local codebases. It provides a command-line interface to initialize a project, build or update an index, and run semantic searches using natural language queries. It also supports integration with coding agents through a Skill and an MCP server mode, so agents can automatically decide when to search and retrieve relevant code chunks with file paths and line ranges. The default embedding model runs locally without requiring an API key, and configuration is managed via generated YAML settings for global embedding options and per-project include/exclude patterns, language overrides, and custom chunkers. A Docker image is available for reproducible setups and persistent indexing across sessions.
Finding relevant code in large repos is slow and wastes agent context tokens.
CLI uses AST + embeddings to index and semantically search code; integrates via Skill/MCP.
Developers using coding agents to navigate codebases.
Share your thoughts about this tool.
Sign in to leave a comment.
No comments yet. Be the first to leave one.