Skip to article
← All articles

Multi-agent · Practical guide

How to Share Project Context Between Claude Code and Codex

A practical handoff workflow: compare shared files and external records, preserve decisions, and let the next agent verify where to continue.

Hand over the goal, the decisions, and the next verifiable step.
AI-generated editorial cover
On this page

Moving from Claude Code to Codex is easiest when the next task has an obvious starting point. A transcript can explain how you got here, but the receiving agent still needs to know which decisions remain valid and what it can safely do next.

This guide uses a fictional checkout project. Claude Code has investigated a bug; Codex will implement the approved fix. The useful deliverable is a small handoff packet linked to the actual files and checks.

Choose where the shared context lives

Start with the simplest location that both tools can actually read. A shared record is useful only if the second agent can retrieve it in its own session.

MethodWorks well forWhat you maintain
Paste a summaryA one-off handoffCopy the latest version and attach necessary files
Shared Markdown in GitOne repository and visible change historyKeep the handoff current; commit deliberately
Notion or another document serviceSeveral projects or collaboratorsGrant access; keep source links and update dates
SaveSlot with authorized agentsStructured records that change across sessionsConfirm connection, Slot scope and a read-back

Write a packet the next agent can act on

Use the same headings each time. Keep the full discussion elsewhere and link the evidence. In this example, “approved” means the user has already accepted the direction; the packet itself does not grant new permission.

  • Goal: restore the checkout retry without creating a second order.
  • Current decision: reuse the existing idempotency key; do not add a new order endpoint.
  • Scope: checkout retry handler and its existing integration test.
  • Evidence: failing test command and the file containing the handler.
  • Current state: investigation complete, implementation not started; list any unrelated local edits.
  • Next step: reproduce the failing test, inspect the handler, then implement within scope.
Read the project instructions and HANDOFF.md. Inspect git status before editing. Restate the current decision, identify the relevant implementation and reproduce the recorded failure. Continue with the approved fix only after those facts agree.

Have the receiving agent verify the receipt

Illustrative workflow: the receiving agent checks instructions, current state and evidence before continuing.
Illustrative workflow: the receiving agent checks instructions, current state and evidence before continuing.
  1. Confirm the repository, branch and relevant local changes. Never assume a shared path means a clean working tree.
  2. Read the current decision and its source. If a newer decision supersedes it, use the newer one.
  3. Run the narrow reproduction or inspect the saved evidence. Record a missing or stale result explicitly.
  4. Produce the change and run the relevant checks. Update the same handoff with what now passed and what remains.

If the test no longer fails, do not manufacture the original situation. Record that the reproduction differs and investigate the mismatch. A good handoff makes that difference visible.

Close the loop after every handoff

Replace “next: implement” with the actual outcome, not an additional contradictory paragraph. Keep a small history of the decision change, its reason and its evidence. Archive old handoffs separately when they stop describing the current task.

If you use SaveSlot, start with the Claude Code setup and Codex setup guides. Approve both on the same SaveSlot account, then ask each to read the same harmless sample record. This article proposes a workflow; it does not report a live cross-agent connection test.

Read the current project decision and latest handoff from the authorized Slot. Return the record identifiers, update times and next action. If you cannot access them, say what is missing before continuing.

Sources & notes

Check the linked official documentation for current product behavior. Illustrations and downloadable examples use fictional data; they do not demonstrate a live account connection or write.

Revision history

  • : Published
  • : Updated content and references

Prepared by Jasper with AI-assisted drafting and illustrations.

Keep exploring

All articlesLast updated