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, --help

Index & 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 RSS

Examples

devscriptor scan ./my-project
devscriptor scan ./my-project -i py -e tests/,*_test.py
devscriptor scan ./my-project --incremental
devscriptor scan ./my-project --bulk-load

watch

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 250

embed

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 progress

Examples

devscriptor embed
devscriptor embed --daemon && devscriptor embed --status
devscriptor embed --force

The two-phase workflow

  • •devscriptor scan is fast and, without --embed, never loads the model — FTS5 keyword search and structural queries are ready as soon as it ends.
  • •devscriptor embed backfills 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 --help or devscriptor <command> --help for full details on any command.