On November 18, OpenAI published an engineering article about how Codex limits file and network access when it runs commands on your machine. Before asking Codex to fix or review code in an existing repository, decide which files it needs to read, which files it needs to edit, and which network resources it needs. OpenAI engineering article

What Codex can edit in a workspace

OpenAI uses a Git repository as its example. The built-in :workspace profile allows edits inside the workspace, keeps protected directories such as .git and .codex read-only, and disables networking by default. The read scope is wider. Compilers often need SDKs and configuration outside the repository, so commands may read files outside the workspace wherever the operating system permits. Teams can save permission profiles for individual projects and narrow read access for tasks that need less.

A review and a fix call for different permissions. For a review, keep source files read-only and ask for findings with file locations. For a fix, give Codex write access to the current repository and start with the dependencies and test commands already available. If a specific step needs network access, handle that request under the project's permission settings. The permission profile controls what commands can access. The prompt describes the task.

Try it on one small fix

This CodexBro example assumes the project already has a test command and its test dependencies are installed.

Fix the validation error triggered by an empty string and add a unit test for that input. Edit only the current repository. Run the relevant tests with the existing dependencies. If a dependency is missing, first list the package and the source you need to reach. Report the files changed, the test command, and the result.

Check that the new test exercises the empty string and that the edits are confined to validation and its tests. If a missing dependency or permission blocks a test, record which checks ran and deal with the specific dependency before continuing. OpenAI's article also explains how to reuse filesystem and network permission profiles across projects.