Tips and Tricks for using Codex
OpenAI Developer Community
February 23, 2026
The practical change is that agents can stay coherent for longer, complete larger chunks of work end-to-end, and recover from errors without losing the thread.
Long horizon tasks with Codex
Long horizon tasks is an OpenAI Cookbook Codex example by Derrick Choi
Takeaways for long-horizon Codex tasks
What made this run work was not a single clever prompt. It was the combination of:
- A clear target and constraints (spec file)
- Checkpointed milestones with acceptance criteria (
plans.md) - A runbook for how the agent should operate (
implement.md) - Continuous verification (tests/lint/typecheck/build)
- A live status/audit log (
documentation.md) so the run stayed inspectable
This is the direction long-horizon coding work is moving toward: less babysitting, more delegation with guardrails.
Discussion in the ATmosphere