Blog
The Handoff · No. 03 · Codex

Codex for the rest of us: hand off the task, then walk away

Codex is built for delegation: give it a clear job, let it run and come back to finished work. Here's where it lives now, how to set its leash and the five-part brief that makes it work.

A hand launches a paper airplane along a dotted path toward a cloud of blocks and a clipboard checklist with an orange box, on cobalt blue.

The illustration at the top of this post was generated with ChatGPT's image model, run from Codex and then reviewed by me. That's the whole pattern in one picture: hand off a clear job, let it run, review what comes back.

Codex is built for exactly that kind of handoff. You give it a job and a folder. It works inside a fenced-off space for as long as the job takes, and you come back to finished work. Whether that work is useful depends almost entirely on the handoff you wrote. In the first post of this series, I said to start with whichever tool you already pay for, and last week we spent an afternoon in Claude Code. This one is for the ChatGPT side of the house.

Where Codex lives now

In July, OpenAI folded the Codex app into the new ChatGPT desktop app. Install it on a Mac or Windows computer, sign in with your ChatGPT account and choose ChatGPT or Codex from the switcher. On the ChatGPT side, a toggle above the message box picks Chat or Work.

Work and Codex share the same core abilities. OpenAI's own docs say that if you've used Codex for non-coding work, you can stay in Codex or use Work instead (OpenAI's Work guide). My rule of thumb: Work when you want the result, Codex when you also want to see every file it touched and every command it ran. The handoff advice below works in both. The settings and commands are Codex's.

Two more doors exist. The Codex CLI runs the same agent in a terminal (the text window where you type commands instead of clicking), and it matters for the repeatable jobs further down. Cloud tasks run on OpenAI's servers in their own workspace and keep going while your computer sleeps, and you can start them from the web, your phone, the desktop app or Slack. They're built around code repositories connected through GitHub, so most non-programmers will start on their own computer.

Codex is included in every ChatGPT plan, even Free, though the free tiers are a sample. Plus, at $20 a month, covers a few focused sessions a week, and cloud tasks can use more of your allowance than local ones (OpenAI's pricing page).

The leash: sandbox and approvals in plain English

Codex works inside a sandbox, which is a fence around the folder you give it. By default, the internet is off and it can only write inside that folder. Inside the fence, it reads, edits and runs routine commands without stopping to ask. To go outside, like changing a file elsewhere on your computer or reaching the internet, it has to ask you.

That's a different deal from the Manual mode I recommended for Claude Code last week. Codex won't ask before it changes a file inside the folder you handed it, so that folder should always be a copy or something that's backed up.

You set the leash with the permissions control beneath the message box, or by typing /permissions in the CLI. The main choices:

  • Ask for approval: it stops and asks before editing files outside the folder or using the internet. Start here.
  • Approve for me: a separate reviewer agent handles those requests and only brings you the actions it flags as potentially unsafe. Fine once you trust a job.
  • Full access: no fence at all, with the run of the internet and every file on your computer. Leave it alone.

One quirk can confuse you on day one. Codex looks at whether a folder is tracked by Git, a free tool that keeps a history of every change so you can roll back. For folders that aren't, it may start in read-only mode until you tell it you trust the folder. If Codex says it can only look, that's why; change it with the permissions control. On Windows, OpenAI also suggests installing Git, which powers the app's review panel and lets you inspect or undo changes.

Write a handoff a stranger could follow

A prompt asks a question. A handoff transfers a job, and a good one answers the questions a new assistant would ask before starting. It has five parts:

  • Goal: the result you want, described as a finished thing rather than an activity.
  • Inputs: exactly which files to use and what's in each one.
  • Constraints: what it must not do, and the rules it must follow.
  • Definition of done: the files that should exist when it's finished, with names and limits.
  • How to check it: the evidence you want back, so your review is an audit instead of a reread.

OpenAI's guide to long-running work asks for the same ingredients: a clear outcome, constraints, a definition of done and a way to verify the work (OpenAI on long-running work). Here's a full handoff for a job many nonprofits and ministries dread, the first draft of a grant application:

Prompt
GOAL
A first draft of our application for the spring community grant described
in guidelines.pdf, ready for me to edit.

INPUTS (all in this folder)
guidelines.pdf: the funder's questions and word limits
last-application.docx: our application to a different funder last year
annual-report.pdf: our numbers, programs and stories

CONSTRAINTS
Use only facts found in these files. Mark anything missing as [NEED FACT].
Don't edit, move or delete the input files. Don't go online.
Plain, warm language. No jargon.

DEFINITION OF DONE
draft.docx answers every question in guidelines.pdf, in order, within each
word limit. sources.md lists each factual claim and the file and page it
came from.

HOW I'LL CHECK IT
End with a table of word counts next to each limit, every [NEED FACT]
and every judgment call you made.

Paste it, start it and go do something else. When you come back, that last section turns review into an audit: check the counts, fill the gaps, spot-check three claims against their sources. If you're not sure your brief is complete, add one more line: "Ask me any questions before you start."

You may get one interruption. If Codex needs to install a helper to read a PDF or write a Word file, it will ask, because installing means going online. That's the leash doing its job.

Run two or three at once

The desktop app is built to keep parallel work visible, so once one handoff works, try two or three. A few rules keep that from turning into chaos:

  • One folder per job. Separate folders mean separate fences, so two jobs can't trip over each other's files. OpenAI's own security docs favor separate projects over one big folder with broad access.
  • Write every brief before you start any job. Delegating in the middle of reviewing is how briefs get sloppy.
  • Review one at a time, in the order they finish, against each brief's definition of done.
  • Watch your allowance. Parallel jobs draw from the same plan, so three at once use it up faster than one.

Say it's Monday morning. You hand off the grant draft, a cleanup of three volunteer spreadsheets and an index of last year's newsletters. By lunch, you have three drafts to review instead of three chores to start.

Make a job repeatable

Two tools turn a good handoff into a standing one.

AGENTS.md is a plain text file of standing instructions that Codex reads before doing any work in a folder. Put the rules you'd otherwise repeat in it: your voice, how files are named, "never delete; move old files to an archive folder." It's an open format now stewarded by the Agentic AI Foundation under the Linux Foundation, and other tools read it too, including Claude Code when a folder has no CLAUDE.md of its own. Week 4 covers what belongs in one.

The second tool is codex exec, which runs one job from a single terminal command, with no back-and-forth, and prints Codex's final report. Install the CLI with one line (the first is for Windows PowerShell, the second for a Mac), then run codex once to sign in with your ChatGPT account:

PowerShell
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
Terminal
curl -fsSL https://chatgpt.com/codex/install.sh | sh

Then, from inside the job's folder:

Terminal
codex exec --skip-git-repo-check --sandbox workspace-write -o last-run.txt "Do this week's report. Follow the steps in AGENTS.md."

On its own, codex exec can only read, so the sandbox flag lets it edit inside the folder. It also refuses to run in a folder that isn't tracked by Git, a deliberate safety check. The skip flag overrides that check, so use it only on a copy or a backed-up folder. The -o flag saves the final report to a file, so every run leaves a receipt. Once that line works, it's one step from running on a schedule, which gets its own post later in the series.

Pictures and a second opinion

Codex can make images, too. Describe the image in plain words, or put $imagegen in your prompt to call the image skill directly. Built-in image generation counts toward your regular Codex usage (OpenAI's image guide). Try a prompt like this one:

Prompt
$imagegen Make a wide header illustration: a hand releasing a paper airplane
toward a cloud built from geometric blocks. Flat style, navy and orange on
off-white, no text. Make three versions and save them in this folder.

Review images the way you'd review words. Look for warped hands, stray letters and anything that suggests a real person or brand.

Then there's the second-opinion habit. I often build with Claude Code and have Codex review the work, or the other way around. Two different models catch different mistakes. You don't need anything fancy: open the finished folder in the other tool and paste this.

Prompt
Review the work in this folder against brief.md. Don't change any files.
List anything wrong, missing or inconsistent, most serious first,
and point to the exact spot for each problem.

If you live in Claude Code and your folder is tracked in Git, OpenAI publishes an official plugin that adds a /codex:review command, so the second opinion is one line away.

Try this this week

  • Open the ChatGPT desktop app, switch to Codex or Work, set permissions to Ask for approval and point it at a copy folder.
  • Write a five-part handoff for one real chore, start it and walk away until it's done.
  • Start a second job in its own folder while the first one runs.
  • Add an AGENTS.md with three standing rules to the folder you'll reuse most.
  • Run the review prompt on something you made with Claude Code last week, and note what each tool caught.

Power User Live, my free monthly workshop, starts Tuesday, Nov. 10, from noon to 1 p.m. Central on Google Meet. I'll run Codex and Claude Code live, handoffs and all, so you can watch the whole loop before you trust it with your own work. Save a seat at Power User Live and bring a job you'd like to hand off.

Keep reading
No. 01 · Getting started

Claude Code and Codex aren't just for programmers

The word 'code' scares off the people who'd get the most out of these tools. Here's what an AI agent actually does, where Claude Code and Codex live now and a safe first job to hand one.