Codex's Git-workspace default profile: free source edits, .git write-blocks, inherited sandbox for all descendants

OpenAIDevs · x · 2026-11-19

Another entry in OpenAI's Codex sandbox thread: when a Git repository is the workspace, the default permission profile lets Codex edit source files without explicit approval but blocks writes to the root .git and .codex folders. Broad filesystem reads are allowed subject to existing OS permissions, so commands can access tools and libraries outside the repo. Crucially, every child process inherits its parent's sandbox constraints, which persist throughout the process tree — even for descendants that outlive the original command.

Related event: OpenAI explains how Codex sandbox uses OS-level isolation and a domain-rule network proxy instead of containers(3 posts)→

Original post →

More from coding & agent

coding & agent channel →