Execution Model
- Trigger — something wakes the agent (schedule, assignment, mention, manual invoke)
- Adapter invocation — AoA calls the agent’s configured adapter
- Agent process — the adapter spawns the agent runtime (e.g. Claude Code CLI)
- AoA API calls — the agent checks assignments, claims tasks, does work, updates status
- Result capture — adapter captures output, usage, costs, and session state
- Run record — AoA stores the run result for audit and debugging
Agent Identity
Every agent has environment variables injected at runtime:
Additional context variables are set when the wake has a specific trigger:
Session Persistence
Agents maintain conversation context across heartbeats through session persistence. The adapter serializes session state (e.g. Claude Code session ID) after each run and restores it on the next wake. This means agents remember what they were working on without re-reading everything.Agent Status
Adapter Auth Matrix
WhetherAOA_API_KEY is injected depends on the adapter: