---
title: What Codex Cloud adds to parallel development
canonical: "https://xiaofeng.dev/en/writing/codex-cloud-parallel-development/"
pubDate: 2026-10-19
updatedDate: 2026-11-22
author: 唐小锋 Xiaofeng TANG
description: "I've recently been reading Lauren Tan's (online name poteto) presentation on parallel agent development. What attracted me most was how she automated the…"
tags: [Codex, Cloud Agents, Parallel Development, AI Coding]
---

I've recently been reading Lauren Tan's (online name poteto) presentation on parallel agent development. What attracted me most was how she automated the validation and submission of numerous pull requests using Cursor Cloud Agents.

There are already many methods for parallel development on our local machines. So, what are the differences in using them after moving the tasks to the cloud? How do we prepare the environment, will multiple tasks interfere with each other, and how do we retrieve the results after completion?

Lauren uses Cursor Cloud Agents. This time, I chose to try Codex Cloud to see how it supports this cloud-based work style.

## Q1: If parallel development is already possible on the local machine, why do you want to try cloud computing?

On the local machine, you can use Worktree to prepare independent code directories for different tasks, or you can use Subagents to assign tasks to Agents. The two methods solve different problems: one isolates code modifications, and the other assigns tasks; subagents themselves may not have their own independent working directories.

These methods allow multiple agents to work simultaneously. However, the tasks still run on your own computer, and you still need to manage the dependencies, processes, and resources yourself.

What attracts me to the cloud is the ability to delegate a portion of the task completely: first, clearly explain what needs to be changed and how to verify it, then let the agent complete the modifications, run tests, and submit a PR, which I can then review upon my return.

Codex Cloud allows tasks to resume running after your computer goes to sleep, and you can also return to view and continue tasks from the web, mobile, or desktop. [(Official task description)](https://learn.chatgpt.com/docs/cloud)

What I'm trying to do is clarify the requirements and acceptance criteria locally during the day, and then put the tasks that can be completed independently into the cloud. This saves me the time spent monitoring the tasks and also gives me the space to move on to other work at the same time.

## Q2: Where exactly does the agent in the cloud work?

When I first opened the configuration page, the part I didn't understand the most was Environment. Is it a server configuration or a project configuration?

![The Codex Cloud environment management portal allows you to create environments.](/images/writing/codex-cloud-parallel-development/environment-entry.png)

_The Codex Cloud environment management portal starts with creating an environment to prepare for development._

Using Docker as an analogy makes it easier to understand: first prepare a development environment, then let different tasks start working from this environment.

It's important to distinguish between two things here: the Environment is the reusable prepared result; the Task is a specific task performed based on it. In the new version of Codex Cloud, each task runs in an independent VM and has its own workspace. [(Official environment instructions follow.)](https://learn.chatgpt.com/docs/environments/cloud-environments)

When creating the environment, first select a GitHub repository. Codex will check the project, install dependencies and tools, and test the workflow. You can add requirements in the dialog box. Once you're sure everything is ready, save and click Publish. [Creation Process](https://learn.chatgpt.com/docs/cloud)

Publish captures the prepared filesystem state for use by subsequent new tasks. The Docker image analogy is for ease of understanding; the product does not require you to build and push a Docker image yourself.

Therefore, I prefer to understand it as: first, configure an environment that the Agent can start working, and then assign tasks, rather than starting with installing dependencies every time a requirement is made.

This refers to the new environment with Publish and Start skills. When researching, be aware that the official documentation still includes instructions for Codex Cloud (Legacy); the two workflows should not be used interchangeably.

## Q3: After publishing, do I need to reinstall the environment for each task?

This was also my initial question. If we have to reinstall dependencies and commonly used skills every time we start a task, wouldn't the preparation process be very troublesome?

The configuration page contains two configuration items with similar names but different formats: Install script and Start skill.

**The install script is a script that is executed directly.** My configuration is written in Bash, explicitly listing the steps such as checking the Node.js version, installing dependencies, and performing the build. It runs according to script syntax and control flow; which steps are performed first and whether to exit after failure are all defined by the code.

![Bash installation script in the install script editor](/images/writing/codex-cloud-parallel-development/install-script.png)

_My install script: prepares the development environment using specific commands. The image shows the project's custom configuration. It can be edited with the help of AI._

**The Start skill is a set of Markdown instructions for the Agent to read and follow.** It can use natural language to explain what needs to be done before starting, what situations should be encountered to stop, and what results need to be reported, which the Agent then understands and executes.

![Natural language start command in the Start skill editor](/images/writing/codex-cloud-parallel-development/start-skill.png)

_My starting skill: Requires the Agent to call a specified script before starting a new task, and explains how to handle synchronization failures. The image shows my personal configuration, not the product's default behavior. It can be edited with AI assistance._

There's a clear difference between these two diagrams: Install script directly states the command to invoke the script; Start skill tells the Agent when to invoke it and how to handle exceptions. Semantic instructions can also contain deterministic commands, and the two can be used together.

Therefore, "determinism" refers to the way the script is executed, not that the installation result will always be the same; package version, network, and external services will still affect the result. The Start skill is not just another way of writing service startup commands; it can delegate startup requirements and related processing methods to the Agent.

New tasks begin with the published file system; when the repository is refreshed in the background, dependency caches are retained, so installation and startup commands are not rerun. [Installation and State Reuse Instructions](https://learn.chatgpt.com/docs/environments/cloud-environments#customize-installation-and-startup)

This means that frequently used components should be configured during the environment preparation phase. For me, in addition to "what is installed," it is more important to check "whether it can be used after installation": whether the service can start, whether the necessary commands exist, and whether the tests can be executed.

Plan for Skills when you set up the environment. Cloud tasks can use repository Skills, while personal Skills on your machine stay local. Put frequently used project Skills in the repository’s `.agents/skills` directory. [Codex Skills documentation](https://learn.chatgpt.com/docs/build-skills).

As for plugins installed on my local machine, just because they contain Skills doesn't mean they're also available on the cloud. Especially when it comes to dependencies such as local processes and login authorization, I'll first open a new task to verify them before deciding whether to depend on them.

My preference is to first install a small number of commonly used tools to get the startup and verification working, and then add more as needed for the task.

## Q4: How do I combine the code and results when running multiple tasks at the same time?

Having understood environment reuse, the next question is: if several tasks use the same environment, will they modify the same file?

Each cloud task has its own independent working file, eliminating the need for additional Worktree configuration to achieve file isolation between tasks. [Local and cloud environment descriptions.](https://learn.chatgpt.com/docs/environments/modes)

However, file isolation does not guarantee that modifications will be successfully merged. If two tasks each modify the same interface, even if they do not affect each other during execution, conflicts may still occur at the end.

Therefore, I think that version control is still an unavoidable step when migrating from local to cloud. Previously, it might not have been a problem for one person to develop directly on the main branch; now, when several tasks are assigned at the same time, it is best to specify in advance the scope of each modification, which branch it is based on, and where the final delivery will be made.

The code will continue to change. While the official documentation has a backend repository refresh mechanism, for tasks that rely on the latest modifications, I still require the Agent to confirm the branch and baseline commits before starting, to avoid discovering after completion that the wrong starting point was used.

More importantly, the criteria for "completion" should be clearly stated. For example, a requirement for completing a task could be given as follows:

> Complete the specified functionality, run the project-defined tests and checks, and submit a pull request (PR). Explain what was changed, which validations were performed, and which checks failed to complete. If any obstacles are encountered, provide the specific reasons and the results achieved.

This is a delivery requirement, not a default behavior that every cloud task will automatically perform. Codex supports submitting code or creating a PR after reviewing changes and test results, but whether a task requires a PR and what evidence needs to be attached still needs to be clearly agreed upon. [Official Task Workflow](https://learn.chatgpt.com/docs/cloud)

My interest in Lauren's practices stems from this very point: tasks can progress autonomously, and deliverables that can be reviewed. Otherwise, running multiple agents simultaneously could ultimately lead to people questioning each one individually about "what changes were made" and "whether it was tested."

## Q5: After the task is completed, will the environment and modifications remain?

The most confusing thing here is the environment used for the next task and the scene left behind by the current task.

Existing tasks retain their own files and installed tools; to change the starting point of subsequent tasks, the environment needs to be edited and the task republished. The fact that a tool is temporarily installed in a task does not mean that other tasks will automatically acquire it.

Similarly, code changes made in one task won't automatically propagate to other tasks simply because the environment exists. Code changes still need to be committed and pushed via Git, allowing subsequent tasks to continue based on the corresponding branches. ( [The relationship between environment and task)](https://learn.chatgpt.com/docs/environments/modes)

The old task state has a retention period: the saved VM state can be restored for a maximum of 7 days by default, starting from the last time a dialogue or recovery task was initiated. [State Retention Instructions](https://learn.chatgpt.com/docs/environments/cloud-environments#vm-specifications)

Therefore, I don't consider "being able to come back and open the task later" as a way to save results. Committing code promptly, saving reports and necessary outputs separately, makes it easier to explain things clearly when continuing later.

## Q6: Which tasks are I willing to delegate to the cloud, and which should remain on my local machine?

Based on this experience, I will prioritize tasks with clear boundaries and those that can be automatically verified, such as supplementing tests, fixing specific issues, organizing documentation, or manageable dependency upgrades. These are the usages I plan to try gradually, and they cannot yet be considered large-scale workflows that have been validated.

Tasks that rely on local state will remain on my local machine. Local files, running services, browser login status, and VPN access will not be automatically transferred to the cloud. [The difference between local and cloud environments.](https://learn.chatgpt.com/docs/environments/modes)

Browser-related tasks require particular attention. The official documentation still lists computer and browser operations as capabilities not yet supported in cloud environments. Whether installing Headless Chrome, Playwright, or Agent Browser will meet project requirements needs further testing. [Current limitations](https://learn.chatgpt.com/docs/environments/cloud-environments#current-limitations)

Network access also needs to be prepared separately. It's worth checking which package management sources, APIs, and sites need to be accessed, whether the domains have been allowed, and whether authentication has been configured before deploying the environment.

Furthermore, moving to the cloud does not mean you have an additional separate credit limit. Local and cloud tasks share the same data allowance, but cloud tasks may consume more; the exact consumption depends on the model and task. [(Usage details )](https://learn.chatgpt.com/docs/pricing)

Regarding the "automatic start every night" feature, scheduling methods are also involved. Desktop scheduled tasks, web tasks, and GitHub Actions each have their own execution conditions; you can't assume they all run in this deployed environment just because you see "scheduled." (See also: [Scheduled Task Explanation](https://learn.chatgpt.com/docs/automations), [GitHub Action Explanation)](https://learn.chatgpt.com/docs/github-action)

My current priority is to first establish a complete task: the environment can be reused, the agent can complete modifications and verifications, and finally, a PR that is easy to review is submitted. Once this process is reliable, I can then increase the number of parallel processes or add timers and event triggers, so I can be confident in knowing where my submitted work is at.

* * *

Product mechanism verification date: 2026-10-18. This article discusses the new version of Codex Cloud; cloud compatibility of browser tools and full plugins has not yet been tested.
