Reference
CLI reference
dex [--version] [--install-completion] [--show-completion] COMMAND [ARGS]...
| Command | Purpose | Needs a checkout? |
|---|---|---|
sources | mapped sources and evaluated candidates | no |
learn | fetch sources, admit items, rewrite the trove | yes |
validate | CI gate: manifests, licences, hashes, catalog, notices | no (notices check only in a checkout) |
list | list items | no |
search | search items, and filter by typed facets | no |
show | one item’s provenance, licence and files | no |
install | install into Claude Code, Copilot or a directory | no |
facets list / show | the taxonomy, value counts, one item’s facets and evidence | no |
facets build / doc | rebuild facets.json / regenerate the taxonomy reference | yes |
license | classify a licence file or directory | no |
notices | regenerate THIRD_PARTY_NOTICES.md | yes |
catalog | rebuild catalog.json from dex.json files | yes |
ananke sync | register items into an Ananke registry | no |
docs export | write Astro content for the site | yes |
“Needs a checkout” means the command must run inside a Dex-Trove repository (a directory with sources.yaml and
src/dex_trove/). Read-only commands work from the installed wheel.
REF arguments accept namespace/name, a unique bare name, or kind:namespace/name.
dex sources
dex sources [--json]
Prints the sources in sources.yaml (id, adapter, repo or local path, enabled, first-party) and the evaluated
candidates. --json dumps both lists.
dex learn
dex learn [SOURCE_IDS]... [--dry-run] [--prefer-local] [--no-refresh]
Fetches each source and runs the learn pipeline. With no
arguments, all enabled sources are learned; named sources are learned even if disabled.
| Option | Effect |
|---|---|
--dry-run | report counts and exclusion reasons; write nothing |
--prefer-local | use a source’s local: path when present instead of cloning repo: |
--no-refresh | reuse cached clones without git fetch |
Per source it prints <id> @ <commit>: N admitted, M excluded {reason: count}, K removed. It then rewrites
trove/catalog.json, trove/EXCLUDED.json, trove/trove.lock.json and THIRD_PARTY_NOTICES.md. A source that
fails to fetch is reported (skip <id>: …) and its existing items are left untouched.
Exit codes: 0 success, 2 unknown source id or not in a checkout.
dex validate
dex validate [--since GIT_REF]
Checks the trove in use (the checkout’s trove/, or the installed package):
catalog.jsonlists exactly the items on disk- every item name is valid and its licence verdict is
allow - every listed file exists, and the recomputed content hash matches
content_hash(no drift) ananke.yamlexists and agrees withdex.json(kind, version)- if
ananke-plexusis importable, every manifest validates against Ananke’s strictArtifactManifestmodel - in a checkout,
THIRD_PARTY_NOTICES.mdis current - the release ledger is consistent: every item’s current digest is its latest release, versions are unique and in order, fork parents and replacements exist
relations.jsonmatches a rebuild, and curated relations point at real items with evidence (norequirescycles)- with
--since REF: no release in the ledger atREFwas edited or deleted (CI uses--since HEAD~1)
Prints ✓ N items valid, or one ✗ line per problem and exits 1.
dex list
dex list [--kind/-k KIND] [--source/-s NAMESPACE] [--json]
Lists items as a table (kind, id, licence, description) or JSON (kind, id, version, title).
dex search
dex search [QUERY...] [--kind/-k KIND] [--source/-s NAMESPACE] [--limit/-n 25] [--rank words|semantic] [--json]
[--task/-t T] [--methodology/-m M] [--phase/-p P] [--role/-r R] [--domain D] [--language L]
[--framework F] [--platform P] [--needs N] [--maturity M] [--not FACET=VALUE] [--strict] [--explain] [--cursor N]
Words only: every word must match the name, title, tags or description. Results are ranked with weights name 5,
title 3, tags 2, description 1. Output and --json are unchanged from earlier releases. --rank semantic instead
ranks partial matches with BM25 plus taxonomy expansion, for natural questions (see
Finding capabilities).
With facet options (each repeatable): any value within a facet matches, and all facets must match. --strict
requires every value within a facet, and --not excludes. Items without a facet never match it. Values accept
aliases; an unknown value exits 2 and lists the valid ones. Results are ranked by how fully they match (see
Finding capabilities). --explain adds why each matched, and --cursor
continues from the next page offset. --json returns query, total, next_cursor, results (each with
facets, score and, with --explain, why), facet_counts and, for an empty result, relaxations.
dex show
dex show REF [--json]
Title, kind, id and version, description, source with pinned upstream URL, licence with evidence, inspirations,
plugin members, files and the local path. --json prints the full dex.json.
Exit 2 if the ref is unknown or ambiguous.
dex install
dex install REF... [--target/-t claude|copilot|dir] [--scope user|project] [--path DIR] [--allow-exec] [--force]
dex install --locked [--lock-file dex.lock.json] [--target …] [--scope …] [--path …] [--allow-exec] [--force]
| Option | Default | Meaning |
|---|---|---|
--target | claude | claude (Claude Code), copilot (.github/), dir (full item copy) |
--scope | user | for claude: user → ~/.claude, project → ./.claude |
--path | — | base directory override; required for --target dir |
--allow-exec | off | allow installing hooks (they run code automatically) |
--force | off | replace a destination Dex didn’t install, or that was edited since (a symlink is replaced, never followed) |
--locked | off | install exactly the versions in the lock; a pin that isn’t current is fetched from its upstream commit and its digest checked |
--lock-file | dex.lock.json | the lock to read with --locked |
Prints ✓ kind:id → destination for each installed item, with adapted: … lines for agents translated for Claude
Code, and – kind:id: reason for skipped ones: an unsupported kind for the target, a hook without --allow-exec, or
an existing destination Dex won’t replace. Plugins expand to their members. See
Installing items. Exit 1 if nothing was installed, 2 on an unknown ref or target.
dex lock
dex lock REF[@VERSION|@sha256:DIGEST]... [--lock-file dex.lock.json]
Pins each item to an exact version and digest, adding to or updating the lock. Without a version, the newest
stable, non-yanked release. A plugin pins each member. Exit 2 on an unknown ref or version.
dex verify-lock
dex verify-lock [--lock-file dex.lock.json] [--fetch]
Checks every pin against the release ledger: the version exists with the same digest. Yanked or deprecated pins
print a warning. --fetch also fetches each pin that isn’t the current release from Git and verifies its bytes.
Exit 1 on any error, 2 if the lock can’t be read.
dex release
dex release list REF [--json]
dex release yank REF@VERSION --reason TEXT
dex release unyank REF@VERSION
dex release deprecate REF[@VERSION] --reason TEXT [--replaced-by REF]
dex release lineage REF [--json]
dex release record
The release ledger: history, yank and deprecation
markers, and fork lineage. yank, unyank, deprecate and record change trove/releases.json, so they need a
Dex-Trove checkout. record appends releases for changed items and rebuilds relations.json (dex learn does this
itself).
dex related
dex related REF [--type TYPE] [--json]
Typed relations: requires, complements, alternatives, plugin membership, forks and replacements, each with its origin and evidence.
dex candidate
dex candidate from-template TEMPLATE --name NAME --description TEXT [--version X.Y.Z] [--license SPDX]
[--source-url URL] [--out DIR] [--json]
dex candidate check PATH [--visibility public|internal] [--json]
dex candidate review PATH --approve|--reject --reviewer NAME --reason TEXT
dex candidate publish PATH --to SOURCE_ID [--visibility public|internal]
The reviewed candidate gate.
check exits 1 when a gate fails. publish exits 1 and lists every failed gate. On success it copies the
skill into the source’s local folder; run dex learn SOURCE_ID to release it.
from-template wraps a reviewed project template as a candidate: the files go under template/, SKILL.md says how
to use it (placeholders and checks found in it), and provenance.json records the version, licence and each file’s
sha256 with a tree digest that has no timestamps. It refuses a template with no allowed licence or with secret-shaped
text, before writing anything, and skips version-control, build and environment folders. Its evaluation.json
lists the template’s own checks with passed: null, so the candidate fails check until they’re run and recorded.
Exit 2 with what to fix.
dex check-installs
dex check-installs [--json]
Installs every item into each tool layout it supports, in a scratch folder, and checks the tool can load it:
- skill names and description length;
- agent descriptions, Claude tool names and models;
applyToon instructions;- workflow triggers;
- hook events.
Writes trove/install-checks.json, which item pages show as Checked by Dex. dex learn runs it too. Needs a
checkout.
dex overlap
dex overlap [--threshold 0.45] [--kind KIND] [--limit/-n 20] [--json]
Groups items of the same kind, task and context whose titles and descriptions overlap. Each member is scored on
signals Dex can verify (install checks, reviewed facets, runs code, description, licence evidence). A ★ marks a
strictly better score. The result is a list of candidates to curate as alternative-to relations.
dex ananke handoff
dex ananke handoff [--lock-file dex.lock.json]
Prints a [tool.ananke] block that pins the lock’s skills and agents to their exact versions. Resolve-only:
nothing is installed, activated or run. Exit 1 if the lock doesn’t match the release ledger.
dex capabilities
dex capabilities [CAPABILITY] [--status available|partial|missing] [--json]
What the trove offers for each planned capability, with licences read from the catalog, and what’s still missing. The same data as the capability matrix.
dex docs reuse
dex docs reuse
Regenerates docs/reference/reuse-matrix.md from the trove. Needs a checkout; a test fails when the
page is stale.
dex facets
dex facets list [FACET] [--json] # every facet and value: definition, aliases, item count
dex facets show REF [--json] # one item's facets, each value's source and evidence, review status
dex facets build # rebuild trove/facets.json (checkout only, no network); dex learn does this too
dex facets doc # regenerate docs/reference/taxonomy.md (checkout only)
The taxonomy is versioned data in src/dex_trove/taxonomy/ (ontology.yaml, plus reviewed curation.yaml). See
Finding capabilities and the taxonomy reference.
dex mcp
Local MCP servers (see the guide).
| Command | What it does |
|---|---|
dex mcp list [--json] | The servers, their tools, which tools act on external systems, and the tracker tasks they cover |
dex mcp serve NAME [--root DIR] [--allow-actions] [--evidence DIR] | Runs a server on stdin/stdout for an MCP client |
dex mcp call NAME TOOL [--args JSON] [--root DIR] [--allow-actions] | Calls one tool once and prints its JSON result; exit 2 with the message on a refusal |
dex mcp config NAME [--client claude-code|vscode|codex|json] | Prints how to register the server, pinned to this version; changes nothing |
dex license
dex license PATH
Classifies a licence file, or every licence file directly in a directory:
PATH: SPDX → verdict (evidence). Exit 1 if no licence files are found.
dex notices
dex notices
Regenerates THIRD_PARTY_NOTICES.md from the trove. dex learn does this automatically.
dex catalog
dex catalog
Rebuilds catalog.json from the dex.json files on disk and refreshes EXCLUDED.json and the lock without
learning. Use it after resolving a merge conflict in trove/.
dex ananke sync
dex ananke sync [--project DIR] [--kind/-k KIND]... [--source/-s NS]... [--name/-n NAME]...
[--dry-run] [--include-flagged] [--ananke-bin PATH]
Runs ananke registry learn over the selected items. Filters are repeatable and combined with AND across
option types. --name accepts name or ns/name.
| Option | Meaning |
|---|---|
--project | Ananke project directory (default .); it must have run ananke registry init |
--dry-run | passes --dry-run to Ananke |
--include-flagged | also offer items with secret_flags (Ananke’s [secrets] policy then decides) |
--ananke-bin | path to the ananke executable if it isn’t on PATH |
Prints Ananke’s output, then ✓ N trove items offered to Ananke. Exit 2 if ananke isn’t found or nothing
matches; otherwise Ananke’s exit code.
dex docs export
dex docs export [--out website/src]
Writes content/items/*.md and data/search.json + data/trove.json under --out. See
Docs site.
Exit codes
| Code | Meaning |
|---|---|
0 | success |
1 | validation problems / no licence files found |
2 | usage error: unknown ref, source or target; not in a checkout; ananke not found |
| other | passed through from ananke (dex ananke sync) |