Skip to content
Agentic Levels
Start hereLevelsTracksPromptsAbout
Get my levelGet my level

  • Start hereYour first useful task with AI.
  • Level quiz8 questions. No AI needed.
  • Fluency ScoreYour Level and a score, from your own AI.

  • LevelsThe 11 levels, in order.
  • LessonsShort lessons, filter by level.
  • TracksGuided paths by tool, role or goal.
  • Set up your AI tool
  • Starter packFree files that help AI remember.

  • PromptsReady prompts to copy and adapt.
  • ChatGPT vs Claude vs GeminiPick the right one for the job.
  • How-tos
  • ReferenceCommands for Claude Code, Codex, Antigravity.
  • ResourcesHand-picked reading and tools.

  • Your progress
  • Your next moveAn interview that picks your next skill.
  • Your next lessonsThe next lessons at your level.
  • Updates

  • Pricing
  • About
  • FAQ & Feedback
  • Work with us
  • How we handle your data
Sign inPreferences
AboutPricingHow-tosPromptsStarter packMy stackHow we handle your data

© 2026 Fuentes Studio

PrivacyTermsRefundsAccessibilityAI content policyCredits
yourCouncil
Ready to help
✦

What do you want to understand?

Ask anything about what you're learning.

←Codex Fundamentals
  1. Tracks
  2. ›Codex Fundamentals: Module 5
  3. ›Hand off between local, IDE, and cloud
7

Level 7 · Lesson 12 of 12 · Free

Hand off between local, IDE, and cloud

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.

Before you start

Complete Set a goal Codex can finish first.

The idea

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.

Worked example

Before and after

Before: Continue this in the cloud (the next surface knows no branch, proof, or limits). After: Write a handoff note for the cloud. Include the branch, the changed files, what is left, the proof already run, the proof still needed, and what you must not touch.

What the AI might say

Branch codex/recipe-search, with the search page and its helper changed. One search test is still failing, and the build hasn't run. Don't touch login or the database.

Why it works

The After asked for every piece of the packet. The next surface can pick up without guessing or rerunning proof.

Handoff PacketMove through Hand off between local, IDE, and cloud, check proof, then fix only the weak part.
yesnorun it again
StartBegin with the real task
Hand off between local, IDE, andAfter this, you'll be able to move a Codex task between local, IDE, app, worktree,
1Proof visible?The handoff names current and next surface
Ready to useWrite one Codex handoff packet with surface, branch, changed files, remaining work,
Fix the weak partBreaks when the next surface starts from the wrong branch or worktree

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.

Try it (18 min)

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

  • The handoff names current and next surface
  • Branch or worktree state is included
  • Changed files and remaining task are clear
  • Proof already run and proof still needed are separated
  • Approval boundaries remain explicit
  • Moving to cloud with local-only context missing.
  • Moving from cloud to local without applying (bringing those changes into your own copy) or inspecting the actual diff.
  • Continuing in another surface without naming proof already run.
  • Using mobile approval as the handoff record.
  • Approving from a phone notification without opening the chat, so you can't say what you allowed.
  • Leaving Allow connections on when you no longer need the phone.

When this breaks

  • Breaks when the next surface starts from the wrong branch or worktree.
  • Breaks when proof has to be rerun because the prior run was never recorded.

AI can help with this

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 now

✓

You can move between Codex surfaces deliberately

  • ✓You can separate completed proof from pending proof
  • ✓You can keep approval boundaries visible

Try it from memory

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.

Key takeaways

Codex handoff is a packet. Transfer context, code state, proof, and ownership together.

  1. 1Handoffs need branch or worktree state.
  2. 2Changed files and remaining work must be explicit.
  3. 3Proof already run should not disappear.
  4. 4Move surfaces only when the next surface is better for the remaining job.

Go deeper

  • Codex IDElearn.chatgpt.com (opens in a new tab) ↗
  • Codex cloudlearn.chatgpt.com (opens in a new tab) ↗
  • Codex app worktreeslearn.chatgpt.com (opens in a new tab) ↗
  • Remote connectionslearn.chatgpt.com (opens in a new tab) ↗

✓ 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.

Was this helpful?

Related lessons

Choose the right Codex surfaceRun the proof loopSet a goal Codex can finishKnow when a website job leaves the chat
← Back to Codex Fundamentals