Run a long Codex task in stages with agreed acceptance checks. Save the actual project state and next action after each stage, then compare those notes with the files when you resume.
Step 1. Define completion
Name the user’s result, not the time spent working. For example, a visitor fills out a sample form, entered text survives an error and one record appears after success. A document may have different criteria: all source facts are preserved, tables fit on the page and links open. Decide in advance how to check each property.
Record task boundaries: allowed files, environment, expenses, and external actions. Long work does not mean permission to publish, buy services, or expand access.
Step 2. Manage the stages
- Break the task into small, complete results: form interface, error handling, record saving, duplicate checking.
- Specify acceptance criteria and required checks for each stage. Proceed after fixing detected errors.
- After stage save actual state in
PROJECT_STATE.md, with conditions and results inCHECKS.md. These filenames are examples and do not activate a special Codex mode. - Before continuing, compare records with current files and latest decisions. Old records may lag behind results.
- Independent parts can be assigned separately if allowed. Agree on file ownership and merge order; avoid uncoordinated simultaneous edits.
- Before moving to another computer, check files, programs, and connections. Chat history does not replace synchronized project state.
Keep the result of each check: a report, command output or screenshot. A note saying "check later" is not evidence that it works.
Use the prompt at the end of this guide to ask Codex for a stage plan and completion criteria. To transfer the work, use state handoff through files.
Use existing state and check records; PROJECT_STATE.md and CHECKS.md are example names. Record available tools and limits on spending and retries. If a limit is reached, save unfinished work and the next step; reaching a limit does not mean success.
Step 3. How to resume after a break
Open the same folder and request to read status and checks. Use Project continuation instructions If verification requires an inaccessible account or device, record the exact limitation and next step; do not mark it successful.
To stop, save unfinished work and stop tasks created for it. The final report should show finished files, completed checks, and remaining conditions.
What you will have
The task has stages with clear checks, with its state and next step saved for continuation.
Next: How to continue work in Codex in a new chat..
Prompt for Codex
Paste into your project chat:
Find the source data in the available project and conversation and fill in the bracketed fields yourself. Ask me about any unknown goals, preferences or sources; do not invent them.
Complete this task: [task]. Agree on what finished means and divide the work into small stages with clear checks. Complete them in order, show each result and fix errors. Save the project state and next step so the work can resume after a break.