Install any skill in seconds. Free to start, no credit card required.
Get Started Free →This skill should be used when code search is needed (whether explicitly requested or as part of completing a task), when indexing the codebase after changes, or when the user asks about ccc, cocoindex-code, or the codebase index. Trigger phrases include 'search the codebase', 'find code related to', 'update the index', 'ccc', 'cocoindex-code'.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-20 | ✗→✓ | ▲ Improved | -27% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 4% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -2% | 0% |
| case-13 | ✗→✓ | ▲ Improved | -24% | 0% |
ccc is the CLI for CocoIndex Code, providing semantic search over the current codebase and index management.
The agent owns the ccc lifecycle for the current project — initialization, indexing, and searching. Do not ask the user to perform these steps; handle them automatically.
ccc search or ccc index fails with an initialization error (e.g., "Not in an initialized project directory"), run ccc init from the project root directory, then ccc index to build the index, then retry the original command.ccc index (or ccc search --refresh) when the index may be stale — e.g., at the start of a session, or after making significant code changes (new files, refactors, renamed modules). There is no need to re-index between consecutive searches if no code was changed in between.ccc itself is not found (command not found), refer to management.md for installation instructions and inform the user.To perform a semantic search:
bashccc search <query terms>
The query should describe the concept, functionality, or behavior to find, not exact code syntax. For example:
bashccc search database connection pooling ccc search user authentication flow ccc search error handling retry logic
--lang, repeatable): restrict results to specific languages.bash ccc search --lang python --lang markdown database schema
--path): restrict results to a glob pattern relative to project root. If omitted, defaults to the current working directory (only results under that subdirectory are returned).bash ccc search --path 'src/api/*' request validation
Results default to the first page. To retrieve additional results:
bashccc search --offset 5 --limit 5 database schema
If all returned results look relevant, use --offset to fetch the next page — there are likely more useful matches beyond the first page.
Search results include file paths and line ranges. To explore a result in more detail:
Read tool) to load the matched file and read lines around the returned range for full context.sed -n '<start>,<end>p' <file> to extract a specific line range.To view or edit embedding model configuration, include/exclude patterns, or language overrides, see settings.md.
For installation, initialization, daemon management, troubleshooting, and cleanup commands, see management.md.
Other measured skills in the registry, with their headline benchmark lift.