From cix
Semantic code search and navigation via the cix index. Use when finding code by meaning rather than exact strings—cross-file lookups, symbol navigation, exploring unfamiliar code.
npx claudepluginhub dvcdsys/code-index --plugin cixThis skill is limited to using the following tools:
You have access to `cix`, a semantic code index that understands the
Searches codebases semantically with natural language queries to find implementations by concept (e.g., 'where is X', 'how does Y work'). Returns file paths, lines, and snippets.
Uses tree-sitter index for code navigation in Rust, Python, TypeScript, JavaScript, Go, Java, Scala, SQL: finds symbols, reads function implementations, traces callers, discovers tests.
Navigates codebases using .codemap/ structural indexes to find symbol definitions (classes, functions, methods), explore file structures, and locate code by name. Enables targeted line-range reads to reduce token consumption.
Share bugs, ideas, or general feedback.
cix) — Semantic Code Search & NavigationYou have access to cix, a semantic code index that understands the
codebase via embeddings + AST parsing. The right reflex is "cix when
you don't have a pointer; grep when you do."
This plugin also exposes shortcuts: /cix:search, /cix:def, /cix:refs,
/cix:init, /cix:status, /cix:summary. The cix CLI is bundled —
the plugin auto-installs it on first use if your system doesn't have it.
Reach for cix first when:
"JWT validation" should find verifyToken even without that phrase)Skip cix, use Read / Grep / Glob directly when:
Read itnode_modules, vendor, .venv) — they
aren't indexedIf cix returns nothing relevant after one well-formed query, fall
back to grep — don't loop on cix.
cix search "authentication middleware"
cix search "database connection retry logic"
cix search "error handling in payment flow" --limit 20
cix search "config parsing" --in ./internal/config/
cix search "API routes" --lang go
cix search "main entry point" --exclude bench/fixtures --exclude legacy
Flags:
--in <path> — restrict to file or directory (can repeat)--exclude <path> — drop a directory or substring from results (can repeat)--lang <language> — filter by language (can repeat)--limit <n> — max files returned (default: 10) — output is
grouped per file with all matches inside, so 10 files ≈ many snippets--min-score <f> — minimum relevance 0.0–1.0 (default: 0.4)cix definitions HandleRequest
cix def AuthMiddleware --kind function
cix def Config --file ./internal/config.go
Aliases: definitions, def, goto. Flags: --kind, --file, --limit.
cix references HandleRequest
cix refs AuthMiddleware --limit 50
cix usages UserService --file ./internal/api/
Aliases: references, refs, usages. Flags: --file, --limit.
cix symbols handleRequest
cix symbols User --kind class
cix symbols Auth --kind function --kind method
Flags: --kind (function/class/method/type, repeatable), --limit.
cix files "config"
cix files "middleware" --limit 20
cix summary # languages, top dirs, key symbols
cix status # indexing status + file watcher status
cix list # all indexed projects
cix init [path] # register + index + start watcher
cix reindex # incremental
cix reindex --full # full reindex
cix cancel # cancel an in-flight indexing run
cix watch # start file-change auto-reindex daemon
cix watch stop # stop daemon
The watcher auto-reindexes on file change — manual reindex is rarely
needed. cix status shows whether the watcher is running and the
last-sync timestamp.
Default --min-score 0.4 is calibrated for the production embedding
model (CodeRankEmbed-Q8 with path-aware preamble). Rough landscape:
| Score | Meaning |
|---|---|
| 0.65+ | Exact / very strong match — almost certainly relevant |
| 0.50–0.65 | Strong match — usually relevant |
| 0.40–0.50 | Weaker match — sometimes useful, sometimes not |
| <0.40 | Noise — filtered out by default |
If a query returns nothing, lower the floor explicitly:
--min-score 0.2 for very specific or long-tail queries. Don't drop
below 0.2 — results below that are noise.
Each chunk is embedded with its file path, language, and symbol name in the preamble. This means mentioning a file/dir/symbol you already know about boosts ranking:
# Generic
cix search "validation"
# Better — pins the search to the auth area
cix search "validation in auth middleware"
# Even better when you know the symbol
cix search "ValidateToken" --kind function
Natural-language queries that name the kind of thing and where it lives outperform single-word queries.
cix's strongest case)cix summary # project structure, top dirs
cix search "main entry point server" # find where it starts
cix search "database connection setup" # find DB wiring
cix search "request handler" --in ./api # narrow to API
cix def HandleRequest # where is it defined?
cix refs HandleRequest # who calls it?
cix search "HandleRequest error handling" # how are errors handled?
# Stack trace says "internal/auth/middleware.go:42 — invalid token"
# → just Read that file. No cix needed.
# Config key "max_concurrent_requests" used somewhere?
# → grep is more precise.
cix search "middleware" --in ./api/
cix search "config" --in ./cmd/ --exclude legacy
cix refs Config --file ./internal/server.go
[best 0.NN] is the score of the top hit in that file.cix def is a faster path than cix symbols when you already know
the exact name.--exclude complements --in — use it to drop noisy dirs (bench/,
legacy/, vendored code) inline without touching .cixignore.cix status first — Watcher: ✗ not running is the usual cause.--min-score 0.2 retry, drop to grep.