Introducing aloop
AI coding agents are good at the first draft. They’re less good at knowing when they’re finished. Ask one to add a feature and it will often report that the tests pass without running them. Ask it to review its own work and it will usually approve. Give it a long task and it wanders, forgets what it decided three steps back, and ends up somewhere nobody planned.
The fix isn’t a smarter prompt. It’s taking the control flow away from the agent.
aloop is a runner for coding tasks. It drives each task through six phases: implement, gate, review, address, docs and git. The runner decides what happens next. The agent CLIs you configure (Claude, Codex, and others) supply the judgment, one phase at a time, each in a fresh process. Phases hand off through files, not through a shared conversation that grows until it breaks.
Three rules keep it honest:
- Gates are commands, not opinions. Put
npm testin the gate. A phase passes only when the command passes, whatever the agent said about it. - Reviews fail closed. A review writes a structured verdict with blocking findings and nits. A malformed verdict is not treated as approval.
- Repair has a limit. Blockers go back to the agent and the loop runs again,
up to a round cap you set in
loop.config.mjs.
Try it safely first:
npm install --global @syntax-syllogism/aloop
aloop --task "Add request tracing" --name request-tracing --dry-run
The dry run renders the plan and the prompts without starting anything. When
you’re ready, drop --dry-run. aloop confirms each phase by default.
We use aloop on our own work too. Every site on our open data page was built the same way: a spec written as a work item, then driven through implement, review and repair by aloop. The loop does the grinding, and the result still gets read before it ships.