Skip to content

v1.52.0 ·

The agent that wrote the code also graded it

Implementation ran every task in the task list in one session. By task 8 the context held tasks 1 to 7, and the agent that wrote the code also judged it, including the tests that define done. Nothing stopped it from loosening a test until it passed.

What changed

On Claude Code, the implementation skill now offers to hand each task to a fresh agent, with a second agent that edits nothing reviewing it. The offer is made once per instance and recorded, and it is off by default because it roughly doubles the agents.

The reviewer gets one fixed git diff listing every test or spec file that existed before the task and was changed, deleted or renamed. It also covers the requirements and the task list, so the definition of done cannot be edited either. It fails each file the task did not ask to change.

The agent doing a task does not commit. The commit waits for the reviewer's pass, so a rejected attempt never reaches the branch and each review sees one task. A rejection goes to a new agent with the reasons. A second rejection ends it: the main session finishes the task or puts it off with a dated reason.

Tasks can also mark themselves as able to run together. (wave: <n>) on adjacent task lines says they may run at the same time. A bad marker keeps the task and warns, and a wave split by another task warns. aidlc gate --json carries wave on each task that has one. A task list without waves parses exactly as before, and no gate, transition or state format changed.

Why this way

Three times I chose the plainer mechanism and accepted what it gives up. Asking the reviewer to notice a weakened test would make the answer depend on how closely it looked. A fixed command means two reviewers of the same task see the same list, and judgment is left for one question: did the task ask for this change. The filter also catches some files that are not tests, which is the safe side to be wrong on.

Some similar tools keep retrying and debugging on their own. This one stops at two rejections.

For concurrency, a per-task dependency list is richer, but it needs a rule for tasks that list nothing and a check for loops. One number shared by neighbouring tasks needs neither, and the order is still the list's order.

What it does not fix

Tasks in one wave share one copy of the code. I ruled out separate copies from the start. So two agents can still collide on a file. That risk is accepted, held back only by the rule that tasks in one wave touch different files and by commits waiting for review.