/cix-cowork:cixfrom cix-cowork
Searches code by meaning using embeddings and AST parsing across indexed repositories. Use for open-ended queries, cross-file navigation, and exploring unfamiliar codebases.
Ships in cix-cowork. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
cix) — Semantic Code Search & Navigationcix is a semantic code index that understands code via embeddings + AST
parsing. You reach it through the cix_* MCP tools (no shell, no CLI). The
right reflex is "cix when you don't have a pointer; read/grep when you do."
This connection talks to a cix SERVER, not a single project. One server may
hold many indexed repositories, and nothing is inferred from a working directory
— there is no "current project." Every per-repo tool needs an explicit
project (a repository's host_path). So the first move is always to discover
what's indexed.
Before any per-repo call:
cix_list_projects to see the indexed repositories. Each row has a
host_path (e.g. /Users/me/acme-api or github.com/acme/api@main).host_path of the repo the user means, and pass it as the
project argument to every per-repo tool below.If the repo the user is asking about is not in cix_list_projects, this
skill cannot index it — indexing is server-side. Tell the user to index it (via
the cix dashboard, or cix init on the machine running the cix server), then
retry.
You don't have to memorize host_paths: if you call a per-repo tool with a
missing or unknown project, the server replies with an error that lists the
valid projects, so you can self-correct in one step.
(Multi-server: cix_list_servers lists configured servers; every tool takes an
optional server argument. Omit it for the default — most setups have one
server. Only pass server when the user names a specific backend; never guess a
name — call cix_list_servers.)
Reach for cix first when:
"JWT validation" should
find verifyToken even without that phrase)Skip cix when:
node_modules, vendor, .venv) — not indexedNote: for remote-only indexed repos (host_path like
github.com/owner/repo@branch, not on disk), the cix_* tools are your only
way in — there's no local tree to Read or Grep. Use cix for everything there.
If cix returns nothing relevant after one well-formed query, fall back to read/grep on a local repo — don't loop on cix.
When you already know a symbol's name, reach for cix_definitions /
cix_references before cix_search. They return metadata only (file, line,
signature, call sites) — no source bodies — so they cost far fewer tokens.
| Tool | Returns | Relative size |
|---|---|---|
cix_definitions | definition location + signature | ~1× |
cix_references | every call site (file:line) | ~4× |
cix_search | matching code with full source bodies | ~28× |
Rule of thumb:
cix_definitions /
cix_references. Cheap, precise, no source noise.cix_search.cix_search for a known symbol only when you actually need to
read the surrounding implementation, not merely locate it.Every tool below takes project (a host_path from cix_list_projects) and an
optional server.
cix_search — find code by meaningArgs: project (required), query (required), and optional limit, lang,
in, exclude, min_score.
in — restrict to these paths (relative paths resolve against the repo root).exclude — drop these paths from results.lang — filter by language (e.g. go, python, typescript).limit — max files returned (default 5; output groups all matches per
file, so 5 files ≈ many snippets). Bump up only for broad exploration.min_score — minimum relevance 0.0–1.0 (default 0.4).Examples (as tool calls): cix_search(project, "authentication middleware");
cix_search(project, "config parsing", in=["internal/config"]);
cix_search(project, "API routes", lang=["go"]).
cix_definitions — where a symbol is definedArgs: project, symbol (required); optional kind
(function/class/method/type), file, limit.
cix_references — where a symbol is usedArgs: project, symbol (required); optional file, limit.
cix_symbols — find symbols by nameArgs: project, query (required); optional kinds, limit.
cix_files — find files by path patternArgs: project, pattern (required); optional limit.
cix_summary — project overviewArgs: project. Returns languages, file/chunk/symbol totals, top directories,
key symbols. A good first call when drilling into an unfamiliar repo.
cix_file — read an actual file (whole or a line range)Args: project, file (required); optional start, end (1-based inclusive).
Returns the file's real contents from the server's checkout. This is your
primary way to read source here — Cowork has no local filesystem, so instead
of stitching code together from cix_search snippets, pull the whole file (or a
range) directly. External (GitHub-backed) projects only: for a local project
the server holds no files and returns an error.
cix_tree — list a directory (one level)Args: project; optional dir (omit for repo root). ls-like, no recursion —
use it to navigate the file tree before reading a file. External projects only.
(There is no init / reindex / status / watch tool — indexing is server-side. If results seem stale or a repo is missing, ask the user to (re)index on the server host.)
Default min_score 0.4 is calibrated for the production embedding model
(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 |
| <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 go below 0.2 — that's noise.
Each chunk is embedded with its file path, language, and symbol name in the preamble, so mentioning a file/dir/symbol you already know boosts ranking:
cix_search(project, "validation")cix_search(project, "validation in auth middleware")cix_search(project, "ValidateToken")Queries that name the kind of thing and where it lives outperform single-word queries. Write what you'd ask a colleague — natural language, not regex.
Exploring an unfamiliar repo (cix's strongest case):
cix_summary(project) → cix_search(project, "main entry point server") →
cix_search(project, "database connection setup") →
cix_search(project, "request handler", in=["api"]).
Tracing a symbol end-to-end:
cix_definitions(project, "HandleRequest") (where defined?) →
cix_references(project, "HandleRequest") (who calls it?) →
cix_search(project, "HandleRequest error handling") (how are errors handled?).
Narrowing scope: use in / exclude to focus, e.g.
cix_search(project, "config", in=["cmd"], exclude=["legacy"]).
[best 0.NN] is the top hit's score in that file.cix_definitions is a faster path than cix_symbols when you already know
the exact name.exclude complements in — drop noisy dirs (bench/, legacy/, vendored
code) inline.min_score: 0.2 retry, fall back to read/grep on a local repo.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub dvcdsys/code-index --plugin cix-coworkOther plugins' skills for the same job