How I AI - The power user’s guide to Codex: parallelizing workflows, planning techniques, advanced context engineering tips, automating code reviews, and more | Alexander Embiricos
Episode Date: January 12, 2026Alexander Embiricos, the product lead for Codex at OpenAI, shares practical workflows for getting the most out of this AI coding agent. In this episode, he demonstrates how both non-technical users an...d experienced engineers can leverage Codex to accelerate development, from making simple code changes to building production-ready applications. Alex walks through real examples of using Codex in VS Code and terminal environments, implementing parallel workflows with Git worktrees, and creating detailed implementation plans for complex projects. He also reveals how OpenAI uses Codex internally, including how they built the Sora Android app in just 28 days, and offers insights on automated code review and the future of AI-assisted development.What you’ll learn:How to set up and use Codex in VS Code and terminal environments for both simple and complex coding tasksA practical workflow for running multiple Codex instances in parallel using Git worktrees to avoid conflictsHow to create detailed implementation plans using the Plans.md technique for complex engineering projectsWhy context is critical when prompting Codex—and how to provide the right information for better resultsHow OpenAI uses automated code review to accelerate development while maintaining high quality standardsThe key differences between vibe coding for prototypes versus building production-ready applications with AIHow the new GPT-5.2 model improves Codex’s capabilities with faster reasoning and better problem-solving—Brought to you by:Brex—The intelligent finance platform built for foundersGraphite—Your AI code review platform—Detailed workflow walkthrough from this episode:https://chatprd.ai/how-i-ai/advanced-codex-workflows-with-openai-alex-embiricos—In this episode, we cover:(00:00) Introduction to Alex and Codex(02:06) Getting started with Codex(04:54) Using Codex for parallel tasks(07:34) Understanding Git worktrees(09:51) Terminal shortcuts and command-line efficiency(12:16) How OpenAI built the Sora Android app with Codex(15:37) Using PLANS.md for problem solving(17:57) The importance of high agency(22:22) Deciding between what needs a plan and what doesn’t(26:42) How to multiply the impact of Codex(28:08) Implementing automated code review with GitHub(31:58) Delivering the benefits of AGI to all humanity(34:35) Accelerating developer productivity(36:38) Recap and final thoughts—Tools referenced:• Codex: https://openai.com/blog/openai-codex• VS Code: https://code.visualstudio.com/• Cursor: https://cursor.com/• Git: https://git-scm.com/• GitHub: https://github.com/• Atlas: https://openai.com/atlas• ChatGPT: https://chat.openai.com/• Slack: https://slack.com/• Linear: https://linear.app/—Other references:• Sora Android app: https://openai.com/blog/sora• GPT-5.2 model: https://openai.com/index/introducing-gpt-5-2/• SWE-bench: https://openai.com/index/introducing-swe-bench-verified/—Where to find Alexander Embiricos:LinkedIn: https://www.linkedin.com/in/embiricoX: https://x.com/embirico—Where to find Claire Vo:ChatPRD: https://www.chatprd.ai/Website: https://clairevo.com/LinkedIn: https://www.linkedin.com/in/clairevo/X: https://x.com/clairevo—Production and marketing by https://penname.co/. For inquiries about sponsoring the podcast, email jordan@penname.co.
Transcript
Discussion (0)
People love how thorough and diligent Codex is.
It's not the fastest tool out there,
but it is the most thorough and best at hard complex tasks.
If you're a software engineer or somebody who's even just new to using some of these AI tools,
where would you get started with Codex?
We're building it into a full software engineering teammate.
One of the things that Codex is great at is simply answering questions.
If you have a chat where Codex is producing these plans and you want to change something,
it's actually really nice for the model if you just use the same chat to ask for changes to the plan,
and that way it has all this context in its head when it's ready to get going.
This is a great starter flow that shows how flexible this platform is and how it can meet a bunch of people at a variety of levels of tasks.
How is OpenAI using this for bigger features and bigger products?
We used Codex to build a SOAR app for Android in 28 days, and it immediately became the number one app in the app store.
Welcome back to How IAI.
I'm Claire Vaux, product leader and AI obsessive, here on a mission to help you build better with these new tools.
Today we have Alexander Embiricose, product lead for Codex from OpenAI.
And he's going to show us how you get the most out of codex, whether you're a non-technical
user trying to make changes to an existing codebase or want the power tips and tricks
for getting the most out of it in the terminal.
Let's get to it.
This episode is brought to you by Brex.
If you're listening to this show, you already know AI is changing how we work in real,
practical ways.
Brex is bringing that same power to finance.
Brex is the intelligent finance platform built for founders.
With autonomous agents running in the background, your finance stack basically runs itself.
Cards are issues, expenses are filed, and fraud is stopped in real time without you having to think about it.
Add Brex's banking solution with a high-yield treasury account and you've got a system that helps you spend smarter, move faster, and scale with confidence.
one in three startups in the U.S. already runs on Brex.
You can too at brex.com slash how IAI.
Alex, thanks for joining How IAI.
I'm excited about today's episode because we actually haven't seen a deep dive into Codex yet.
And we are going to get the expert take on how to get the most out of this tool.
And I love that we're just going to dive in and do a zero to one.
Hello World with Codex.
So if you're a software engineer or somebody who's even just new to using some of these
AI tools, where would you get started with Codex?
Codex is a coding agent.
We're building it into a full software engineering teammate.
But to get started, let's just talk about where most people use it, which is in their IDE.
I happen to use VS code.
So I'll show you codex and VS code.
You can also use it, the Codex extension in any VS code fork like cursor, etc.
So let's say that I just installed codex from the VSCode.
extension marketplace. Do you want me to show that, by the way?
Yeah, let's do it.
Let's truly zero to one.
All right. Okay, truly zero to one.
I mean, I'm not going to uninstall and log out, but we can pretend I did that.
Yes.
So pretend I clicked on install and then I clicked in.
Right. So what would happen then is I'm going to get this glyph here, which is the Codex extension.
I have to click through some steps and log in. So in case you didn't know, codex is included
in your chat BT plan. So you need a paid plan. So if you have a plus plan pro, uh,
business team or you do you?
You can use codex.
And the limits are really generous.
Okay, so let's say I have this thing up.
And truly zero to one, let's pretend I like, actually, I just heard that this is a game,
but I don't even know how to play this game.
One of the things that codecs is great out is simply answering questions.
I'm the product lead for codex.
So I actually use codex a lot for asking questions, probably more than most engineers do,
because I don't want to bother engineers with silly questions.
So I might ask, how do I play this game?
We just launched a new model today.
So I'm actually curious what model that used 5.2.
Cool.
We're going to talk about that, I guess.
So I'm just going to run NPM run dev here, as it's saying, boot up the server, and let's take a look at the game.
Okay, so what I have here is like a simple commander type game.
I can move my character around.
I can recruit troops.
It looks like planting windmills is not implemented yet, and I've heard there's something wrong with the jump.
Okay, that's way too high.
So let's get to work fixing some of these issues.
So what I can do here is I can just go and ask, let's say, that jump is,
way too big. Lower, please.
And so for those of you who are new to coding agents,
I mean, this is pretty basic.
I just wrote in plain natural language,
plain English, what the change that I wanted.
And we can see Codex getting to work,
thinking up of a plan, okay, I need to figure out
how the jump works.
I need to then reduce it, and then I need to like
make sure this whole thing works.
So let's do that.
And while we're at it, let's make some more changes as well.
How about we implement the windmill planting?
I'm just doing these in your chat
so they can go in parallel.
Yeah, I want to call out some stuff for folks listening or not watching.
So what you're basically showing is the process of starting with an existing code base.
And you as a, let's just pretend you're a semi-technical user.
You're like a product manager on this.
And you're like, eh, you know, they ship something, but not exactly what you want.
What you're using codex for is one, how do I even run this thing locally?
Which I think it's just such a, you know, people forget these basic use cases
because I know there are a lot of software engineers that listen to this podcast, but people forget,
like, not everybody knows how to run every repo locally. So one little thing you can do is, like,
just how do I get this code base running so I can test it? And then two, you're setting up little
parallel tasks, which I think is really nice. And I'm curious, you know, how many of these do you
find yourself doing on anyone, anyone code base to just fix little things. And so I guess my question for you
is on these parallel tasks, which in this example are very small, do you feel like it's a better
approach to set up parallel tasks and just have, you know, individual ones running or to do them
in sort of a serial basis? Like, why one or the other? This totally depends. So like,
this is a bit of a toy project, but realistically, like the way that I typically work if I'm like
running around. So this is like very tactical to like, I guess PMs. So I'm looking at a terminal
here and I often just have some like question that I want to know about. So actually like,
literally this morning, I was like, okay, I'm going to do a demo.
I know we just launched a new feature that makes it easier to pick models.
Can I disable that?
And so I ran Codex, which popped me in.
This is just some internal auto-update logic that I ran Codex.
And then I asked, hey, we have this new feature.
By the way, I don't mind telling you guys about it because Codex is open source.
So a lot of new things are just like out there in public.
We have this new feature that offers balanced reasoning settings.
I'm going to quote it actually to give it.
the model a clue that I wanted to search that string.
Reasoning settings, how do I disable that for the demo?
So, you know, I might do this kind of thing like super frequently.
Or I might be like, hey, I heard her customer report about this behavior.
Is that done?
Or might ask a question like, hey, did we ship this feature?
I lost track of whether or not we shipped something.
So I ask these kinds of questions a lot.
And when I do this, running them in parallel is like, great.
There's no reason to do anything else.
On the other hand, if I'm making,
changes, then I'm more likely to think about, okay, how likely is this change to conflict with
another change?
Yeah.
And typically, I'll either do one at a time or I'll use something called a work tree, which is,
I guess, a bit more of an advanced concept.
We can get into that if you're interested.
I'll use a work tree and I'll just suspend, send codex off to do its work on a separate
work tree.
No, let's take it.
Let's take a minute to look at work trees because I think this is something that most folks that
are new to these tools aren't really using particularly well.
I see sort of the two paths that you usually.
showed, which is, one, I'm just going to do like one big branch, do these things in cereal,
and then commit them in. Or two, I'm just going to like kick off a bunch of different tasks,
but they're all going in the same conflicting space and creating issues. And so maybe we take
a minute and talk about work trees and how those work within codex or how you set them up
and use them to make sure that you can run parallel changes, but that they don't conflict with
each other and can be reviewed separately. Basically, if we're going to have codex make changes,
maybe I can come with an example on the fly.
Let's say that we want to change like the language of this input to like French or German.
Like obviously those both can't be true at the same time.
This is a very contrived example, right?
But maybe I want to try both.
Maybe I'm prototyping something.
What I need then is I need two different copies of the codebase.
So I could just copy the code base twice, right?
Like just command C, command V in Finder.
Or I could get cloned the repo twice.
But Git has this really nice affordance called a work tree.
which basically lets one Git instance track multiple copies of the codebase.
So, you know, as a, as sort of a classic mammal, I am lazy.
And so I don't want to remember the commands for WorkTree,
even though they're very simple.
So typically the way that I would actually do this is I would just ask Codex to create worktrees.
So I might say something like Codex, and I could launch Codex like I just did and type the prompt,
but a shorthand that's kind of nice in Codex is you can just put your prompt right in.
So I might say Codex.
In here, create two new work trees off the main branch.
I might not be this super explicit if I was actually doing it.
Main branch.
One called French and one called German.
And so what you can see that happen just here is that codex just launched
and went straight into this prompt.
I do this all the time.
In fact, I've gotten so used to running this
that sometimes I will forget to write codex dash-dash quote.
And I will literally just do something like this.
I'll be in terminal.
I'll say in here, do this.
Yeah, I was just looking at this because we're in a very meta repository right now,
which is in you're in a folder called codex running codex, talking to codex.
It's all, you know, it's codex all the way down, as they would say.
But yeah, I think this is an important one to call out for folks that are not watching the YouTube
and maybe you're listening is you can type as you open a new codex.
instance in the CLI, you can type this dash, dash, dash, and your first prompt right in one line.
And this is like classic developer productivity.
It's like I cannot be expected to press enter, wait, and then type my words.
So I love this.
Okay.
So then what you've done here is you've used Codex to do what we all use Codex for, which is
not have to memorize Git, CLI commands.
And you're creating two new Git work trees off Main.
And then I'm presuming as you work inside Codex, what you're saying is like, okay,
in the French work tree, do A, B, being in German, do X, Y, Z?
Yeah, so let's actually show working in those work trees. So if you see here, I now have two
folders. I have one called French and one called German. So what I might just do is I might
CD into French. And then I might run codex. Let's go in and I'll just say translate the
input field placeholder strings, strings to French. Again, very contrived example.
Yep. So now I can open a new.
tab and what I will do is I will now cd into the German tab instead.
And I'll run Codex.
I'll use my nice shortcut to just immediately give it the command and I'll say translate
the input placeholder string to German.
And so now codex can go work on both of these changes at the same time.
Here's the French one going.
It's figuring out what to do this.
Here's the German one going.
And so that's awesome.
You know, we have a lot of people that, you know, go on social media and they're like,
we're running, I'm running 15 instances of codex across my terminal. They show all these tabs,
but they're not sharing practically how they're creating separation of concerns across this code.
And, you know, I love that we're showing AI tools, but I think also what these coding tools are
allowing people to do is come to software engineering a lot of times without the basics of things like Git.
And so, you know, if in addition to learning some of these AI tools, if I could tell anybody, like, learn the fundamentals of Git.
then you will be in a safe space when you're running with the power of these tools,
I think is is really important.
Okay.
So, you know, what we've shown is you can spin up codex kind of in one of two ways,
which I also want to call out one in your IDE through an extension, plug in.
Two, if you just want to go straight into the terminal experience, great.
You can, you know, ask it to do either explanatory tasks, which is, I use it a lot,
even on code I have written myself.
Like what, you know, what did I do here?
Remind me how this works as well as sort of discrete tasks.
And then you can parallelize these, especially by using work trees.
So I think this is a great, you know, kind of like foundational how you would use some of the basics of this.
But how is Open AI using this for bigger features and bigger products?
Totally.
So actually, we just published a blog post about this that I think could be cool for people to know about.
about how we used Codex to build SORA app for Android in 28 days.
And it immediately became the number one app in the app store.
So, you know, four engineers 28 days, number one app in the app store.
And it's not a trivial app.
I was super impressed by the speed as I was watching this team go.
And this article has a bunch of like really practical advice for how to do that,
how to how to do so.
And I think the, you know, if you,
so this is it really written for professional software engineers,
building like big production apps, like working in like complex codebases.
And a really cool sort of headline to take away here is that with coding agents,
it doesn't get easier, but you just move way faster.
And sort of the idea here is that, you know, we didn't have four engineers just like purely
vibe code this app in 28 days.
They didn't go in and just say, hey, Codex, build the SORA Android app and have it work.
Actually, slight correction.
They did try that, and it didn't work.
It didn't go in one prompt and build the entire Saur Android app.
But instead, what they did is they thought really hard about the architecture that they wanted the app to have.
And they used the technique called planning, which I would say is just a super practical thing that you can do.
So let me see.
I'm going to pull up the codex code base here, which is a slightly bigger code base.
And what I might do in order to do this is I'm going to be.
might start a task here. Oh, yes, sorry, one thing that I actually wanted to share,
when you first install the Codex extension, it will appear here in the left. And I highly recommend
dragging it over to here. It's just a nice place for it to live. So there you go.
News is used. Yeah, and VS code, this is easy. IDEs like cursor, it is hard to find that.
So I will let you explore where it is because I feel like it even changes. But so I might say
something like, hey, we want to make this like non-trivial change. Like, for instance,
we have a TypeScript SDK and maybe we want to write a Python SDK.
Right?
So that's, I don't necessarily want a one-shot codex on that, although I could.
It might work.
So I might say something like this.
Make a plan to build a, you know, Python SDK based off our TypeScript SDK.
And this is a reasonable prompt.
I could just send this.
This would be fine.
But actually, some of our power users at OpenAI have gotten fairly opinionated about
about how they like their plans to work.
And we've actually published a blog post on really effective planning.
So Aaron posted a blog post about using plans.md,
and it's super easy to use this technique.
Basically, what you do is you go to those blog posts
and you just copy this description.
It's kind of like a meta plan.
It's like, hey, when you plan, this is what a good plan looks like.
Yep.
So for instance, a good plan is like self-contained,
has a good plan, has milestones,
and, you know, the agent should update the plan as it goes.
So I have done so.
I have copied that into
and markdown files.
Plans.md.
There you go.
I just copy-pasted that from the website.
And so what I might actually do instead here is I might say,
using plans.md, make a plan.
Yep.
Right.
And so I might just send this prompt.
This will take a while because if you look at the spec for plans.md,
it's very thorough.
And this is actually something that codex is really good at.
Like people love how thorough and diligent codex is.
It's not the fastest tool.
out there, but it is the most thorough and best at hard complex tasks.
And so I actually, yeah, I could say, let's say put it in temp.md.
I'm asking you to put it in a random file, mostly because I did this ahead of time.
So here is the plan that it came up with. And so you can see it's about 120 lines that we
can read through together. We see these two-dos that it wanted. We see that it's identified the
typescript naming conventions. This is great, codex thread, etc. Like we actually are really
intentional about how we name our SDK parameters. So it's really important for me to read these and
verify them, make sure that it didn't get that wrong. It's making, you know, various decisions in here
that I might be happy with. Okay, great. And so now what I can do is I could say, like I said in
U-Chat and say, implement the plan in SDK plan.md, if I'm just happy with it. Yep.
And it would just go. And this would take, this is probably like a 30 minute to one-hour task,
but I would be pretty confident in the results of this task.
And that's how they built the SOR Android app as well.
One very concrete recommendation is if you have a chat where Codex is producing these plans
and you want to change something, it's actually really nice for the model if you just use
the same chat to ask for changes to the plan.
And that way it has all this context in its head when it's ready to get going.
First of all, I love that you said that it has a head.
So the model has his brain.
Yeah, I mean, we see this a lot, this sort of like build a plan. Obviously, I love a spec. I love a PRD. I love a technical design document. I'm curious just if we take the SORA app example, I'm presuming that you had a plan of plans, which is essentially like you look across the architecture of an app. And then you do kind of what we've always done in software engineering, which is you spec out the full thing you want to do. You break it down into components or initials.
that you can execute on. And then where I think you're suggesting the velocity comes from is
anyone engineer can do a detailed, you know, like technical spec and plan in in partnership with
Codex and then have Codex execute the kind of like V1 of that plan for review very quickly.
And so you don't kind of get to bypass the architectural thinking of like, how should this app be
set up and what capabilities do we want it to have and all that stuff, although you can use
AI as a brainstorming partner for that.
But then once you have the kind of right size chunks of work, and they can be pretty
meaty, I mean, like building an entire TypeScript SDK is not like a small initiative.
It's not like adding a method to something.
Then you can use this planning kind of planning strategy to then get what you're going to do
all laid out and then have Codex executed.
Yeah.
I think that's similar to how I think about it.
So I would say right now, I kind of like the terms vibe coding and vibe engineering, be honest.
My sense is that right now you have a lot of agency in how you spend your time as a developer
or as a product manager.
I think when you're going to do something like the SOR, you know, build a production app like SOR app that you know you have to scale,
it's really important that, you know, maybe you have a bunch of like Kodek senior engineers,
but you want that like architect, right, or staff engineer.
Think about the shape of the app.
And so that's critically important.
I think at the same time that, so you know,
you're going to have to think a lot about the shape of the app
and you're going to want to be really careful with review.
And we can actually talk about some of that,
how we've accelerated review at Open AI, which is kind of becoming,
now that we can write so much code, like the bottlenecks are kind of like thinking
about what code to write and then making sure that code is good,
reviewing it and landing it.
I think at the other, at the same time, though, codex can be really powerful for those places
where you just want to learn and you don't actually need like a scalable production
ready app.
So for instance, we use codex.
a lot for prototyping.
The designers on Codex actually have a fully,
mostly vibe coded,
full prototype of like all the Codex surfaces
that they can just like design into with code.
And then we use that to play around and see if we like things.
And then if we do,
then we'll often vibe code like a branch in the actual product.
So a lot of things are just tried by designers there.
And then, you know,
sometimes the vibe code of prototype is like exactly like pretty close to what we want.
And so they'll just like land it with the help
an engineer, more by themselves even.
And then sometimes we're like, okay, this direction was good, or we learned some stuff.
We iterated on the vibe code of prototype.
Now we know what we're going to build.
And then we can actually go and give that like really well-defined spec to an engineer who might,
you know, rethink some of the fundamental assumptions.
And so end up having to use codex to rebuild a lot of it from scratch.
So I think there's like two flavors of acceleration.
I think there's massive acceleration on learning.
And then there's also massive acceleration on like executing.
Execution.
Yeah.
This episode is brought to you by Graphite, the AI-powered code review platform,
helping engineering teams ship higher-quality software faster.
As developers adopt AI tools, code generation is accelerating, but code review hasn't caught up.
PRs are getting larger, noisier, and teams are spending more time blocked on review than building.
Graphite fixes this.
Graphite brings all your code review essentials into one streamlined workflow.
So stacked diffs, a cleaner, more intuitive PR page, AI-powered reviews, and an automated merge queue,
all designed to help you move through review cycles faster.
Thousands of developers rely on Graphite to move through review faster so you can focus on building, not waiting.
Check it out at Graphitedev.link slash how IAI to get started.
That's graphitedev.com slash how IAI.
So I have to ask one question and then I do want to go to code review, which is, you know, like it's sort of this, you know, when you know, you know, but how do you decide between what needs a plan and what doesn't?
To some extent, it depends more about me than it depends about the task. So obviously the heart of the task, the more likely you want to have a spec.
But I also think it kind of depends like what you're up to at that time. For instance, like if I just want to get something done like quickly, I might not have time to.
like wait for a plan and then go back and forth. So I might kind of throw codex at it,
but I might just do it four times in parallel instead. This is actually a thing we do. Like
codex, you can also use codex in the cloud, so on web, where it'll like run on its own computer.
And that has a feature called Best Event where it'll just like do the same task four times.
And so often like you can just have Codex explore, instead of like exploring to do a plan and
then you collaborate, you just have it try four different attempts and find out what works best.
And you know, I also do that with work trees locally as well. So I, I just do that with work trees locally as well.
So I guess the better answer to your question is the heart of the task, the more you want to plan.
But the lazy answer to your question is also it depends if I have time to wait for a plan or not.
I like that.
I know one of the things that I have found myself doing, which I think is really funny, is as these, you know, longer running coding models come out, 5'2 being among them, I'm like waiting a lot more.
I'm like trying to find ways to fill my time.
and as somebody who used to have this fancy executive job where I like really had a manager's schedule.
And then over the past two years, I've been like builder life.
And now I'm like, damn, I'm back to manager schedule.
Like I send the task off and somebody else, you know, quote unquote does it.
And then I got to find something to do with my time and I refuse to add more meetings to my list.
So I am with you.
Do I have the time and patience for a plan?
Right.
I mean, a lot of the engineers on the Codex team will basically run two things.
that they're building in parallel, not more than two.
Like it's usually two.
Yeah.
And so they'll kind of like be thinking about what to do on one side and then, and you
by the way, this might just be like two different work trees and two different instances of
their IDE open.
It could be something like that.
And they might just be thinking and collaborating with Codex in one while it's working in
the other.
And just juggling two seems to be manageable for sort of normal people.
Juggling more than two seems quite hard for normal people.
But my view on this from a product direction perspective is we don't really want to ask humans to juggle.
Like, that's not fun for many people.
Some people like StarCraft in code.
Quick pause.
Quick pause.
I love StarCraft, which is why I feel like I'm really good at all this, right?
Yeah, yeah, yeah.
I think it's actually kind of, it's kind of an apt analogy, but I didn't come up with it.
I forget who did.
But what we're trying to do is just make Codex faster and faster.
Yeah.
And we are also trying to basically set it up so that you don't have to do the waiting.
Like as the models get smarter and smarter, they can take on harder and harder tasks.
Like I just heard from Navine at every this morning who was sharing a demo of a bug that he no model could fix.
And then 5.2 came out yesterday.
And he threw 5.2 at it and it fought for 37 minutes and was like, this is the bug.
And then in fact, that was the bug.
And he got the bug fixed.
Right.
So as we have smarter and smarter models, there is going to be more instances.
There are going to be more instances where you want to wait.
But I think that's our job as the product builders around the model to make it so that
even when the model is thinking, you're not waiting for it to think.
Yeah.
Or you know that you're waiting and you feel good about it.
I think that's one of the challenges I've had with some of these where the thinking time is long
is I find myself.
And bless it, it's like when I, you know, worked with human software engineers.
I find myself being like, how long?
How's it going? How's it going? You still on it? Like, you're still good. And so I do think it's a really
interesting product problem because there is, you know, useful latency in these models. But as a
product and designer, being able to expose that latency and that reasoning and the progress in a way
that makes people not feel antsy about it, I think is still a challenge out there for for you all
and for everybody else building these kinds of tools. You know, this was, this has been super helpful
and sort of like the basics of codex,
I would love to hear one or two integrations
with other systems or tools
that you found have been
really like really multiply the impact
you can get out of codex.
I think the biggest one by far
is going to be GitHub and code review.
And then there are some others as well.
This is just a nifty graph while I'm here
about 5.2, the model.
Let's take a quick digression.
I'll show you because I just think it's super cool.
Basically what this graph shows
is that 5.2, when you give it as long as it wants to think,
is an amazingly intelligent model at SwayVanchPro,
which is an e-valve software engineering tasks.
But the X-axis is pretty interesting.
Basically, what it shows is the number of output tokens
that the model took to perform these tasks.
And so it's kind of like how long did the model have to think?
And when we say, hey, you can think as long as you want, ish,
it's really smart.
But the other cool thing is we're able to say,
hey, like, we actually don't want you to think that hard,
or we want you to like kind of answer quickly.
And so it's performing like even higher, you know, results than like say this previous
model here, five one thinking, but in significantly less time.
And so this is kind of what we're trying to build, going back to what we're saying about
waiting, right?
We want to just get you the same result much faster and then get you more intelligent results
and, you know, then you get the model time.
Yeah.
Get the right result in the appropriate amount of time, right?
Yeah.
Exactly.
So one thing you can do with Codex is you can, uh, you can
ask it for code review. This is actually super easy to do, but without integrating with GitHub.
We could just be in here. Let's just say that it's written some code. I'm going to kind of ignore
what would happen there. And I'm just going to pretend that I wanted to review this code.
So I could type slash review and basically ask it to start reviewing this code. And this is something
that people really love. And you know, right now it does feel like when you put the model in a certain
mindset, like, hey, you are a reviewer and you give it a different conversation context.
and the model that wrote the code, you know, you'll just get like even better critiques than you might get from a human engineer.
Partially because this model has a lot of time to read all the code and like maybe even execute code to like validate those changes.
So this is this is just something super useful that I recommend doing.
And like many engineers on codex will like have codex do work and then multiple times ask it to either review its code or critique its code or just make the code more elegant.
And that's just like a massive accelerant.
So let's say that you like this, right?
and your team as a practice of doing review,
something that you can go do
is actually enable automated code review in GitHub.
And so here, when this PR was pushed,
Codex automatically without anyone having to prompt it,
and without anyone having to have a computer running,
this is just in the cloud,
Codex went, took a look, and found an issue with the code.
And the hit rate on these is really high.
Like, we built this feature so that it only points out issues
that it's like very confident in our issues
because, you know, sort of the principle here is just like,
human attention is so scarce, we really want to protect it.
But when it finds a really important issue, it'll post here, and this is where you start
to feel the EGI a little bit, it found this issue.
And then Hulam basically replied, like, hey, Codex, can you fix it?
And then Codex went on to fix it, right?
And so we can get into this kind of loop like that.
So that would be my number one integration to give.
The number two might be slack and linear.
Well, so I love this flow.
And I think, again, optimizing, I'm actually running a 5-2
branch review right now. I'm not running it in codex, but I will do a comparison on the two
experiences, but I'm doing it very much like compare this to base. Tell me what we did what what we
did here. If there's anything I need to be aware of. I do like these in GitHub code reviews. I do
feel like where I have found the highest quality is reducing noise in these. So it's really great
that you have kind of focused on confidence, focused on what what bugs really are going to matter.
And then this loop of kind of can you fix it.
And so are you running this on kind of all your reposts?
Has this become like how code gets reviewed?
Yeah.
I mean, Codex is just everywhere at OpenAI, which has been really cool to see.
You know, I feel like when I hear a story of some tool being used everywhere,
I'm always like, a little skeptical.
These people are biased.
So the thing I can tell the audience here is that earlier this summer,
Codex was used by around half the company, which is like,
I don't know, pretty low number, right?
Half.
We're now at the point where basically like all of technical staff, nearly all of technical staff is using codex constantly.
And so it's funny because we don't even have this comparison point since everyone's using codex.
It's like hard to compare the people using codex and the people not.
But there was this period of time where we were seeing that like the people using codex were like 70% more productive.
If you looked at PR volume, obviously PR volume isn't like the best thing to measure, but it's a thing you can look at.
And now that metric doesn't mean anything anymore because everyone used.
is Codex. Code Review itself is enabled on pretty much every single repo the company,
reviews like pretty much all PRs. And it's one of those features where we were a little bit
nervous when we shipped it about how people would feel, but it was just an immediate hit and
like people really like it. You know, maybe this is a bit of a segue, but, you know, speak product
person to product person. Like something that we've been thinking about is if our mission is to
deliver the benefits of AGI to all humanity, I believe one of the biggest,
the many factors is like, do people want to type the prompt or not?
You know, I don't like typing.
So, you know, I would be too lazy to do this.
And so we were thinking a lot about like, okay, what are things we can do for teams that are just
useful without anyone having to do any work?
And so we tried a few things.
Code review, as I showed you here, is one of the things we tried, big hit.
We tried some other things that were pretty interesting.
Like, we built a feature that would automatically attempt to revise the PR when, you know,
you got a code review feedback from someone else.
And, you know, maybe I'd be interested to try that again.
But interestingly enough, that feature was not super popular.
The hit rate was like often like PR feedback.
I mean, sometimes it's myths, but often it's like kind of in there.
You need a lot of human context to understand VR feedback.
And so Codex wasn't aasing it.
And the sort of hit rate wasn't high enough to be worth the like email you get every
time in a barrenop on GitHub.
Whereas code review, you know, we were really careful with like how often it did things.
And we made sure, for instance, this is one where Codex didn't find any issues.
It doesn't even notify you.
It just thumbs up emotion.
You know, you're done.
Yeah, I mean, I've had this experience, too, where it's interesting.
I have also used automated code review and I have attempted that like full closed loop.
And I have also been dissatisfied with not just the bug fixes.
Sometimes they're fine.
Sometimes they're not.
But I often feel like putting a human in the loop that says, I'm pretty sure this is fine because X, Y, Z.
or just remember we did this because ABC and sometimes there's a little context lost.
But the other thing from a product perspective, I think is interesting on these like proactive
versus reactive agentic experiences is if you have a full agent loop, the human bar for quality is
extremely high. And so dissatisfaction and frustration can bubble up very quickly.
It's one thing if like your code review, you know, bot says this is broken, you go fix it.
and then you get it reviewed again and it nits you, you're like, okay, I didn't do exactly what you wanted.
But if you have the experience where like your code review bought, you know, raises something,
it fixes something and it nits itself, that gets really annoying.
Totally.
And so I do, again, this is like a little bit of a gentic product design challenge that we're now going to have that people I think need to pay attention to,
which is like, how do you design for latency?
How do you design for perceived quality and bars when humans are involved when they're not involved?
And then one last thing I want to say to your comment, which is, I mean, if our human fingers are no longer valuable and used, what role are we going to play?
Like, protect the typers.
But I mean, I get what you're saying, which is almost all the friction right now in my product development software development flow is like literally writing the first prompt.
It's like sitting down and just going now let's like let's do the thing.
now and it's such a funny shift from where we've been before.
Yeah, I mean, it's interesting to think about, right?
Like, you know, obviously our mission is to just like massively accelerate every single
developer and, you know, broadly than anyone who's doing anything where an agent using a computer
can help.
And so, yeah, the question of what our role is interesting.
Like, I like to joke that the limiting factor is typing speed.
I think that's half true.
So, like, I think for things like review this code, please, the limiting factor is typing speed.
There's a lot of just like micro places where an agent could help you.
But then I think the other half is actually thinking, right?
Like now that we can just have ubiquitous code and we can basically prototype things like
trivially, the hard parts I think become like deciding what actually should make it in,
thinking like what a product should do, like knowing a customer actually.
And then, you know, if you're building a complex system, like being really thoughtful about
like the architecture of that system and kind of curating the agent work.
So, you know, I think it's.
I talk to developers who are really motivated by seeing people use what they build.
And I think those developers are increasingly just like thrilled.
Right.
And then I also talk to developers who just love like the feeling of writing code.
I, I don't know.
I experience joy from both.
And I think that's a place where, you know, we think constantly about like, okay, how do we make this feel as fun as possible?
Right.
Like setting up dependencies kind of sucks, but you have to do that for your agent.
So how do we make that easy?
Reviewing kind of sucks.
So like how do we make that easy?
Great.
Well, just to recap, because we've done a lot here so far before we get to Lightning Ground,
we have shown installing codex as an extension, setting up tasks, setting up work trees,
using plan.
And in particular, the plan on how to plan on the opening I blog, to generate plans for more
complex implementations, especially when you need longer running tasks.
and then automations around code review and bug fixes.
The things we didn't call out,
but I think are really important are you can basically use codex wherever you want.
So we showed it in VS code.
We showed it in the terminal.
You can get it on the web.
You can get it in Slack.
You can get it in linear.
It can kick off in GitHub.
I do love this idea of kind of like codex anywhere is also really nice.
So again,
if you're intimidated by or don't understand VES code, great, kick it off in the web.
If you love your command line tool, great.
Let's use a couple of those keyboard shortcuts that we showed.
And so I just think this is a great kind of like starter flow that shows how flexible
this platform is and how it can meet, you know, kind of like a bunch of people at a variety
of levels of tasks.
So I'm actually going to start there with our lightning round questions, which is, you know,
you just released 5-2, you showed Sweebench, were clearly, you know, like model wars every week.
I am really curious about harness wars. Like, why does the interface to the model like Codex matter so much?
And, you know, we've seen a couple things that you've built into the platform, you know, PR review or code review, you know, little like small UX fixes that make, make the easy to use.
use, but like where do you feel like harness differentiates in your experience using these coding tools?
I think there's two places. One is just the quality of model work. And then the other is in the
user experience. All right. So taking the quality of model work, I presume many people listening to this
podcast, you know, tinker with models or have friends who are building models. And like, some people
just are, you know, they're model whispers and they know how to use a model. And some people
are model whisperers for like a specific model, but then maybe not for another model. And
One of the things that's, I think, very true is that these models are changing all the time, right?
Like, we've been, I've lost track.
I think we're shipping a new model like every two weeks recently at opening I.
Right?
And each model we ship is better than the last model.
It's like super exciting.
But they're also evolving, right?
They have new capabilities that are kind of hard to keep track of unless you spend all day on, you know, Twitter slash X.
And so I think that there's kind of two things here.
The first is like you need to know how to get the most out of the model.
You need to know, for example, that opening models, we kind of have this like very, again,
a GI-pilled way that we train models.
We kind of just give them access to a shell.
And we say like, go and do whatever you think you should do in the shell.
And so we see these like really interesting emergent behaviors where, you know, sometimes
the model will decide to write a Python script to make many, many edits to code.
And then we have debates about, well, is that a good idea or not?
Like we prefer it if the model was like plotting through the edits or do we like it running
a script.
But either way, that's like a thing you should know.
And so one of the cool things about Codex is that we're building off harness in open source.
And so you get to see the updates we're making for each model that we ship to make the most out of the model.
And I can say like every time we ship a model, engineers from the Codex team will go, like, test it, think about it, talk to the research team.
I mean, it's something they're just working super closely together to figure out how to make the most out of the model.
And sometimes we'll ship a new capability.
Like models getting better parallel tool calling.
Let's see how that works.
or recently we shipped something called compaction,
where we can basically have the model
like start a new conversation with itself,
with a fresh context.
And what it'll do is just give itself just enough,
just the right information.
So to the user, it just feels like it's one conversation
rather than like two conversations.
And so when we build features like that,
by building both the harness and the model together,
we can be much more opinionated about what to do with the model.
And then we can make the actual,
outcomes, like, way better for users.
And so part of why the Codex CLI's open source is so that anyone who wants to get the best
out of codex models, and actually just opening-A models generally, can just go observe
how it works.
They can use the Codex SDK if they want and just, like, not even touch the harness,
just, like, delegate to us for that.
Or if you want to build your own harness, you can just go copy-paste parts of code.
So we do this all the time.
Like, I'm in a bunch of, like, Slack DMs with customers, and we'll just send them
point code pointers.
Like, oh, yeah, this is how we do this.
Just like, just copy this code, please.
So that's on the just like having higher quality model outputs, but also keeping pace with the pace of innovation from our research team.
That would be like why I think the codex harness is awesome there.
The other side is is product overhead.
For instance, earlier this year, most of the sort of like really powerful agentic flows that people were using like codex and other were in the CLI.
Right?
And this is super basic, but like I spoke to many people.
who don't really like spending all day in terminal.
Like I love using the terminal, but I spoke to many people who don't.
And I spoke to many people who really like seeing the code that is being edited at the same time.
That's me. I'm a code reader. I like to read my code.
Right. And so, you know, that's a very, very basic thing,
but it's a place where just building the right product experience unlocked a ton of growth for us.
And so, you know, empirically, I could say that we see many, many more people
who like looking at the code that's being written at the same time as the agent.
then we see just like running in terminal like on the side.
So I think, you know, that's a very basic example.
And then we were kind of touching on this point of like latency for a more advanced example.
Like I think if we can harness the model right, we can make it so that you can deploy the model to help you with like hundreds of thousands of things a day.
But without you having to type, right?
But also without it being annoying to like filter these outputs and without you having to wait because whenever it's helping you with something.
something proactively, it's sort of doing so on its own computer and only letting you know
when it has something great. So my view is actually that even as all these models are progressing,
let's just say that's stopped, which it won't. There are many years of product building to do
to just get the harness right and useful for people. Well, that's great. And I do want to make sure
people did not miss this tip, which is if you're trying to figure out how to get the most out of
out of these new models, go peek under the hood at Codex, open source and just see what, I mean,
I think that's the other thing is what kinds of changes do you have to make when a new model comes out,
especially if you're a builder out there. Maybe you're not building a coding tool, but you're
building a SaaS product that uses these models. When they come out, being able to observe how
the creators of the models actually maximize their unique strengths, I think is a really valuable
thing that I think people really underestimate. Okay, my second question, I spied with my little eye,
Atlas. Tell me your favorite Atlas use cases that you think people underappreciate.
Ooh, the first one is kind of boring, but it's really, really true, which is I have started just asking chat for everything instead chat being chat.
I just ask chat for everything because I get answers that are like really catered to me because I talk to chat about everything.
You know, I'm a weird person. Like, if I ask a question,
and then I like make a decision based off it.
I tell it what decision I made because then it remembers.
And so then the next question I answer I get is even better.
And so just simply like my workflow for anything that's not code,
I go to Atlas, I command T to open a new tab.
And then I just type whatever I want and I get an answer.
And I often follow up.
Like for me, that's the sort of magic thing about using an LLM.
So being able to just like ask your question and then follow up and then maybe navigate
to links, like super boring.
But I love that.
My other sort of favorite feature is that is SightChat.
So basically any page you open, should I show, maybe I can show this.
Yeah, yeah, I should.
Yeah.
And while you're doing that, I have to call out that you have settled a debate that I saw today on X, which is like, should you tell your AI when it's done something right or wrong after it's done it?
Like once something's fixed a bug, I'm the person's like, great, it looks awesome.
Thanks.
That fixed.
But I do think that I, in my mind, I've convinced myself that close.
closed loop creates some context that's like, yes, I did this particular thing right or wrong.
User has accepted it and that in some future world, it's going to make my life better.
Yeah.
I mean, so I think there's two reasons to do that.
The first is just like memory.
Yeah.
Right?
Like if you have memory enabled, which most people do, then you'll get a better answer.
A very concrete example is I was on holiday and some plans changed.
So we were deciding where to get dinner.
And so we just asked chat for dinner recommendations.
to be clear, we also, we like food a lot, so we also, like, searched.
But it's interesting to get Ask Chat because it knew, like, where we were staying and it knew what food we'd had like the day before or whatever.
And so it just gave, like, a really bespoke recommendation. And that was cool.
I think my other sort of hot take reason to do this is I think it's important to be polite to AI.
I agree.
This is not an official company stance, just to be clear.
But my sort of meta reason here is I just think it's important to be polite to everyone.
I know. And I think that if you start not being polite to chat, I think it can wear off on you and you just start not being polite to other people in your life. And like we're adults. Like imagine kids, right? They hear us like talking to the RAI in some way. They're going to go treat someone who they, you know, their children. They don't know in some like not polite way. So that's kind of my my hot. I could not agree more. I, you know, P. I am I. Please. Thank you. Good job. And honestly, it's not because of the AI's humanity. It's to pursue.
my own humanity, which is if I get used to being a jerk to anything human like,
there is no way that does not bleed into how I think about people, speak to people,
clip this, pin it to the top of the YouTube channel, be polite for you.
That resonates a lot. It's like our humanity is to find out how we treat others,
not how they treat us, right?
Exactly. So side chat. So basically, I can go in here, I can click this button,
and I can ask questions about the page, right?
So I could be like, what's great about GPT 5.2?
You might joke, like, and be like, why are you asking AI to summarize this article?
But like, oftentimes I'll be at work and someone will send me a thing and be like thoughts.
And I just like, I don't have time.
So it's like, what is this, right?
And then I can have a conversation though, right?
So then I can be like, oh, like, interesting.
Like, you know.
Hey, chat.
What do I think about this?
I mean, when I ask my questions, it often grounds itself in what I've talked to it about before.
It's like, well, since you are a person who likes, you know, like this, you probably would be interested in this detail.
So, I mean, this is not maybe the best example because I'm asking for a summary, but oftentimes if I'm looking at like numbers or math or I need to learn more about like a concept, I'll use this.
You can also use this to rewrite something.
So if I was like, you know, in a Google doc, I could like select some text and like be like, hey, like how else?
might you rephrase this.
Yeah.
So I think for me,
side chat is a really cool feature.
But I think I might be a bit nerd snipped by it,
to be honest,
in the sense that this is what I joined OpenAI to like help build.
So I'm very interested in it.
I'm like,
for me,
the idea of an agent that I don't have to,
it understands me.
I don't have to like map of myself to its world is really powerful.
So side chat is that.
Codex is that too, right?
You launch it in the code base and it's in your environment.
You don't have to go to it.
I think this is the future and I'm like really excited for how we can just like take all the best ideas from Atlas and Codex and kind of bring them together into like a basically AGI super assistant.
AGI super assistant. Maybe we'll see it next next year. It sounds like it sounds like the name of a product you would really.
AGI super assistant 5.1.
I point two thinking high math. Okay. Last question and we maybe already covered this. But we've established.
your polite to AI, but when it is not replying, not doing what you want, not remembering,
what is your prompting technique to get it back on track?
Yeah.
I mean, so first off, I have a bit of a weird job in that if I noticed the AI not replying,
I have to go probably file a bug or like start a SEV, sev being like a word for an incident.
So I, you know, yeah, I have to go do those things.
But I think context is everything.
So if I see the agent not doing what I want, so I guess one really tactical tip is I don't
usually ask for things from the agent without asking for context, without giving context.
Because I'll say like, hey, I want you to like like change this UI from this to this so that,
you know, users do this or like because we don't want people to be confused about XYZ.
And I often, it's funny.
I think P, like another hot take, I think PMs are the best prompters.
Because we're used to not being the expert in what we're doing.
And we're used to not being the most intelligent person in the room, right?
And so usually we can just like maybe suggest, but we don't even know if that's right.
So I sort of work with codex in that way.
I'll be like, hey, can you like make this more elegant?
And I won't say what I want because I actually, it'll look at the code and it'll know better than me.
So tip number one is give a lot of context.
and actually get really good at describing the level of ambiguity of your request.
Like, do not create false precision in your prompt if you don't actually care exactly about what the outcome is.
And then the second thing is like, if that doesn't work and you explain why again and it still doesn't work,
then I just start a new chat.
And you can do things.
This is a very like advanced user thing that I don't think anyone listening to this will ever do.
But Codex is a very open product.
It stores its conversations logs in like your home.
directory in a dot codex folder in a subfolder called sessions. So like dot codex slash sessions.
So you could just go say like, hey, I started a new session because you got confused.
I wanted you to do this because of this. Go read your previous session. Understand what's going on.
And then and then like, you know, continue from there. I love it. ending this episode with a hidden
hot tip, which we didn't get to through our codex walkthrough, which is all your all your sessions are
stored locally. So just ask it, ask it to go read them. This has been.
Really fun, Alex. Where can we find you? And other than reporting bugs, how can we be helpful?
I am hiring PMs. So if you're interested, please apply on the job site and also hit me up on socials.
We are hiring generally a lot on Codex. We do love bug reports and we do love feedback.
And actually, it's already an open source. I don't mind talking about it. We actually are also releasing a bunch of new configuration abilities for Codex, like the ability to allow us commands or
skills. So if you wanted to help build codex skills or like tell us what configuration you want,
that would be very helpful. And lastly, just check it out. Codex is awesome. So you can find me on
Twitter. I'm at Embarico, EMBI, R-I-C-O. And at the R-Slaschodex subreddit, we are there all the
time and also love chatting there. Amazing. Well, thank you for joining How I-A-I.
Cool. Thanks for having me. Thanks so much for watching. If you enjoyed this show, please like and
subscribe here on YouTube or even better, leave us a comment with your thoughts. You can also find
this podcast on Apple Podcasts, Spotify, or your favorite podcast app. Please consider leaving us a rating
and review, which will help others find the show. You can see all our episodes and learn more about
the show at how IAIIPod.com. See you next time.
