Keep context and proof across surfaces, your phone included
After this, you'll be able to move a Codex task between local, IDE, app, worktree, and cloud surfaces without losing the branch, diff, proof, or review owner.
Complete Set a goal Codex can finish first.
A Codex handoff moves context, code state, proof, and ownership together. Drop one piece and the next surface just repeats the work, or changes the wrong thing.
The app's own handoff is the one you can try today. Local and Worktree both live in the desktop app. The IDE, cloud and phone moves below are only if you use them (lesson 1 lists what they need).
App worktrees help when a task should stay isolated until you're ready to look. In a new chat, select Worktree under the message box and pick the branch to base it on. Hand off in the chat header moves a chat between Local and Worktree.
Before you hand off, ask Codex to confirm there are no uncommitted changes in Local. After, ask: Show me the commit history and the diff of index.html. If it went wrong, ask Codex to undo only the line you added in this worktree, not any earlier commit, and then remove this worktree.
A worktree copy leaves out files your project ignores, such as a file of keys, unless a file named .worktreeinclude lists them. Don't list secrets. Codex keeps your 15 most recent worktrees and saves a snapshot before it deletes one.
The IDE and cloud: in the IDE, Continue in lets you choose Work locally or Cloud. A cloud task has its own workspace and keeps running while your computer sleeps, and you start one from Work in, then Cloud (it needs an eligible paid plan). To finish a cloud change in the IDE, ask Codex to bring that branch to your computer first.
Every handoff needs a packet. Name the branch or worktree, the changed files, and what's left.
Name the proof already run, the proof still needed, and the approval boundaries. Missing a piece?
Ask Codex for a handoff note first. Then, on the new surface, ask: Summarize the branch, files and proof you received.
Don't hand off a task to dodge uncertainty. Hand off because the next surface can actually do something this one can't.
One more place you hand work to: your phone. Remote control lets the ChatGPT phone app steer a Codex task running on your computer.
The computer is the host, and it must be a Mac or Windows machine running the desktop app. On Linux, skip the setup and read on.
Set it up once, from the computer. Install the latest ChatGPT phone app (iPhone or Android) and sign in with the same account and workspace. On the computer, open Settings, then Connections, then Control this Mac or PC, and select Set up.
Approve, scan the QR code with your phone, and confirm the account. Your host appears under Codex in the phone app (some older versions call it Remote).
Your admin may need to turn on Remote Control first. Keep the computer awake and online, because the connection stops if it sleeps, goes offline or the app closes. The optional Keep this Mac awake setting helps.
If the host doesn't show up, check that the desktop app is open, that Allow connections is on under Settings, then Connections, and that both devices use the same account. Still stuck? Ask Codex on the computer: My phone can't see this computer. What should I check?
What the phone can do: send prompts, read output, and approve what Codex asks about, from wherever you are. It's a control surface, not a shortcut around review. Before you approve, ask three things: What are you trying to do, what can this touch, and what proof will I see after?
How to switch it off. On the computer, open Settings, then Connections, and switch off Allow connections. The same screen lists Devices that can control this Mac.
Signing out of ChatGPT also turns it off, but your pairings come back when you sign in again. Steps for removing one paired phone are not documented, so rely on the switch. If you lose the phone, turn Allow connections off.
You'll know it's off when the switch shows off and the host disappears from Codex on your phone. To confirm you're steering the right computer, ask from your phone: Which computer and project are you running on?
In Claude Code and Antigravity: Claude Code runs in the terminal, the desktop app's Code tab, VS Code, Cursor, JetBrains, on the web at claude.ai/code and in the mobile app, and it carries CLAUDE.md, settings and MCP across them. Antigravity starts a conversation in Local mode or in a New worktree, and its App can connect to a remote Linux machine (another computer you reach over the internet). This track's sources don't document a phone remote control for Antigravity, so check each tool's own docs for phone steering.
The best Codex users move between surfaces on purpose, and keep the work state visible.
Paste this into Codex
Write a Codex handoff packet for one task that moves between two places (for example app to cloud, or computer to phone). Check yourself against this list: it names the branch or worktree, the changed files, what is still unfinished, the proof already run and the proof still needed, and the approval boundaries (network, secrets, deploy, auth, data). Return: 1. A handoff note another Codex surface could use without guessing. 2. The three questions you would ask from your phone before approving anything on this task. No task in progress? Use the practice site. A worktree starts from a saved commit, so first ask Codex *Are there any uncommitted changes? If so, commit them as "Before worktree practice".* Then ask *Show me the commit history* to confirm. Then in a new chat select Worktree under the message box, ask Codex to add a line to index.html, and fill in this packet with the app as the current surface and Local as the next.
What a good response looks like
1. Handoff from the app (Worktree) to Local. Worktree: the one Codex made for this chat, based on main. Changed: index.html, one new line. Remaining: bring the change into my local copy and open index.html. Proof already run: the lesson 2 check passed, and I looked at the page in the built-in browser. Proof still needed: read the diff in the review pane after the hand off. Approval boundaries: no installs, no network, nothing outside codex-practice. 2. Phone questions: What are you trying to do? What can this touch? What proof will I see after?
Check yours against
Use Codex to help you move a Codex task between local, IDE, app, worktree, and cloud surfaces without losing the branch, diff, proof, or review owner. Start with the exercise prompt and your real input. Ask for one draft, then check it against this proof: The handoff names current and next surface. Accept only the version you can verify yourself.
You can move between Codex surfaces deliberately
Pulling this out of your own head now is the part that actually moves it into long-term memory. Re-reading only feels like it does.
From memory, you must move a half-finished task of yours from local to cloud. Write the handoff note that lets Codex on the other side continue.
One good answer: 'Branch fix-invoice-totals on my accounting tool. Changed: the totals file and its test. Left: rounding on credit notes. Proof so far: the totals test passed. Owner: me until review.' Check yours: if the note carries the branch, changed files, remaining work and proof already run, you've got it.
Codex handoff is a packet. Transfer context, code state, proof, and ownership together.
Track complete
You finished every lesson in Codex Fundamentals. Pick one thing you learned here and run it on your own work this week. Every lesson stays open, so come back anytime you need it.