ccc

Installation
SKILL.md

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 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.
    • Exception: if ccc index refuses because the directory holds ccc's user settings directory (usually your home directory), do not run ccc init there. Run ccc from inside the project instead, or ask the user which project to use.
    • Exception: if a ccc note says the project in use is that directory (a repo below it has no project of its own), tell the user. Do not run ccc reset there yourself: whether it should stay a project is the user's call.
  • Index freshness: Keep the index up to date by running 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.
  • Installation: If ccc itself 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:

Installs
5.8K
GitHub Stars
2.9K
First Seen
Mar 16, 2026