Angel Espinoza

One line, two assistants

Recently I started using Codex alongside Claude Code on the same project, a cloverleaf interchange plugin for Civil 3D. Two assistants, one set of code. Which one gets the rules?

Each tool looks for its own instruction file. Claude Code reads CLAUDE.md. Codex reads AGENTS.md. Same idea, different name.

Where I heard it

The answer came from the Leveraging AI podcast, hosted by Isar Meitis. The idea is simple: do not write your instructions twice. Keep them in one file, and give the other file a single line that points to it.

That was exactly my situation. My CLAUDE.md already held everything that matters on that project: how to build it, how the code is laid out, and the rule that every drawing change happens in one step so a single Undo takes it all back. Writing all of that again for a second assistant meant two copies, and two copies drift.

One line

So the file for Codex on that project has one line in it: Read Claude.md.

That is the whole setup. Codex follows the pointer and works from the same rules Claude Code does. When I change a rule, I change it once.

Does it matter which direction the pointer goes? Not much. Pick the file that already holds the most, and point the other one at it. If AGENTS.md is your main file, Claude Code can pull it in with an import line, @AGENTS.md, at the top of CLAUDE.md.

What a pointer does not carry

One thing to keep in mind. Across my workspace, some rules do not live in CLAUDE.md at all. They live in a rules folder and a personal settings file that only Claude Code knows about. Codex follows the pointer to one file and stops there. Anything that matters to both assistants belongs in the file they share.

Why bother with two?

Because you are not locked in. The instructions are plain text in your project, not settings buried inside one product. Any assistant that can read a file can be pointed at them.

Thanks to Isar for the tip. It saved me from maintaining the same document twice.

Be Better - Write it once, point to it everywhere.