Skip to main content

Module commands

Module commands 

Source

Modules§

annotate_commit
asd annotate-commit [sha] [--write] — derive ledger annotations from a commit.
architecture
asd architecture — a one-call “orient me” overview for a cold agent.
audit
asd audit … — read back the JSONL audit log.
bootstrap
Paste-to-your-agent bootstrap (suite-onboarding t-006).
brief
CLI re-export of the brief helpers that now live in core (agentstatedeveloper_core::brief). Kept as a single-line module so existing crate::commands::brief::* call sites in read.rs / graph.rs resolve unchanged. Plan D t-007.
checklist
asd checklist <query> — structured pre-edit checklist.
conclusions
asd conclusions list [--class <class>] [--symbol <qname>] — view ledger entries bucketed by the six Plan B conclusion classes (decisions, classifications, mappings, hazards, recipes, followups).
context_for
asd context-for <qname[,qname...]> — assemble agent query context.
dead_code
asd dead-code — functions/methods with no inbound call edges in the index.
endpoints
asd endpoints — list cross-service endpoints detected in this repo, show the in-repo matched edges, and export a service manifest.
feedback
asd feedback — record and list search-quality verdicts.
gc
asd gc — preview, and on request perform, a garbage-collection sweep of the ASG store behind this repository.
graph
asd callers <qname> / asd callees <qname> — call graph traversal.
help
asd help [topic] — on-demand instruction disclosure.
hooks
asd hooks — show installed ASD git hooks, their triggers, commands, and current status. Hooks are installed by asd init and live in .asd/hooks/ with core.hooksPath pointing git at that directory.
hydrate
asd hydrate [--dir <path>] [--verify] — read the .asd/v1/ sidecar and write its contents back into the ASG repo. Inverse of asd sync.
impact
asd impact <qname> — blast-radius view before editing a symbol.
index
asd index <path> — walk a directory for source files we have adapters for, parse them, and write Symbol + EffectDecl records into the ASG.
init
asd init [--no-hooks] — create (or reuse) an ASD repository, stamp the schema-version marker, install git hooks, and update .gitignore.
invariant
asd invariant — first-class shortcut for ledger invariant operations.
investigate
asd investigate <query> — broad feature archaeology in one pass.
ledger
asd ledger … — append ledger entries against a symbol.
list
asd list <symbols|effects|ledger|stats> — enumerate indexed objects with optional filters, or show aggregate graph metrics.
map
asd map — initial-read project summary.
mcp
asd mcp — install, uninstall, and inspect the asd-mcp server registration in known agent tools.
onboard
asd onboard — one-shot setup for a freshly-cloned project (Plan K t-005).
policy
asd policy … — introspect the loaded policy file.
prepare_change
asd prepare-change "<description>" — agent-ready context in one call.
probe
asd probe run — golden benchmark harness for ASD ranking/classification.
read
asd read <qname> — look up a symbol by qname, pull its effect declaration, ledger entries, and direct callers/callees from the call graph.
recipe
asd recipe <recipe-name> <query> — structured change-intent plans (Plan C t-004). First concrete recipe: classify-test-migration. Sets the pattern for future recipes (Plan C+).
references
asd references <name> — exact-symbol reference search with rg parity.
repair
asd repair [--fix] [--json] — scan for ASG integrity issues and optionally apply safe auto-corrections.
repo
asd repo {add,list,use,rm,show} — manage the shared ASD repo registry at ~/.config/asd/repos.toml. See docs/repo-registry.md.
scopes
asd scopes [list] — discoverability for named scope aliases defined in .asd/scopes.toml. Most field users have not realized that --scope foo and --paths "Packages/AudioEngine/**" already work on search, prepare-change, investigate, impact, checklist, and since. This command makes the available scopes visible and prints a usage hint when the file is missing.
scorecard
asd scorecard — benchmark scorecard across the five dimensions.
scratch
asd scratch … — ephemeral working notes with a promote-to-ledger path.
search
asd search <query> — ranked concept search over indexed symbols.
sidecar
asd sidecar migrate — one-shot migration from the old .asd/v1/ sidecar to the Plan B .asd/conclusions/ layout.
since
asd since <sha> — symbols in files changed since a commit + blast radius.
skill
Agent Skill installation (suite-onboarding t-002).
status
asd status — show index health, age, modified files, and sidecar lifecycle.
sync
asd sync [--dir <path>] [--prune] — mirror live ASG state into the .asd/v1/ on-disk sidecar. The sidecar travels with git commit, letting a fresh git clone hydrate an ASD repo without a network registry.
task_close
asd task-close — capture proof, validation result, and affected symbols and write them atomically to the ledger when closing a task.
test_summary
asd test-summary — read test-runner output on stdin and emit a compact, failures-only summary. Pairs with ASD’s test-gap detection: run your tests, pipe the log in, and hand the agent only the failures + counts.
think
asd think <verb> — capture agent thinking (Plan G t-003).
trace
asd trace -- <cmd> [args...] — run a Python program under the ASD runtime tracer (tools/asd_tracer.py), then ingest the resulting JSON report into ASG as Trace records. Updates each symbol’s EffectDecl verification block to reflect what the tracer actually observed.
trust
asd trust — emit the State Trust Score for the current workspace.
verify_effects
asd verify-effects <qname> — compare declared effects against what the static checker infers from the current source, write mismatches back to the EffectDecl, and report verification status.
watch
asd watch — keep the index fresh automatically (suite-onboarding t-009).
workflow
asd workflow — view task workflow session history.
worktree
asd worktree — plan-scoped git worktrees (agent-worktree-workflow t-001).