We make Proxy Mail QA. Our recommendation is narrow: use disposable accounts, real authentication emails and recorded results to check the handoff. Proxy Mail QA does not move your code, auth service or users, and it does not secure the whole app.
Compare the app before handoff and after the first auth-related change.
Import context without importing assumptions
Codex is a CLI, IDE or cloud coding agent, not ordinary ChatGPT chat. Keep the existing repository, auth provider, environment and tests; do not replace working authentication.
In the Codex CLI, run /import and choose Claude Code. The desktop route is Settings → Import, or Settings → General → Import other agent setup in ChatGPT. Import can bring over instructions (into AGENTS.md), and separately MCP configuration, skills, hooks, plugins, subagents and Claude project memories.
Before accepting the result, separate three things:
- Project decisions: provider, required verification state, redirect allowlist, sender and token replacement policy. Check imported memories against current code; an old workaround is not necessarily today’s requirement.
- Execution restrictions: production access, permitted commands and credential handling. A copied hook or permission description does not prove equivalent enforcement. Review auth and tool restrictions in Codex.
- Working notes: a previous successful sign-in or an account described as “verified”. These are not evidence for a new build or a fresh user.
Codex chooses AGENTS.override.md, then AGENTS.md, one per directory from repository root to working directory, with a 32 KiB combined default limit. Personal instructions use ~/.codex/AGENTS.md, overridden by ~/.codex/AGENTS.override.md. CLAUDE.md is not read by default. You can configure project_doc_fallback_filenames in ~/.codex/config.toml, but a CLAUDE.md fallback applies only when that directory has no AGENTS instruction file. Do not leave critical restrictions solely in an ignored file.
Reconnect the existing test project
If the imported MCP server already exists, authenticate it rather than adding a duplicate. Otherwise:
codex mcp add proxymail-qa --url https://api.proxymail.qa/mcp
If no browser opens, run codex mcp login proxymail-qa. Choose the same Proxy Mail QA project used for the baseline. CLI and IDE share configuration; the IDE extension does not support plugins.
Unattended cloud tasks need your own scoped API key stored as a secret; interactive OAuth cannot complete unattended. Run the app somewhere the test runner can reach. A cloud task’s localhost is not your laptop’s localhost, and a repository checkout is not a running staging service.
Turn remembered success into a repeatable baseline
Before switching, test authorised local or staging apps, never production. Record revision, environment and policy. Use a stable start_run name. Pass its run_id to every subsequent call that supports it, including email checks, add_run_note and finish_run. Repeat after Codex’s first auth-related change with a fresh account and browser session.
create_address with password: true, or form_values, supplies an inbox, persona and password. Your browser, agent or runner submits. Record since immediately before each submit, using mark_submitted if available. Pass its timestamp to wait_for_code or wait_for_link, advancing it for resend and reset.
| Check | Evidence to record |
|---|---|
| Fresh sign-up | If policy requires verification, protected access is denied before it. Verify, reload, then sign out and sign in. |
| Destination | Check the approved provider action host, where applicable, and the final app destination. Do not require a provider-hosted outer link to use the app’s host. |
| Password reset | The old password fails and the new password works. Never reset the owner’s password. |
| Used link | Retry it in a clean browser context; it must not grant fresh access. |
| Replacement | Test separately from consumed-link reuse. Use either a verification resend on a still-unverified account or a separate reset case; one is enough. Leave A unused, request B, check A against the agreed 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. |
| Invite and expiry | Test invitations if supported. Mark server expiry skipped unless you actually wait and try an unused expired link. |
Use check_email for SPF, DKIM, DMARC, link hosts with expect_host, expiry wording and plain text. Filter count_emails by type, subtype and/or category within a measured window; welcome mail is not duplicate verification. Add 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. finish_run returns a report and compares recent same-name runs.
A first Codex prompt
Copy the preceding checklist together with this prompt and supply the authorised staging target.
Use the supplied checklist; ask for it if missing.
Compare imported Claude instructions and memories with current auth code.
List conflicts without changing the provider or weakening verification.
After one reviewed auth change, repeat the baseline on staging with new
accounts and clean sessions. Record browser outcomes and email checks.
Test consumed-link reuse separately from replacement. For replacement,
use a still-unverified account for resend or a separate reset case: leave
A unused, request B, check A against policy and prove B completes the action.
If A may remain valid, prove B in an independent equivalent case so
consuming A cannot invalidate B.
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.
Never disable verification to make a test pass.
Limits and retirement
MCP provides no email bodies and opens no links. These checks exclude SMS, social auth, KYC, payments and a security audit. Email expiry wording is not server expiry; delivery here is not an inbox-placement guarantee. If mail is absent, use check_delivery as evidence, not proof of a provider-sandbox diagnosis.
Saved passwords cannot be read through OAuth; use fresh accounts or a person’s explicit reveal. Keep the E2E tests in the repository, run them in CI without relying on either tool, and store PROXYMAIL_QA_API_KEY as a secret. Delete exact app test users separately from inboxes. Revoke the retired Claude Code connection under Project settings → API keys, but don’t revoke the shared CI key.
See the retest checklist or reverse handoff.
Sources
Reviewed 4 Dec 2026: instructions, import, Codex setup, MCP, flow checks, CI.