AI Engineer

Building on the Codex Harness — Dominik Kundel, OpenAI

Published 2026-10-09 · Duration 18:08

Summary

Dominik Kundel details the Codex App Server, an open-source JSON-RPC protocol designed to simplify building custom agent harnesses on top of the Codex framework. The App Server powers all first-party and third-party Codex interfaces (including IDE extensions and Xcode/JetBrains clients). It provides deep control over the agent, allowing developers to manage over 120 client messages, implement developer instructions, and utilize dynamic/deferred tools without polluting the context window. The talk also contrasts the App Server with `codex exec`, recommending the App Server for complex, multi-threaded, or highly customized client implementations.

Download summary

Key takeaways

  1. Codex App Server Protocol 1:52

    The App Server is an open-source JSON-RPC protocol that wraps the Codex harness, allowing deep integration and building on top of the core functionality. It is compatible with any model provider that has a compatible API, and is licensed under Apache 2.

  2. Advanced Agent Customization 10:56

    Developers can augment the agent using 'developer instructions' (which append to the system prompt) and expose 'dynamic and deferred tools.' Deferred loading is crucial as it allows the agent to find tools via a search mechanism rather than injecting them directly into the context window.

  3. App Server vs. `codex exec`

    While `codex exec` is excellent for non-interactive scripting (e.g., CI/CD tasks like auto-fixing a PR), the App Server is superior for building comprehensive clients, managing multiple concurrent Codex threads, or implementing advanced features like goal mode.

  4. Shipping and Integration

    Best practices include shipping a custom version of the harness to avoid reliance on user-installed CLIs and marking new functions as deferred to prevent context window pollution.

Technical details

  • Protocol Mechanics 217s

    The App Server uses a JSON-RPC style protocol to send messages between the client (the application) and the server. It exposes core capabilities like file search, thread management, and configuration reads, allowing full client-side control.

  • Client Messaging and Control 440s

    The protocol supports over 120 client messages, covering everything from initialization and thread modification to setting goals and modifying the file system.

  • Development Workflow 846s

    The App Server is available via the Codex CLI binary. Developers can generate TypeScript bindings or JSON schemas for the specific version they are building against, which is critical due to the protocol's regular changes.

  • Demo: Codex in Doom

    A live demonstration showed Codex running natively inside the video game Doom, passing interactions to the App Server via Electron's IPC protocol, and utilizing dynamic tools to interact with game state (e.g., health, weapons).

Mentioned resources

Channel & topics

Watch on YouTube · Back to latest

This independent, AI-assisted summary is provided for commentary and informational purposes. It may contain errors or omit important context. Please watch the original video for the creator's complete presentation. Video, thumbnail, and related copyrights belong to their respective owners.