# claude code + codex on the same repo, how do you keep them from stepping on each other? — retained record

> Retained reddit record from reddit:ClaudeAI.

Canonical: https://highsignal.app/data/records/713cc613e9044146

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:ClaudeAI)  published 2026-10-20 13:24 ingested 2026-10-21 02:36

[original source ↗](https://www.reddit.com/r/ClaudeAI/comments/1xas2n9/claude_code_codex_on_the_same_repo_how_do_you/)

## retained text



```
I run both on the same projects, claude code in the desktop app and codex in the terminal, depends on the task. what helped so far is one instructions file. AGENTS.md is the real one and CLAUDE.md just imports it, so they both follow the same rules. plus a shared memory they read at the start of a task and write to at the end, only durable stuff, tagged with which agent wrote it.

the part I haven't solved is both of them touching the same files. right now it's just me being careful and letting only one of them write to a given area at a time. how do you handle it, separate worktrees? or is one instructions file for both a bad idea and I just haven't hit the problem yet
```



document fetched 2026-10-21 00:22 · canonical https://reddit.com/r/ClaudeAI/comments/1xas2n9/claude_code_codex_on_the_same_repo_how_do_you
