WhoBuilt

Building on the Codex Harness

Oct 9, 2026· 18 min· 14K views·Watch on YouTube

Speaker

Dominik Kundel, who works on developer experience for Codex at OpenAI, explains how to build custom interfaces on the Codex harness at the AI Engineer conference.

What the app server exposes

Kundel describes the Codex app server as a JSON-RPC-style protocol connecting clients to the Codex harness. It powers OpenAI’s Codex app and IDE extensions, as well as third-party clients, and the harness and app server are open source under the Apache 2 license.

Customize the agent and its tools

The protocol supports more than 120 client messages for features such as threads, file operations, and goals. Developers can add developer instructions and dynamic tools, including tools marked for deferred loading so they are available through tool search without filling the context window.

Ways to integrate the app server

The app server ships with the Codex CLI, and developers can generate TypeScript bindings or a JSON schema for a specific version. It supports stdio and WebSockets; Kundel also points to a Python SDK for lifecycle management and ChatGPT sign-in, or using Codex to implement the protocol from its documentation.

A Codex client inside Doom

Kundel demonstrates Codex running inside Doom, using an Electron app, a Doom WASM renderer, and Electron IPC to connect to the app server. Dynamic tools let Codex retrieve game stats and weapons, and access the local workspace.

Choosing and shipping the right setup

Kundel says Codex Exec suits scripted tasks such as CI fixes, while the app server supports interactive clients and multiple concurrent threads. He recommends bundling a known harness version, deferring added tools, and extending the system prompt with developer instructions before considering a replacement prompt.

Takeaways

  • Bundle a specific harness version with your app to control compatibility and feature availability.
  • Use the app server for interactive clients or concurrent Codex threads; use Codex Exec for scripting.
  • Add custom tools as deferred tools to make them available without loading them into the context upfront.
  • Start prompt customization with developer instructions to retain the harness’s model-specific tuning.

Mentioned in this talk

Search inside this talk

What was claimed 10

Show all 10 facts

Related talks