aid
aid delegates execution to other agent contexts so a human or primary agent can
keep attention for decisions. Code tasks run in their own sessions and Git
worktrees; saved reports, summary lines, verdicts, and diffs bring back what the
next decision needs. The full transcript stays with the task, available on demand.
The dispatcher chooses the route, verifies by running checks, and explicitly
accepts the result.
Install
Install and authenticate at least one supported agent CLI, then install aid:
|
You can read the installer first. Alternatively, install from crates.io with a Rust toolchain:
Or build and install from source:
Run the setup wizard:
Setup detects installed agents and configures bundled resources. See the configuration guide for project defaults, credentials, and agent configuration.
Quick start
Dispatch a code task
Start in your project's Git repository. This example uses Codex; choose an installed and authenticated agent for your task.
The task gets a separate worktree, and background dispatch returns a task ID.
Configure a real project verification command first: bare --verify uses project
or supported defaults. For the full verification and remote-build behavior, see
dispatch.
Replace t-1234 below with the returned ID. Watch progress, wait for completion,
then inspect the outcome, diff, and saved output:
A completed task is not proof of success. Verified and Delivered are successful
outcomes; Unverified is inconclusive, and Broken means verification failed.
Read the evidence before deciding whether to integrate and accept the artifact.
After review, merge into your intended current branch, record acceptance, and collect the worktree when its contents are durable:
Merge integrates code; acceptance records your decision. Collection requires a matching accepted artifact, a clean worktree, and proof that commits are durably reachable, including recursive submodules. An inconclusive proof keeps the work. See the lifecycle guide.
Ask for a report
Research can return a saved answer without creating a writable code worktree:
Use your chosen research-capable agent. The answer is saved to the declared output file. Read-only enforcement compares the Git repository before and after the run; it detects changes rather than preventing every write.
Independent cross-audit
Keep the change's HEAD fixed and choose agents configured for different providers.
Different CLI names alone do not establish independence: check the provider and
model behind each route. Run these from a terminal outside an active aid task,
replacing /path/to/change with the checkout to inspect.
audit="Read-only cross-audit of HEAD. Report SHIP/FIX/BLOCK with evidence. Do not modify files."
Each task writes its own saved audit report. Replace the IDs below with the two returned IDs, then compare the reports and their cited evidence:
SHIP, FIX, and BLOCK express each auditor's conclusion. Disagreement stays
visible; the dispatcher decides whether to accept the change. A missing report
is not an audit verdict. See the
task operations guide
for saved output and transcript inspection.
How it works
- Tasks carry execution context. A brief, route, events, output, and transcript belong to the task. Inspect a compact result first and open the full evidence when the decision needs it.
- Worktrees keep changes separate and in custody. Failed work retains its artifacts. Acceptance and collection are explicit steps; rejection preserves the work for inspection or another attempt.
- Verification runs checks. Agent claims and lifecycle status do not replace command output. Verification and artifact delivery contribute to the outcome.
- Profiles guide routing. Declare difficulty, budget, urgency, and rigor.
Routing advice compares candidates; the dispatcher selects the agent and model.
Stronger models can be assigned where needed. Critical rigor requires enabled
verification and a post-task audit; the latter uses the separate
aictool. - Groups and batches coordinate related tasks. Groups collect findings and summaries. TOML batches support parallel work and dependency ordering. See collaboration.
Preview routing without dispatching:
Supported built-in agents: gemini, agy, qwen, codex, copilot, opencode,
commandcode, cursor, kilo, mimocode, droid, oz, claude, and grok.
Availability depends on installed CLIs and their authentication. The
configuration guide
also covers custom agents.
Where to go next
- Official operating guide: authoritative workflows and reference material.
- Command index: find the command for an operation without loading the entire reference.
- Documentation map: navigate the repository documentation.
- Changelog: release history.
- Website quick start: installation and examples.
Optional components
The web Cargo feature adds an authenticated HTTP API, SSE updates, and a web UI.
It is off by default. See the server source.
The AID Command client in client/ connects to the server from macOS or iPadOS.
Its targets are defined in the client project specification.
License
MIT.