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 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:
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_runwith the same name on each run. Pass itsrun_idto every subsequent call that supports it, including email checks,add_run_noteandfinish_run.create_addresswithpassword: truereturns a generated password once and saves it.form_valuesmaps form fields; Proxy Mail QA does not submit them. - Tie each email to its action. Capture
sinceimmediately before every submission. If available, callmark_submittedbefore submitting and use itssubmitted_atwithwait_for_codeorwait_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_emailreports SPF, DKIM, DMARC, insecure/localhost links, host viaexpect_hostand 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 filtercount_emailsby the correcttype,subtypeand/orcategoryand 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.
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.
Sources
Reviewed 4 Dec 2026: Claude Code memory, commands; Proxy Mail QA Claude Code setup, MCP, flow checks, CI.