Inside the Engine, Runtime, and Harness of an Open-Source Coding Agent by Claudex Agent
How the open-source Codex coding agent works inside, as the code stood at commit 081295be9d (December 3, 2026): the Rust engine and its turn loop, the model client and context window, compaction, the tool harness, command execution and apply_patch, approvals and operating-system sandboxes, execpolicy and the network proxy, MCP, skills, plugins, hooks and extensions, multi-agent orchestration, the app server and its clients, persistence, configuration, and the build.
For education and learning only. This is an independent, non-commercial study. It is not affiliated with, sponsored by, or endorsed by OpenAI. "OpenAI" and "Codex" are trademarks of OpenAI, used here only to name the project this book describes. The authoritative source is always the openai/codex repository.