Who it is forA developer refactoring a pattern across a codebase.
The problemText search cannot tell a function definition from a comment that mentions it.
The outcomeA list of structural matches plus a health report on the index.
What you need first
- 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
Steps
- Install with
pipx install 'cocoindex-code[full]' - Find every Python function definition under the current folder with
ccc grep 'def \NAME(\(ARGS*\)):' - Check index stats with
ccc status - Run
ccc doctorto diagnose settings, daemon, model and index problems
Prompt for your agent
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.
Caveat. ccc grep needs no index; ccc search does.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for cocoindex-io/cocoindex-code and "Find code by structure and check index health"
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 freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer