# cocoindex-io/cocoindex-code

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!

Repository: https://github.com/cocoindex-io/cocoindex-code
Canonical: https://ross.abutalabs.com/products/cocoindex-code
Homepage: https://cocoindex.io/
Language: Python
License: Apache-2.0
License Family: permissive
Topics: agents, code-search, coding-agent, indexing, python, context-engineering, mcp, tree-sitter, cocoindex, ast, claude-code, codex, context-window, context-window-optimization, open-code, rust
Last push: 2026-08-24T17:23:38+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 96, longevity 15
- inputs: {"age_days": 214, "days_push": 9, "days_rel": 27, "gap_med": 1, "n_releases_24m": 48}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2675, forks 215 (observed 2026-08-28T04:07:09.735217+00:00)

## What it is
A lightweight AST-based semantic code search CLI built on the CocoIndex Rust data transformation engine, with tree-sitter parsing and embeddings. It indexes codebases incrementally and exposes search via CLI, Skill, or MCP server for coding agents like Claude, Codex, and Cursor.

## Use cases
- search my codebase by meaning instead of grep
- give my coding agent fast context about a repo
- find where a function is called across the codebase
- index a large repo incrementally as it changes
- reduce token usage when an agent explores a codebase
- set up code search with zero config in a minute
- query code structure like call graphs and symbol tables

## When to choose
- you use AI coding agents and want fresh, token-efficient code context
- you need semantic or AST-aware code search rather than plain text matching
- you want a zero-config, quick-setup embedded search tool for a repo

## When to avoid
- you need a hosted or multi-tenant search service rather than a local embedded tool
- your project requires non-code document search with complex pipelines (use CocoIndex itself)
- you need a full IDE-integrated code navigation product rather than a CLI/MCP tool

## Facets
- artifact type: cli-tool
- maturity: active
- function: search-engine, parser, rag, mcp, cli
- domain: developer-tools, crawlers, large-language-models
- platform: cli, python, rust, cross-platform, windows
- tags: ast, tree-sitter, code-search, coding-agent, context-engineering, semantic-search, embeddings, claude-code, mcp-server, incremental-indexing, indexing, search, ai-agents, macos, linux

## Member repositories
- cocoindex-io/cocoindex-code (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:09.735217+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:18:02.456818+00:00, confidence not recorded.
  - readme: https://github.com/cocoindex-io/cocoindex-code (fetched 2026-08-28T04:07:09.735217+00:00, sha c52a8fef7fbc)
  - homepage: https://cocoindex.io/ (fetched 2026-08-29T10:00:33.731596+00:00, sha c3b3928c877f)
  - site_page: https://cocoindex.io/docs/examples (fetched 2026-08-29T10:00:33.740888+00:00, sha c95ff0fc23f9)
  - site_page: https://cocoindex.io/docs (fetched 2026-08-29T10:00:33.742932+00:00, sha a3d563df45a3)
  - site_page: https://cocoindex.io/docs/programming_guide/core_concepts (fetched 2026-08-29T10:00:33.744533+00:00, sha ba56805493d9)
  - site_page: https://cocoindex.io/docs-v0 (fetched 2026-08-29T10:00:33.746551+00:00, sha 27f48afeda26)
  - registry_pypi: https://pypi.org/pypi/cocoindex-code/json (fetched 2026-08-29T10:00:33.748336+00:00, sha 84416c9a27bb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
