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.
Building on the Codex Harness
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.
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.
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.
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.
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
- works atDominik Kundel works at
OpenAIDeveloper Experience & SDKs (Codex)“I work on developer experience at OpenAI”
0:16inBuilding voice agents with OpenAIYouTube Verified4 sources· Talk, Web, GitHub· archived
- feature
Codex: Open source under Apache 2 license
“both the Codex harness and the app server itself are open source”
YouTube Unverified1 source· Talk
- uses
“we use to power the Codex app”
YouTube Unverified1 source· Talk
- featureCodex app server: JSON-RPC-style protocol
“The app server protocol is a JSON-RPC-style protocol”
YouTube Unverified1 source· Talk
- integrates withCodex app server integrates with
Claude Code
“put Codex into Claude Code using that same app server”
YouTube Unverified1 source· Talk
- metricCodex app server: Over 120 client messages
“We have over 120 different client messages right now”
YouTube Unverified1 source· Talk
- featureCodex app server: Supports developer instructions and dynamically defined tools
“The two biggest things ... are developer instructions and tools.”
YouTube Unverified1 source· Talk
- featureCodex app server: Supports standard input/output and WebSockets
“you can start the app server using standard input and output (stdio), or you can use WebSockets”
YouTube Unverified1 source· Talk











