docs(agent-setup): explain running agent-device under the Codex sandbox
Merged
TH
2d ago+14+14+01234567890123456789-0-0-0123456789
Summary
Document how to run agent-device outside the macOS Codex sandbox using a per-command rule. Cover pinning the binary path, issuing standalone commands, and recognizing daemon-connect-denied.
Validation
Head 3242734119d2937ddad58c6b6792a48100263f77. Verified the permission-error classification against origin/main. git diff --check passed. CI owns repository validation. This docs-only edit needs no device or project runtime suite.
Prior head e17d83a044f01054e7ab085fe884b76a783b81a1 passed pnpm format and the following experiments.
- Codex CLI 0.172.0 on macOS 27.0 returned
EPERMfor loopback TCP and Unix sockets under the workspace,~/.agent-device, and$TMPDIRwith default settings or explicitnetwork_access=false. Withnetwork_access=true, all four connected. With networking off and--allow-unix-socketfor the workspace socket, only that socket connected. - With a host daemon already running, agent-device 0.21.45
session list --jsonreporteddaemon-connect-deniedwith networking off and succeeded with networking on. codex execpolicy checkreturnedallowforagent-device snapshot -iandagent-device press @e4-s123, including with a pinned path.cd appandpwdhad no explicit match. Codex splits both compound examples and requires an explicit allow for every segment to bypass the sandbox. Codex policy source
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.