- Project instructions:
AGENTS.md - Reusable workflows:
$skillsin.agents/skills/ - IDE slash commands:
/cloud,/local,/review,/status - Modes:
Chat,Agent,Agent (Full Access) - Strong local-to-cloud handoff across IDE, CLI, web, and GitHub
Short version
The difference in one paragraph
Use Codex when you want a ChatGPT-connected coding agent that moves naturally between local IDE work, cloud tasks, GitHub-style delegation, explicit reasoning effort, and an OpenAI-style skills/plugins ecosystem. Use Claude Code when you prefer Anthropic's Claude models, its mature .claude workflow, rich slash-command tradition, detailed permission modes, auto memory, and a VS Code extension that emphasizes plan review and checkpoints.
- Project memory:
CLAUDE.md, auto memory, and rules - Reusable workflows:
/skillsand legacy custom commands - Built-in slash commands include
/init,/memory,/permissions,/compact - Permission modes:
default,acceptEdits,plan,bypassPermissions - Deep VS Code interface with plan review, checkpoints, tabs, terminal context, and MCP
Core differences
The parts that change your day-to-day use
$robustness, or let Codex choose one when the skill description matches. Skills usually live in .agents/skills/ or ~/.agents/skills/./robustness, and live in .claude/skills/. Existing .claude/commands/ files keep working.Chat, Agent, and Agent (Full Access). The default agent mode can edit and run commands in the working directory, while asking before network or outside-directory work.codex_hooks feature flag in config.toml.For research work
What the differences mean for economists
Empirical projects
Both tools can help clean data, run scripts, debug regressions, and write tables. The crucial setup is the same: open the whole folder, keep raw data protected, and store project conventions in a persistent instruction file.
Private data
Use local workflows for restricted data. Codex's cloud handoff is convenient for general code tasks, but administrative or confidential data usually belongs in local-only workflows with explicit approvals.
Co-author consistency
Codex favors AGENTS.md; Claude Code favors CLAUDE.md. If a team uses both, keep a shared source of truth and mirror the important parts into both files.
Repeatable checks
A robustness checklist becomes $robustness in Codex and /robustness in Claude Code. The instruction content can be nearly identical, but the folder paths and invocation syntax differ.
Long-running refactors
Codex is especially natural when you want to delegate a larger codebase task to the cloud or parallelize with explicit subagents. Claude Code is especially natural when you want tight local review with rich permission modes.
Writing and LaTeX
Both are useful for prose, notation, tables, and bibliography fixes. Put writing preferences in project instructions, and keep source files in markdown or LaTeX rather than asking the agent to infer from PDFs.
Choice
Which one should you use?
Codex is the better fit when...
- Your workflow already lives in ChatGPT or OpenAI accounts.
- You want a strong local-to-cloud path for larger coding tasks.
- You prefer
AGENTS.mdand OpenAI-style skills/plugins. - You want explicit reasoning-effort controls in the IDE.
- You expect to use Codex from IDE, CLI, web, GitHub, and mobile-style surfaces.
Claude Code is the better fit when...
- Your workflow already uses Anthropic accounts or Claude subscriptions.
- You want a very mature VS Code interface with plan review and checkpoints.
- Your team already has
CLAUDE.md,.claude/skills/, or.claude/commands/. - You want detailed permission modes and rules as part of the everyday workflow.
- You like custom slash commands and a large command surface inside the agent chat.
Migration
If you are moving a guide from Claude Code to Codex
The conceptual pieces transfer well, but the file names and invocation style change.
Project memory
Move the durable project context from CLAUDE.md into AGENTS.md. Keep facts, not chatty prose: data location, sample definitions, script order, table destinations, and what not to edit.
# Claude Code
CLAUDE.md
# Codex
AGENTS.md
Reusable workflows
Convert Claude slash skills into Codex skills. The core instructions can stay similar, but the Codex directory and invocation syntax change.
# Claude Code
.claude/skills/robustness/SKILL.md
/robustness
# Codex
.agents/skills/robustness/SKILL.md
$robustness
Permissions
Translate Claude's detailed permission-mode discussion into Codex's simpler IDE modes: Chat for advice, Agent for ordinary local work, and Agent (Full Access) only when you deliberately want broad autonomy.
Commands
Do not map every Claude slash command one-to-one. Codex IDE slash commands are mostly session controls. Put reusable research procedures into skills instead.
Sources
Official docs used
These details change quickly. This page was written from official docs checked on May 12, 2026.
- OpenAI: Codex IDE extension, IDE features, IDE slash commands, AGENTS.md, skills, Codex web/cloud, subagents, and hooks.
- Anthropic: Claude Code overview, VS Code integration, memory and CLAUDE.md, skills and commands, permissions, permission modes, subagents, and hooks.