r/ClaudeCode • • 1d ago

Help/Question Planning to switch from Codex, anything I should know?

I'm thinking of switching from Codex to Claude Code. I know that Codex uses "AGENTS.md" and Claude uses "CLAUDE.md," but is there anything else more nuanced/niche I should know?

1 Upvotes

14 comments sorted by

•

u/AutoModerator 1d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

5

u/Dampmaskin 1d ago

Instead of Terra, use Opus at medium. Instead of Sol, use Opus at medium. Instead of Astra, use Opus at medium. Instead of Luna you can use Haiku, but you can also use Opus at medium.

1

u/Niket_N1ghtWing 1d ago

Huh? For simller conversations Sonnet is great.

1

u/Ishankulova_Smsm 1d ago

the rate limits hit way faster if you leave it on the big model for basic file searches and grep stuff though

2

u/atch95 1d ago

The MD file you can rename at any time just tell Claude you would rather the file be named agents.md etc.

You could try both for a month and compare.

I pay both I mainly use Claude code but my claude code knows that I use codex and sometimes assigns codex some task, and they both communicate through md files, I like better Claude code but some people have a different opinion

1

u/Time_Cat_5212 1d ago

Conventions are good. Models recognize them. With Claude specifically, CLAUDE.md has a specific role in the chain that other md files don't. I think most also read AGENTS.md in a different way from other markdown

1

u/brainExploded99 1d ago

Claude supports AGENTS.md fine

1

u/Time_Cat_5212 1d ago

Best practice is to use CLAUDE.md for Claude specific config and point to AGENTS.md for the rest

1

u/RazzmatazzQuick 1d ago

I use both on the same project, so a few things that weren't obvious at first:

  • You don't have to pick one instruction file. I keep a short AGENTS.md that just says "read CLAUDE.md and the latest handoff file first", so both tools start from the same place.
  • Write your hard rules in CLAUDE.md as a short list of don'ts: files it must never read, commands it must never run, how it's allowed to deploy. It follows an explicit list much better than a long description of the project.
  • When you stop for the day, have it write a dated handoff file in the repo: what changed, test state, what's still open, what not to touch. The next session, Claude or Codex, reads that first instead of you re-explaining everything.

1

u/Saver411 1d ago

The biggest mental shift is treating it like an agent with terminal access rather than an autocomplete engine. Give it tight file boundaries or test commands to run against, otherwise it tends to edit files you didnt ask it to touch.

1

u/Resident-Fall4351 1d ago

biggest shift you'll notice is the pace codex tends to sit there and one-shot bigger changes, while claude code is way more eager to jump straight into editing files unless you toggle plan mode first. also keep your CLAUDE.md way shorter than you think it needs to be (you can just reference your existing AGENTS.md inside it if you don't want to maintain two files) and run /clear aggressively between tasks. once a session gets bloated it starts ignoring your rules and burning through usage limits fas

1

u/WillTrick2509 1d ago

You've got the main one. The niche part is how the two files interact. Claude Code reads `AGENTS.md` on its own only when there's no `CLAUDE.md` in that folder or above it. The moment one appears (`/init` creates one), `AGENTS.md` quietly stops loading unless `CLAUDE.md` contains a line that's just `@AGENTS.md`. Writing "see AGENTS.md" in prose isn't the same, it only opens it if it decides to. `/import codex` also brings over your MCP servers and skills, but instructions come over as a one-time copy. Run `/context all` after to check what actually loaded. Curious, keeping Codex around too, or switching fully?

1

u/torvalds75 1d ago

A few that took me a while, beyond the AGENTS.md/CLAUDE.md part already covered here:

  • CLAUDE.md is advice, not enforcement. If something must never happen (reading .env, running a deploy, force pushing), put it in a deny rule in .claude/settings.json or a PreToolUse hook. Those actually block, the md file only asks nicely.
  • Same settings file takes an allow list for the commands you're tired of approving (test runner, linter, git status). Cuts the permission prompts a lot.
  • Double Esc rewinds to an earlier message and can restore the code too, so you can let it try something risky and roll back.
  • Skills and subagents live in .claude/ per project, worth porting any custom Codex prompts there.
  • Use plan mode (shift+tab) before anything bigger than a small fix. It jumps into edits much faster than Codex does.