cocoindex-code

cocoindex-code

Lightweight CLI code search engine based on AST, reducing token usage by 70% and accelerating coding agent performance.

MCPDevOpen source
Type
MCP
Transport
stdio
Open source
Yes
GitHub Stars
★ 2.2k
Source
mcp-github

Overview

cocoindex-code is a lightweight, embedded code search CLI based on Abstract Syntax Trees (AST). It optimizes coding agent efficiency by reducing token usage by 70% and improving speed. Install in under a minute with zero configuration required. The tool can be used directly as a CLI or integrated into coding agents like Claude, Codex, Cursor via Skill or MCP server. Ideal for developers and teams needing efficient codebase searching.

Capabilities

  • Semantic code search based on AST
  • Reduces token usage by 70%
  • Fast installation and startup
  • Supports local and cloud embedding
  • Automatic index updates

Use cases

Fuzzy matching within codebasesExploring unfamiliar codebasesFinding code based on descriptionLocating implementations without knowing exact names

Setup

Requires: Node环境
Install using pipx: `pipx install 'cocoindex-code[full]'` or use uv tool: `uv tool install --upgrade 'cocoindex-code[full]'`

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

Recommended integration method: `npx skills add cocoindex-io/cocoindex-code`

How to integrate into a coding agent?

No API Key required when using the `cocoindex-code[full]` version

Is an API Key required?

Related skills