Run and Review a Codex Cloud Task

Prepare a Codex Cloud environment, submit a bounded repository task, and review the diff and test results.

By Chat Overview Published Updated
Cloud task
Repository
Environment
Bounded task
Diff and tests
Reviewable change
  • Scope
  • Test output
  • Remaining limits

Synopsis

Codex Cloud runs tasks in a remote workspace and can continue while the local computer is asleep. A reusable environment supplies repositories, dependencies, and access settings. The result still needs source review and testing before merging.

Prepare the environment

Use a ChatGPT account with Cloud access and a small repository with a documented test command. Connect only the repositories needed for the task. Code checked out into the environment is processed by the hosted service; check organizational data rules before connecting a private repository.

  1. Start a chat and choose Work in > Cloud.
  2. Open the environment picker and select Create environment.
  3. Select the repository and connect GitHub if prompted.
  4. Select Get started and let Codex prepare the dependencies and tools.
  5. Specify the required runtime version and test command if they are not already documented.
  6. Review the setup report and configuration, resolve missing dependencies, and select Publish.
  7. After publication, select Start a new task.

Limit network access to the services the task requires. Use the environment's secret settings for service credentials, rather than committing them or pasting them into the task. Direct environment variables are available to programs; network secrets use destination-restricted substitution.

Submit a bounded task

For a repository containing a Python parser and tests, use a task such as:

Inspect parse_config() and its existing tests.
Make it reject an empty configuration with ValueError.
Preserve the behavior of nonempty configurations.
Add a regression test and run python -m pytest.
Keep changes limited to the parser and its tests.
Report the changed files, actual test command and result,
and any checks that could not run. Do not merge or deploy.

Replace the function and command with those from the repository.

Review the result

Inspect every changed file and compare the diff with the requested scope. Read the test output, including failures and skipped checks. For a bug fix, confirm that the regression test fails on the original behavior and passes after the change. A summary saying that tests passed does not replace their output.

Request corrections in the same task when needed. Open a pull request only after review, then run the repository's normal continuous integration checks before merging. Missing tools, credentials, or network access are unfinished checks, not passing results.