Skip to main content
AI Tool Radar
OSI-openCoding agents and context efficiency

cocoindex-code

cocoindex-io

Embedded AST-based semantic code-search CLI on the CocoIndex engine, with MCP and skill distribution.

2.2k stars(as of 2026-06-26)View on GitHubHomepage

What is cocoindex-code?

A lightweight, embedded, AST-based (tree-sitter) semantic code-search CLI built on the CocoIndex incremental data framework (a Rust engine). It indexes a codebase and answers natural-language queries to give coding agents better context with less token use, exposing init, index, search and grep commands and shipping as a CLI, an MCP server or an installable skill across 28+ languages.

Pros & Cons

Pros

  • The most mature code-search tool of its peers: 44 releases, AST/tree-sitter indexing across 28+ languages
  • Flexible deployment: CLI, MCP server or skill, with local or cloud embeddings and Docker variants
  • Backed by the established CocoIndex framework with docs and a community

Cons

  • The '70% token savings' headline is an unsourced project claim, not independently benchmarked
  • Still 0.x (v0.2.x), so interfaces may change
  • The README solicits stars, and effectiveness depends on the embedding and model choices you configure

License

Apache-2.0 (OSI-open)

When it is interesting

A coding agent needs fast, language-aware semantic code search locally to cut context and token cost versus dumping whole files.

When it is too early

If you require a stable 1.0 API or vendor-backed support rather than a 0.x CLI.

Commercial alternative & related

  • Commercial counterpart: Sourcegraph

This repo featured in the 2026-07 edition of the Open-Source AI Radar.