Designing Agent Workflows
Quick start
Collect or infer:
- •Workflow goal and success criteria
- •Required steps and their dependencies
- •Decision points and branching conditions
- •State that must be tracked across steps
- •Failure modes and recovery strategies
- •Human checkpoints (where to pause for approval)
Then produce output using TEMPLATES.md. Validate with RUBRIC.md.
Workflow
- •Define the workflow goal and measurable success criteria.
- •Map all steps and their dependencies (what must complete before what).
- •Identify decision points and document all branches.
- •Define state that persists across steps.
- •Add failure handling for each step.
- •Insert human checkpoints for irreversible or high-risk actions.
- •Run the rubric check. Revise until it passes.
Degrees of freedom
- •Low freedom: Decision criteria must be explicit and deterministic.
- •Medium freedom: Step ordering can adapt to dependencies.
- •Allowed variation: Diagram style and notation as long as logic is clear.
Failure modes to avoid
- •Undefined behavior at decision points
- •Missing failure handling for any step
- •State not explicitly tracked between steps
- •No human checkpoint before irreversible actions
- •Infinite loops without termination conditions
- •Implicit assumptions about step ordering
References
- •Templates: TEMPLATES.md
- •Rubric: RUBRIC.md
- •Examples: EXAMPLES.md
- •Workflow patterns: reference/workflow-patterns.md
- •State management: reference/state-management.md