Reference
CLI Reference
One Binary, Every Command
Index and embed your codebase, search it, analyze it, manage language servers, and launch the MCP server — all from the single devscriptor binary.
Global options
-d, --database <FILE>--config <FILE>-v, --verbose-V, --version-h, --helpIndex & Embed
3
scan
scan [OPTIONS] <PATH>Parse a codebase and build the knowledge graph. Fast: without --embed it never loads the model.
Options
-i, --include <EXTS>Comma-separated file extensions to include; replaces the project’s scan.include-e, --exclude <PATTERNS>Comma-separated glob patterns to exclude; replaces the project’s scan.exclude--max-file-size <MB>Skip larger files (default: the project’s, else 50)--batch-size <N>Files per database transaction (default 50)--incrementalSkip unchanged files (mtime+size+hash manifest)--embedEmbed inline after scanning (needs ~4 GB free RAM; skipped when short)--skip-embeddingsSkip embeddings even with --embed (useful in CI)--bulk-loadRebuild FTS5 at the end: faster for fresh full scans, unsafe for incremental--metricsPrint entity/language distribution, cache-hit rate and peak RSSExamples
devscriptor scan ./my-projectdevscriptor scan ./my-project -i py -e tests/,*_test.pydevscriptor scan ./my-project --incrementaldevscriptor scan ./my-project --bulk-loadwatch
watch [OPTIONS] <PATH>An incremental scan, then a re-index on every source change until Ctrl-C.
Options
-i, --include <EXTS>Restrict to these extensions-e, --exclude <GLOBS>Exclude paths matching these globs--embedRe-embed changed entities inline after each re-scan--debounce-ms <MS>Quiet period before a re-scan (default 400)Examples
devscriptor watch .devscriptor --database ./devscriptor.db watch ./my-project --debounce-ms 250embed
embed [OPTIONS]Generate 768-dim vectors for the entities that lack them, then unload the model (~1.3 GB freed). Idempotent.
Options
--batch-size <N>Entities per inference run; 0 = auto (default)--forceRe-embed entities that already have vectors--daemonEmbed in a background process and return at once--statusShow the latest background job’s progressExamples
devscriptor embeddevscriptor embed --daemon && devscriptor embed --statusdevscriptor embed --forceThe two-phase workflow
- •
devscriptor scanis fast and, without--embed, never loads the model — FTS5 keyword search and structural queries are ready as soon as it ends. - •
devscriptor embedbackfills semantic vectors when you choose (sized for 4 GB of available RAM; with less it runs fewer inferences at once) and is idempotent — re-runs only embed what changed. - •Run
devscriptor --helpordevscriptor <command> --helpfor full details on any command.