areteloop
An autonomous software engineering loop for Claude Code, with an independent quality gate.
You give it a requirement.
It defines the work, plans it, builds it, tests it, has it reviewed, simplifies it, and asks an independent judge whether it is done.
It repeats targeted fixes until the gate passes or a stop condition is reached, and it ships only on a pass.
Define → Plan → Build → Test → Review → Simplify → Judge ─ PASS → Ship
▲ │
└──────── targeted fixes ◄── FAIL ──┘
Status: v0.1.0, early.
It works end to end on small Node.js projects in our tests; see What has been verified.
Why another workflow plugin
Most agent workflows describe the loop to the model in prose and trust the model to follow it and to say when it is done.
areteloop puts the loop in code:
- The loop is a native Claude Code workflow. Phase order, iterations, branching, limits and termination are JavaScript in
plugin/workflows/loop.js, not instructions.
- The gate is computed from evidence. Required checks must pass by exit code, blocking review findings must be resolved, every required acceptance criterion must be met, and the judge must say PASS. A judge's PASS cannot override a failing test, and a tester's "passed" with a non-zero exit code counts as failed.
- Ship is locked twice. The workflow reaches Ship only through the passing branch, and a hook denies
git push and gh pr create unless the latest recorded verdict is PASS.
- Evidence is recorded by a hook, not by the agents. Every agent output is schema-validated and appended to the run's log by a plugin hook.
- Roles are isolated. Eight role agents with one job each, plus a recorder for the final report. The reviewer, judge and tester are read-only. No agent sees the conversation, only the artifacts its role needs.
- It is safe by default. It refuses to start on uncommitted changes, works on its own branch, never pushes unless asked, and never merges, force-pushes, releases or deploys.
Install
Requires Claude Code 2.1.323+ with dynamic workflows enabled (on Pro, turn on "Dynamic workflows" in /config), Node.js 20+, and git.
/plugin marketplace add kiyeonjeon21/areteloop
/plugin install areteloop@areteloop
Then /reload-plugins or start a new session.
No files are copied into your projects and no setup is needed.
Use
/areteloop:run "Add a --json flag to the export command"
| Command | Purpose |
|---|
/areteloop:run "<requirement>" | Full loop. --mode plan stops after planning; --mode pr opens a draft pull request after PASS. |
/areteloop:define, /areteloop:plan | Specification, or specification and plan, without changing code. |
/areteloop:build | Implement the latest plan. |
/areteloop:test, /areteloop:review | Verification report, or independent review, of the current branch. |
/areteloop:simplify | Simplify the branch's changes, re-verify, revert on regression. |
/areteloop:ship | Test, review and judge, then prepare or open a draft PR only on PASS. |
/areteloop:status, /areteloop:resume | Run report; continue a stopped run from its evidence. |
The default mode, local, commits on a new branch areteloop/<run id> and pushes nothing.
Run state and evidence are kept in your repository's git directory (.git/areteloop/), so they never appear as changes in your working tree.
See docs/USAGE.md for flags, configuration, permissions, headless use and termination reasons.
Configuration
Optional.
~/.claude/areteloop.json and <repo>/.claude/areteloop.json accept mode, limits and models; flags override both.
| Setting | Default |
|---|
| Max iterations | 5 |
| Max stalled iterations | 2 |
| Max agent invocations | 60 |
| Max parallel builders | 3 |
| Models | fable: definer, planner, judge. opus: builder, reviewer, simplifier. sonnet: tester, shipper. |
A model that returns nothing is retried on the agent default, then on your session model, and the report says so.
How it works
What has been verified
With Claude Code 2.1.332 on macOS, 2026-11-29: