</>MCP Agents Market
Plugin

cocoindex-code

by cocoindex-io2.7kPythonUpdated 2026-09-05

A super light-weight embedded code search engine CLI (AST based) that just works - improves speed and efficiency for coding agent 🌟 Star if you like it!

Claude CodeGrokOh My PiCodexOpenCodeKilo CodeCursor

Cocoindex Code is a lightweight AST-based semantic code search plugin for AI coding agents that enables natural language querying across codebases. Built on a Rust-based indexing engine, it reduces token usage by 70% by helping agents locate relevant code without reading entire files. The plugin works with Claude Code, Grok, and other agents through multiple integration modes: a skill that teaches the agent to search automatically, hooks for auto-indexing, and an MCP server for real-time search tools. It supports 28+ languages, offers both local and cloud embedding models, and requires minimal setup with zero configuration needed to get started.

Key Features

AST-based semantic code search using natural language queries across 28+ programming languages
70% token reduction by retrieving only relevant code chunks instead of full files
Multiple integration modes: agent skill, session hooks, and MCP server with search tool
Zero-config setup with one-minute initialization and automatic index updates
Flexible embedding backends: local SentenceTransformers (no API key) or 100+ cloud providers via LiteLLM
Structural code search via ccc grep for pattern matching by syntax tree without needing an index
Incremental indexing that only re-processes changed files for fast updates
Docker support with persistent containers and volume-backed model cache

Use Cases

  • 01Finding authentication logic or session management code by description without knowing exact file locations
  • 02Exploring unfamiliar codebases by asking natural language questions about functionality
  • 03Reducing context window usage by retrieving only relevant code chunks for agent operations
  • 04Locating implementations of specific features across large multi-language repositories
  • 05Performing structural searches to find all function definitions or API calls matching a pattern
  • 06Sharing semantic code indexes across development teams in enterprise environments

Related Plugins

View more

cocoindex-code — FAQ

What is cocoindex-code?+

Cocoindex-code is an AST-based semantic code search plugin for AI coding agents that enables natural language querying of codebases. It integrates with Claude Code, Grok, and other agents via skills, hooks, or MCP server to reduce token usage by retrieving only relevant code chunks.

How do I install cocoindex-code for Claude Code?+

Install via the plugin marketplace with: /plugin marketplace add cocoindex-io/cocoindex-code then /plugin install cocoindex-code@cocoindex-code. Alternatively, install the skill directly with: npx skills add cocoindex-io/cocoindex-code. The CLI tool requires pipx install 'cocoindex-code[full]' or uv tool install --upgrade 'cocoindex-code[full]'.

Which AI coding agents does it work with?+

Cocoindex-code works with Claude Code, Grok, Oh My Pi, Codex, OpenCode, and Kilo Code. It supports integration via skills (Claude Code, Grok, Oh My Pi), MCP servers (all listed clients), and command-line usage with any agent.

Do I need an API key or embedding provider?+

No API key is required with the [full] installation, which includes local SentenceTransformers embeddings using Snowflake/snowflake-arctic-embed-xs by default. The slim variant supports 100+ cloud embedding providers (OpenAI, Voyage, Cohere, Gemini, Ollama, etc.) via LiteLLM, which do require API keys.

Is cocoindex-code free to use?+

Yes, cocoindex-code is open source under the Apache-2.0 license and free to use. Local embeddings are completely free; cloud embedding providers charge for API usage separately.

What languages and file types are supported?+

Supports 28+ languages including Python, JavaScript/TypeScript, Rust, Go, Java, C/C++, C#, SQL, PHP, Ruby, Kotlin, Swift, Solidity, and more. Custom chunkers can be configured for additional file types via YAML settings.

How do I install cocoindex-code?+

Open the source repository on GitHub and follow its README. cocoindex-code is a plugin — MCP Agents Market links you directly to the official repo.

Is cocoindex-code free?+

cocoindex-code is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches