Skip to content
The AI Agent Factory

ChatGPT and Codex

Approved by
Panaversity ·
12 min read

What is known, and how well

  • [Vendor-documented] OpenAI documents the Codex harness and its App Server. Codex Web runs that harness inside a container it provides for the task.1
  • [Vendor-documented] ChatGPT Work's cloud tasks use the same harness. "Work Cloud uses the Codex task-execution harness." Work and Codex "share core execution and isolation mechanisms".2 But their tools, permissions and controls "aren't identical".
  • [Unknown] Whether regular ChatGPT chat runs on the Codex harness.

Chat, Work and Codex remain separate experiences, even where their infrastructure overlaps. The Tour describes the user's side of where ChatGPT's work runs.

ChatGPT's four tiers

TierWhere the harness runsCompute environmentPersistenceBasis
Regular ChatGPT chatNot publishedA Python sandbox (Code Interpreter), called as a toolNot publishedNot published
ChatGPT agent3Not published"Its own virtual computer": browsers, a terminal and API accessKeeps context for the task. It can be paused and resumedVendor-documented
Codex (in the ChatGPT app)The Codex harness: a cloud container for cloud tasks, or your machine for local onesWorkspace, shell, files, MCP and skillsThreads are stored on the serverVendor-documented1,4
ChatGPT WorkThe Codex task-execution harness, for cloud tasksCloud or local Work tasksCloud Work conversations sync across devices. Local ones stay on your computerVendor-documented2,5

How the Codex harness is built

OpenAI's write-up describes a setup close to the Claude Code one in this section.1

  • The harness is "the agent loop and logic that underlies all Codex experiences." Codex core runs the loop, saves each thread (one conversation) and runs tools in a sandbox.
  • App Server wraps the core in a long-running process with a two-way JSON-RPC API. It can pause a turn to ask your app for approval.
  • Cloud (Codex Web). "A worker provisions a container with the checked-out workspace, launches the App Server binary inside it." "Keeping state and progress on the server means work continues even if the tab disappears." Whether Work uses exactly this container path is not published.2
  • Local (desktop app and IDEs). The App Server runs on your machine. Commands run in an operating-system sandbox: Seatbelt on macOS, bubblewrap on Linux and WSL2, and the native sandbox on Windows.4

Side by side

DimensionClaude (cloud session)ChatGPT: Codex, with Work where documented
Product experienceOne conversation for chat and tasks, plus a Code tab, in one app. The chat examined ran on the cloud runtime behind those tasks (observed)Chat, Work and Codex as separate experiences in one app
Agent loop (harness)Claude Code (observed)Codex core in the App Server (documented for Codex and Work's cloud tasks)
Where the computing runsA sandbox for each session (documented)6. A Firecracker microVM (observed)A container for each task (documented for Codex Web). Work's cloud tasks use VM-backed sandboxes that can be reused or replaced (documented)2
Local optionTasks in a conversation: local sessions only for tasks started on the device before October 6, 2026, on Pro, Max and Ultra (documented)6. Code tab and CLI: Local, SSH and WSL, with Claude Code on your machine (documented)Desktop app, CLI and IDE, with an operating-system sandbox (documented)
Regular chat on the harness?Yes, in the session examined (observed)Unknown
Conversation persistenceSaved to the account (documented)Thread history on the server (documented for Codex)
Scheduled tasksA fresh session for each run. Cloud runs start in auto mode. Desktop runs happen on your machine (documented)7,8Run in the cloud, and can start on Gmail, Slack or GitHub events (documented)9
Use of your computerThrough the desktop app, connected folders only (documented)6Work's cloud tasks use an "online, connected computer". Work Cloud cannot reach it while it is offline (documented)2

Claude and Codex: same four layers, different evidence. Left, the Claude cloud session examined: the Claude app (documented), the Anthropic backend saving sessions and files (documented), the harness Claude Code in a Firecracker microVM in the session examined (observed), and the Claude model (inferred). Right, a Codex cloud task: the ChatGPT app (documented), the Codex backend storing thread history (documented), the harness Codex App Server in a container a worker provides (documented), and the OpenAI model (inferred). Notes say Work's cloud tasks use the Codex harness, and the figure compares layers, not behavior.

Both stacks have the same shape: an app, a backend, a harness in a cloud sandbox, and the model. The difference is the evidence. For Claude, the harness was observed. For Codex, OpenAI documents it.

A reported inspection of a ChatGPT execution environment

Source and limits. On November 9, 2026, at our request, ChatGPT ran commands in its own Python and terminal tools, in a separate conversation. It reported the results. Nobody independently reviewed the raw output. So its findings carry the label Reported by ChatGPT.10

  • [Reported by ChatGPT] The environment ran Linux x86_64 (kernel 6.18.57) with Python 3.13.5. PID 1 was supervisord, a program that starts and watches other programs. The root file system was an overlay with paths that referred to Kata Containers, a container technology.
  • [Reported by ChatGPT] A file written from the Python tool under /mnt/data could be read from a later terminal call. So working files carry over between tool calls. That does not show they survive a new conversation or a reset.
  • [Reported by ChatGPT] No Codex App Server process, and no model-serving process, was visible in its process namespace.
  • [Unknown] Where ChatGPT's conversation harness and its inference run, and when its environments are created and destroyed. A missing Codex process here does not show that Codex parts are unused elsewhere.
QuestionClaude (session examined)ChatGPT (inspection reported)
Harness process visible?Yes: Claude CodeNo
Evidence of a VM or containerFirecracker microVM (PID 1 is /process_api --firecracker-init)Overlay file system with Kata Containers paths. supervisord as PID 1
Files survive a replaced VM?Restored as copies from the conversation (observed)Not tested

So the comparison still rests partly on documentation. [Vendor-documented] OpenAI's Agents API also treats the hosted harness and the execution environment as separate parts. An agent that only calls outside services "may not need its own compute or files".11

The lesson holds for both vendors. Four jobs are separate: model inference, the agent loop, running tools, and keeping durable state. Platforms can place them behind different boundaries.

Check yourself

Question 1 / 4

0 answered

What does OpenAI document about ChatGPT Work's cloud tasks?

  1. As verified on November 9, 2026. Unlocking the Codex harness: how we built the App Server, OpenAI.↑↑2↑3
  2. As verified on November 9, 2026. The page says "Work Cloud uses the Codex task-execution harness", that Work and Codex "share core execution and isolation mechanisms", and that Work Cloud "manages its own execution environment". ChatGPT Work cloud security, OpenAI.↑↑2↑3↑4↑5
  3. Introducing ChatGPT agent, OpenAI.↑
Owner
Panaversity