Agentic Coding Feedback Loops.
How to wire feedback at every stage of the workflow, so coding agents verify their own work instead of guessing.
PRINCIPLE.01why feedback loops matter
Let the agent check its own work.
If the agent can't verify, it guesses.
unverified
×no tests were run
catch it
$run pnpm test
§02The timeline
Where you steer the agent
Feedback Loops
you control
Every stage of writing code is a loop the agent runs — and a place where you decide what it does next. The next nine sections walk through each one.
The agent loopact
Plan
Define the task, constraints, and success criteria.
catches
- Ambiguous requirements
- Missing constraints
- Wrong abstraction
- Unclear acceptance
agent / 01 planrunning
act
$read_docpath="specs/refunds.md"section="edge-cases"
observe
awaiting tool…
reason
awaiting result…
the loop compounds