What do you want to do?
3 use cases
-
Search your codebase by meaning from the terminal
Index a project once and search it in plain language, filtered by language or path.
View prompt
Using cocoindex-io/cocoindex-code, install it with `pipx install 'cocoindex-code[full]'`, run `ccc index` in <my repo>, and use ccc search to find where <feature> is implemented.
-
Give Claude Code or Codex semantic code search
Install the ccc skill or register the MCP server so your coding agent searches by meaning on its own.
View prompt
Set up cocoindex-io/cocoindex-code for my Claude Code: install with `pipx install 'cocoindex-code[full]'`, add the skill with `npx skills add cocoindex-io/cocoindex-code`, then find <code I am looking for>.
-
Find code by structure and check index health
Use ccc grep patterns to find every function definition or call shape without an index, and check index stats.
View prompt
With cocoindex-io/cocoindex-code, use ccc grep to list all calls to <function> under src/, then run `ccc status` and `ccc doctor` and summarize the results.
Quick start with Cocoindex Code
- Check you have what it needs: Python with pipx or uv; install with `pipx install 'cocoindex-code[full]'` for local embeddings; A coding agent such as Claude Code, Codex, OpenCode or Grok for agent use; No API key required with the full extra, which uses local SentenceTransformers models.
- Open cocoindex-io/cocoindex-code on GitHub and read the README and license.
- Install with
pipx install 'cocoindex-code[full]' - Inside the project run
ccc init, thenccc indexto build the index - Search with
ccc search "authentication logic" - Narrow results with
ccc search --lang python --lang markdown schemaorccc search --path 'src/utils/*' query handler
These steps come from our top use case, Search your codebase by meaning from the terminal, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for cocoindex-io/cocoindex-code
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forDevelopers using coding agents on large codebases who want better code search without a cloud service.
- Why it is hot3k stars, talked about in 2 AI sources we track
- Sourcegithub.com/cocoindex-io/cocoindex-code ยท Back to Hot repos
Requirements
- Python with pipx or uv; install with `pipx install 'cocoindex-code[full]'` for local embeddings
- A coding agent such as Claude Code, Codex, OpenCode or Grok for agent use
- No API key required with the full extra, which uses local SentenceTransformers models
Add this badge to your README
Maintain Cocoindex Code? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/cocoindex-io-cocoindex-code/?utm_source=github&utm_medium=badge&utm_campaign=cocoindex-io-cocoindex-code)
HTML
<a href="https://dedupedai.com/use-cases/cocoindex-io-cocoindex-code/?utm_source=github&utm_medium=badge&utm_campaign=cocoindex-io-cocoindex-code"><img src="https://dedupedai.com/badge/cocoindex-io/cocoindex-code.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Cocoindex Code
What is Cocoindex Code?
cocoindex-code (ccc) is a lightweight, AST based code search engine CLI with local embeddings. It indexes a codebase for semantic search, offers structural search by example with ccc grep, and plugs into coding agents as a skill, a Claude Code or Grok plugin, or an MCP server, keeping the index up to date as you work. It is an open-source project on GitHub: https://github.com/cocoindex-io/cocoindex-code.
How do I use Cocoindex Code?
Install with pipx install 'cocoindex-code[full]'; then inside the project run ccc init, then ccc index to build the index; Search with ccc search "authentication logic". The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Cocoindex Code for?
Developers using coding agents on large codebases who want better code search without a cloud service.
What can I do with Cocoindex Code?
3 use cases so far, for example: Search your codebase by meaning from the terminal; Give Claude Code or Codex semantic code search; Find code by structure and check index health. Each has steps and a copy-paste agent prompt.
What do I need to run Cocoindex Code?
Python with pipx or uv; install with `pipx install 'cocoindex-code[full]'` for local embeddings; A coding agent such as Claude Code, Codex, OpenCode or Grok for agent use; No API key required with the full extra, which uses local SentenceTransformers models.
What are alternatives to Cocoindex Code?
Other hot AI repos in Software and DevOps: Skills, Claude Mem, Freellmapi, Andrej Karpathy Skills, Agent Desktop.
Is Cocoindex Code safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.