Agentflow
Agentflow is a supervised local runtime for long-running coding work. Humans author a graph with intent and outcome boundaries; Codex CLI or Cursor CLI executes substantial nodes; the supervisor records bounded interventions; terminal runs produce a delivery package.
Route By Task
- Author or review a graph: read references/graph-authoring.md.
- Need exact fields: read references/graph-contract.md.
- Choose managed patterns: read references/managed-workflows.md.
- Need CLI validation or launch behavior: read references/cli-and-validation.md.
- Debug failures, resume, or inspect delivery: read references/run-debugging.md.
- Need failure semantics: read references/failure-and-validation.md.
- Need examples: read references/examples.md.
- Need reusable plugin workflows or tools: use
agentflow-plugins.
Default Workflow
- Confirm the graph has
intent.goal,intent.acceptance_criteria, explicitconstraints, explicitrepos, and explicitprofiles. - Prefer fewer, larger outcome nodes with named artifacts and node-level
goalplusacceptance_criteria. - Set
supervisionbudgets and delivery sections appropriate to the task. - Use plugin-bundled CLI tools for team capabilities; verify each tool's
capability,impact, and credential requirements. - Run
agentflow plugin resolve --graph <path>when plugins are declared. - Run
agentflow validate --graph <path>. - Run
agentflow validate --graph <path> --run-readybefore launch on this machine. - Run
agentflow validate --graph <path> --show-compiledfor managed patterns, plugin workflows, repeat scopes, or nontrivial artifact handoffs. - After a run, inspect
delivery/reviewer-guide.md,delivery/manifest.json,delivery/run-map.md, and declared artifacts before raw runtime files.
Authoring Posture
- Treat the authored DAG as the human contract, not a prose plan.
- Use
contextfor node material andartifactsfor durable handoffs. - Treat
reposandprofilesas operational authority; put scope boundaries and out-of-scope notes inconstraints. - Keep downstream references on named artifacts from public node ids.
- Use deterministic checks for hard facts and AI checks for semantic judgment.
- Make high-impact limits explicit in
constraintsbefore granting external, secret, or mutation tools. - Do not widen scope through supervisor behavior; use checkpoints or graph edits for human decisions.
Runtime CLI Posture
- Humans use
agentflow; agents inside running nodes useaf. afis injected into agent nodes onPATHand reads$AGENTFLOW_RUNTIME_METADATA.- Use
af --helpandaf <command> --helpfor exact runtime CLI arguments, defaults, output shape, examples, and safety notes. - Prefer
af status,af tools list, andaf context showwhen debugging what a node actually received. - Prefer
af artifact writefor declared handoffs instead of ad hoc output files. - Use
af log --typefor worker evidence and helper coordination notes, but keep durable conclusions in artifacts. - Treat
af spawnhelpers as supervised sessions with their own artifacts, not persistent coworkers.