Quick Start
Install
Section titled “Install”cargo install --path crates/agentstatedeveloper-cli # installs asdcargo install --path crates/agentstatedeveloper-mcp # installs asd-mcp + asd-serveThe crate name
asdon crates.io is taken by an unrelated diff tool. Install from source.
Initialize your project
Section titled “Initialize your project”cd my-projectasd initasd index .asd init installs git hooks (pre-commit asd sync --prune, post-merge / post-checkout asd hydrate && asd index .) and adds .asd-state.db to .gitignore, leaving .asd/v1/ tracked.
Read a symbol
Section titled “Read a symbol”asd read payments.chargeCardAppend a ledger entry
Section titled “Append a ledger entry”asd ledger append payments.chargeCard \ --kind hazard \ --summary "fails silently above 10000 — caller must check return value" \ --author-kind human \Register the MCP server with your agents
Section titled “Register the MCP server with your agents”asd mcp installWrites the asd-mcp entry into mcpServers in every config it finds (Claude Code, Claude Desktop, Cursor). Restart the tool to activate.
Sync the sidecar and commit
Section titled “Sync the sidecar and commit”asd sync --prunegit add .asd/v1/git commit -m "chore: sync ASD sidecar"(After asd init, the pre-commit hook runs asd sync --prune automatically.)
Brief output mode for agents
Section titled “Brief output mode for agents”export ASD_FORMAT=briefProjects read / callers / callees responses down to load-bearing fields only. 60–80% token reduction on those commands. Applies to CLI and MCP.
Onboarding after clone
Section titled “Onboarding after clone”git clone <repo>asd init # installs hooks, updates .gitignoreasd hydrate # loads .asd/v1/ → local SQLiteasd index . # rebuilds derived semantic indexasd mcp install # registers asd-mcp with your agent tools