This repository is a starter scaffold inspired by OpenAI's article "Run long horizon tasks with Codex" (published February 23, 2026).
It sets up the same four-file operating system for long-running agent tasks:
Prompt.md— project spec and definition of donePlan.md— milestone plan with acceptance criteriaImplement.md— execution runbook for the agentDocumentation.md— live status log and decision journal
- Copy this repo for a new project.
- Fill in
Prompt.mdfirst (goals, constraints, deliverables). - Break work into milestones in
Plan.md. - Keep
Implement.mdas the behavior contract for Codex. - Start a task and keep
Documentation.mdupdated as work progresses.
Read Prompt.md as the full project spec.
Generate and maintain a milestone-based plan in Plan.md.
Execute work by following Implement.md.
After each milestone, run validation commands and fix failures before moving on.
Continuously update Documentation.md with status, decisions, and next steps.
Do not expand scope beyond Prompt.md without explicitly logging and requesting approval.
.
├── Prompt.md
├── Plan.md
├── Implement.md
├── Documentation.md
├── commands/
│ └── verify.sh
└── .github/
└── pull_request_template.md
Use the provided script as your baseline quality gate:
bash commands/verify.shCustomize it to your tech stack (npm, pytest, go test, etc.).