Skip to main content

Module onboard

Module onboard 

Source
Expand description

asd onboard — one-shot setup for a freshly-cloned project (Plan K t-005).

Runs init → index → conclusions import → mcp install in the right order, idempotent. A new developer (or their agent) doesn’t need to know the sequence — they run asd onboard and get:

  1. A live SQLite ASG (asd init — installs hooks, updates .gitignore)
  2. A fresh semantic index from source (asd index .)
  3. Inherited ledger entries from the committed sidecar (asd conclusions import — pulls .asd/conclusions/*.jsonl in)
  4. A project-scoped MCP registration so the user’s agent can reach asd (asd mcp install --project — writes .mcp.json in the repo). This mirrors ctx init’s one-command ergonomics; pass --no-mcp to skip.

Steps that have already completed are no-ops. Steps that have nothing to do (e.g. no .asd/conclusions/ directory yet, fresh-from-scratch project) skip cleanly with a one-line note instead of failing. The MCP step is best-effort: if the asd-mcp binary isn’t installed it warns and continues, since the repo is already usable without it.

Composing existing commands rather than re-implementing keeps the onboard surface a thin orchestrator — it inherits future init/index/conclusions improvements for free.

Structs§

OnboardArgs

Functions§

run