ccc▌
cocoindex-io/cocoindex-code · updated Apr 8, 2026
ccc is the CLI for CocoIndex Code, providing semantic search over the current codebase and index management.
ccc - Semantic Code Search & Indexing
ccc is the CLI for CocoIndex Code, providing semantic search over the current codebase and index management.
Ownership
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.
- Initialization: If
ccc searchorccc indexfails with an initialization error (e.g., "Not in an initialized project directory"), runccc initfrom the project root directory, thenccc indexto build the index, then retry the original command. - Index freshness: Keep the index up to date by running
ccc index(orccc 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. - Installation: If
cccitself is not found (command not found), refer to management.md for installation instructions and inform the user.
Searching the Codebase
To perform a semantic search:
ccc search <query terms>
The query should describe the concept, functionality, or behavior to find, not exact code syntax. For example:
ccc search database connection pooling
ccc search user authentication flow
ccc search error handling retry logic
Filtering Results
-
By language (
--lang, repeatable): restrict results to specific languages.ccc search --lang python --lang markdown database schema -
By path (
--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).ccc search --path 'src/api/*' request validation
Pagination
Results default to the first page. To retrieve additional results:
ccc 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.
Working with Search Results
Search results include file paths and line ranges. To explore a result in more detail:
- Use the editor's built-in file reading capabilities (e.g., the
Readtool) to load the matched file and read lines around the returned range for full context. - When working in a terminal without a file-reading tool, use
sed -n '<start>,<end>p' <file>to extract a specific line range.
Settings
To view or edit embedding model configuration, include/exclude patterns, or language overrides, see settings.md.
Management & Troubleshooting
For installation, initialization, daemon management, troubleshooting, and cleanup commands, see management.md.
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.7★★★★★49 reviews- ★★★★★Hana Thompson· Dec 24, 2024
Keeps context tight: ccc is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Amelia Wang· Dec 12, 2024
We added ccc from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Ganesh Mohane· Dec 8, 2024
ccc fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Ama Rao· Dec 8, 2024
Useful defaults in ccc — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Sakshi Patil· Nov 27, 2024
Registry listing for ccc matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Kwame Martin· Nov 27, 2024
ccc is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Kwame Gill· Nov 23, 2024
Solid pick for teams standardizing on skills: ccc is focused, and the summary matches what you get after install.
- ★★★★★Arjun Lopez· Nov 15, 2024
I recommend ccc for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Yusuf Haddad· Nov 3, 2024
ccc reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Fatima Malhotra· Oct 22, 2024
Registry listing for ccc matched our evaluation — installs cleanly and behaves as described in the markdown.
showing 1-10 of 49