Reference / v11.13.0

One interface
for the whole task.

Commands available in the inspected binary. Run aid <command> --help for complete arguments. Summaries use CLI help and the release-managed operating guide.

Key run flags ↗

Top-level commands

run
Dispatch one agent task with optional worktree, verification, retry, audit, context, skills, or background execution; only a successful TaskOutcome exits 0 in the foreground
capabilities
Discover execution protocol capabilities without opening the store
errors
Inspect recent CLI errors, including requests rejected before task creation
advise
Show agent routing advice without dispatching
batch
Dispatch a dependency-aware TOML task graph
benchmark
Run the same task through multiple agents and compare results
watch
Follow live task or group progress in text mode, the TUI, or a JSONL stream
wait
JSON wait/stop require a caller-owned task (default tasks: exit 3, policy_unsupported)
board
Show the current task board (default: current project only; --all shows every project)
notifications
Print recent notifications
changelog
Read release notes
agent
Register custom agents with add <name> and inspect built-in agent availability and related state
clean
Trim historical output copies after --older-than days (default 7); --dry-run reports rows and bytes; --vacuum explicitly compacts an idle database with sufficient temporary free space
show
JSON embeds the last persisted execution receipt without process observation; normal startup migrations and reaping still run
export
Export a task in a supported format
usage
Report token and usage totals grouped by agent or API-route ID, plus per-agent overage task counts and estimated costs from dispatch-time billing events
cost
Report estimated costs by group, agent, or period
stats
Report outcome-based task success, declared difficulty versus outcomes, models, failures, and usage concentration
retry
Start a new attempt using prior task context and artifacts; supersedes a non-terminal task by stopping its live worker first
merge
Merge delivered code only when its outcome is successful by default; --force overrides a failed or inconclusive verification and records the reason
accept
Accept a completed task's delivered artifact as its principal
reject
Reject a completed task while preserving every artifact
gc
Collect an accepted task; worktree deletion requires recursive durability proof
respond
Supply an answer to a task awaiting input; aid writes it to the PTY and consumption stays unconfirmed
reply
Send a message to a running task and optionally wait until it is written to the PTY; consumption stays unconfirmed
stop
Default text mode rejects terminal rows before touching their workers; caller-owned text and JSON stops can target terminal rows
steer
Inject updated direction into a running task; successful forwarding means written to the PTY, consumption unconfirmed
unstick
Queue a recovery nudge or request escalation
ask
Defaults to agy
query
Query an LLM directly, optionally using automatic routing
classify
Ask typed questions (noul, choice, score) about a text or file via TypeSafe Jev; prints JSON
mcp
Start AID's stdio MCP server; task payloads expose additive outcome and verify_status fields
hook
Install or invoke supported AID hooks; task hook payloads expose additive outcome and verify_status fields
config
Inspect agents, pricing, installed skills, templates, and prompt budgets
group
Create and manage workgroups; summary <group-id>, finding add/list/get/update <group-id>, and broadcast <group-id> <message> handle shared results and publish messages to a file; member consumption is unconfirmed
container
Container home mounts retain .gemini for agy authentication and mount .qwen for Qwen authentication
build
Run cargo build/check and parse/deduplicate JSON compiler errors
test
Run cargo test with trusted guarantees (zero-match is an error)
worktree
Create or list AID-managed worktrees; it does not destroy them
store
Browse, install, inspect, and update community packages
team
Manage reusable team definitions
tool
Manage reusable tool definitions
doctor
Report repository/worktree hygiene, leaked operator symlinks, and NeedsHuman agent holds; --apply repairs only those symlinks without bypassing custody
byok
Manage BYOK providers (custom OpenAI-compatible endpoints) via opencode
credential
Manage credential-pool entries
project
Initialize, inspect, or synchronize project configuration
memory
Add, search, update, version, or forget project memory
kg
Knowledge graph — temporal entity relationships
experiment
Run and inspect metric-driven iterative experiments
upgrade
Upgrade AID after checking active-task safety
setup
Configure AID, optionally set/replace the TypeSafe (Jev) macOS keychain key with hidden terminal input and classify verification (OK or FAILED: <message>), and install bundled resources when needed
tree
Show task ancestry and retries, including quota continuations from already-failed runs with agent-scoped transient PTY excerpts
help
Print this message or the help of the given subcommand(s)