Codex Agent Loop

Understand and apply how the Codex agent loop works, including request assembly (`instructions`, `tools`, `input`), thread/turn/item mental models, tool iteration, prompt growth, caching, compaction, and where `model_instructions_file` and `AGENTS.md` enter. Keep the local references for the durable conceptual model, but fetch current official docs via `openaiDeveloperDocs` for exact config, prompt-loading, and other evolving Codex behavior.

wisdom-in-a-nutshell 81fb795 12 files · 688.6 KB Updated

File contents

wisdom-in-a-nutshell/agents/tree/main/skills-source/owned/codex-agent-loop commit 81fb795033

Frequently asked questions

npx skillmds@latest add wisdom-in-a-nutshell/codex-agent-loop