---
title: "Switching from Codex to Claude Code: retest sign-up · Proxy Mail QA"
description: "An old CLAUDE.md can stop Claude Code reading your AGENTS.md. Sort out which instructions load first, then retest sign-up and password reset."
url: https://proxymail.qa/switching/codex-to-claude-code
---

1. [Home](https://proxymail.qa/)
2. [Switching tools](https://proxymail.qa/switching)

# Switching from Codex to Claude Code: retest sign-up

Moving a repository from Codex to Claude Code can feel familiar: another coding agent, the same files and test commands. Familiar commands don’t mean identical instruction loading.

Updated 4 December 2026

**Disclosure:** We make Proxy Mail QA. We recommend it narrowly for disposable test accounts, real verification and reset emails, and repeatable evidence. It neither migrates code, auth or users nor guarantees security.

Claude Code here means the coding agent, not Claude chat. Changing tools alone does not alter deployed auth. Missing rules, different environments and the first auth-relevant edit can. Use the [shared switching checklist](https://proxymail.qa/solve/switching-ai-coding-tools-retest-sign-up) to separate existing failures from regressions.

## Resolve instruction precedence first

Claude Code reads `CLAUDE.md` and `.claude/rules/*.md`. From version 2.1.277, it reads `AGENTS.md` only when no `CLAUDE.md` or `CLAUDE.local.md` exists in the working directory or ancestors. If both exist, `CLAUDE.md` wins by default. Include `@AGENTS.md` in `CLAUDE.md`, or select `claude-md-and-agents-md` under **/config → Project instructions**, to read both.

That matters when a repository already has an old `CLAUDE.md`: the current Codex auth contract may otherwise be missed. Claude Code does not read `AGENTS.override.md`. Review its requirements explicitly, including any directory-specific exceptions.

Preview `/import codex --dry-run` if you want an import. It makes one-time copies into `CLAUDE.md`, not a synchronised instruction system. Review the diff without overwriting existing rules. Keep one clear auth contract in `CLAUDE.md` or an explicitly included shared root `AGENTS.md`.

Use `/memory` and the Memory files section of `/context all` to confirm what loaded. Ask the agent to identify conflicting instructions before changing code.

## Reconnect without changing the environment

Keep the auth provider, test commands and staging configuration. Compare environment variable names and callback settings, not secret values. Existing CI tests do not change because the coding agent changes.

Add Proxy Mail QA in Claude Code:

Terminal

```sh
claude mcp add --transport http proxymail-qa https://api.proxymail.qa/mcp

```

Use **/mcp → proxymail-qa → Authenticate**, sign in through the browser and choose the baseline’s project. Authenticate an imported server if present; don’t add a duplicate. OAuth access is project-scoped and cannot reveal previously saved passwords. Use fresh accounts or a person’s explicit reveal.

The agent needs its own browser or simulator. An MCP connection does not provide one. Outside localhost, Claude isn’t allowed to create accounts without your input; if staging browser access is unavailable, ask Claude Code to write Playwright or Cypress tests for a person or CI to execute.

## Run a behaviour contract

Before leaving Codex, baseline the approved staging or local app. Repeat after Claude Code’s first auth-relevant edit. Use new addresses and a clean browser for both, recording revision, environment and expected token behaviour.

- **Start with a genuinely new user.** Call `start_run` with the same name on each run. Pass its `run_id` to every subsequent call that supports it, including email checks, `add_run_note` and `finish_run`. `create_address` with `password: true` returns a generated password once and saves it. `form_values` maps form fields; Proxy Mail QA does not submit them.
- **Tie each email to its action.** Capture `since` immediately before every submission. If available, call `mark_submitted` before submitting and use its `submitted_at` with `wait_for_code` or `wait_for_link`. Marking afterwards can miss fast mail.
- **Finish sign-up in the app.** Check unverified restricted access where required, complete verification, reload, sign out and sign back in. A successful HTTP response or arriving email is insufficient.
- **Exercise reset state.** Reset the test account’s password; the new one must work, the old one fail and a used reset link be rejected. For verification resend, use a separate still-unverified account; for reset replacement, use a separate reset case. Leave link A unused, request B, check A against the documented replacement policy and verify B completes the intended action. If A may remain valid, test B in an independent equivalent case so consuming A cannot invalidate B. An already-used link cannot prove replacement invalidation. Test invitations if supported; disclose skipped checks and long expiry tests.
- **Inspect the email separately.** `check_email` reports SPF, DKIM, DMARC, insecure/localhost links, host via `expect_host` and stated expiry. Check an approved provider action host and the final app destination rather than blindly expecting the app host. Observe a declared duplicate window, then filter `count_emails` by the correct `type`, `subtype` and/or `category` and time window. Welcome and verification emails are different messages.

Record browser outcomes with `add_run_note`. For failed browser assertions, set `failed: true` (`false` by default); “failed” in prose alone leaves the run green. Record skipped checks separately with reasons, not as passes or assertion failures. Pass `run_id` to `finish_run` to compare recent same-named runs, including failures rather than only successful steps.

## A prompt to copy

Copy the preceding checklist together with this prompt and supply the authorised staging target.

Prompt

```text
Use the supplied checklist; ask for it if missing.
Audit instruction loading before editing: identify CLAUDE.md, AGENTS.md
and any Codex overrides whose requirements need explicit handoff.
Explain the auth contract and conflicts. Preserve CI and the provider.
Run the checklist above before changes, then after the first auth edit,
using fresh accounts, a clean browser and the same run name.
Pass start_run's run_id to every call that supports it, including email
checks, add_run_note and finish_run. For failed browser assertions, use
add_run_note with failed: true (default false); 'failed' in prose alone
leaves the run green. Record skips with reasons, not as passes or failures.
If staging cannot be driven, write tests for a person or CI;
do not claim they have run.

```

## Limits and cleanup

The email provider must deliver externally. `check_delivery` offers receipt evidence and likely causes, not provider logs. MCP tools never open links or return email bodies. These checks prove neither server-enforced expiry nor Gmail inbox placement; they are not a security scanner or certification. SMS, social login, KYC and payments need separate coverage. Never test production or real accounts, disable confirmation or reset the owner’s password.

Keep `PROXYMAIL_QA_API_KEY` in CI secrets with a separate project/key. No raw keys or tokens belong in repositories, prompts or reports. Delete exact app test users separately from inboxes. Revoke the old Codex connection under **Project settings → API keys** only when no longer needed.

For the opposite handoff, see [Claude Code to Codex](https://proxymail.qa/switching/claude-code-to-codex).

## Sources

Reviewed 4 Dec 2026: [Claude Code memory](https://code.claude.com/docs/en/memory), [commands](https://code.claude.com/docs/en/commands); Proxy Mail QA [Claude Code setup](https://proxymail.qa/built-with/claude-code), [MCP](https://proxymail.qa/docs/mcp), [flow checks](https://proxymail.qa/docs/flow-checks), [CI](https://proxymail.qa/docs/ci).

## Try it on your next sign-up test

Free plan, no credit card. Create an address and watch the code or link arrive.

[Create a free account](https://app.proxymail.qa/?mode=signup&from=site-switching-codex-to-claude-code)

## Related guides

- [Claude Code to Codex](https://proxymail.qa/switching/claude-code-to-codex): Check what Codex imported from Claude Code, then compare sign-up before and after.
- [Codex to Cursor](https://proxymail.qa/switching/codex-to-cursor): Find the Codex instructions Cursor won’t read, move them, then retest sign-up.
- [Codex to Qoder](https://proxymail.qa/switching/codex-to-qoder): Find the Codex rules that AGENTS.md alone doesn’t carry into Qoder, then retest sign-up.
- [Codex to Antigravity](https://proxymail.qa/switching/codex-to-antigravity): Keep your Codex instructions and test commands when you open the project in Antigravity.

[See every email testing problem we solve](https://proxymail.qa/solve)

Codex is a product of OpenAI. OpenAI, Codex, ChatGPT and the OpenAI logo are OpenAI’s trademarks. Claude Code is a product of Anthropic. Proxy Mail QA is independent and isn’t affiliated with or endorsed by them.
