agentify query

Eight subcommands over the indexed graph.

Owners, dependencies, recent changes, full-text search, definitions, references, callers, impacts. All dispatched at src/main.js:732; all read .agentify/index.db; all support --json.

dispatch src/main.js:732 read .agentify/index.db output JSON-ready

Each subcommand has a narrow input shape.

owner

Required: --file <path>. Returns the owning module and its context for the file.

deps

Required: --module <id>. Returns the dependency list for the module.

changed

Required: --since <commit>. Returns changed files and diff stats since the ref.

search

Required: --term <value> (or positional arg 2). Returns matching symbols and files from the indexed text.

def

Required: --symbol <name>. Returns the definition location, kind, and export status.

refs

Required: --symbol <name>. Returns all reference locations recorded in the index.

callers

Required: --symbol <name>. Returns the functions that call the symbol.

impacts

Required: --file <path>; optional --depth <N> (default 2). Returns impacted modules within the depth.

All subcommands accept the same global flags.

--root <path> Override repo root (defaults to cwd).
--json Emit machine-readable output mirroring the underlying function return.
--fail-on-stale Exit non-zero if .agentify/index.db is older than the source tree.
--dry-run Resolves and validates the input but skips index reads where applicable.