Permission judgment
You choose read-only, workspace-write, or broader access based on risk, not impatience.
Module 03.5
Codex safe autonomy
This final submodule covers the advanced operating layer: sandbox modes, approval policies, network access, cloud tasks, rules, and when parallel agent work actually makes sense. The goal is not maximal freedom. The goal is proportional control.
模块 03.5
Codex 安全自主操作
最后一个子模块进入高级操作层:sandbox 模式、审批策略、网络访问、云端任务、rules, 以及什么时候并行代理工作才真的值得。目标不是追求最大自由,而是追求成比例的控制。
Outcomes
You choose read-only, workspace-write, or broader access based on risk, not impatience.
You know when to require approvals, when full automation is safe enough, and when network access is unjustified.
You use cloud tasks or parallel agents only when the tasks are disjoint and the coordination gain outweighs the complexity.
学习结果
你会根据风险而不是 impatience 来选择 read-only、workspace-write 或更高权限。
你知道什么时候必须审批,什么时候全自动已经足够安全,什么时候网络访问根本没必要。
只有当任务彼此独立、协调收益大于复杂度时,你才会使用云端任务或并行代理。
Workflow
Start from the smallest access model that can still complete the work.
Decide whether the agent should ask, request selectively, or operate without interruption.
Do not open internet access unless the task truly requires package install, docs lookup, or remote communication.
Move long-running tasks off your local machine when persistence matters more than immediate interaction.
Separate tasks by file ownership or clear responsibilities before you introduce multiple agents or threads.
工作流程
从能完成任务的最小访问模型开始。
决定代理应该每次询问、选择性请求,还是可以不中断运行。
除非任务真的需要装包、查文档或远程通信,否则不要打开网络访问。
当持久运行比即时交互更重要时,再把任务移到云端。
只有先把文件所有权或责任边界拆清楚,才值得引入多个代理或线程。
Templates
sandbox_mode = "workspace-write" approval_policy = "on-request" [sandbox_workspace_write] network_access = false
/permissions /status codex execpolicy check <command> codex --full-auto
模板
sandbox_mode = "workspace-write" approval_policy = "on-request" [sandbox_workspace_write] network_access = false
/permissions /status codex execpolicy check <command> codex --full-auto
Practice
练习
Every unnecessary approval or permission expansion trades away control. Speed gained this way is usually debt.
If two agents need the same files or the same design decisions, you probably created coordination cost instead of acceleration.
每一次不必要的审批放行或权限扩大,都是在拿控制力做交换。这样换来的速度通常会变成债。
如果两个代理需要同一批文件或同一套设计判断,你制造的很可能不是加速,而是协调成本。