Loop/Prompt Library / Planning & second-opinion review
๐ Second agent signs off before shipping
Runs a scheduled task with one agent, then a second agent checks it, and only checked work goes out.
Use it when: A recurring task should run unattended, but no agent should approve its own work.
๐ Stops when: Only output that passed the second agent's check is shipped. Failures leave no outside changes.
Copy this loop
On a schedule, run [recurring task, e.g. CI triage or docs sync] in an isolated git worktree. Agent 1 prepares the patch or message but does not send it. Agent 2 checks it against [criteria]. Ship only if Agent 2 passes it. If it fails, save the findings and retry at most [2] times. Report the version, the staged output, the verdict, and whether it shipped.
Review every change the agent makes before you keep it. Set a budget or round limit โ the prompt includes one.
Idea from Forward Future's Loop Library ยท by Istasha. Prompt rewritten in plain English by FixKit AI.
More loops like this
Turn an idea into a clear plan
Interviews you about a rough idea, then writes two files: what to build, and how the AI should build and check it.
Make the plan buildable
Fills gaps in a new project's planning docs until two reviewers would build the same thing from them.
Spec review rounds
Writes a spec for one ticket, has a tough reviewer check it against a rubric, and keeps fixing until it is approved.
Devil's advocate review
Has one AI argue your design is wrong, logs every objection, and makes the builder fix or justify each one with proof.
Two AIs must agree
Takes turns having AIs from two different companies review your work until both approve the exact same version.
Builder + tough reviewer (Claude and Codex)
Claude builds and opens a pull request, Codex reviews it harshly, Claude fixes, and they repeat until it passes.
