cocoindex-code
cocoindex-io
Embedded AST-based semantic code-search CLI on the CocoIndex engine, with MCP and skill distribution.
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.
RTK
rtk-ai
CLI proxy that compresses shell command output before your AI coding assistant sees it, cutting tokens 60-90%.
TOON
toon-format
Token-Oriented Object Notation - a compact serialization format that uses ~40% fewer tokens than JSON.
planning-with-files
OthmanAdi
Crash-proof markdown planning for AI coding agents - persists task state across context loss and /clear.