What the source did
- Starts with one small workflow: take one labeled bug, reproduce it, fix it on a branch, verify, open a draft PR.
- Creates a Chief plus Triage, Builder, Reviewer and Release bots, and a shared workspace folder (queue, issues, reviews, approved, logs).
- Keeps a per-issue record as the source of truth: one owner, a current state, and an artifact for every state change.
- Triage writes a failing test first; Builder hands the fix to Cursor cloud agents in separate environments; Reviewer must open the diff and run the tests, not repeat the builder's summary.
- Caps repair rounds, saves the process as a skill, then runs it as a routine on a narrow label with a small issue limit.
- Ends each night with a morning report: PRs ready for review, blocked issues, and failed attempts.
“Let the Bots do the work. Keep the merge button.”— Mori (@0xjmori), X (article)
Summary written by Agent Cookbook. See the original for the full context.
Read their guide
Made and published by Mori. Start here; it is their original, not ours.
Our adapted version
Ours Our condensed text version of Mori's steps. His exact prompts are in the guide above. Fill in the [BRACKETS].
Approval rule
Set it up
- Protect the default branch and require CI on PRs, so "never merge" is enforced outside the prompt.
- Connect GitHub and set up the coding agent's environment so tests run there.
- Run the flow by hand on one harmless bug and fix whatever was hard.
- Save it as a skill, run it on a second issue, then schedule the routine.
- Read the morning report and review the draft PRs yourself.
Common failures
- Two bots pick the same issue; the one-owner rule in the issue record has to be checked before dispatch.
- "Fixed, tests pass" with no evidence; require the reviewer's diff and test output as an artifact.
- Endless repair loops burn usage; keep the round limit low.
- The cloud machine gets rebuilt and loses installed tools; keep setup reproducible and code in git.
Variations
- Daytime mode: trigger on a label being added instead of a nightly schedule.
- Swap the builder for Claude Code or Codex CLI on the box.
- Tests-only shift: the same loop, but it only adds missing tests.
Get the 10 best agent setups. Free.
Plus new recipes every week. One email, no spam.
Unsubscribe anytime. Privacy