Capability 01
Agent Loop and Control Flow
The harness is the code that decides what the model sees, when it runs, and what happens to its output. We design the loop itself — turn structure, stopping conditions, budgets, and the handoff between model reasoning and deterministic code.
Core Activities
- Define turn structure, step limits, and token and cost budgets
- Set explicit stopping conditions and completion criteria
- Separate model-decided steps from deterministic control flow
- Design state and memory that survive across turns and sessions
Deliverables
- Agent loop specification and reference implementation
- Budget and termination policy
- State and checkpoint model
Expected Outcomes
- Predictable cost per run
- No unbounded or looping executions