A small template for building software with an AI coding agent while keeping a human in charge of review. One scoped prompt, one branch, one pull request at a time.
A solo developer, or a small team, directing a coding agent and wanting each change to be reviewable, reversible and documented.
This template comes from a solo commercial game project built with AI coding agents (title withheld): 412 commits, 44 merged pull requests and about 2,800 automated tests, all through this loop. Read the case study.
idea -> design call (ledger) -> build prompt (docs/prompts/<batch>.md)
-> agent works on claude/<batch>, one commit per prompt section, pushing each
-> agent writes a report, opens a PR into main, stops
-> human reviews and tests
-> merge to main -> next batch starts from updated main
mainis the last reviewed build. Nothing lands there except through a reviewed PR.- One batch at a time. Parallel batches from one base collide in shared docs.
- Prompt sections are commit steps, each revertable on its own.
- Every decision goes in a ledger with a "reopen if" condition.
- Tests and a seeded sweep script are part of the batch, not extras.
- The agent stops after opening the PR. It does not start the next prompt.
- Every report says what was seen running, what only tests cover, and what was not verified.
| File | Purpose |
|---|---|
docs/prompts/README.md, example-build-prompt.md |
How to write a prompt, and a full example |
docs/CODE_GUIDE.md |
The agent's standing instructions (fill in) |
docs/BRANCHING.md |
Branch and merge rules |
docs/DECISION_LEDGER.md |
Design calls with reopen conditions |
docs/LAB_REPORT_TEMPLATE.md |
The report an agent writes at the end of a batch |
.github/pull_request_template.md, CHANGELOG.md |
PR and release records |
- Copy these files into your repo.
- Write your own conventions in
docs/CODE_GUIDE.md. - Copy
docs/prompts/example-build-prompt.md, rename it to your batch, and fill it in. - Point your agent at the prompt and your code guide.
- Review the PR using
.github/pull_request_template.md, then merge.
MIT, see LICENSE.