The news: OpenAI explains how Codex limits commands
On November 18, 2026, OpenAI published an engineering explanation of the Codex sandbox, describing how its coding agent runs commands inside filesystem and network limits controlled by the user. The announcement is useful because discussions about coding assistants often concentrate on intelligence while overlooking the permissions that turn a suggested command into an action on a real computer. This article examines the published design and its practical implications; the recommendations below are analysis, not a report of independent security testing.
The central distinction is straightforward: a model decides what it wants to do, while the surrounding software determines what it can actually access. Better reasoning does not replace operating system restrictions. An agent can misunderstand instructions, encounter misleading project content, or make an ordinary implementation mistake. A sandbox reduces the consequences by restricting its commands, rather than relying exclusively on the model to choose safe actions every time.
Why the default boundaries matter
OpenAI describes a workspace permission profile that permits changes within the workspace while protecting selected configuration and Git directories from direct modification. That arrangement supports normal development without asking for approval for every source edit. It also recognizes that configuration files and Git hooks deserve stronger protection because changing them can affect later execution. Teams should inspect the actual profile active in their installation rather than assuming every session uses identical defaults.
The published profile also allows broad filesystem reads, subject to operating system permissions. OpenAI explains that development tools depend on libraries, SDKs, and configuration outside a repository, making strict workspace-only reading inconvenient. This is an important qualification. A workspace write boundary is not the same thing as a workspace confidentiality boundary. Sensitive information elsewhere on the machine may remain readable even when the agent cannot modify those files.
Network access is disabled in the described default profile. That helps prevent direct uploads of information available to a command, but it can also interrupt legitimate operations such as downloading dependencies. The tradeoff is not evidence that the sandbox is broken. It is evidence that a useful security boundary sometimes blocks useful activity. A deliberate approval process should distinguish the narrowly necessary download from a general request for unrestricted connectivity.
Native isolation rather than a copied environment
The engineering article says Codex uses platform-specific sandboxing facilities on macOS, Linux, and Windows instead of requiring every workflow to move into a container. The attraction is compatibility with the developer's existing environment. Native mobile tooling, specialized SDKs, and locally configured build systems can be difficult to reproduce elsewhere. Keeping computation on the host avoids some duplication, while applying access restrictions around the commands that the agent launches.
That approach does not mean containers or virtual machines are obsolete. Different projects need different isolation properties. A disposable virtual machine may be appropriate when evaluating unfamiliar code, whereas native restrictions may fit an established application with a trusted toolchain. The right comparison is not which mechanism sounds strongest in isolation, but which one enforces the required boundary across the complete workflow, including tools started outside that boundary.
The overlooked risk: actions that execute later
One of the most valuable points in OpenAI's explanation concerns writable dependencies. An agent might modify an ignored package inside the workspace, and an editor could later execute that package outside the sandbox. The change might not appear in an ordinary Git status view because dependency directories are commonly ignored. This illustrates why a clean source diff is useful but insufficient evidence that the surrounding development environment has remained unchanged.
For a professional team, the implication is to think about execution across time. A command that cannot reach the network today may leave behind code that another process runs tomorrow. Dependency integrity, trusted editor extensions, controlled build scripts, and reproducible installations therefore complement runtime restrictions. None of these measures needs to prevent ordinary programming. Their purpose is to make changes visible and keep sensitive execution paths from becoming accidental escalation routes.
Build a permission profile around the task
Start with the job the agent is supposed to perform. A read-only code review does not need the same privileges as implementing a feature, running a migration, or deploying an application. Write down the required inputs, writable locations, external destinations, and approval points before granting access. This makes it easier to identify an overbroad request and gives reviewers a concrete reason to approve or reject a particular exception.
Next, separate development credentials from production authority. Even a well-designed sandbox should not be the only barrier between an experimental code change and a live customer database. Use restricted accounts and nonproduction data where possible. When a task genuinely needs a privileged operation, treat that as a separate, explicit action. This preserves the usefulness of autonomous coding without quietly giving every build command the permissions of an administrator.
What to test before team adoption
A sensible evaluation includes successful work and intentional denials. Confirm that the agent can build the application, run relevant tests, and edit expected files. Then confirm that protected configuration cannot be changed and disallowed network requests fail as intended. Record which profile was active and which operating system was used. Otherwise, a successful demonstration on one developer's laptop may be incorrectly generalized to another platform or deployment arrangement.
Test the exception path as carefully as the default path. If installing a dependency requires approval, can the request be limited to the necessary action? Does the user understand which restriction is being relaxed? Are approvals recorded? A control that is routinely bypassed through a vague confirmation dialog offers less practical protection than its technical design suggests. Usability and security are connected because unclear prompts encourage indiscriminate approval.
Better prompts support, but do not enforce, boundaries
Prompts remain valuable for directing behavior. A useful instruction can require the agent to inspect existing conventions, avoid unrelated files, and ask before touching production resources. Such instructions describe intent, however; they are not equivalent to a filesystem rule or a network policy. Teams should resist treating a sentence that says do not upload secrets as a substitute for preventing unnecessary outbound access in the first place.
A practical task brief might ask the agent to implement a specified change, run named checks, report every modified file, and stop if a required command exceeds the approved profile. The brief should also say which operations remain human-controlled. This makes the agent's responsibilities legible without pretending that wording alone can eliminate mistakes. The best results come from aligning the prompt, the tool permissions, and the team's review process.
Procurement questions worth asking
When assessing an agent product, ask where restrictions are enforced and whether child processes inherit them. OpenAI's article describes inheritance through the command's process tree, which is significant because build tools frequently start other programs. Also ask how filesystem and network rules interact, whether administrators can enforce organization-wide requirements, and how users see the effective permissions. Product labels are less informative than answers about specific enforcement points.
Ask what the sandbox explicitly does not protect against. A vendor willing to explain residual risks gives buyers a better basis for deployment than a broad promise of secure autonomy. Useful documentation should distinguish read access, write access, network access, later execution, and access granted by other tools. It should also make clear whether remote services and integrations have their own boundaries rather than inheriting protections designed for local shell commands.
Measure the workflow, not just the model
The productivity question is whether developers can complete useful work with acceptable review effort and controlled risk. Track successful changes, permission interruptions, unnecessary approvals, and incidents involving unexpected modifications. Compare the agent-assisted process with the existing workflow instead of assuming fewer prompts always means better automation. Some approval steps are valuable because they prevent a high-consequence action from becoming just another invisible tool call.
The broader lesson from this announcement is that coding agents are systems, not merely language models. Their safety depends on the harness, the operating system, the permissions, the dependency environment, and the humans who approve exceptions. OpenAI's explanation offers a concrete starting point for examining those layers. Developers should use it to ask sharper questions, validate their own configuration, and preserve meaningful boundaries as their assistants become more capable.
Document the boundary before granting exceptions
Keep a short record of the approved profile with the task outcome. Include any temporary exceptions, who approved them, and whether they remain active afterward. This gives the next developer a useful starting point and prevents an exceptional permission from quietly becoming the default. When the work ends, confirm that the environment still reflects the intended policy. Successful automation should leave both the application and its operating boundaries understandable to the people responsible for maintaining them.
Source and reporting scope
Primary source:
OpenAI, Inside the Codex sandbox, November 18, 2026. Source reviewed November 26, 2026. Configuration details and examples above refer to that published explanation, not a guarantee about every installed version. The operational checklists are editorial recommendations. Readers should consult current product documentation and their organization's security requirements before changing permissions or introducing an agent into a sensitive environment.