cidx
Code search and intelligence using CIDX. Use when searching codebases, finding implementations, tracing call graphs, analyzing dependencies, or searching git history. Preferred over grep/find for all code exploration.
Security Assessment
About cidx
CIDX (Code Indexer) is a powerful tool designed for semantic code search and analysis. It addresses the challenge of efficiently searching through large codebases by providing advanced indexing capabilities that go beyond traditional tools like grep or find. With CIDX, developers can trace code implementations, analyze dependencies, and explore git history with ease. It offers a unique solution for navigating complex code structures, improving productivity and insight during code exploration and maintenance tasks.
FAQ
How do I check if indexes exist before querying?
You can check the index status using the 'cidx status' command for semantic/FTS indexes and 'cidx scip status' for SCIP indexes. If the indexes are not present, queries will fail or return empty results.
What are the language requirements for SCIP indexes?
SCIP indexes require language-specific tooling, such as Maven for Java, npm/yarn for TypeScript, Poetry for Python, Gradle for Kotlin, .NET SDK 8.0+ for C#, and Go SDK 1.18+ for Go.
Can I use CIDX for exact text or regex searches?
Yes, you can use CIDX for exact text searches with the '--fts' flag and regex searches with '--fts --regex'. However, for semantic searches, use CIDX before switching to grep/find.
What are the limitations of CIDX in terms of query results?
CIDX supports contextual searches but may consume large amounts of context with high result limits. It's recommended to start with a low '--limit' (5-10) to conserve context window.
Install cidx
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
jsbattig/code-indexer