---
title: "Codex to Claude Code: what Claude reads from your Codex setup, and the files it skips"
description: "Move from Codex to Claude Code with /import, export your chat, share AGENTS.md, and check overrides, skills and permissions."
canonical_url: "https://factrove.app/blog/codex-to-claude-code/"
author: "Tom"
date: "2026-10-24"
---
# Codex to Claude Code: what Claude reads from your Codex setup, and the files it skips

Short answer: Claude Code can read `AGENTS.md` directly from v2.1.277. Its default project-instruction mode prefers `CLAUDE.md` files when present. `/import codex` copies the rest of your Codex setup: instruction files, MCP servers, commands, subagents and skills. Two things it skips on its own are the ones Codex users rely on: `AGENTS.override.md`, and anything under `.agents/`, which is where Codex keeps repo skills. The conversation is separate. Export it from Codex with `/export` and hand Claude the file.

The first thing I'd do: in Claude Code, run this and read what it finds before you let it write anything.

```text
/import codex --dry-run
```

Per the [Claude Code commands docs](https://code.claude.com/docs/en/commands), `--dry-run` previews the import without writing anything. It needs a setup where `/import` is available: the [commands docs](https://code.claude.com/docs/en/commands) say `/import` isn't available on Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry or Claude Platform on AWS, through a Claude apps gateway, or when feature-flag fetching is turned off.

## Before switching

Have both tools installed and signed in. Finish the outgoing agent's current turn and stop it editing. In its working directory, record:

```bash
pwd
git branch --show-current
git status --short
git log -1 --oneline
```

Use that same checkout in the receiving tool. For [another checkout or machine](https://factrove.app/blog/claude-code-to-codex-handoff/#what-carries-over-and-what-doesnt), transfer the intended code changes first—for example, commit reviewed changes on the task branch, push, then fetch and check out that commit on the other side. Transfer raw conversation exports separately. Confirm that the receiving agent can open the exact export path and sees the expected code state before continuing.

## Right now: bring the session across

Per [OpenAI's CLI slash command docs](https://learn.chatgpt.com/docs/developer-commands?surface=cli), `/export` exports the complete Codex conversation as Markdown. Wait for the current turn to finish, then in Codex:

```text
/export codex-session.md
```

Then in Claude Code:

```text
Read codex-session.md, an exported Codex conversation about this task.
Compare it with the current files and git status. List what's done, what's
half-done and what we decided, and flag anything in the chat the code doesn't
match. Then name the single next step. Don't change any files yet.
```

The Claude Code docs describe `/import` as bringing configuration across. The list is instruction files, MCP servers, commands, subagents and skills, and chats aren't on it. So the export is the way to carry the conversation, and the reconcile prompt is there because the chat says what was intended while the files say what happened. Keep the export out of git.

## What Claude Code reads from your Codex setup

Everything in this table comes from the [Claude Code memory docs](https://code.claude.com/docs/en/memory) and the [Codex AGENTS.md docs](https://learn.chatgpt.com/docs/agent-configuration/agents-md):

| In your Codex setup | In Claude Code |
| --- | --- |
| `AGENTS.md` | Read directly from v2.1.277, by default only when there's no `CLAUDE.md`, `.claude/CLAUDE.md` or `CLAUDE.local.md` in your working directory or above it. `@path` imports inside it are expanded |
| `AGENTS.override.md` | Not read |
| Repo skills in `.agents/skills` | Not read. The memory docs say Claude doesn't read anything under a `.agents/` directory. Claude's own skills live in `.claude/skills/` |
| Fallback names in `project_doc_fallback_filenames`, like a `TEAM_GUIDE.md` | That setting is Codex config. Claude doesn't know about it, so import the file from `CLAUDE.md` with `@TEAM_GUIDE.md` |
| MCP servers, commands, subagents, skills | Carried over by `/import codex` |
| The conversation | Not carried by `/import`. Use Codex's `/export` |

**The override file is the quiet one.** Codex checks each directory for `AGENTS.override.md` before `AGENTS.md` and takes at most one file per directory, so on a Codex team the override is what's actually in effect in that folder. Claude Code reads the `AGENTS.md` underneath it. If someone on your team uses overrides, Claude is following different instructions than Codex is, and nothing tells you. Compare the effective override with the base file before changing either. Consolidate the intended shared instructions into `AGENTS.md` and retire the corresponding `AGENTS.override.md` in the same change. If the override must remain, reconcile its effective instructions separately; editing only `AGENTS.md` will not change what Codex loads in that directory. Restart both tools and verify the intended rules.

**The `CLAUDE.local.md` trap** applies here too. The first time someone adds a personal `CLAUDE.local.md`, Claude stops reading `AGENTS.md` for them by default. The fix, and why I'd commit it rather than change a setting, is in [AGENTS.md vs CLAUDE.md](https://factrove.app/blog/agents-md-vs-claude-md/):

```markdown
@AGENTS.md

<!-- Claude-only notes below this line, if any -->
```

Save that as `CLAUDE.md` next to `AGENTS.md`, start a new session, run `/context` and check that `CLAUDE.md` appears under Memory files.

If `CLAUDE.md` is absent from Memory files, check `/config`. With Project instructions set to `managed-only`, ask your administrator to change that setting.

## /import codex is a copy, not a link

The memory docs say `/import` "appends a one-time copy of instruction files such as `AGENTS.md` to the matching `CLAUDE.md`". That's the right move for a person leaving Codex for good. On a team where some people stay on Codex, it gives you two copies of the same rules, and the next edit to `AGENTS.md` won't reach the copy.

So I split it:

1. **Instructions:** don't copy them. Use the one-line `@AGENTS.md` import above, so both tools read one file.
2. **MCP servers, subagents and commands:** let `/import codex` bring them over. Those are tool config with no shared file to point at.
3. **Skills:** inspect what `/import codex` created. On a mixed team, keep `.agents/skills/` as the maintained source and `.claude/skills/` as a generated copy. Copy complete skill directories, including scripts and resources. Repeat the sync whenever the source changes, and remove obsolete generated files until the directory diff is empty. Keep the Codex source directory while Codex users still need it.

For a skill named `review`, from the repository root:

```bash
mkdir -p .claude/skills/review
cp -R .agents/skills/review/. .claude/skills/review/
diff -ru .agents/skills/review .claude/skills/review
```

An empty diff confirms matching files. Then invoke the skill in each tool and check its behavior; matching files do not validate tool-specific settings or dependencies.

The docs describe `/import` as a one-time copy. They don't say a second run updates anything in place, and the instructions part appends, so a rerun can append the same rules again. If you do run it again, diff `CLAUDE.md` before you trust it.

The docs also say that if `/init` finds Codex configuration, it offers to carry it over with `/import`. Same rule: accept the MCP and skills part, keep the instructions as an import.

One thing that doesn't map at all: Codex [rules](https://learn.chatgpt.com/docs/agent-configuration/rules) are `.rules` files that control which commands Codex can run outside the sandbox. They're not instructions, and they're marked experimental. Nothing on the Claude Code `/import` list covers them, so set your approval rules in Claude Code with `/permissions` and check them yourself.

## The other direction, and the plans

If you're going from Claude Code to Codex instead, Codex has its own `/import` that also brings recent chats. That route and the `HANDOFF.md` template are in [Claude Code to Codex handoff](https://factrove.app/blog/claude-code-to-codex-handoff/).

**Plans and reports** carry over if Claude can open them. A file in the repo is the dependable case. A plan in HTML reads well for people and heavy for agents, so convert it or keep it in semantic tags, as in [HTML for humans, Markdown for agents](https://factrove.app/blog/html-for-humans-markdown-for-agents/). If the plan is a Claude Code artifact you now need to send the other way, [sharing a Claude Code artifact with a Codex teammate](https://factrove.app/blog/share-claude-code-artifact-with-codex-teammate/) covers the routes. For conversion limits, see [what survives HTML-to-Markdown conversion](https://factrove.app/blog/html-to-markdown-for-llm-what-survives/).

## Related migration guides

- [Claude Code to Cursor](https://factrove.app/blog/claude-code-to-cursor/)
- [Cursor to Codex](https://factrove.app/blog/cursor-to-codex/)

## Where Factrove fits

None of the steps above need Factrove. `/export` carries the conversation. A saved plan or review still needs a reachable file or URL, and exporting the chat does not give that artifact a stable address. The remaining handoff problem is keeping the current artifact discoverable for everyone who needs it.

That's the part Factrove is for. The idea is one ID per artifact, a page for people and Markdown for whichever agent picks the task up next, Codex or Claude Code. It's planned and not released, and CLI syntax may change. For now, keep the plan as a file in the repo and point `HANDOFF.md` at it.

---

*Factrove is not available yet; CLI and file formats aren't final. Read the [planned artifact workflow](https://factrove.app/#how), [join the waitlist](https://factrove.app/#access), or [follow @thetomweiss on X](https://x.com/thetomweiss) for build notes.*
