Claude Code

Write One AGENTS.md File So Codex Remembers Your Rules

Codex starts every session blank. One short file in your project folder fixes that. The command that writes it, what to put in it, how to patch a mistake, and the catch

2min read
1prompts to copy
5numbered steps
3sections

Codex, OpenAI's coding tool, forgets everything when you close it. So you end up typing the same rules every morning. A file called AGENTS.md is read before every job, so you write the rules once.

Here are the steps, a prompt to copy, and what to check.

Free, for your email

Get the full setup steps + the copy-paste setup prompt

The rest of this guide (3 more sections, 1 copy-paste prompt) opens right here. The setup prompt, one paste into Claude that sets it all up, comes by email only. Use your real address.

Unlocks: The steps · The catch · Sources

50,000+ follow where these guides come from. No spam, reply “unsubscribe” any time.

Read next