Convert CLAUDE.md to AGENTS.md

Convert CLAUDE.md to AGENTS.md without losing your skills and memories

Copying CLAUDE.md to AGENTS.md moves the one file you can see. It silently leaves behind the parts you can't — skills, memories, and per-project rules that made your Claude Code agent behave the way it does.

You can do this by hand for free, and this guide shows the exact steps. It also shows the one free command that dry-runs the whole move before you change a single file.

Why a rename isn't a migration

Claude Code spreads its configuration across several places: CLAUDE.md rules, ~/.claude/skills/, memory files, and per-project .claude/ settings and hooks. Codex reads a single AGENTS.md at the repository root. A copy-and-rename carries the top-level rules and drops everything without a one-to-one slot — skills, memories, and hooks have to be mapped and flattened, not moved.

Option A — do it by hand (free)

It works, and it's genuinely free. The catch is that it's error-prone, it doesn't tell you up front what won't map cleanly, and you repeat it every time your source config changes.

Option B — preview the whole move for free

Install the CLI and dry-run the conversion. preview requires no license and changes nothing on disk:

curl -fsSL https://bringyour.ai/install.sh | sh
bringyour preview --from claude-code --to codex

It reports whether the move is supported and confirms, in its own words, Move supported: yes and Original files will not be changed. Check your environment the same way — also license-free — with bringyour doctor, which lists the harnesses it detects and nothing else. Even if you never pay, previewing first de-risks the manual path: you go in knowing the move is supported and your files are safe.

Option C — apply it in one command (paid)

Once the preview looks right, one command reads Claude Code and writes AGENTS.md into your repo. Use --policy merge so it keeps your existing files and only writes new ones:

bringyour migrate --from claude-code --to codex --policy merge

Before writing anything, migrate records a rollback snapshot under .portable/rollback/, then converts. Prefer the explicit two-step? Export a portable bundle, import it, then verify:

bringyour export --from claude-code --out my-agent.json
bringyour import --to codex --in my-agent.json --root .
bringyour verify --root .

verify reads the portable-manifest.json written on import and reports what passed, what failed, and which behavioral checks defer to the agent's first session. migrate, export, import, and verify are covered by the one-time lifetime license; preview and doctor are always free.

What actually gets migrated

Carried overYour CLAUDE.md rules and mission become the repo-root AGENTS.md.
Mapped, with notesSkills flatten into AGENTS.md prose; memories are written to Codex memories and mirrored inside AGENTS.md; settings that don't port are summarized in CLAUDE-SETTINGS-NOT-PORTED.md.

Hooks and MCP servers can't be represented one-to-one in AGENTS.md — the converter wraps or documents them and records the non-equivalent pieces as validation notes, rather than pretending they ported cleanly. That honesty is the point: you see exactly what to check before you trust the imported setup.

Founding price: $19 for the first 10 buyers, one-time — no subscription. It rises to $29, then $49 as the founding and early slots fill.
Buy lifetime access AGENTS.md vs CLAUDE.md Claude Code → Codex
Related: AGENTS.md vs CLAUDE.md · Codex import checklist · how Bring Your AI works.
← back to bringyour.ai