Codex
Advanced
Codex Controls, Context, and Subagents
Use approvals, sandboxing, AGENTS.md, skills, memories, and subagents without losing control of the repo.
50 min
4 sections
codex
approvals
sandbox
subagents
skills
1
2
3
4
01. Approval modes are engineering controls
Section 1 of 4
Codex approval modes are not cosmetic. Use Chat mode when you want explanation or planning only. Use Agent mode when Codex can read, edit, and run project commands inside the working directory. Use broader access only when the task truly needs network or out-of-workspace access and the repository risk is acceptable.
text
Safe escalation pattern:
1. Ask Codex to inspect and plan.
2. Approve file reads and local commands needed for diagnosis.
3. Approve edits only after the plan is specific.
4. Approve network only when docs, package installs, or remote APIs are required.
5. Review every diff before commit.Back to Course