WEBVTT

1
00:00:08.480 --> 00:00:12.840
I'm Thibaud.

2
00:00:10.560 --> 00:00:14.920
And I'm here at OpenAI and I build

3
00:00:12.840 --> 00:00:18.080
Codex.

4
00:00:14.920 --> 00:00:19.840
With Codex, we're building an AI

5
00:00:18.080 --> 00:00:22.640
software engineer.

6
00:00:19.840 --> 00:00:25.320
I personally like to think about it as a

7
00:00:22.640 --> 00:00:27.080
little bit like a human teammate.

8
00:00:25.320 --> 00:00:28.400
You can pair program with it on your

9
00:00:27.080 --> 00:00:31.080
computer.

10
00:00:28.400 --> 00:00:33.520
You can delegate to it. Or, as you'll

11
00:00:31.080 --> 00:00:37.000
see, you can give it a job without

12
00:00:33.520 --> 00:00:37.000
explicit prompting.

13
00:00:37.680 --> 00:00:42.280
There's been, recently,

14
00:00:39.800 --> 00:00:44.120
a massive vibe shift.

15
00:00:42.280 --> 00:00:46.840
This has started from August, where we

16
00:00:44.120 --> 00:00:48.680
had pretty decent usage, and since then,

17
00:00:46.840 --> 00:00:51.720
thanks to all of you,

18
00:00:48.680 --> 00:00:54.400
we've grown tenfold.

19
00:00:51.720 --> 00:00:56.800
Today, I want to start by sharing some

20
00:00:54.400 --> 00:00:58.280
of the recent updates that have created

21
00:00:56.800 --> 00:01:00.840
this vibe shift.

22
00:00:58.280 --> 00:01:03.680
Then, we'll bring some engineers from

23
00:01:00.840 --> 00:01:06.120
OpenAI to show you some examples of how

24
00:01:03.680 --> 00:01:07.760
we use Codex day-to-day.

25
00:01:06.120 --> 00:01:10.440
Some of them are building here on the

26
00:01:07.760 --> 00:01:13.280
Codex team. Some of them are just really

27
00:01:10.440 --> 00:01:15.080
excited users of Codex at OpenAI.

28
00:01:13.280 --> 00:01:17.040
Let's first talk about some of those

29
00:01:15.080 --> 00:01:20.840
updates.

30
00:01:17.040 --> 00:01:23.640
Codex now works everywhere you build.

31
00:01:20.840 --> 00:01:27.080
Whether it's in your IDE, your terminal,

32
00:01:23.640 --> 00:01:28.840
GitHub, web, or mobile.

33
00:01:27.080 --> 00:01:31.480
No matter where you are,

34
00:01:28.840 --> 00:01:32.680
it is the same powerful agent under the

35
00:01:31.480 --> 00:01:34.560
hood.

36
00:01:32.680 --> 00:01:37.400
The first and most important improvement

37
00:01:34.560 --> 00:01:39.240
we made was to completely overhaul the

38
00:01:37.400 --> 00:01:41.280
agent.

39
00:01:39.240 --> 00:01:42.800
We think of the agent as a combination

40
00:01:41.280 --> 00:01:45.120
of two things.

41
00:01:42.800 --> 00:01:48.040
The reasoning model under the hood and

42
00:01:45.120 --> 00:01:50.480
its tool harness to allow it to act and

43
00:01:48.040 --> 00:01:51.840
impact change upon the world to create

44
00:01:50.480 --> 00:01:53.800
value for you.

45
00:01:51.840 --> 00:01:57.480
First, the model.

46
00:01:53.800 --> 00:02:00.520
In August, we shipped GPT-5, our best

47
00:01:57.480 --> 00:02:02.640
agentic model thus far.

48
00:02:00.520 --> 00:02:04.080
That was until we listened to your

49
00:02:02.640 --> 00:02:06.600
feedback.

50
00:02:04.080 --> 00:02:10.119
And we approved upon it by shipping

51
00:02:06.600 --> 00:02:12.160
GPT-5 Codex, a model that was further

52
00:02:10.119 --> 00:02:14.920
optimized for work within Codex,

53
00:02:12.160 --> 00:02:17.400
improving by being smarter, better

54
00:02:14.920 --> 00:02:19.360
following code style, and adapting its

55
00:02:17.400 --> 00:02:21.800
thinking time.

56
00:02:19.360 --> 00:02:25.000
One of my favorite quotes from the

57
00:02:21.800 --> 00:02:27.280
feedback from you all was that it feels

58
00:02:25.000 --> 00:02:29.960
a little bit more like a true senior

59
00:02:27.280 --> 00:02:33.760
engineer because it gives such few

60
00:02:29.960 --> 00:02:36.840
compliments. And it also pushes back

61
00:02:33.760 --> 00:02:39.600
on bad ideas.

62
00:02:36.840 --> 00:02:42.080
Next, we completely rewrote the harness

63
00:02:39.600 --> 00:02:45.160
to make most of the new models.

64
00:02:42.080 --> 00:02:47.040
Add support for planning, MCP, auto

65
00:02:45.160 --> 00:02:48.520
compaction,

66
00:02:47.040 --> 00:02:50.680
so that you can have these really long

67
00:02:48.520 --> 00:02:52.360
conversations and interactions, and so

68
00:02:50.680 --> 00:02:55.400
much more.

69
00:02:52.360 --> 00:02:58.280
At this point, we started seeing the CLI

70
00:02:55.400 --> 00:03:00.760
usage take off.

71
00:02:58.280 --> 00:03:03.000
But, there's more feedback.

72
00:03:00.760 --> 00:03:06.800
The model felt really good. The agent

73
00:03:03.000 --> 00:03:09.120
was useful, but the CLI felt early.

74
00:03:06.800 --> 00:03:11.440
We appreciate the feedback, and so we

75
00:03:09.120 --> 00:03:14.680
decided to completely revamp the Codex

76
00:03:11.440 --> 00:03:17.840
CLI. We simplified approvals modes,

77
00:03:14.680 --> 00:03:20.520
created a more legible UI, and added a

78
00:03:17.840 --> 00:03:22.800
ton of polish polish.

79
00:03:20.520 --> 00:03:25.560
And by default, it works with

80
00:03:22.800 --> 00:03:28.560
sandboxing, so it is safe by default,

81
00:03:25.560 --> 00:03:30.160
but you always have control.

82
00:03:28.560 --> 00:03:32.760
It's been a work in progress, and we

83
00:03:30.160 --> 00:03:36.320
shipped a big update last Friday.

84
00:03:32.760 --> 00:03:38.440
We'll ship a new release today again.

85
00:03:36.320 --> 00:03:40.200
More feedback from you all. A bunch of

86
00:03:38.440 --> 00:03:42.560
you collaborate with the agent and want

87
00:03:40.200 --> 00:03:45.480
to look at the code at the same time.

88
00:03:42.560 --> 00:03:48.560
This is why we shipped it in the IDE

89
00:03:45.480 --> 00:03:52.640
directly as a native extension.

90
00:03:48.560 --> 00:03:54.680
Here, it works with your code alongside,

91
00:03:52.640 --> 00:03:56.920
you know, you having control over your

92
00:03:54.680 --> 00:03:59.720
IDE, get this little collaborator. It

93
00:03:56.920 --> 00:04:01.840
works in VS Code, it works in Cursor,

94
00:03:59.720 --> 00:04:04.120
and other popular forks.

95
00:04:01.840 --> 00:04:06.560
This immediately took off.

96
00:04:04.120 --> 00:04:08.720
Within the first week, we had 100,000

97
00:04:06.560 --> 00:04:11.440
users. Many of you, I'm sure, are in

98
00:04:08.720 --> 00:04:14.680
this room. A lot of our users prefer to

99
00:04:11.440 --> 00:04:17.200
use Codex in their IDE directly. Part of

100
00:04:14.680 --> 00:04:18.600
the magic here is that it is the exact

101
00:04:17.200 --> 00:04:21.239
same agent.

102
00:04:18.600 --> 00:04:24.200
It is the same open-source harness that

103
00:04:21.239 --> 00:04:26.360
is powering the CLI bundled right within

104
00:04:24.200 --> 00:04:28.840
the extension.

105
00:04:26.360 --> 00:04:30.600
At the same time, we're also upgrading

106
00:04:28.840 --> 00:04:31.720
Codex Cloud

107
00:04:30.600 --> 00:04:33.800
so that

108
00:04:31.720 --> 00:04:35.040
you could run many more tasks in

109
00:04:33.800 --> 00:04:37.280
parallel.

110
00:04:35.040 --> 00:04:39.080
For us, this is still the beginning, but

111
00:04:37.280 --> 00:04:42.280
we think it's incredibly cool to be able

112
00:04:39.080 --> 00:04:45.120
to command Codex through your phone.

113
00:04:42.280 --> 00:04:46.480
Cloud tasks now run 90% faster

114
00:04:45.120 --> 00:04:48.720
faster. They can set up their

115
00:04:46.480 --> 00:04:50.680
dependencies automatically and verify

116
00:04:48.720 --> 00:04:52.440
their work by taking screenshots and

117
00:04:50.680 --> 00:04:54.680
sending them to you.

118
00:04:52.440 --> 00:04:57.240
Giving the agent its own computer really

119
00:04:54.680 --> 00:04:59.600
feels magical when it works.

120
00:04:57.240 --> 00:05:02.880
And then, you can start working with

121
00:04:59.600 --> 00:05:05.080
agents like this in tools like GitHub.

122
00:05:02.880 --> 00:05:07.480
Or now Slack.

123
00:05:05.080 --> 00:05:09.680
Here's an example of one engineer. Some

124
00:05:07.480 --> 00:05:11.720
of you might know him.

125
00:05:09.680 --> 00:05:13.680
Who had a question. And then another

126
00:05:11.720 --> 00:05:16.000
engineer, Steve Lee, immediately jumps

127
00:05:13.680 --> 00:05:18.520
on it and delegates it to Codex. Here,

128
00:05:16.000 --> 00:05:20.600
Codex receives the entire context from

129
00:05:18.520 --> 00:05:22.440
the thread and just gets to work. A

130
00:05:20.600 --> 00:05:24.680
couple of minutes later, it posts a

131
00:05:22.440 --> 00:05:26.440
solution together with a summary. It

132
00:05:24.680 --> 00:05:28.880
actually went, explored the whole

133
00:05:26.440 --> 00:05:31.120
problem, and wrote some code.

134
00:05:28.880 --> 00:05:33.280
All of this progress means that we can

135
00:05:31.120 --> 00:05:35.520
write code so much faster,

136
00:05:33.280 --> 00:05:38.480
which also means that we have a lot of

137
00:05:35.520 --> 00:05:40.680
code collectively to review.

138
00:05:38.480 --> 00:05:43.120
Validating and reviewing code is now

139
00:05:40.680 --> 00:05:44.720
becoming a huge bottleneck.

140
00:05:43.120 --> 00:05:46.720
This We've been thinking about this for

141
00:05:44.720 --> 00:05:48.800
a while.

142
00:05:46.720 --> 00:05:51.120
Past experiments with code review at

143
00:05:48.800 --> 00:05:53.560
OpenAI showed that it could be

144
00:05:51.120 --> 00:05:56.560
useful, but also oftentimes noisy.

145
00:05:53.560 --> 00:05:58.800
Previous attempts had to be turned off

146
00:05:56.560 --> 00:06:00.520
because users were complaining about the

147
00:05:58.800 --> 00:06:03.800
lack of signal.

148
00:06:00.520 --> 00:06:07.520
So, we purposely trained GPT-5 Codex to

149
00:06:03.800 --> 00:06:09.320
be great at ultra-thorough code review.

150
00:06:07.520 --> 00:06:10.680
It goes through the dependencies, all

151
00:06:09.320 --> 00:06:11.880
the code in depth inside its little

152
00:06:10.680 --> 00:06:14.960
container,

153
00:06:11.880 --> 00:06:17.320
truly explores the contract of like your

154
00:06:14.960 --> 00:06:19.000
intent and what actually happens in the

155
00:06:17.320 --> 00:06:20.680
implementation,

156
00:06:19.000 --> 00:06:23.240
and then comes back with high-quality

157
00:06:20.680 --> 00:06:25.480
findings. We now find that many teams

158
00:06:23.240 --> 00:06:28.920
decide to enable it by default and

159
00:06:25.480 --> 00:06:31.600
almost and want to make it mandatory

160
00:06:28.920 --> 00:06:33.200
because it is such a high signal

161
00:06:31.600 --> 00:06:34.600
finding every time.

162
00:06:33.200 --> 00:06:37.200
You can trigger it while pairing with

163
00:06:34.600 --> 00:06:40.720
Codex, or you can completely automate it

164
00:06:37.200 --> 00:06:41.840
by running on every PR in GitHub.

165
00:06:40.720 --> 00:06:44.760
Okay.

166
00:06:41.840 --> 00:06:46.160
It's been a busy few months for a small,

167
00:06:44.760 --> 00:06:48.840
growing team.

168
00:06:46.160 --> 00:06:50.440
We've been using Codex to build Codex.

169
00:06:48.840 --> 00:06:52.560
There's really no way we could have done

170
00:06:50.440 --> 00:06:56.200
it without it.

171
00:06:52.560 --> 00:06:59.200
Even more fun has been seeing OpenAI as

172
00:06:56.200 --> 00:07:00.280
a whole get accelerated.

173
00:06:59.200 --> 00:07:02.000
Today,

174
00:07:00.280 --> 00:07:04.480
92%

175
00:07:02.000 --> 00:07:07.120
almost all of OpenAI technical staff

176
00:07:04.480 --> 00:07:10.800
uses Codex daily.

177
00:07:07.120 --> 00:07:13.280
Up from 50% around last July.

178
00:07:10.800 --> 00:07:16.240
Engineers that use Codex submit 70% more

179
00:07:13.280 --> 00:07:18.360
PRs per week.

180
00:07:16.240 --> 00:07:20.360
And pretty much all PRs are reviewed by

181
00:07:18.360 --> 00:07:21.880
Codex.

182
00:07:20.360 --> 00:07:25.200
When it finds an issue, people are

183
00:07:21.880 --> 00:07:27.640
actually excited. It saves you time. You

184
00:07:25.200 --> 00:07:29.560
ship with more confidence.

185
00:07:27.640 --> 00:07:32.840
There's nothing worse than finding a bug

186
00:07:29.560 --> 00:07:35.160
after you actually shipped the feature.

187
00:07:32.840 --> 00:07:37.920
When we as a team see the stats, it

188
00:07:35.160 --> 00:07:40.080
feels great. But even better is being at

189
00:07:37.920 --> 00:07:42.960
lunch with someone

190
00:07:40.080 --> 00:07:45.560
who then goes, "Hey, I use Codex all the

191
00:07:42.960 --> 00:07:48.280
time. Here's a cool thing that I do with

192
00:07:45.560 --> 00:07:49.760
it. Do you want to hear about it?"

193
00:07:48.280 --> 00:07:51.440
And so we wanted to give you a taste of

194
00:07:49.760 --> 00:07:53.360
that.

195
00:07:51.440 --> 00:07:54.920
So, let's get to lunch with a few

196
00:07:53.360 --> 00:07:56.720
teammates

197
00:07:54.920 --> 00:07:59.360
and hear about their stories. They'll

198
00:07:56.720 --> 00:08:01.240
show you real workflows of our teams,

199
00:07:59.360 --> 00:08:03.600
how they use it every day.

200
00:08:01.240 --> 00:08:06.320
Please welcome Nacho to the stage to

201
00:08:03.600 --> 00:08:09.270
talk about iterating on UI

202
00:08:06.320 --> 00:08:12.360
for the ChatGPT iOS app.

203
00:08:09.270 --> 00:08:15.000
[Applause]

204
00:08:12.360 --> 00:08:15.000
Thanks, Thibaud.

205
00:08:15.120 --> 00:08:20.960
Hello. My name is Nacho Soto. I'm a

206
00:08:17.240 --> 00:08:22.800
member of the core iOS team at OpenAI.

207
00:08:20.960 --> 00:08:24.360
Going to do two things today. I'm going

208
00:08:22.800 --> 00:08:26.240
to tell you about a workflow that I use

209
00:08:24.360 --> 00:08:28.320
frequently when building the ChatGPT

210
00:08:26.240 --> 00:08:30.120
app. And I'd like to share a demo that

211
00:08:28.320 --> 00:08:32.840
shows you how I do this.

212
00:08:30.120 --> 00:08:32.840
Let's start with the demo.

213
00:08:34.440 --> 00:08:38.719
Thibaud asked me to build a weather app.

214
00:08:36.760 --> 00:08:41.560
So, I have a starter project with just

215
00:08:38.719 --> 00:08:41.560
an empty window.

216
00:08:42.039 --> 00:08:45.960
And I've also asked ChatGPT to make a

217
00:08:44.200 --> 00:08:48.320
mock-up of what I want the UI to look

218
00:08:45.960 --> 00:08:48.320
like.

219
00:08:48.360 --> 00:08:53.960
So, I'm going to ask Codex

220
00:08:50.920 --> 00:08:53.960
to implement that design.

221
00:08:57.000 --> 00:09:01.160
Great. While that's running, let me tell

222
00:08:59.000 --> 00:09:03.720
you what's special about how Codex is

223
00:09:01.160 --> 00:09:05.840
going to implement this.

224
00:09:03.720 --> 00:09:07.880
Working in the ChatGPT core team means I

225
00:09:05.840 --> 00:09:09.920
spend a lot of time on infrastructure,

226
00:09:07.880 --> 00:09:12.080
performance, but also do some amount of

227
00:09:09.920 --> 00:09:14.160
front-end work.

228
00:09:12.080 --> 00:09:16.040
Recently, I worked on this small feature

229
00:09:14.160 --> 00:09:18.160
where we simplified our personalization

230
00:09:16.040 --> 00:09:21.440
screen to make our new ChatGPT

231
00:09:18.160 --> 00:09:22.640
personalities more discoverable.

232
00:09:21.440 --> 00:09:25.200
And I'm sure you've run into something

233
00:09:22.640 --> 00:09:27.760
like this before. With that last 10% of

234
00:09:25.200 --> 00:09:29.960
polish, like getting these headers and

235
00:09:27.760 --> 00:09:32.640
footers aligned, it's actually taking

236
00:09:29.960 --> 00:09:35.440
90% of the time.

237
00:09:32.640 --> 00:09:37.000
But Codex can help you with that 10%.

238
00:09:35.440 --> 00:09:38.800
And you can work on that while you do

239
00:09:37.000 --> 00:09:41.480
something else. Maybe you're watching

240
00:09:38.800 --> 00:09:43.400
some of the other DevDay talks.

241
00:09:41.480 --> 00:09:45.120
You can even have nine other terminal

242
00:09:43.400 --> 00:09:48.600
tabs running Codex if you want to be a

243
00:09:45.120 --> 00:09:48.600
true 10x engineer.

244
00:09:50.040 --> 00:09:54.360
Who here has been sent a pull request

245
00:09:52.280 --> 00:09:55.880
from a junior engineer, and within a few

246
00:09:54.360 --> 00:09:57.640
seconds you you that they didn't

247
00:09:55.880 --> 00:10:00.240
actually test it, cuz there's no way

248
00:09:57.640 --> 00:10:00.240
that it works.

249
00:10:00.720 --> 00:10:05.720
If you used ChatGPT or any other agent 6

250
00:10:03.600 --> 00:10:07.560
months ago, you were working with that

251
00:10:05.720 --> 00:10:10.440
junior engineer.

252
00:10:07.560 --> 00:10:12.760
But Codex is not.

253
00:10:10.440 --> 00:10:15.360
Like Tevo said, I would argue that Codex

254
00:10:12.760 --> 00:10:17.040
is now a senior engineer.

255
00:10:15.360 --> 00:10:19.640
It doesn't just write the code and

256
00:10:17.040 --> 00:10:21.560
assume that it works. It will verify

257
00:10:19.640 --> 00:10:23.960
that it does.

258
00:10:21.560 --> 00:10:26.880
I'm a big fan of TDD, test-driven

259
00:10:23.960 --> 00:10:29.200
development. And I think Codex really

260
00:10:26.880 --> 00:10:31.560
thrives with that workflow.

261
00:10:29.200 --> 00:10:33.600
It will run your tests, fix the code,

262
00:10:31.560 --> 00:10:36.160
run your tests again, over and over

263
00:10:33.600 --> 00:10:39.000
until they pass.

264
00:10:36.160 --> 00:10:41.880
But why stop at unit tests?

265
00:10:39.000 --> 00:10:46.160
Codex is multimodal, which means it can

266
00:10:41.880 --> 00:10:48.000
also verify its work visually.

267
00:10:46.160 --> 00:10:51.440
A few weeks ago, we gave Codex that

268
00:10:48.000 --> 00:10:53.320
superpower of being able to see images.

269
00:10:51.440 --> 00:10:56.760
So, I taught it to generate snapshots

270
00:10:53.320 --> 00:10:58.120
for the UI code that it writes.

271
00:10:56.760 --> 00:10:59.440
And best of all, it's actually very

272
00:10:58.120 --> 00:11:00.680
simple.

273
00:10:59.440 --> 00:11:02.839
First,

274
00:11:00.680 --> 00:11:05.160
I made this very simple makefile that

275
00:11:02.839 --> 00:11:07.200
runs the unit tests to extract the

276
00:11:05.160 --> 00:11:09.480
SwiftUI previews.

277
00:11:07.200 --> 00:11:11.960
And that calls a small Python script,

278
00:11:09.480 --> 00:11:13.680
which Codex wrote, by the way.

279
00:11:11.960 --> 00:11:17.120
And that extracts those images, puts

280
00:11:13.680 --> 00:11:19.720
them in a folder so Codex can find them.

281
00:11:17.120 --> 00:11:21.720
Then in the agents.md I just told Codex

282
00:11:19.720 --> 00:11:25.360
about that script, and I've asked it to

283
00:11:21.720 --> 00:11:26.880
use it to verify its work.

284
00:11:25.360 --> 00:11:29.600
We use this workflow to build the

285
00:11:26.880 --> 00:11:32.040
ChatGPT iOS and Mac app. You could do

286
00:11:29.600 --> 00:11:35.360
the same on web, for example, with tools

287
00:11:32.040 --> 00:11:37.200
like Storybook or Playwright.

288
00:11:35.360 --> 00:11:39.480
So, that's my workflow. I give Codex

289
00:11:37.200 --> 00:11:42.560
some tools to generate screenshots so we

290
00:11:39.480 --> 00:11:43.960
can verify the UI code that it writes.

291
00:11:42.560 --> 00:11:46.240
Let's check in and see how Codex is

292
00:11:43.960 --> 00:11:46.240
doing.

293
00:11:47.880 --> 00:11:52.680
Okay, so if I scroll back,

294
00:11:51.000 --> 00:11:54.160
looks like it wrote some code, started

295
00:11:52.680 --> 00:11:57.360
with a plan

296
00:11:54.160 --> 00:12:00.120
uh to review the existing code, uh

297
00:11:57.360 --> 00:12:03.600
implement the UI, and provide preview

298
00:12:00.120 --> 00:12:04.720
data to verify that it's good. So,

299
00:12:03.600 --> 00:12:08.720
great, looks like it wrote all that

300
00:12:04.720 --> 00:12:10.640
code, ran the snapshot tests.

301
00:12:08.720 --> 00:12:12.640
Cool. So, uh

302
00:12:10.640 --> 00:12:15.680
no, I guess no, but for 3 minutes, go

303
00:12:12.640 --> 00:12:15.680
ahead and run that up.

304
00:12:18.880 --> 00:12:22.160
Cool.

305
00:12:20.960 --> 00:12:24.520
So, obviously this is a very simple

306
00:12:22.160 --> 00:12:27.040
example, but it actually scales with how

307
00:12:24.520 --> 00:12:28.880
many changes to match larger projects

308
00:12:27.040 --> 00:12:30.839
like the ChatGPT app.

309
00:12:28.880 --> 00:12:33.560
And it can run for many hours depending

310
00:12:30.839 --> 00:12:36.560
on the tasks, iterating over and over

311
00:12:33.560 --> 00:12:38.320
until it's pixel perfect.

312
00:12:36.560 --> 00:12:40.200
And speaking of working for many hours,

313
00:12:38.320 --> 00:12:42.200
I like to pass it over to Freal, who's

314
00:12:40.200 --> 00:12:44.400
going to show us how to scale these

315
00:12:42.200 --> 00:12:46.200
verification loops to run for longer

316
00:12:44.400 --> 00:12:47.200
periods of time and more complex

317
00:12:46.200 --> 00:12:48.460
problems.

318
00:12:47.200 --> 00:12:53.160
Thank you.

319
00:12:48.460 --> 00:12:54.480
[Applause]

320
00:12:53.160 --> 00:12:56.120
Thanks, Nacho.

321
00:12:54.480 --> 00:12:57.960
I'm Freal, and I work on developer

322
00:12:56.120 --> 00:13:00.880
productivity.

323
00:12:57.960 --> 00:13:03.160
Here at OpenAI, I've set high scores for

324
00:13:00.880 --> 00:13:04.280
the longest sessions or the most tokens

325
00:13:03.160 --> 00:13:05.520
produced.

326
00:13:04.280 --> 00:13:07.080
I'm known as the guy that gets Codex to

327
00:13:05.520 --> 00:13:09.120
do this.

328
00:13:07.080 --> 00:13:11.960
For being able to use Codex to one-shot

329
00:13:09.120 --> 00:13:13.640
big features and complex code changes.

330
00:13:11.960 --> 00:13:15.800
I've seen the GPT-5 Codex model work for

331
00:13:13.640 --> 00:13:18.480
over 7 hours productively. That was my

332
00:13:15.800 --> 00:13:20.200
prompt. Or process more than 150 million

333
00:13:18.480 --> 00:13:22.720
tokens over the course of a marathon

334
00:13:20.200 --> 00:13:22.720
session.

335
00:13:23.520 --> 00:13:27.920
This is one of those projects.

336
00:13:25.480 --> 00:13:31.040
It's a complex refactor, a major feature

337
00:13:27.920 --> 00:13:33.240
for my my personal JSON parser project.

338
00:13:31.040 --> 00:13:34.960
And for large projects like this, there

339
00:13:33.240 --> 00:13:36.320
can be long periods of time where it

340
00:13:34.960 --> 00:13:38.040
seems like

341
00:13:36.320 --> 00:13:39.720
all of the tests are failing until the

342
00:13:38.040 --> 00:13:41.920
work is complete, especially when you're

343
00:13:39.720 --> 00:13:43.320
making that core change.

344
00:13:41.920 --> 00:13:44.960
Now, this is a JSON parser built for

345
00:13:43.320 --> 00:13:47.160
streaming tool calls,

346
00:13:44.960 --> 00:13:49.760
a parser for the AI age.

347
00:13:47.160 --> 00:13:51.240
And this person this PR has over 15,000

348
00:13:49.760 --> 00:13:52.960
lines of code changed, and it was

349
00:13:51.240 --> 00:13:54.080
created over many hours of work from

350
00:13:52.960 --> 00:13:56.360
Codex,

351
00:13:54.080 --> 00:13:57.960
but only a few minutes and a handful of

352
00:13:56.360 --> 00:13:59.880
prompts from me.

353
00:13:57.960 --> 00:14:02.200
Let's walk through how I go from prompt

354
00:13:59.880 --> 00:14:04.120
to pull request.

355
00:14:02.200 --> 00:14:06.360
We'll do this in just a couple prompts.

356
00:14:04.120 --> 00:14:09.200
First, we'll tell Codex that we want a

357
00:14:06.360 --> 00:14:11.200
plan to implement our feature.

358
00:14:09.200 --> 00:14:14.040
Then, we're going to review that plan

359
00:14:11.200 --> 00:14:16.480
and tell it to execute. And finally, we

360
00:14:14.040 --> 00:14:16.480
ship.

361
00:14:18.920 --> 00:14:23.560
Here, I've opened my project in VS Code,

362
00:14:21.520 --> 00:14:25.160
and I'll open up our Codex extension as

363
00:14:23.560 --> 00:14:26.800
well.

364
00:14:25.160 --> 00:14:28.200
Uh I have a fairly complex feature I

365
00:14:26.800 --> 00:14:29.760
want to implement, and I've prepared

366
00:14:28.200 --> 00:14:31.240
that in a document for me for me to

367
00:14:29.760 --> 00:14:32.920
read.

368
00:14:31.240 --> 00:14:34.560
And I'm going to tell Codex that I want

369
00:14:32.920 --> 00:14:36.440
it to write a plan to implement this

370
00:14:34.560 --> 00:14:37.640
feature, and I've described the end

371
00:14:36.440 --> 00:14:39.600
state.

372
00:14:37.640 --> 00:14:41.880
But I want Codex to do the heavy lifting

373
00:14:39.600 --> 00:14:44.600
for me and research how to integrate

374
00:14:41.880 --> 00:14:46.959
this library into my parser.

375
00:14:44.600 --> 00:14:48.240
So, what I do is I ask Codex to write a

376
00:14:46.959 --> 00:14:49.520
spec.

377
00:14:48.240 --> 00:14:51.200
And I'm going to go ahead and kick that

378
00:14:49.520 --> 00:14:53.079
off.

379
00:14:51.200 --> 00:14:55.480
And actually, I'm going to turn off auto

380
00:14:53.079 --> 00:14:57.520
context here. A little bit of an aside,

381
00:14:55.480 --> 00:15:00.240
I've rehearsed this a few times, and

382
00:14:57.520 --> 00:15:02.480
it's actually found finished specs from

383
00:15:00.240 --> 00:15:05.000
my Git history and cheated and copied

384
00:15:02.480 --> 00:15:07.120
right to the end of the process.

385
00:15:05.000 --> 00:15:09.000
So, I'm going to have it really do the

386
00:15:07.120 --> 00:15:10.440
work.

387
00:15:09.000 --> 00:15:11.720
And uh

388
00:15:10.440 --> 00:15:13.839
you'll notice I don't need to tell it a

389
00:15:11.720 --> 00:15:15.680
lot. I've given it my example, I've told

390
00:15:13.839 --> 00:15:17.079
it to do some research,

391
00:15:15.680 --> 00:15:19.760
follow the example of the code that I've

392
00:15:17.079 --> 00:15:19.760
already got.

393
00:15:20.959 --> 00:15:23.800
So,

394
00:15:22.440 --> 00:15:27.520
while that's working, let me show you

395
00:15:23.800 --> 00:15:29.959
what I mean by a plan or an exec spec.

396
00:15:27.520 --> 00:15:31.400
This is my plans.md file. I've

397
00:15:29.959 --> 00:15:34.320
abbreviated everything here so we don't

398
00:15:31.400 --> 00:15:36.480
have to read all of it. It's 160 lines.

399
00:15:34.320 --> 00:15:38.959
Uh but really what I'm doing here is I'm

400
00:15:36.480 --> 00:15:40.360
writing a design document for design

401
00:15:38.959 --> 00:15:41.920
documents.

402
00:15:40.360 --> 00:15:43.760
Codex is now a senior engineer, after

403
00:15:41.920 --> 00:15:46.320
all, so we should be asking it to do

404
00:15:43.760 --> 00:15:48.920
some of its own paperwork, too.

405
00:15:46.320 --> 00:15:50.839
And like most engineers writing a design

406
00:15:48.920 --> 00:15:54.200
doc, it's going to start by copying from

407
00:15:50.839 --> 00:15:55.480
an example. I've got one here.

408
00:15:54.200 --> 00:15:57.560
And I tell it,

409
00:15:55.480 --> 00:15:59.360
you know, this plan is going to contain

410
00:15:57.560 --> 00:16:01.560
is going to be a living document. It's

411
00:15:59.360 --> 00:16:03.200
going to describe its big picture. It's

412
00:16:01.560 --> 00:16:04.920
going to have a to-do list and progress

413
00:16:03.200 --> 00:16:07.000
that it keeps up to date.

414
00:16:04.920 --> 00:16:09.320
And I also want to say,

415
00:16:07.000 --> 00:16:11.000
why do I keep on saying exec plan?

416
00:16:09.320 --> 00:16:13.560
And I'm doing that because I want to

417
00:16:11.000 --> 00:16:16.680
give the model a term to anchor on and

418
00:16:13.560 --> 00:16:19.680
know when I use the term exec plan,

419
00:16:16.680 --> 00:16:21.400
use plans.md to design that, to iterate

420
00:16:19.680 --> 00:16:22.800
on it, and follow up.

421
00:16:21.400 --> 00:16:24.560
It's good to give it a a term that's

422
00:16:22.800 --> 00:16:26.480
unique so that it knows to reflect back

423
00:16:24.560 --> 00:16:28.200
on that. And when I say that, it's

424
00:16:26.480 --> 00:16:31.000
something special, not just any design

425
00:16:28.200 --> 00:16:32.120
doc or implementation spec.

426
00:16:31.000 --> 00:16:34.360
So,

427
00:16:32.120 --> 00:16:35.959
in this spec, we've got our progress,

428
00:16:34.360 --> 00:16:37.320
our surprises and discoveries. We even

429
00:16:35.959 --> 00:16:39.839
have a decision log in here for me to

430
00:16:37.320 --> 00:16:40.720
keep track of what it's been working on.

431
00:16:39.839 --> 00:16:42.839
Now,

432
00:16:40.720 --> 00:16:44.600
normally I don't ask engineers to write

433
00:16:42.839 --> 00:16:46.020
this much. I only do that when maybe I

434
00:16:44.600 --> 00:16:47.720
don't like their project.

435
00:16:46.020 --> 00:16:50.560
[Laughter]

436
00:16:47.720 --> 00:16:52.560
But in this case, this helps Codex steer

437
00:16:50.560 --> 00:16:56.120
towards a completed project. It is its

438
00:16:52.560 --> 00:16:58.520
memory as it works on this large plan.

439
00:16:56.120 --> 00:17:01.120
And after this talk, we'll upload the

440
00:16:58.520 --> 00:17:02.880
plans.md recipe to our OpenAI cookbooks

441
00:17:01.120 --> 00:17:05.360
so any of you can adopt it in your

442
00:17:02.880 --> 00:17:06.480
repositories.

443
00:17:05.360 --> 00:17:07.839
Now,

444
00:17:06.480 --> 00:17:10.720
how does it know

445
00:17:07.839 --> 00:17:12.280
how to use this plans.md? As I mentioned

446
00:17:10.720 --> 00:17:14.360
earlier,

447
00:17:12.280 --> 00:17:16.120
I've used my agents.md.

448
00:17:14.360 --> 00:17:18.839
I drop a couple lines here in my

449
00:17:16.120 --> 00:17:20.760
agents.md, just a few instructions. When

450
00:17:18.839 --> 00:17:22.600
you're working on something complex,

451
00:17:20.760 --> 00:17:24.199
this is what an exec plan is, refer

452
00:17:22.600 --> 00:17:26.400
plans.md,

453
00:17:24.199 --> 00:17:28.240
make sure that you're following that.

454
00:17:26.400 --> 00:17:30.360
Now, as you can see, it's doing quite a

455
00:17:28.240 --> 00:17:31.720
bit of research on the side here, so

456
00:17:30.360 --> 00:17:34.200
let's go ahead and look at a completed

457
00:17:31.720 --> 00:17:34.200
spec.

458
00:17:34.360 --> 00:17:39.960
So, I've switched over to a completed

459
00:17:36.400 --> 00:17:43.360
session here, and it's written my spec.

460
00:17:39.960 --> 00:17:43.360
Let me open up that plan here.

461
00:17:43.480 --> 00:17:46.160
So,

462
00:17:44.840 --> 00:17:48.640
I can review this. I can give it

463
00:17:46.160 --> 00:17:50.440
feedback. I can look at Okay, that looks

464
00:17:48.640 --> 00:17:51.760
like, you know,

465
00:17:50.440 --> 00:17:54.840
quite a lot of words, but it is what I

466
00:17:51.760 --> 00:17:56.400
wanted to do, and it has a plan.

467
00:17:54.840 --> 00:17:58.080
Looks like a couple spikes, some

468
00:17:56.400 --> 00:18:00.360
features that it wants to implement, and

469
00:17:58.080 --> 00:18:01.600
of course documentation. So, that looks

470
00:18:00.360 --> 00:18:02.679
good to me. I'm going to go ahead and

471
00:18:01.600 --> 00:18:05.040
tell

472
00:18:02.679 --> 00:18:06.880
Codex,

473
00:18:05.040 --> 00:18:09.920
let's go ahead

474
00:18:06.880 --> 00:18:09.920
and implement.

475
00:18:10.840 --> 00:18:14.640
And we can't type today. There we go.

476
00:18:13.520 --> 00:18:17.080
And

477
00:18:14.640 --> 00:18:19.080
so while that runs, uh I like to keep an

478
00:18:17.080 --> 00:18:20.720
eye on Codex. It keeps something

479
00:18:19.080 --> 00:18:23.760
scrolling on my screen. My manager knows

480
00:18:20.720 --> 00:18:23.760
that I'm still working.

481
00:18:23.880 --> 00:18:28.640
And I like to watch the tests. So,

482
00:18:27.159 --> 00:18:31.000
what I'll do is I'll kick off these

483
00:18:28.640 --> 00:18:32.000
tests. They run very fast. Uh Codex

484
00:18:31.000 --> 00:18:34.280
helped me write all of these, by the

485
00:18:32.000 --> 00:18:36.520
way, from simple property tests or

486
00:18:34.280 --> 00:18:38.040
simple uh unit tests to exhaustive

487
00:18:36.520 --> 00:18:39.720
property tests. There's even some

488
00:18:38.040 --> 00:18:42.840
fuzzing in this crate.

489
00:18:39.720 --> 00:18:45.200
And uh so, I'll keep an eye on this, and

490
00:18:42.840 --> 00:18:46.679
if it stays red for too long, I might

491
00:18:45.200 --> 00:18:48.520
intervene and say, you know, Codex,

492
00:18:46.679 --> 00:18:51.919
maybe we need to back out. Maybe that

493
00:18:48.520 --> 00:18:54.360
plan is going a little off the rails.

494
00:18:51.919 --> 00:18:57.320
All right, let's go ahead and look at

495
00:18:54.360 --> 00:18:59.360
what it's completed in this project. So,

496
00:18:57.320 --> 00:19:01.080
I'm skipping ahead to Codex having

497
00:18:59.360 --> 00:19:03.480
finished that task. By the way, that

498
00:19:01.080 --> 00:19:04.840
took over an hour in my my previous

499
00:19:03.480 --> 00:19:06.919
session, so we're skipping ahead quite a

500
00:19:04.840 --> 00:19:08.480
ways. And it looks like it's written

501
00:19:06.919 --> 00:19:10.800
some new tests.

502
00:19:08.480 --> 00:19:11.640
Um they're all passing, which is great.

503
00:19:10.800 --> 00:19:13.120
Uh let's go ahead and look at the

504
00:19:11.640 --> 00:19:14.600
changes.

505
00:19:13.120 --> 00:19:16.840
Okay.

506
00:19:14.600 --> 00:19:19.480
Wow, and it looks like it vendored in

507
00:19:16.840 --> 00:19:21.240
and even maybe forked or updated the

508
00:19:19.480 --> 00:19:23.400
upstream library to make some changes to

509
00:19:21.240 --> 00:19:24.280
implement what it needed to do.

510
00:19:23.400 --> 00:19:26.120
Now,

511
00:19:24.280 --> 00:19:27.640
again, I don't have all day to read all

512
00:19:26.120 --> 00:19:30.600
of this to you, so I'm going to go ahead

513
00:19:27.640 --> 00:19:33.000
and open up the plan again.

514
00:19:30.600 --> 00:19:35.040
So, I open up the plan, and I can see in

515
00:19:33.000 --> 00:19:37.560
the progress, it's checked off some big

516
00:19:35.040 --> 00:19:38.960
items. It's completed some spikes.

517
00:19:37.560 --> 00:19:40.440
It's updated documentation in the

518
00:19:38.960 --> 00:19:42.320
readme.

519
00:19:40.440 --> 00:19:44.200
Plans.md specifies that all of these

520
00:19:42.320 --> 00:19:45.600
plans have to be a living document, and

521
00:19:44.200 --> 00:19:48.159
so I can use this as an executive

522
00:19:45.600 --> 00:19:49.360
summary to know what it's accomplished.

523
00:19:48.159 --> 00:19:52.120
That way I don't have to read all the

524
00:19:49.360 --> 00:19:52.120
code myself.

525
00:19:54.400 --> 00:19:57.640
Okay.

526
00:19:55.600 --> 00:19:59.040
It looks like it's done and the tests

527
00:19:57.640 --> 00:20:00.080
are passing.

528
00:19:59.040 --> 00:20:01.240
So,

529
00:20:00.080 --> 00:20:03.400
uh

530
00:20:01.240 --> 00:20:04.560
what I've shown you today is we can go

531
00:20:03.400 --> 00:20:05.160
from

532
00:20:04.560 --> 00:20:07.360
uh

533
00:20:05.160 --> 00:20:11.680
an implementation idea feature

534
00:20:07.360 --> 00:20:14.480
a prompt to a PR in only a few steps.

535
00:20:11.680 --> 00:20:15.720
Rigorous planning and thorough testing

536
00:20:14.480 --> 00:20:17.600
enabled the model to work on this

537
00:20:15.720 --> 00:20:19.000
feature for a sustained period of time.

538
00:20:17.600 --> 00:20:21.720
And let's just see how many lines of

539
00:20:19.000 --> 00:20:21.720
code it's written.

540
00:20:28.800 --> 00:20:31.880
Crashed.

541
00:20:30.440 --> 00:20:32.880
Okay.

542
00:20:31.880 --> 00:20:36.240
Okay.

543
00:20:32.880 --> 00:20:37.600
4,200 lines of code and just about an

544
00:20:36.240 --> 00:20:38.840
hour of work.

545
00:20:37.600 --> 00:20:39.720
Incredible.

546
00:20:38.840 --> 00:20:41.440
Now,

547
00:20:39.720 --> 00:20:42.760
I could just merge this as is, but I

548
00:20:41.440 --> 00:20:44.440
would really like another set of eyes on

549
00:20:42.760 --> 00:20:45.920
this code.

550
00:20:44.440 --> 00:20:48.920
Thankfully, we have Daniel up next to

551
00:20:45.920 --> 00:20:48.920
talk about code review.

552
00:20:54.400 --> 00:20:56.880
Hello.

553
00:21:03.880 --> 00:21:09.240
All right, my name is Daniel and I'm an

554
00:21:05.960 --> 00:21:13.160
engineer here on the Codex team. So, uh

555
00:21:09.240 --> 00:21:15.000
today I want to talk about code reviews.

556
00:21:13.160 --> 00:21:16.680
As Thibault mentioned, we launched code

557
00:21:15.000 --> 00:21:19.320
reviews on GitHub a couple months ago

558
00:21:16.680 --> 00:21:20.040
and it has been a huge hit.

559
00:21:19.320 --> 00:21:21.720
Um

560
00:21:20.040 --> 00:21:24.120
both externally, but especially

561
00:21:21.720 --> 00:21:26.640
internally, we love code reviews. We

562
00:21:24.120 --> 00:21:28.320
have them running on all of our PRs and

563
00:21:26.640 --> 00:21:30.720
it's finding so many bugs that we would

564
00:21:28.320 --> 00:21:33.320
have otherwise missed. And some of these

565
00:21:30.720 --> 00:21:35.320
bugs are so complex that you have to

566
00:21:33.320 --> 00:21:36.880
like read and reread the comment a

567
00:21:35.320 --> 00:21:39.120
couple times to even understand what

568
00:21:36.880 --> 00:21:41.240
it's saying. So, I highly highly

569
00:21:39.120 --> 00:21:42.960
recommend you enable code reviews for

570
00:21:41.240 --> 00:21:44.360
all your GitHub PRs.

571
00:21:42.960 --> 00:21:46.760
Um

572
00:21:44.360 --> 00:21:48.760
here's an example of one of my PRs

573
00:21:46.760 --> 00:21:49.680
that's on the Codex repo. It's open

574
00:21:48.760 --> 00:21:50.960
source.

575
00:21:49.680 --> 00:21:52.320
So,

576
00:21:50.960 --> 00:21:54.320
I uh

577
00:21:52.320 --> 00:21:57.880
pushed a feature and then immediately

578
00:21:54.320 --> 00:22:00.760
Codex started reviewing my code and it

579
00:21:57.880 --> 00:22:02.960
found a P1 issue. Great.

580
00:22:00.760 --> 00:22:04.880
Uh so, then I said, "Thanks, Codex.

581
00:22:02.960 --> 00:22:07.560
Please fix it." And that kicked off a

582
00:22:04.880 --> 00:22:09.840
background task um to to make that

583
00:22:07.560 --> 00:22:12.120
change. And then once that got merged, I

584
00:22:09.840 --> 00:22:13.840
said, "All right, Codex. Um

585
00:22:12.120 --> 00:22:15.400
now that you have all this, now that you

586
00:22:13.840 --> 00:22:18.080
have this change, review it again. Make

587
00:22:15.400 --> 00:22:20.560
sure we don't have any issues."

588
00:22:18.080 --> 00:22:23.480
And then it found another issue.

589
00:22:20.560 --> 00:22:25.920
And then uh I was just embarrassed.

590
00:22:23.480 --> 00:22:28.080
So,

591
00:22:25.920 --> 00:22:30.560
this got me thinking.

592
00:22:28.080 --> 00:22:32.280
What if you could have a workflow where

593
00:22:30.560 --> 00:22:34.040
you create a feature

594
00:22:32.280 --> 00:22:35.840
and then you review it for bugs and then

595
00:22:34.040 --> 00:22:37.200
if there are any bugs, you fix it and

596
00:22:35.840 --> 00:22:39.440
then you review it again and then you

597
00:22:37.200 --> 00:22:41.320
fix and review and fix and review until

598
00:22:39.440 --> 00:22:42.360
theoretically your code doesn't have any

599
00:22:41.320 --> 00:22:43.679
issues.

600
00:22:42.360 --> 00:22:45.480
So,

601
00:22:43.679 --> 00:22:48.200
uh we decided to make this super easy by

602
00:22:45.480 --> 00:22:49.600
bringing code reviews to local as well.

603
00:22:48.200 --> 00:22:51.480
And I'm going to show you how to do that

604
00:22:49.600 --> 00:22:53.480
with slash commands. And this is what I

605
00:22:51.480 --> 00:22:55.800
do every day before I even submit the

606
00:22:53.480 --> 00:22:55.800
PR.

607
00:22:56.600 --> 00:23:00.760
Okay.

608
00:22:57.880 --> 00:23:03.320
Uh so, I'm working on a little feature.

609
00:23:00.760 --> 00:23:04.720
Uh you can see it has like three

610
00:23:03.320 --> 00:23:05.720
different commits. It's a pretty small

611
00:23:04.720 --> 00:23:08.320
one.

612
00:23:05.720 --> 00:23:10.679
Um and I have the CLI running on the

613
00:23:08.320 --> 00:23:13.160
side. So,

614
00:23:10.679 --> 00:23:14.640
all I have to do is write {slash}

615
00:23:13.160 --> 00:23:17.240
review,

616
00:23:14.640 --> 00:23:17.240
hit enter,

617
00:23:17.480 --> 00:23:20.200
and then you'll see there are a couple

618
00:23:18.720 --> 00:23:22.760
different options here.

619
00:23:20.200 --> 00:23:24.360
So, the first option is reviewing

620
00:23:22.760 --> 00:23:26.640
against a base branch, just like a PR.

621
00:23:24.360 --> 00:23:28.080
So, this would take a some of your well,

622
00:23:26.640 --> 00:23:29.679
all of your commits in your base branch,

623
00:23:28.080 --> 00:23:31.160
compare it to main,

624
00:23:29.679 --> 00:23:33.760
uh just like a normal PR, and then look

625
00:23:31.160 --> 00:23:35.120
at the whole diff and try to find any

626
00:23:33.760 --> 00:23:36.640
uh issues with it.

627
00:23:35.120 --> 00:23:38.280
There are other options, too, like

628
00:23:36.640 --> 00:23:39.679
reviewing uncommitted changes or

629
00:23:38.280 --> 00:23:42.120
specific commit or custom review

630
00:23:39.679 --> 00:23:43.480
instructions, but what I usually do at

631
00:23:42.120 --> 00:23:46.080
the end of the day when I have a bunch

632
00:23:43.480 --> 00:23:47.640
of different commits is just review the

633
00:23:46.080 --> 00:23:49.720
whole thing. So, I select the first

634
00:23:47.640 --> 00:23:51.840
option. Now, I have to select a base

635
00:23:49.720 --> 00:23:53.360
branch. Usually main is the first one,

636
00:23:51.840 --> 00:23:56.160
so I hit enter again.

637
00:23:53.360 --> 00:23:58.600
And now code review begins.

638
00:23:56.160 --> 00:23:58.600
So,

639
00:23:58.640 --> 00:24:02.840
a question I have is

640
00:24:00.440 --> 00:24:05.000
why is it so good?

641
00:24:02.840 --> 00:24:06.760
Why is GPT-5 Codex so good at code

642
00:24:05.000 --> 00:24:09.240
reviews? Because we actually trained it

643
00:24:06.760 --> 00:24:12.160
specifically on finding very technical

644
00:24:09.240 --> 00:24:14.000
bugs and it will go on for a very long

645
00:24:12.160 --> 00:24:16.360
time researching all sorts of different

646
00:24:14.000 --> 00:24:18.200
files and then when it has a hypothesis

647
00:24:16.360 --> 00:24:21.720
for something that could be wrong, it'll

648
00:24:18.200 --> 00:24:24.240
even write tests, um scripts, execute

649
00:24:21.720 --> 00:24:28.200
them to make sure that it gives you like

650
00:24:24.240 --> 00:24:29.560
one or maybe at most two critical issues

651
00:24:28.200 --> 00:24:31.520
that you have to fix before you land

652
00:24:29.560 --> 00:24:33.640
your PR. It doesn't give you like 20 or

653
00:24:31.520 --> 00:24:37.720
30 different things that it one shots

654
00:24:33.640 --> 00:24:39.520
from just looking at your diff. It

655
00:24:37.720 --> 00:24:42.320
doesn't waste your time.

656
00:24:39.520 --> 00:24:44.520
So, um

657
00:24:42.320 --> 00:24:45.600
yeah, there's actually a bug here.

658
00:24:44.520 --> 00:24:47.880
Uh

659
00:24:45.600 --> 00:24:49.520
If anyone gets Oh, nice.

660
00:24:47.880 --> 00:24:54.280
It It got it for us.

661
00:24:49.520 --> 00:24:57.120
Um so, it's a P0. Great. Um

662
00:24:54.280 --> 00:24:59.280
and it's exactly correct. So, we aren't

663
00:24:57.120 --> 00:25:01.080
supposed to be hardcoding the string

664
00:24:59.280 --> 00:25:04.040
here in the code. We should be getting

665
00:25:01.080 --> 00:25:07.679
that dynamically. So,

666
00:25:04.040 --> 00:25:10.160
all I have to do now is tell Codex,

667
00:25:07.679 --> 00:25:10.160
please fix.

668
00:25:11.720 --> 00:25:16.200
Uh and usually I don't even read the

669
00:25:14.800 --> 00:25:17.560
comments, so

670
00:25:16.200 --> 00:25:19.160
uh

671
00:25:17.560 --> 00:25:20.880
it just goes.

672
00:25:19.160 --> 00:25:23.000
But,

673
00:25:20.880 --> 00:25:25.440
yeah, and the ni- the nice thing about

674
00:25:23.000 --> 00:25:26.760
reviews in the CLI is that it actually

675
00:25:25.440 --> 00:25:28.400
spawns a separate thread from the

676
00:25:26.760 --> 00:25:30.679
parent. So, let's say you've been

677
00:25:28.400 --> 00:25:32.280
working on this feature and it is like

678
00:25:30.679 --> 00:25:33.560
super biased, you know, you have to do

679
00:25:32.280 --> 00:25:35.440
this feature like this, you have to

680
00:25:33.560 --> 00:25:37.240
implement it like that.

681
00:25:35.440 --> 00:25:40.679
The review thread is separate. It has a

682
00:25:37.240 --> 00:25:43.120
fresh pair of eyes, a fresh context, new

683
00:25:40.679 --> 00:25:45.600
chat, uh so it doesn't have that same

684
00:25:43.120 --> 00:25:47.600
implementation bias and it'll help find

685
00:25:45.600 --> 00:25:50.200
these bugs for you.

686
00:25:47.600 --> 00:25:53.440
Uh so, yeah, that is going to go ahead

687
00:25:50.200 --> 00:25:54.840
and and uh you know, give us some

688
00:25:53.440 --> 00:25:57.120
changes. While that runs, I want to

689
00:25:54.840 --> 00:25:59.960
actually show you how you can enable

690
00:25:57.120 --> 00:26:02.640
um reviews on all your PRs. So, go to

691
00:25:59.960 --> 00:26:03.840
chat.openai.com/codex.

692
00:26:02.640 --> 00:26:06.000
And then

693
00:26:03.840 --> 00:26:07.080
you just connect your GitHub.

694
00:26:06.000 --> 00:26:08.560
And then there's a button here called

695
00:26:07.080 --> 00:26:10.040
enable code review.

696
00:26:08.560 --> 00:26:12.280
So, this will take you to the code

697
00:26:10.040 --> 00:26:14.520
review settings and you can have like

698
00:26:12.280 --> 00:26:17.160
repository level settings to say like I

699
00:26:14.520 --> 00:26:19.200
want this repo to get code reviews, I

700
00:26:17.160 --> 00:26:21.280
want that one to not, but I just have

701
00:26:19.200 --> 00:26:23.160
this toggle over here that I just say,

702
00:26:21.280 --> 00:26:25.120
"Review all of my pull requests. Please

703
00:26:23.160 --> 00:26:26.679
make sure I don't ship any regressions

704
00:26:25.120 --> 00:26:28.120
to prod."

705
00:26:26.679 --> 00:26:29.360
So,

706
00:26:28.120 --> 00:26:30.560
let's go back.

707
00:26:29.360 --> 00:26:33.640
Fantastic.

708
00:26:30.560 --> 00:26:35.080
Uh it made the change. Let's see.

709
00:26:33.640 --> 00:26:36.920
That looks correct. Yeah, now it's

710
00:26:35.080 --> 00:26:41.200
getting the prompt directory

711
00:26:36.920 --> 00:26:42.640
dynamically. So, now that this is done,

712
00:26:41.200 --> 00:26:44.560
what I want to do is I want to run

713
00:26:42.640 --> 00:26:47.840
{slash} review again.

714
00:26:44.560 --> 00:26:50.320
So, I hit {slash} review, enter, enter.

715
00:26:47.840 --> 00:26:53.120
Great. So, this will start another

716
00:26:50.320 --> 00:26:55.280
review thread. And then once that goes

717
00:26:53.120 --> 00:26:56.280
on, hopefully it won't find any issues,

718
00:26:55.280 --> 00:26:57.520
but if there are any issues, you can

719
00:26:56.280 --> 00:26:59.840
continue it again.

720
00:26:57.520 --> 00:27:01.640
Um and then once that's done, it gives

721
00:26:59.840 --> 00:27:03.120
you a thumbs up.

722
00:27:01.640 --> 00:27:05.600
You commit.

723
00:27:03.120 --> 00:27:08.640
You push to get. And then you get one

724
00:27:05.600 --> 00:27:10.240
final thumbs up from uh Codex on your PR

725
00:27:08.640 --> 00:27:11.480
and you're merged.

726
00:27:10.240 --> 00:27:13.320
So,

727
00:27:11.480 --> 00:27:15.920
that is what I do every day

728
00:27:13.320 --> 00:27:18.320
using {slash} review in my daily

729
00:27:15.920 --> 00:27:20.120
workflow before I even create a PR.

730
00:27:18.320 --> 00:27:23.560
Thank you so much and I'll hand it back

731
00:27:20.120 --> 00:27:23.560
to Thibault to wrap it up.

732
00:27:25.220 --> 00:27:29.080
[Music]

733
00:27:27.520 --> 00:27:30.320
All right, folks.

734
00:27:29.080 --> 00:27:32.400
That's it.

735
00:27:30.320 --> 00:27:33.600
I hope today's demos gave you a glimpse

736
00:27:32.400 --> 00:27:36.000
of

737
00:27:33.600 --> 00:27:39.360
how we're shipping faster and with more

738
00:27:36.000 --> 00:27:41.440
confidence with Codex and a little bit

739
00:27:39.360 --> 00:27:44.840
about where we're going.

740
00:27:41.440 --> 00:27:47.000
If you haven't tried Codex yet, just npm

741
00:27:44.840 --> 00:27:48.840
install. This will give you Codex right

742
00:27:47.000 --> 00:27:51.280
in your terminal. Then you just type

743
00:27:48.840 --> 00:27:52.600
Codex and you could get going and use a

744
00:27:51.280 --> 00:27:54.880
lot of the things that we demoed you

745
00:27:52.600 --> 00:27:57.720
today. Everything we showed to you today

746
00:27:54.880 --> 00:28:00.920
is real and you can use it right away.

747
00:27:57.720 --> 00:28:02.440
Gabriel Peel, one of the people here

748
00:28:00.920 --> 00:28:05.720
working on the Codex team, actually just

749
00:28:02.440 --> 00:28:08.040
sent me a message that the V045

750
00:28:05.720 --> 00:28:09.840
of the CLI is out like right now. It has

751
00:28:08.040 --> 00:28:12.880
a few

752
00:28:09.840 --> 00:28:14.880
incremental updates and also support for

753
00:28:12.880 --> 00:28:17.840
uh OAuth MCP, which I think is very

754
00:28:14.880 --> 00:28:18.960
cool. Uh so, just go and install it. Um

755
00:28:17.840 --> 00:28:20.720
and this will give you the latest

756
00:28:18.960 --> 00:28:23.560
version. And then if you want to hang

757
00:28:20.720 --> 00:28:25.720
with a few of the people building Codex,

758
00:28:23.560 --> 00:28:26.919
uh just come and join us at the booths.

759
00:28:25.720 --> 00:28:29.200
Uh there will be some of us there and

760
00:28:26.919 --> 00:28:32.360
also some of the, you know, top users of

761
00:28:29.200 --> 00:28:33.760
Codex here at OpenAI. We also have

762
00:28:32.360 --> 00:28:37.360
uh a Q&A

763
00:28:33.760 --> 00:28:39.320
on uh Discord that you can join and uh

764
00:28:37.360 --> 00:28:41.760
this will uh start shortly. So, come and

765
00:28:39.320 --> 00:28:43.340
say hi. Don't be shy. And uh thank you

766
00:28:41.760 --> 00:28:43.770
for joining today.

767
00:28:43.340 --> 00:28:48.529
[Music]

768
00:28:43.770 --> 00:28:48.529
[Applause]


