One config, two agents: Codex reviews, Claude executes
At some point I stopped configuring each AI tool separately and started treating them as a small team that shares one set of instructions. This post describes how I set that up, and why I split the work the way I do.
The setup lives in one project, Agent Config, which I also publish as an open-source template. The idea is simple: write down how I want AI to work once, and let every agent read it. If the word agent is new, What is inside an AI agent covers the vocabulary.
Write the instructions once
Every task starts with the same problem: the AI does not know my project. Agent Config answers that with a few plain files. AGENTS.md is the short, stable entry point: core rules, approval gates and where to look for more. CLAUDE.md is a thin bridge that imports it, so Claude Code and Codex follow the same rules. Anything longer, such as specs, domain context and coding conventions, lives in docs/ and is read only when a task needs it.
Keeping the entry point short matters. A long instruction file is read every time and competes with the task for the model’s attention. Short rules up front and detail on demand have worked better for me.
| File | What it holds |
|---|---|
| AGENTS.md | Shared rules, approval gates, and where to find skills and docs |
| CLAUDE.md | A bridge for Claude Code that imports AGENTS.md |
| .codex/skills, .claude/skills | One workflow per kind of task: spec, plan, implement, review, update docs |
| docs/ | Specs, domain context and engineering conventions, read only when relevant |
Give each agent one job
I split the work by what each agent is best placed to do for me. Codex writes the documentation and reviews code. Claude executes: it takes an approved plan and makes the change.
The reason is the review. When the same model writes and checks a change, it tends to agree with itself. A different model reading the diff has no stake in how it was written, so it questions things the author skipped over. Codex brings that outside view, while Claude, working inside the repository with its tools, does the hands-on part.
Both follow the same kind of skill. A review-diff or update-docs skill describes a workflow once, with what to read, what to check and what not to do, and the agent follows it instead of improvising each time.
Let schedules do the repetitive part
Some work comes back again and again: reviewing what changed, keeping documents in step with the code, repeating the same routine task. These are good candidates for automation. Claude can run tasks on a schedule, and Codex has automations that run in the background. I use both, each for the job it has.
A scheduled run reads the same config files as any other session. It also leaves something I can read: a review, an updated page, a short report. I do not need to watch it work, but I do read what it produced.
Keep the gates, and stay the reviewer
Automation raises the stakes of one question: what is the agent allowed to do without asking? The planning skill in Agent Config names the changes that need my approval first: schema, public API, auth, payment, secrets, infrastructure and dependencies. Everything else can proceed. Those wait for me.
That is the part of the setup I care about most. Two agents and a schedule can produce a lot of work. The config makes sure it arrives as something I can review, and the review stays with me.
If you want to try it, Agent Config is on GitHub and meant to be copied and bent to your own way of working. Start with the shared file, add one skill you actually use, and grow from there.
Working on something similar? Let's talk