# Root agent rewrites code through planner, implementer, reviewer, and verifier pipeline

> Original title: A root agent divided the rewrite into tasks and tracked their dependencies. Each task ran through its own state machine:

- Source: Prime Intellect
- Published: 2026-10-09T21:34:31.000Z
- Bad Influence: https://badinfluence.news/items/wkmixfzfmf9buxn6pqwms9qx7
- Original: https://x.com/PrimeIntellect/status/2108672481804587128

## Summary

A root agent splits a rewrite into dependent tasks, with each task run through a Planner, Implementer, Reviewer, and Verifier state machine. Each implementation must pass independent review and verification in a fresh Prime Sandbox before merging, and failed checks send the task back to the implementer. Tasks can run in parallel without skipping these checks.

## Post

A root agent divided the rewrite into tasks and tracked their dependencies. Each task ran through its own state machine:

Planner → Implementer → Reviewer → Verifier

Each implementation had to pass an independent review and verification in a fresh Prime Sandbox before it could merge, with failed checks returning the task to the implementer. Tasks could run in parallel without skipping these checks.

[Video](https://badinfluence.news/api/img-proxy?u=https%3A%2F%2Fpbs.twimg.com%2Famplify_video_thumb%2F2108660018006683648%2Fimg%2FWzJQLQqzgcTVdVmx.jpg&mode=thumb&exp=1795737600&sig=3634189f3f001a43)
