AI Engineer

Building on the Codex Harness — Dominik Kundel, OpenAI

1835 summary words 8 min summary Watch video

Start with the signal

8 min read

Summary

At-a-Glance

  • Verdict: Watch fully
  • Core thesis: OpenAI's open-source Codex App Server exposes the full Codex harness through a versioned JSON-RPC protocol, enabling teams to build deeply integrated, custom agent clients without rebuilding orchestration, tool use, threads, authentication, or sandbox controls from scratch.
  • Why it matters: It provides a practical control-plane option for production agent interfaces: teams can retain Codex's tuned base harness while adding their own UI, tools, policies, workflows, parallel task management, and user authentication.
  • Best use: Use this as implementation guidance for evaluating whether Codex App Server should underpin a custom coding-agent surface, internal eval harness, IDE/workflow integration, or embedded AI operator interface.

Executive Summary

Dominik Kundel positions the Codex App Server as the protocol layer around the open-source Codex harness. It is a JSON-RPC-style client/server interface used by OpenAI's own Codex app and IDE extensions, as well as third-party clients. Rather than treating Codex as a fixed chat product or a one-shot CLI command, the App Server lets an application access harness-level functions such as threads, streaming events, configuration, file search, filesystem operations, plugins, goals, and agent turns.

The core architectural recommendation is to customize around the existing harness rather than replace it. Developers should add developer instructions to Codex's base instructions instead of writing a wholly new system prompt, and should expose application-specific capabilities as dynamic tools. When many tools are available, mark them for deferred loading so Codex finds them through tool search rather than receiving every tool definition in the initial context.

The talk draws a clear boundary between Codex exec and the App Server. Codex exec is the simpler non-interactive option for scripted or CI/CD work such as auto-fixing pull requests. The App Server is for richer, stateful products: custom user interfaces, visible agent activity, concurrent Codex threads, eval harnesses, and functionality such as goal mode. Its practical production advice is to bundle a known App Server version with the application rather than relying on whatever Codex CLI version an end user happens to have installed.

The Doom demo is intentionally playful, but it illustrates the substantive point: Codex can be embedded in non-chat interfaces and provided with local, domain-specific tools while still retaining access to its workspace and shell. The meaningful opportunity is not putting an agent in a game; it is treating the harness as reusable infrastructure for purpose-built operator experiences.

Key Takeaways

  • Claim: Codex App Server is a reusable harness protocol, not merely an API endpoint for sending coding prompts. | Evidence: It uses a JSON-RPC-style protocol between a client application and the Codex App Server, powers OpenAI's Codex app and IDE/VS Code extensions, and also underlies integrations including Xcode, JetBrains, T3 Code, RemoteX, and a Cloud Code plugin. | Implication: Ken can treat it as an agent control-plane primitive for building a differentiated Codex interface rather than recreating thread management, event streaming, and core harness behavior. | Caveat: The protocol is actively evolving, with more than 120 client messages and regular additions, so client compatibility must be managed deliberately.
  • Claim: The App Server offers deeper harness control than generic agent-client protocols such as ACP. | Evidence: Kundel describes ACP as more generic, while App Server exposes Codex-specific controls including initialization, thread modifications and turns, goals, plugins, file search, filesystem modification, model/provider selection, and sandbox restrictions. | Implication: Use App Server when Codex-native capabilities and operational controls matter more than maintaining a model-agnostic abstraction. | Caveat: This Codex-specific depth trades some portability for tighter control of a particular harness.
  • Claim: The safest customization strategy is to append developer instructions rather than replace Codex's base system prompt. | Evidence: Developer instructions are appended to Codex's system prompt; OpenAI uses this pattern to distinguish app-specific behavior from IDE or CLI behavior. Kundel warns that replacing the base prompt forfeits ongoing prompt tuning designed to keep agent behavior in distribution across models. | Implication: For a custom surface, begin with narrow task-, workflow-, and policy-specific instructions, then evaluate before taking ownership of the full base prompt. | Caveat: This preserves OpenAI's default harness behavior, so teams needing radically different policy or reasoning behavior may eventually need a separate evaluation and prompting strategy.
  • Claim: Dynamic tools should be exposed as application capabilities, but deferred-loaded when possible to protect context quality. | Evidence: The App Server supports directly defined dynamic tools as well as MCP-style integrations; tools can be marked deferred so Codex uses a tool-search mechanism instead of injecting all definitions into the system prompt. The Doom demo exposed tools for granting armor, health, weapons, and ammunition. | Implication: Design a compact, searchable tool catalog for OpenClaw or internal operations rather than placing every integration and schema into every agent context. | Caveat: Deferred tools still need clear naming and retrieval behavior so the agent can discover the right function when needed.
  • Claim: App Server is the appropriate integration layer for stateful, concurrent agent products; Codex exec is better for one-off automation. | Evidence: Kundel recommends Codex exec for non-interactive scripting and CI/CD actions such as auto-fixing a PR. He recommends App Server for comprehensive clients, displaying the agent, running multiple Codex threads, eval harnesses, and goal-oriented workflows, because clients can create new thread events rather than self-managing parallel exec invocations. | Implication: Separate the architecture: use exec-like jobs for narrow CI automations, and use App Server where human oversight, long-lived state, parallelism, or workflow orchestration is central. | Caveat: For simple deterministic pipeline steps, the richer App Server lifecycle may be unnecessary overhead.
  • Claim: Production clients should ship a pinned App Server/harness binary rather than depend on a user's locally installed Codex CLI. | Evidence: The App Server ships with the Codex CLI as the same binary, and OpenAI bundles it inside the Codex app. Kundel explicitly recommends bundling because protocol capabilities change between versions and locally installed CLIs can be outdated or introduce breaking changes, especially for experimental features. | Implication: Treat harness versioning as part of the product runtime contract; pin it, generate bindings/schema for that exact version, and upgrade through controlled compatibility testing. | Caveat: Bundling creates a release-management obligation: the application owner must test, distribute, update, and secure the embedded harness version.
  • Claim: The App Server allows custom products to preserve user access through their existing ChatGPT subscription. | Evidence: The protocol supports Sign in with ChatGPT, allowing users of an App Server-based application to use their own ChatGPT subscription and consume Codex usage from their Codex limit. | Implication: This could reduce adoption friction for developer-facing tools, but any enterprise deployment still needs a separate identity, authorization, and usage-governance review. | Caveat: The talk does not cover enterprise identity, organizational authorization, audit controls, or billing-policy details.

Detailed Brief

Implementation mechanics and deployment options

  • Claims: The App Server can run over either standard input/output or WebSockets.; OpenAI provides a recently released Python SDK that handles lifecycle management and simplifies familiar integration patterns.; Developers can generate TypeScript bindings or JSON Schema for the specific App Server version they are using.
  • Evidence: The App Server is included in the Codex CLI binary, so an existing CLI installation can start it immediately.; OpenAI's Codex desktop app packages a versioned binary in its application bundle; on Windows it includes both Linux and Windows builds to support WSL and native execution.; Kundel says schema/binding generation is particularly useful because the protocol changes regularly between releases.
  • Caveats: The speaker does not prescribe STDIO versus WebSockets; transport selection depends on the deployment and client architecture.; The talk provides no performance, resource-isolation, remote-hosting, or multi-tenant operational benchmarks.
  • Implications: A local desktop or IDE integration can begin with the CLI-provided binary, while a distributable product should adopt a deliberate embedded-runtime distribution strategy.; Generated contracts should be incorporated into CI to detect protocol mismatch when upgrading the pinned harness.

Interface design: beyond chat

  • Claims: A Codex-based product does not need to resemble a conventional agent chat application.; The agent can be triggered from an existing product UI, run in the background, or be embedded in specialized hardware or domain applications.
  • Evidence: The demo used an Electron application with Cloudflare's Doom WASM renderer and connected the in-game interface to App Server through Electron IPC.; Despite the unconventional UI, Codex could invoke game-specific dynamic tools and also call Z shell to inspect its actual local working directory.
  • Caveats: The Doom implementation is a capability demonstration, not evidence that arbitrary embedded interfaces provide good usability, safety, or operational observability.
  • Implications: The relevant design question for Ken is where agent actions fit naturally in an operator's workflow, not whether a chat pane can be added to an application.

Notable Concepts & Terms

  • Codex App Server: The open-source protocol wrapper around the Codex harness that lets custom clients initiate and manage Codex behavior at a granular level.
  • Codex harness: The underlying agent runtime and behavioral scaffolding that Codex clients use; the speaker argues it should be extended rather than rebuilt.
  • JSON-RPC-style protocol: The message-based client/server mechanism through which applications send requests and receive events, streaming deltas, thread state, and agent actions.
  • Developer instructions: Application-specific instructions appended to Codex's existing system prompt, preserving the tuned baseline behavior.
  • Dynamic tools / deferred loading: Custom callable functions made available to the agent; deferred loading moves discovery to tool search to avoid bloating the initial context window.
  • Codex exec: A non-interactive CLI interface suited to scripts and CI/CD tasks, contrasted with App Server's richer stateful and multi-threaded client capabilities.
  • Sign in with ChatGPT: An authentication path that lets users bring an existing ChatGPT subscription to an App Server-based Codex client.
  • ACP (Agent Client Protocol): A more generic protocol reference point; App Server is presented as more Codex-specific and therefore capable of exposing deeper harness configuration.

Operator Notes / Why Ken Should Care

  • Run a small architecture spike comparing Codex App Server against the current OpenClaw control plane for one workflow that needs parallel threads, visible progress, tool calls, and human intervention.
  • Adopt a harness-runtime policy: pin and bundle the exact App Server binary, generate version-matched schemas/bindings, and require compatibility tests before upgrades.
  • Audit existing tool catalogs for context bloat; convert non-core integrations to deferred tools and test whether tool search retrieves them reliably.
  • Establish a prompt-governance rule that custom Codex deployments start with developer-instruction overlays; require eval evidence before replacing or heavily overriding base instructions.
  • Keep CI remediations such as PR auto-fix on the simpler exec path unless they need stateful review, parallel task orchestration, or interactive controls.
  • Before relying on ChatGPT sign-in for an organizational product, validate enterprise identity mapping, authorization boundaries, telemetry, auditability, and usage/billing policy.

Source/Metadata

  • Title: Building on the Codex Harness — Dominik Kundel, OpenAI
  • Transcript words: 4134
  • Duration seconds: 1087
  • Timestamp note: No timestamps or chapters were present in the supplied transcript; the latter portion repeats the prior demo and closing guidance.
Full transcript 2990 words · 18 min read
0:00

All right, hi everyone.

0:12

I want to start with a quick raise of hands. How many of you have built your own Agent Harness? All right, how many of you feel like it's way too intimidating to build an Agent Harness? Okay, cool. So over the next 18 minutes or so, I want to talk to you all about how you can actually build on top of the Codex Harness and hopefully make it a bit easier and less daunting for you to actually build your own interfaces on an Agent Harness and hopefully also a little bit fun. My name is Dom. I work at OpenAI on developer experience, specifically for Codex. And I have one more raise of hands. I promise I'm going to give you all a break.

0:37

But how many of you have heard of the Codex App Server? All right, this was a bit of a trick question because if you attended the keynote yesterday, all of you should have raised your hand. Otherwise, you probably didn't listen to Roman. But we talked briefly about it yesterday, but we didn't really explain what the App Server is. So the App Server is actually the protocol that wraps the Codex Harness. If you've ever looked into something like Agent Client Protocol, this is a very similar concept where basically we have a protocol that allows you to directly build on top of the harness and deeply integrate into it.

0:53

And we'll talk a bit in a talk about what the differences are between App Server and ACP. The big thing here to keep in mind is both the Codex Harness as well as the App Server itself are open source. So we're going to cover a couple of different things on how you can engage with it. But more importantly, we're going to both dive tomorrow in the afternoon into how a couple of these things work behind the scenes. But you can also always just ask Codex to read the repo and dive really deep into it. It's Apache 2 licensed. So feel free to fork it, make it your own, and have fun with it.

1:10

You can even connect it to any other model provider as long as they have a responses API compatible API. We even have convenience settings to connect it easily to LM Studio or OLAMA. In terms of how it works, the App Server protocol is a JSON RPC style protocol that we actually use to power the Codex app, the IDE extension, our VS Code extension, so all of our first party interfaces, but also third party ones. So if you've ever used Codex through Xcode, JetBrains, IDEs, or even some open source projects like Theo's T3 Code or RemoteX, all of these are powered by the same harness, the same App Server.

1:25

We even used it earlier this year to put Codex into Cloud Code using that same App Server. So if you're still on Cloud Code and you want to use Codex from there, either to have it review your code or pass off tasks to Codex to handle it, you can actually use that plug-in and it uses that same App Server, that same harness behind the scenes. If you've looked into things like ACP, this should seem pretty familiar. At a high level, basically the App Server, the way it works, is we're going to send messages between the client, which is the application you're building, and the server, which is the Codex App Server, to perform different actions and receive events.

1:37

But rather than showing you a bunch of hypothetical messages, I went a bit overboard and actually built a little inspector that intercepts all of the events between the real Codex App and the Codex App Server. So we can look at some real events. Let me actually switch over here to the Codex App. So I loaded up that same inspector in the in-app browser here of the Codex App. And so if we send a message, we're going to see here a bunch of different events coming in. This might seem daunting at first, but as you're going through some of these messages, a lot of this should feel relatively familiar. So we can look through here. So this might be a... Let me do this once more.

1:58

I think I had some old ones offered, so... I'm just going to start a new one. There we go. Also, don't mind my Codex pad up here. But you're going to see different messages from threads being started with your different configurations of what is actually happening, what project are we working on, over to configuration reads, where there's new threads being started, and then here's some of your delta messages of data actually being streamed in. And so there's a lot of additional information that you can find here. And one of the big things that makes this protocol so flexible is that we're really exposing anything that is really in the app at key functionality.

2:24

Meaning, if we're streaming in things, we're doing file search, all of that information is actually handed back and forth between the app server and the app. And so if you're building your own harness integration, your own client, you can actually leverage the same capabilities. In fact, we have right now over 120 different client messages that we continuously add more to. And this goes from everything from initialization, where you're able to configure some of the more specific things to your client, over thread modifications and turns, which are sort of the things that you would assume are like the most classic things.

2:36

But also stuff like setting a goal, if you want to implement your own version of goal mode, and listing plugins, doing all of the different other aspects that you might see in the app, all the way to things like file search and modifying the file system. So you can really have that full access. We also try to make it easy so that you can configure the underlying agent. And that's a bit different to ACP, where it's a more generic protocol. We can actually give you more control over the individual parts of the harness as well through the protocol. And we'll look into that in a second.

3:03

The other thing that's exciting for a lot of people is you can actually, if you're using this protocol, you can have sign in with ChatGPT as part of that, meaning that if someone is using your app, they can still bring their own ChatGPT subscription, and it goes off their Codex usage limit. So if you've used something like T3 code or similar, you're actually using that. In terms of customizing the agent, the biggest two things that you might want to look at if you're building on top of this app server is developer instructions as a way for you to augment the instruction, the system instructions of the actual app as well as bringing tools.

3:15

So with developer instructions, we're actually appending on top of the system prompt of Codex. You can look at the actual system prompt of Codex as well. It's in the repo. But we generally recommend that you actually append to that using the developer instructions. That way, you're still leveraging all of the work that we put into tweaking the prompts for the individual models while still customizing it for your specific use case of the harness. This is, for example, what we do when you load up the Codex app, since there's some functionality that is more specific for the app over the IDE extension or CLI, for example.

3:36

And then the other part of this is dynamic tools, where you can expose additional functions that you want the agent to be able to use. You could use MCP or other things similar to what you would do in the agent client protocol. But you can also just straight up define tools and you can actually mark them as deferred loading, which means that rather than injecting them into the system prompt, it allows Codex to use a tool search tool, which we'll cover more tomorrow in the other session. But it allows it to find these tools through tool search rather than polluting the overall context window.

3:48

And then on top of that, you can even on a per thread basis modify any other configuration that you might have for your agent. So think about setting a different model provider, choosing a different model, or even doing fine-grained control on the sandbox, like what network connections it should have access to or what files it can modify. In terms of how you can actually use the app server, the first thing to know is that the app server actually comes as part of the Codex CLI. It's the same binary. So if you have the Codex CLI already on your system, you can just use that to spin up the app server right now.

4:12

But you can also look at how we're, for example, shipping it with the Codex app. So the Codex app has the binary as part of the actual bundle. So if you're looking into your installed Codex app, you should find it in the contents of that bundle. And it changes with every version of the app that you're updating.

4:27

We're shipping a new version of the CLI behind the scenes. On Windows, we actually ship with two versions of the binary, both the Linux compiled one and the Windows one, so that if you're loading the app in WSL mode, it uses the Linux one, and otherwise it starts up the app server in Windows native. From here, you actually have a lot of different additional convenience functionality.

4:37

One, you can have Codex generate you for that particular version of the app server, the TypeScript bindings, or the JSON schema, which is incredibly helpful since this protocol regularly changes between versions, which is also why you actually want to bundle it with your application, which is what we're doing with the Codex app, so that you have full control over what are the actual capabilities of the version that you're expecting to build against. In terms of protocols, you can spin up the app server both using standard input-outputs, so STDIO, or you can use WebSockets.

4:48

It's going to depend on your use case, and honestly, the easiest way to figure out what works better for you is probably to just ask Codex. From here, there's two ways that you can integrate it most easily. The first one is the Python SDK that we recently released. It handles a lot of the lifecycle management for you, so you don't have to deal with any of that, and then on top of that, it makes it a bit easier for you to integrate things like sign-in with ChatGPT and gives you a familiar interface. That being said, we are at an AI engineer conference, so probably most of you are going to choose option two, which is you just ask Codex.

5:10

So unsurprisingly, Codex is incredibly good at implementing this protocol, and you largely just have to point it at the documentation. In most cases, you don't even have to do that, but it sometimes helps to nudge it. And from here, you can combine it with any of our plugins like Build Mac OS apps if you want to quickly spin up something or completely go wild. I used it, for example, to build a client using Visual Basic to have a truly Windows native app, and it did it largely in one shot. So you can build really impressive applications with this in a fairly short amount of time without you having to learn all the nitty-gritty parts of building an agent.

5:39

The most interesting thing for me with this app server, though, is that you're not limited to the classic agent chat interface. You can really be creative, whether it's how you actually trigger it inside of your UI and your existing app, whether you're running it in the background, whether you put it on weird hardware like Maddie does all the time, or if you're like me, you think about how can I shove this into video games. And recently, I think a month ago or so, I thought about how can I actually run Codex inside of Doom rather than running Doom inside of Codex. And I figured let's actually do that live, and I'm going to dismiss a couple of messages here.

6:05

So I have this Codex app Doom version, and I booted up in the wrong window, so let me pull that over. There we go. So this is an Electron app that uses Cloudflare's Doom WASM renderer. And most of the game engine itself is implemented in C. And then it loads the free Doom game, except that I actually had Codex change the game file. So you can see here, this is rendered natively in the video game using all of that game engine. And if we actually interact with it here, we're booting up Codex. And again, this is rendered natively inside the actual video game. And then it passes it to the app server using Electron's IPC protocol.

6:44

So if we say hello here, we can see Codex actually responding. So this is using 5.5. The fun part, though, is you can actually use dynamic tools to expose additional functionality. So naturally, we can get all of the armor and health. And it's calling the tools. Gives me all that. Or even, say, all the weapons with all ammo. And it's calling all of the different tools. So it's interacting with that. But again, remember, this is still an app server actually running on my machine. So if I say, what's the directory? It's actually calling Z shell, getting the current working directory. And you can see here, it's rendering.

7:57

It has its own workspace. So if you want, you can code directly inside Doom. Not sure if I would recommend it. I think the Codex app is slightly better for this. But you can really have fun here and implement your own interface. Awesome. I talked with a couple of you already during the show about the app server. And one question that came up a lot of times is, what's the difference with Codex exec? So if you've used the Codex CLI before, you might be familiar with this. There's another command called Codex exec, which spins up a non-interactive interface for you to kick off tasks to Codex. This is great for scripting.

9:07

If you're building a CI CD implementation and you want to script certain acts like auto-fixing a PR, this is a great opportunity. But if you're trying to build a more comprehensive client where you're showing the agent, or more importantly, if you're trying to do something where you're spinning up a bunch of different Codex threads at the same time. For example, you're running your own eval harness or you want to use slash goal.

9:19

That's where the app server really shines because you have that full control over the harness and you don't have to figure out your own way of parallelizing all of the Codex exec calls rather than just sending off a bunch of new threat events and spinning off tasks that way. Before I let you all go to the keynote, I have three more tips just to recap what we talked about, things that you should keep in mind if you're using the app server. The first one is you should actually ship your own version of the harness. This will eliminate so many headaches for you if you're relying on the user's installed CLI.

9:35

You're going to constantly run into things from breaking changes, even though we are trying to minimize them. But if you're relying on experimental features, that might happen. But you also don't have to worry about whether a user has actually updated their version and has the latest feature that you want to use or have them nudge them updating it. So ship your own version of the harness. The other part is you should absolutely expose new functions as part of your interface. We do this with the Codex app, for example, for it to be able to control itself as part of the Codex thread, spinning up automations, etc. But mark them as deferred.

10:05

That way you're not polluting the context window unnecessarily with all of the different additional functions that you're adding. And instead, still have them available for the agent without necessarily confusing it. And if you are changing the instructions, try to start with adding developer instructions rather than changing the base instructions. It might feel like you want to immediately rush to, I'm going to write my own system prompt. But there's a lot of different things that we constantly have to think about when we're building a harness to make sure that the actual prompt is in distribution and make sure that the agent performs well.

10:21

And you're losing out on all of that if you're actually jumping in and writing your own system prompt. So be careful there if you're doing that. And with that, thank you so much. Thanks for taking your time. Feel free to scan that QR code if you want to have the slides. And I'll be around for the next 15 minutes at the OpenAI booth if you want to ask me any questions there. Thank you so much. That being said, we are at an AI engineer conference, so probably most of you are going to choose option two, which is you just ask Codex. So unsurprisingly, Codex is incredibly good at implementing this protocol, and you largely just have to point it at the documentation.

11:02

In most cases, you don't even have to do that, but it sometimes helps to nudge it. And from here, you can combine it with any of our plugins like Build Mac OS apps if you want to quickly spin up something or completely go wild. I used it, for example, to build a client using Visual Basic to have a truly Windows native app, and it did it largely in one shot. So you can build really impressive applications with this in a fairly short amount of time without you having to learn all the nitty-gritty parts of building an agent. The most interesting thing for me with this app server, though, is that you're not limited to the classic agent chat interface.

11:44

You can really be creative, whether it's how you actually trigger it inside of your UI and your existing app, whether you're running it in the background, whether you put it on weird hardware like Maddie does all the time, or if you're like me, you think about how can I shove this into video games. And recently, I think like a month ago or so, I thought about how can I actually run Codex inside of Doom rather than running Doom inside of Codex. And I figured let's actually do that live, and I'm going to dismiss a couple of messages here. So I have this Codex app Doom version, and I booted up in the wrong window, so let me pull that over. There we go.

12:36

So this is, oh, it messed up the controls, my bad. One sec. Something with this like dual monitor setup sometimes messes with the control capture. So let's hope that this works better now. Yeah. OK, so this is an Electron app that uses Cloudflare's Doom WASM renderer. And it's so most of the game engine itself is implemented in C. And then it loads the free Doom game, except that I actually had Codex change the game file. So you can see here, this is rendered natively in the video game using all of that game engine. And if we actually interact with it here, we're booting up Codex. And again, this is rendered natively inside the actual video game.

13:27

And then it passes it to the app server using Electron's IPC protocol. So if we say hello here, we can see Codex actually responding. So this is using 5.5. The fun part, though, is you can actually use dynamic tools to expose additional functionality. So naturally, we can get all of the armor and health. And it's calling the tools. Gives me all that. Or even, say, like, all the weapons with all ammo. And it's calling all of the different tools. So it's interacting with that. But again, remember, this is still an app server actually running on my machine. So if I say, like, what's the directory? It's actually calling Z shell, getting the current working directory.

14:24

And you can see here, it's rendering. It has its own workspace. So if you want, you can Vibe code directly inside Doom. Not sure if I would recommend it. I think the Codex app is slightly better for this. But you can really have fun here and implement your own interface. Awesome. I talked with a couple of you already during the show about the app server. And one question that came up a lot of times is, what's the difference with Codex exec? So if you've used the Codex CLI before, you might be familiar with this. There's another command called Codex exec, which spins up a non-interactive interface for you to kick off tasks to Codex. This is great for scripting.

15:08

If you're building a CI CD implementation and you want to script certain acts like auto-fixing a PR, this is a great opportunity. But if you're trying to build, like, a more comprehensive client where you're showing the agent, or more importantly, if you're trying to do something where you're spinning up a bunch of different Codex threads at the same time. For example, you're running your own, like, eval harness or you want to use, like, slash goal.

15:38

That's where the app server really shines because you have that full control over the harness and you don't have to figure out your own way of parallelizing all of the Codex exec calls rather than just sending off a bunch of, like, new threat events and spinning off tasks that way. Before I let you all go to the keynote, I have three more tips just to recap what we talked about, things that you should keep in mind if you're using the app server. The first one is you should actually ship your own version of the harness. This will eliminate so many headaches for you if you're relying on the user's installed CLI.

16:16

You're going to constantly run into things from, like, breaking changes, even though we are trying to minimize them. But if you're relying on experimental features, that might happen. But you also don't have to worry about whether a user has actually updated their version and has the latest feature that you want to use or have them nudge them updating it. So ship your own version of the harness. The other part is you should absolutely expose new functions as part of your interface. We do this with the Codex app, for example, for it to be able to control itself as part of the Codex thread, like spinning up automations, et cetera. But mark them as deferred.

16:54

That way you're not polluting the context window unnecessarily with all of the different additional functions that you're adding. And instead, still have them available for the agent without necessarily confusing it. And if you are changing the instructions, try to start with adding developer instructions rather than changing the base instructions. It might feel like you want to immediately rush to, I'm going to write my own system prompt. But there's a lot of different things that we constantly have to think about when we're building a harness to make sure that the actual prompt is in distribution and make sure that the agent performs well.

17:29

And you're losing out on all of that if you're actually jumping in and writing your own system prompt. So be careful there if you're doing that. And with that, thank you so much. Thanks for taking your time. Feel free to scan that QR code if you want to have the slides. And I'll be around for like the next 15 minutes at the OpenAI booth if you want to ask me any questions there. Thank you so much.

Reading tools

Type to find a passage

Appearance
Ask this transcript

Add a note