Safely running unattended Codex agents: Guardrails and workflows
paw_lean · x · 2026-08-22
The author details their experience building an environment for unattended Codex agents to develop backend code, highlighting five key guardrails for safety.
- Instructions: The model reads an AGENTS.md file on every run, containing project conventions and commands to determine task completion.
- Isolation: A sandbox policy restricts the agent's shell access.
- Primitives: Infrastructure is declared in typed code rather than manual configuration.
- Verification: Agents can verify their work against local traces before submission.
- Environments: Preview environments are provided for testing, with production sizing kept outside the repo.
The post also explains the hierarchical merging rules of AGENTS.md and its critical role in supplementing implicit information missing from the codebase.
More from coding & agent
- DHH cracks Linux deep sleep on Zenbook A16: 0.16W overnight draw — cgarciae88 · 2026-11-30
- Sakana AI open-sources Agentic Scientist, pushing toward self-improving AI researchers — SakanaAILabs · 2026-11-30
- Blogger migrates Ghost blog to self-hosting in hours with Claude — kevinakwok · 2026-11-30
- Business-prose model open-sourced: trained on a single 96GB GPU, all quant formats in one repo — IridiumEagle · 2026-11-30
- Devs say vibe-coding workflow is draining the joy of programming — weskambale · 2026-11-30
- Slipwing: Open-Source Windows MCP Server Lets Agents Drive Chrome and Desktop Apps in the Background — Sudden_Analysis8617 · 2026-11-30