codeindex
Installation
SKILL.md
codeindex - Semantic Code Search & Indexing
codeindex is a semantic code search CLI that indexes codebases and provides fast, concept-based search over the current project.
Ownership
The agent owns the codeindex lifecycle for the current project — initialization, indexing, and searching. Do not ask the user to perform these steps; handle them automatically.
- Initialization: If
codeindex searchorcodeindex indexfails with an initialization error (e.g., "Not in an initialized project directory"), runcodeindex initfrom the project root directory, thencodeindex indexto build the index, then retry the original command. - Index freshness: Keep the index up to date by running
codeindex indexwhen 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
codeindexitself 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: