Give Codex a clear outcome, acceptance criteria and boundaries for changes. Keep permanent rules in AGENTS.md, and record task progress and completed checks separately.
You ask Codex to fix a form. It changes the styles, updates dependencies and rebuilds the navigation. You now have to check half the site for a task that concerned one screen.
Record task boundaries before work starts. I begin with three things: what should change, how I will accept the result and which neighboring parts of the project must not be affected. The agent then needs to read the code and check its work.
How to describe a task to Codex
"Make the form better" leaves too many options. In the example, we use an application form: name, email, and message. The requirement can be stated as: empty name is not submitted, invalid email triggers a clear error, after successful request the person sees confirmation. If the network is unavailable, entered text is saved.
These conditions show whether the task is completed. Design remains a separate solution. If it is already satisfactory, state this directly and attach the current screen.
Before editing an existing project, ask Codex to read its rules and find the form handler. Check any filename the agent recalls against the working copy. The plan remains a hypothesis until the code has been read.
Agree on the concept and website pages
This is convenient before changing authorization, database, or multiple related screens. For typo fix, the whole process is excessive.
Project rules and task status
Write and verify an AGENTS.md file
Use AGENTS.md for permanent rules: where the main parts of the project are, which command checks the build, and what counts as finished work. Codex reads general rules, then project rules and the folder it works in. If the same folder contains AGENTS.override.md, Codex uses it instead of AGENTS.md. If rules changed during work, ask Codex to reread them. Do not assume the open chat already received changes. This behavior is described in AGENTS.md documentation.
Today's error list is better kept separately. It changes after each fix and quickly clutters permanent instructions.
For a long task, create two text files with .md extension. This format is called Markdown. It can be opened with a regular editor or in Obsidian:
| File | What to store in it |
|---|---|
PROJECT_STATE.md |
Goal, constraints, decisions made, current stage, and next action. |
CHECKS.md |
What was checked, by what method, on which version, and with what result |
These are suggested names, not special Codex commands. To have the agent use files, ask it to read them. They do not enable search across all Obsidian or automatic sync between computers.
Carry task progress through files
After a break, ask to verify records with the project.
Prompt: Continue with saved files
Check the result as a user
Successful build means the project was built. For the form, other evidence is needed: wrong address rejected, successful request shows confirmation, network error does not erase message. These results must be separated in the report.
For a document, a similar difference: the file exists, but links may lead elsewhere, the table may contain errors, and the output may not follow from the source. Each task has its own acceptance method.
Check the site as a real visitor would
Save the result so that the check can be repeated. The phrase 'everything works' without specifying the verified scenario is not acceptable.
Sources behind the approach
The ideas for defining requirements and saving state combine the cards Discuss a website idea and write a brief with Codex and “Transfer task state through files”. The research library retains posts by andrei_samburau and maksim.rbkn; the chapter itself was written independently. These four prompts need no additional skill.
Idea sources: andrei_samburau, state preservation, maksim.rbkn, working context. Practical status of each observation is stored in the research card.
Delegate with clear boundaries
If independent verification is needed, give a second participant the requirements and first result. Specify what they check and forbid changing the same files simultaneously. For a small fix, a separate agent may only increase cost.