Ordinary text files in the project folder work for this. Here we use PROJECT_STATE.md for state and CHECKS.md for test results. These names are chosen for convenience and do not activate a special Codex mode.
Use the existing project state and check log if your project already has them. PROJECT_STATE.md and CHECKS.md are example names; you do not need a second set of memory files.
Step 1. What to save before finishing work
Record goal, current solutions, unfinished actions, and next step. Separate "discussed," "done," and "verified."
For example: name and message fields are implemented and checked locally; request delivery is still missing. Next, connect delivery and verify it.
Step 2. How to start a new Codex chat
Select the same project folder and use Prompt: Continue with saved files. Ask to read records, check current files, and name the next action.
If the state file says the phone field is not yet added but the code already has it, first analyze the discrepancy. Old records should not make the agent repeat done work.
Step 3. How to verify context restoration
Compare the named goal, constraints, and next step with the project. The agent must explain which files it relies on. The discussed function should not appear in the ready list without implementation.
For a small check give Codex a link to training continuation project. Ask to download and unpack it into a separate folder, read README, and verify records with files without changes or connections. The example intentionally leaves an outdated item: "add phone," although the field already exists in code. The correct answer will note the discrepancy and not add the field a second time.
The kit tests check its sample code. Check context recovery through the new chat’s answer and its comparison with project files.
What you will have
The new chat understands the project state and continues the next step without repeating completed work.
Next: How to bring a long task in Codex to completion.
Prompt for Codex
Paste into your project chat:
Continue the project in this folder. Read the existing project state and check log; if missing, propose PROJECT_STATE.md and CHECKS.md and compare them with the current files. State the goal, completed work, checked results and next step. Resolve stale notes before continuing. Complete the next agreed step and update the project state.