Loop Engineering Playbooks.
The agent stops the second you stop typing. Build the loop that does not: a contract it reads every iteration, an exit condition a computer evaluates, a separate verifier it cannot talk past, and a receipt in tokens, minutes, and dollars.
2 titles · 5 free guides
How to Give an Agentic Loop an Exit Condition
An agentic loop exit condition has two halves: a measurable pass criterion and a hard cap. Wire both in Claude Code so a runaway loop stops in 1-4 turns.
from: Claude Code Loop Engineering
How to Cap a Claude Code Loop's Spend
Set a Claude Code budget limit per run so an unattended loop can't burn $200 overnight: a hard --max-budget-usd cap, a model router, and context trimming.
from: Claude Code Loop Engineering
/loop vs /goal in Claude Code: The Real Difference
Claude Code /loop vs /goal confuses everyone. /goal is the self-correcting loop that fixes code; /loop is a scheduler that polls. Here's each in its place.
from: Claude Code Loop Engineering
Agent Loop vs Single Prompt vs Fan-Out: When to Use Each
When to use an agent loop vs a single prompt vs fan-out comes down to task shape. A 3-question test routes any coding task to the cheapest tool that fits.
from: Claude Code Loop Engineering
Read them in this order. Each one assumes the one before it.
Claude Code Loops
A fleet of loops that runs overnight, verifies its own work before it reaches your branch, and prints the bill
Claude Code Loop Engineering
A bounded, self-correcting Claude Code loop that ships trusted code overnight without burning $200
These titles sit on a path that tells you which three to buy first.