# Command Matrix ## Bootstrapping and Handshake - `node scripts/bb-init.mjs --register --role --json` - Output: `{ ok, agent_id, mode, lease, timestamp }` - `node scripts/bb-init.mjs --adopt [--non-interactive] --json` - Output: `{ ok, agent_id, mode, lease, timestamp }` or `{ ok:false, error }` ## Coordination Commands (`bb`) - `bb agent register --name --role ` - `bb agent activity-lease --agent [--json]` - Output: `{ ok, command, data: AgentRecord }` - `bb agent list [--role ] [--status ]` - `bb agent show --agent ` - `bb agent send --from --to --bead --category --subject --body ` - `bb agent inbox --agent [--state unread|read|acked] [--bead ]` - `bb agent read --agent --message ` - `bb agent ack --agent --message ` - `bb agent reserve --agent --scope --bead [--ttl ] [--takeover-stale]` - `bb agent release --agent --scope ` - `bb agent status [--bead ] [--agent ]` ## Lifecycle Commands (`bd`) - `bd ready` - `bd show ` - `bd update --status in_progress --claim` - `bd update --notes ""` - `bd close --reason ""` ## Legacy/Internal Scripts - `node skills/beadboard-driver/scripts/resolve-bb.mjs` - `node skills/beadboard-driver/scripts/session-preflight.mjs` - `node skills/beadboard-driver/scripts/generate-agent-name.mjs` - `node skills/beadboard-driver/scripts/readiness-report.mjs --checks --artifacts `