Claude Code handoff: passing a session to a teammate or to Codex
Claude Code has no built-in way to hand a teammate your session to keep working in. We tested what carries the work over, in Claude Code and Codex: a short handoff note in the branch.
By Scott Strang
Last updated
The short answer. Claude Code has no built-in way to hand a teammate your session to keep working in: the ways to move one (resume, teleport, Codex's /import) are for you, share links are read-only, and the raw transcript file holds everything the agent read. To hand the work to a teammate, or to Codex, have your agent write a short HANDOFF.md into the branch before you stop. In our test (Claude Code 2.1.283 and Codex CLI 0.146.0, Nov 24, 2026), a teammate's session in either tool knew what had been tried, what not to touch and what came next only when that note was there.
Looking for your own old sessions? Claude Code history covers where they're stored and how to resume them.
Every built-in way to move a session is for you, or read-only for others
| Way to move it | What it does | Who can use it |
|---|---|---|
claude --resume, --continue, --fork-session | Reopen or branch a session | You, on the laptop that has the transcript |
/export | Save the conversation as a plain-text file or copy it | Anyone you send it to, to read |
| Share link (cloud or Remote Control sessions only) | Others can read the session so far | Anyone you share it with, to read: your organization on Team and Enterprise, or anyone with the link on Pro, Max and Ultra |
claude --teleport | Pull a cloud session into your terminal | Only the same claude.ai account |
| Remote Control | Steer a session running on your laptop from your phone or a browser | You; the session runs on your laptop, so it needs to be on and online |
Codex /import | Bring Claude Code setup and up to 50 chats from the last 30 days into Codex | You, from the files on your laptop |
/codex:transfer (OpenAI's Codex plugin for Claude Code) | Turn the current Claude Code session into a Codex thread you open with codex resume <id> | You, from ~/.claude/projects |
codex resume, codex fork | Reopen or branch a Codex session | You, on the laptop that has it |
From the Claude Code and Codex docs, Nov 24, 2026 (links in Sources). None of them is built for a teammate to pick up your session and keep working in it. The closest is the transcript file itself: Claude Code resumes a .jsonl transcript by its path (claude --resume <path>), and a copy we moved to another folder resumed with its facts intact (same account; we didn't try a second one). But it's the wrong thing to send: in our test the session file was 555 KB, tool and hook output included, and it holds everything the agent read, while the note that did the job was 1.3 KB.
A branch carries the code but not the reasons
We ran the handoff on Nov 24, 2026, with Claude Code 2.1.283 and Codex CLI 0.146.0. Alice did half a task in Claude Code and told it two things that weren't in the code: the team had tried the python-dateutil library and dropped it because it read 03/04/2026 day-first and broke invoices, and legacy.py belongs to the billing team. The next step was ISO week dates. She committed and pushed. Then fresh sessions were asked five questions: the task, what's done, what was tried and dropped, what not to touch, and what's next.
| What the next session had | Claude Code | Codex |
|---|---|---|
| The branch, in a teammate's clone | ❌ tried and dropped: "unknown"; don't touch: "unknown"; next step: "unknown" | ❌ tried and dropped, next step: "unknown"; guessed at legacy.py from a code comment, with no reason |
| Alice's own next session, same laptop | ✅ all five, from her Claude Code auto memory | Not run |
The branch plus a 25-line HANDOFF.md her session wrote | ✅ all five, citing the note's lines | ✅ all five, citing the note's lines |
Each setup ran once, headless, on a small throwaway repo, and the Codex install had a personal handoff skill that both Codex receivers read first; the answers are what each agent reported finding. The middle row is the trap: Claude Code had saved both facts to Alice's auto memory without being asked, so her own next session looked fine. Nobody else gets that memory.
The note said "All 3 pass" about the tests without saying who ran them or how. Alice's session had run them in a throwaway Python environment, but only its chat reply said so, and the teammate's Claude Code session answered that it hadn't checked that claim. A handoff note should say what was checked, and how, so the next person knows what to trust.
Hand it off in three steps: write the note, commit it, start from it
1. Write the handoff before you stop
Before you close the session, ask your agent for the note while it still has the context:
I'm handing this task to a teammate who may use a different coding agent. Write HANDOFF.md in the
repo root, under 40 lines, for someone who never saw this session: the goal; what's done and how you
checked it (or that you didn't); what we tried and dropped, and why; what not to touch, and why;
decisions from this conversation that aren't in the code; the next step and any open question; the
commands to build and test. Only what this session saw or I said. No secrets.Read it before you commit it. It's the only part of your session the next person will see.
2. Commit the note with the work in progress
The note is only useful next to the code it describes, so commit both. Check what's changed first, so nothing private or half-generated goes in:
git status
git add -A
git commit -m "WIP, with handoff note"
git pushThe note travels with the code, so it reaches whoever checks out the branch, in any tool. When the work turns into a pull request, move the note into the PR description and delete the file before merging, so stale notes don't pile up on main.
3. Start the next session from the note
The person picking it up starts their agent, in Claude Code or Codex, with:
Read HANDOFF.md. Check what it says against the code and git log, tell me anything that doesn't
match, then continue with the next step.Asking it to check is what made the teammate's session say plainly that it hadn't verified "All 3 pass" in our test.
Continuing a Claude Code session in Codex yourself: import it, and still write the note
If you're the one moving from Claude Code to Codex, Codex can bring your session across:
- In Codex CLI: type
/importin an idle session, choose Claude Code, and pick the chats (up to 50 from the last 30 days) and setup to bring over. It leaves your Claude Code setup unchanged. - From inside Claude Code: with OpenAI's Codex plugin for Claude Code installed,
/codex:transferturns the current session into a Codex thread and prints acodex resume <id>command.
Both read the files on your laptop, so they help you and nobody else. We didn't run either; this is from the docs. Write the note anyway: it's what your teammate, and your next week, will have.
Our agents have written 36 handoff notes in our own repo since Oct 17
Our go-to-market repo, where this guide was written and where the work is lists, dashboards and web pages as much as code, runs on written handoffs. Between Oct 17 and Nov 24, 2026, our agents wrote 36 handoff notes into it. One was a Codex session writing for the Claude Code session taking over its dashboard work (Nov 5, 2026); it starts with the branch and the exact commit it was written at, so the next session can tell if the code has moved since.
Ours run longer than the 40 lines suggested above (median 69) because 32 of the 36 hand over a coordinating session's whole queue of work, not one task. For one task, 40 lines is plenty.
On a team, "remember this" stays on your laptop
For one person, the session and its memory are enough. On a team, each reaches only the person who made it: in our test, what Alice said in the chat and what Claude Code saved to her auto memory reached her own next session, and neither reached a teammate in either tool. A code comment didn't close the gap: legacy.py said it was "used by invoices", and the teammates' agents treated that as a hint at most. The branch is the one thing every teammate and every tool reads, so the reasons have to be in it.
The team-sized fix: one rule, one shared skill
Make the note the default instead of something each person remembers.
1. Add a rule to AGENTS.md. Codex reads it. Claude Code reads it only when there's no CLAUDE.md; if your repo has one, add a line @AGENTS.md to CLAUDE.md so Claude Code imports it (more on the two files):
- Before stopping mid-task, or when asked to hand off, write HANDOFF.md in the repo root: goal, done
and how it was checked, tried and dropped and why, don't touch and why, decisions not in the code,
next step, how to run it. Starting on a branch that has a HANDOFF.md: read it first and check it
against the code. Delete HANDOFF.md before the branch merges.2. Give everyone the same handoff skill. Save this as .agents/skills/handoff/SKILL.md, and link Claude Code's skills folder to it so both tools load it (why that folder). If .claude/skills doesn't exist yet, from the repo root:
mkdir -p .claude && ln -s ../.agents/skills .claude/skillsThe skill:
---
name: handoff
description: Write HANDOFF.md so a teammate or another coding agent can pick up this task. Use when stopping mid-task, handing work to someone, or switching tools.
---
Write HANDOFF.md in the repo root, under 40 lines, for someone who never saw this session.
1. Goal: what this task is for, in one or two lines.
2. Done: what's finished. Say how you checked it ("ran pytest: 3 passed"), or say it wasn't checked.
3. Tried and dropped: each approach you abandoned, and why.
4. Don't touch: files or areas to leave alone, and why (who owns them, what breaks).
5. Decisions: anything decided in this conversation that isn't in the code or a commit message.
6. Next step: the very next thing to do, and any open question.
7. How to run it: the commands to build and test.
Only write what this session saw or the user said. No secrets, tokens or customer data.
Then `git add HANDOFF.md` and show the user the file. Don't commit unless they ask.We ran this skill in both tools on Nov 24, 2026: /handoff in Claude Code, $handoff in Codex. Each loaded the same file and wrote a note of about 30 lines with the dropped approach, the file not to touch and the next step. Claude Code wrote that no tests had been run; Codex named the test command it ran and said 1 test passed.
The test: hand a branch to a teammate on the other tool, and their first answer to "what was tried, and what shouldn't I touch?" comes from the note, not from messaging you.
Where SageOx helps
The fix above works without us. SageOx is a context layer for teams of people and agents; it isn't an agent, and it works alongside Claude Code and Codex. Where it helps here is what a note can't do: the team's sessions in one place, so the next person, or their agent, can open the session itself when the note isn't enough.
- Coding session recording saves each Claude Code and Codex session to the repo's Ledger (a shared history of the team's sessions) and summarizes it. Sessions you ran before installing can be imported.
- A teammate can read the session you handed over:
ox session list --allshows the recorded sessions with their titles and summaries;ox session download <name>fetches a teammate's session, andox session view <name> --textopens it. - Pull requests can link back to the session that produced them (
ox pr header), so "why did this change?" is one click from the PR. - Murmurs are short "done", "wip" or "blocker" notes that teammates and their agents see, so the next person knows the work is theirs. They're short-lived, so the note in the branch stays the lasting part.
These work when your teammates record their sessions too, so it's something a team sets up, not one person.
Have your agent do it
Paste this into Claude Code or Codex at the root of a repo. It shows you the diff before it commits anything. If it can't create the .claude/skills link, run the mkdir and ln line above yourself.
Set up handoffs for this repo so any teammate or coding agent can pick up half-finished work.
1. Add this rule to AGENTS.md (create it if missing). If there's a CLAUDE.md and it doesn't already
import AGENTS.md, add the line @AGENTS.md to it so Claude Code reads the rule too:
"Before stopping mid-task, or when asked to hand off, write HANDOFF.md in the repo root: goal, done
and how it was checked, tried and dropped and why, don't touch and why, decisions not in the code,
next step, how to run it. Starting on a branch that has a HANDOFF.md: read it first and check it
against the code. Delete HANDOFF.md before the branch merges."
2. Create .agents/skills/handoff/SKILL.md: a skill named "handoff" that writes that HANDOFF.md, under
40 lines, only from what the session saw or the user said, no secrets, then stages it without
committing.
3. If .claude/skills doesn't exist, make it a symlink to ../.agents/skills. If it exists, tell me
what's in it and don't move anything.
4. Check .gitignore doesn't ignore HANDOFF.md or .agents/.
Show me the diff before committing anything.See how your team stays in the loop →
Questions
Can I share a Claude Code session with someone? Only to read: cloud and Remote Control sessions can be shared by link, with your organization on Team and Enterprise or with anyone who has the link on Pro, Max and Ultra. To hand the work over, commit a handoff note to the branch.
How do I continue a Claude Code session in Codex?
For yourself, type /import in Codex CLI and choose Claude Code, or run /codex:transfer from Claude Code with OpenAI's Codex plugin. For a teammate on Codex, commit a handoff note to the branch: in our test, Codex found everything it needed in it.
How do I move a Claude Code session to another computer?
A cloud session moves with claude --teleport, from a checkout of the same repo, signed in to the same account. A local session stays on its laptop, so steer it with Remote Control or resume it there, and hand anyone else a note.
Should I compact, write a handoff, or start fresh? Compact if you're carrying on yourself. If anyone else, or another tool, picks it up next, write the handoff: a compacted local session still lives only on your laptop.
Does Claude Code's memory carry over to a teammate?
No. Auto memory is saved under ~/.claude/projects/ on your machine; in our test it gave Alice's next session everything and her teammate nothing.
Related guides
- How-to · Claude Code history: finding what your team's agents did last week
- Advice · Claude Code and Codex together on one team
- How-to · CLAUDE.md and AGENTS.md: keeping them right for a whole team
Sources
| Source | What it backs | Checked |
|---|---|---|
| Claude Code: manage sessions | resume, fork, resume by transcript path, /export | Nov 24, 2026 |
| Claude Code: share a cloud or Remote Control session | share links, who can open them by plan | Nov 24, 2026 |
| Claude Code in the cloud | --teleport and its requirements | Nov 24, 2026 |
| Claude Code Remote Control | steering a local session from another device | Nov 24, 2026 |
| Codex: import from another agent | /import: Claude Code setup and up to 50 chats from 30 days | Nov 24, 2026 |
| Codex CLI developer commands | /import, codex resume, codex fork | Nov 24, 2026 |
| OpenAI Codex plugin for Claude Code | /codex:transfer | Nov 24, 2026 |
| Our tests: handoff, shared skill, copied transcript | Claude Code 2.1.283 and Codex CLI 0.146.0 on throwaway repos | Nov 24, 2026 |

