WEBVTT

1
00:00:00.000 --> 00:00:04.400
Code review, but one take, two. Comment

2
00:00:02.600 --> 00:00:06.240
mark. I agree.

3
00:00:04.400 --> 00:00:09.160
You're getting

4
00:00:06.240 --> 00:00:12.040
Hey everyone, I'm Romain. And I'm Maya.

5
00:00:09.160 --> 00:00:14.400
Codex needs to do two things really well

6
00:00:12.040 --> 00:00:16.040
to be an effective coding teammate.

7
00:00:14.400 --> 00:00:19.040
First, it needs to work with all your

8
00:00:16.040 --> 00:00:21.360
tools. And second, it also needs to plug

9
00:00:19.040 --> 00:00:22.880
into all of your team workflows.

10
00:00:21.360 --> 00:00:25.000
Code review is one of the most important

11
00:00:22.880 --> 00:00:26.960
workflows for any engineering team, and

12
00:00:25.000 --> 00:00:29.960
we want to help there as well.

13
00:00:26.960 --> 00:00:32.040
With GPT-5 and now GPT-5 Codex, we

14
00:00:29.960 --> 00:00:34.720
trained these models specifically to

15
00:00:32.040 --> 00:00:37.000
find bugs and investigate some issues.

16
00:00:34.720 --> 00:00:39.080
Maya, why don't you tell us more? Sure.

17
00:00:37.000 --> 00:00:41.200
I work on alignment team within OpenAI

18
00:00:39.080 --> 00:00:42.920
research, and code review is a very

19
00:00:41.200 --> 00:00:45.280
important research project for us. As

20
00:00:42.920 --> 00:00:47.080
the AI capabilities grow and we have

21
00:00:45.280 --> 00:00:49.160
more and more powerful coding agents, we

22
00:00:47.080 --> 00:00:51.680
are producing a lot of code, and human

23
00:00:49.160 --> 00:00:53.880
verification is becoming the bottleneck.

24
00:00:51.680 --> 00:00:56.280
So, we need to make sure that while also

25
00:00:53.880 --> 00:00:58.080
training powerful models to help humans

26
00:00:56.280 --> 00:01:00.360
in verification, and that our

27
00:00:58.080 --> 00:01:03.080
verification abilities are scaling as

28
00:01:00.360 --> 00:01:05.680
fast as AI capabilities. That's why we

29
00:01:03.080 --> 00:01:07.560
trained code review models, and we could

30
00:01:05.680 --> 00:01:10.520
have done it just like other research

31
00:01:07.560 --> 00:01:13.280
exercise internally, but it's actually

32
00:01:10.520 --> 00:01:15.680
way more useful to have it interact with

33
00:01:13.280 --> 00:01:17.400
our OpenAI code base and also release it

34
00:01:15.680 --> 00:01:19.000
externally. Well, I'm very much aligned

35
00:01:17.400 --> 00:01:20.600
with our philosophy at OpenAI of like

36
00:01:19.000 --> 00:01:21.960
iterative deployment and making sure the

37
00:01:20.600 --> 00:01:24.440
technology under its contact with

38
00:01:21.960 --> 00:01:26.800
reality. So, I'd love to enable code

39
00:01:24.440 --> 00:01:29.240
review. Can you show us how to do it?

40
00:01:26.800 --> 00:01:31.880
Absolutely. So, the first thing you will

41
00:01:29.240 --> 00:01:34.280
have to do is to go in your Codex web

42
00:01:31.880 --> 00:01:36.000
setting and just enable it. So, that's

43
00:01:34.280 --> 00:01:38.240
all it takes. And now, going forward to

44
00:01:36.000 --> 00:01:39.920
understand like any PR submitted to that

45
00:01:38.240 --> 00:01:43.520
repo will be automatically reviewed by

46
00:01:39.920 --> 00:01:46.480
Codex. Exactly. So, for example, here I

47
00:01:43.520 --> 00:01:48.560
quickly coded up some simple extension.

48
00:01:46.480 --> 00:01:50.640
I created a pull request, and it's

49
00:01:48.560 --> 00:01:52.640
marked as ready for review. The code

50
00:01:50.640 --> 00:01:54.040
review agents will pick it up and start

51
00:01:52.640 --> 00:01:55.440
reviewing it. And in the meantime,

52
00:01:54.040 --> 00:01:57.200
there's a little bit of a an emoji with

53
00:01:55.440 --> 00:02:00.040
the eyes over here. Exactly.

54
00:01:57.200 --> 00:02:02.240
>> Um why don't you show us one where Codex

55
00:02:00.040 --> 00:02:04.080
has already completed the review? So,

56
00:02:02.240 --> 00:02:05.960
here's another one. It looks a bit

57
00:02:04.080 --> 00:02:08.119
different because here I triggered the

58
00:02:05.960 --> 00:02:10.160
review already when the PR was in a

59
00:02:08.119 --> 00:02:12.400
draft stage, and I didn't yet want it

60
00:02:10.160 --> 00:02:14.560
real humans to look at it. So, that's an

61
00:02:12.400 --> 00:02:16.720
interesting technique. So, you manually

62
00:02:14.560 --> 00:02:18.120
add Codex with the message, and it

63
00:02:16.720 --> 00:02:19.840
sounds like in this case, you also

64
00:02:18.120 --> 00:02:23.000
wanted to have specific instructions,

65
00:02:19.840 --> 00:02:25.400
right? Yeah, so you can always comment

66
00:02:23.000 --> 00:02:27.040
at Codex review this PR, and you can add

67
00:02:25.400 --> 00:02:29.120
some extra information. For example,

68
00:02:27.040 --> 00:02:31.200
something that would help the agent

69
00:02:29.120 --> 00:02:33.560
understand the PR, or you can instruct

70
00:02:31.200 --> 00:02:35.080
it to focus on some specific area. Here,

71
00:02:33.560 --> 00:02:36.440
what what I love about Codex code

72
00:02:35.080 --> 00:02:38.120
review, and I want people to understand

73
00:02:36.440 --> 00:02:40.400
like it's not just static analysis,

74
00:02:38.120 --> 00:02:42.360
right? Like the model has access to

75
00:02:40.400 --> 00:02:44.800
tools. It's able to check its own work,

76
00:02:42.360 --> 00:02:46.520
to run tests and commands. Can you show

77
00:02:44.800 --> 00:02:49.640
us what happened behind the scene for

78
00:02:46.520 --> 00:02:52.960
this PR? Yeah, so one important thing to

79
00:02:49.640 --> 00:02:54.360
note is the model doesn't only look at

80
00:02:52.960 --> 00:02:56.520
the diff. It has access to the whole

81
00:02:54.360 --> 00:02:58.960
repository. It can track down

82
00:02:56.520 --> 00:03:01.280
dependencies. It could try to understand

83
00:02:58.960 --> 00:03:03.280
it in a broader code base, which is very

84
00:03:01.280 --> 00:03:05.040
important when you're working on a very

85
00:03:03.280 --> 00:03:07.040
complex code base, where you're not the

86
00:03:05.040 --> 00:03:09.240
only contributor and you don't

87
00:03:07.040 --> 00:03:10.320
understand it in its entirety.

88
00:03:09.240 --> 00:03:12.320
>> And here, it sounds like you can also

89
00:03:10.320 --> 00:03:14.920
review all of the logs that led to that

90
00:03:12.320 --> 00:03:18.000
particular review, right? Yeah, so here

91
00:03:14.920 --> 00:03:21.400
the model was not only browsing through

92
00:03:18.000 --> 00:03:23.360
the code base, but it actually decided

93
00:03:21.400 --> 00:03:25.480
to form some hypotheses and write some

94
00:03:23.360 --> 00:03:28.160
Python code to test the hypothesis and

95
00:03:25.480 --> 00:03:30.720
check whether it's actually correct and

96
00:03:28.160 --> 00:03:32.840
show it on a couple of examples. That's

97
00:03:30.720 --> 00:03:35.120
really cool. And I'm curious like how

98
00:03:32.840 --> 00:03:37.600
was this model trained? Like did we do

99
00:03:35.120 --> 00:03:40.560
anything specific to like make it so

100
00:03:37.600 --> 00:03:43.040
good at like catching bugs? Yeah, so it

101
00:03:40.560 --> 00:03:45.080
is part of the Codex training, but we

102
00:03:43.040 --> 00:03:47.720
added some specific tasks in which we

103
00:03:45.080 --> 00:03:50.120
wanted to really prioritize catching

104
00:03:47.720 --> 00:03:52.640
bugs that actually matter and people

105
00:03:50.120 --> 00:03:55.440
would be willing to fix in real life. We

106
00:03:52.640 --> 00:03:58.200
also made sure that we aimed for very

107
00:03:55.440 --> 00:03:59.960
high precision rate. When we evaluated

108
00:03:58.200 --> 00:04:01.920
it against the previous generation of

109
00:03:59.960 --> 00:04:04.880
the models, we have shown that it has

110
00:04:01.920 --> 00:04:06.240
much lower incorrect comments rate. But

111
00:04:04.880 --> 00:04:07.960
to be fair, the most important

112
00:04:06.240 --> 00:04:10.120
evaluation is just people using it in

113
00:04:07.960 --> 00:04:12.200
practice and it finding the real bugs

114
00:04:10.120 --> 00:04:14.840
and simultaneously not being annoying by

115
00:04:12.200 --> 00:04:16.959
outputting too much comments. Mhm, yeah.

116
00:04:14.840 --> 00:04:19.160
So, you showed us like a couple examples

117
00:04:16.959 --> 00:04:20.959
with GPT-OSS. Now, I'd love to touch

118
00:04:19.160 --> 00:04:23.360
more on like how we use it internally at

119
00:04:20.959 --> 00:04:25.440
OpenAI. Yeah, we've already used it for

120
00:04:23.360 --> 00:04:27.480
a while, and we have gotten a lot of

121
00:04:25.440 --> 00:04:30.600
examples of it really saving us from

122
00:04:27.480 --> 00:04:32.760
having critical issues. So, it saved us

123
00:04:30.600 --> 00:04:35.520
from having some important training run

124
00:04:32.760 --> 00:04:37.960
bugs that would potentially delayed some

125
00:04:35.520 --> 00:04:40.200
important model releases or some

126
00:04:37.960 --> 00:04:42.200
configurations that would not be

127
00:04:40.200 --> 00:04:44.800
normally visible just from the diff

128
00:04:42.200 --> 00:04:47.080
alone. It also allows us to more

129
00:04:44.800 --> 00:04:49.880
confidently contribute to the code bases

130
00:04:47.080 --> 00:04:52.400
that we're not fully familiar with. So,

131
00:04:49.880 --> 00:04:54.920
for example, here we have Alex, our

132
00:04:52.400 --> 00:04:57.200
Codex PM, contributing towards the VS

133
00:04:54.920 --> 00:04:59.520
Code extension Yep. and implementing a

134
00:04:57.200 --> 00:05:02.640
change. Code review model decided that

135
00:04:59.520 --> 00:05:04.160
it's not the correct way to implement

136
00:05:02.640 --> 00:05:06.440
it. Right, it sounds like it caught a

137
00:05:04.160 --> 00:05:09.720
bug in terms of like removing a React

138
00:05:06.440 --> 00:05:12.440
prop here with the CSS. Yeah, it was not

139
00:05:09.720 --> 00:05:14.680
really possible to spot this bug without

140
00:05:12.440 --> 00:05:16.560
understanding of the broader code base

141
00:05:14.680 --> 00:05:18.360
here. But then, I love Alexi's follow-up

142
00:05:16.560 --> 00:05:19.720
as well. At Codex, fair enough, fix it

143
00:05:18.360 --> 00:05:21.680
up cuz you can keep on going with this

144
00:05:19.720 --> 00:05:23.960
conversation and and ask Codex to take

145
00:05:21.680 --> 00:05:26.000
it over. Yeah, after code review bot

146
00:05:23.960 --> 00:05:28.320
produces a finding, you can always ask

147
00:05:26.000 --> 00:05:30.720
Codex to trigger a new task and actually

148
00:05:28.320 --> 00:05:32.080
fix it, which is a very nice workflow to

149
00:05:30.720 --> 00:05:34.040
do. Yeah, that's really amazing and

150
00:05:32.080 --> 00:05:36.040
really the vision of having Codex at any

151
00:05:34.040 --> 00:05:38.120
point and any surface as your teammate

152
00:05:36.040 --> 00:05:39.760
that's able to kind of do work for you.

153
00:05:38.120 --> 00:05:42.240
And what I love about like Codex code

154
00:05:39.760 --> 00:05:44.320
review here in this case is that you may

155
00:05:42.240 --> 00:05:47.640
have like amazing engineers on your

156
00:05:44.320 --> 00:05:50.240
team, but they may not have like many

157
00:05:47.640 --> 00:05:52.680
hours to spend to kind of not just look

158
00:05:50.240 --> 00:05:54.360
at a diff, but like run every possible

159
00:05:52.680 --> 00:05:56.680
scenario in their head. And here, you

160
00:05:54.360 --> 00:05:58.240
have Codex that's able to do that in its

161
00:05:56.680 --> 00:06:00.040
own time. And one thing I wanted to

162
00:05:58.240 --> 00:06:02.200
touch on as well is that we now have

163
00:06:00.040 --> 00:06:04.840
like agents.md, right? This like open

164
00:06:02.200 --> 00:06:06.200
format for coding agents, including

165
00:06:04.840 --> 00:06:07.800
Codex,

166
00:06:06.200 --> 00:06:10.320
to kind of like follow some specific

167
00:06:07.800 --> 00:06:12.240
instructions. Have you like used

168
00:06:10.320 --> 00:06:14.400
agents.md like in your case to kind of

169
00:06:12.240 --> 00:06:16.240
give Codex code review some extra

170
00:06:14.400 --> 00:06:18.320
instructions? We actually trained the

171
00:06:16.240 --> 00:06:20.600
model specifically to be steerable

172
00:06:18.320 --> 00:06:23.080
either with with custom user

173
00:06:20.600 --> 00:06:24.920
instructions or look for agents.md

174
00:06:23.080 --> 00:06:27.720
within the code base.

175
00:06:24.920 --> 00:06:29.920
So, if you add some custom code review

176
00:06:27.720 --> 00:06:31.840
guidelines to your package, that would

177
00:06:29.920 --> 00:06:33.840
help model to understand the code base,

178
00:06:31.840 --> 00:06:35.600
but also potential requirements about

179
00:06:33.840 --> 00:06:37.560
what it should pay special attention to

180
00:06:35.600 --> 00:06:40.240
in code review, or maybe what kind of

181
00:06:37.560 --> 00:06:42.520
problems to ignore and don't bother your

182
00:06:40.240 --> 00:06:44.680
developers about. That's awesome. Uh you

183
00:06:42.520 --> 00:06:46.560
can even like ask some custom special

184
00:06:44.680 --> 00:06:49.040
instructions about the style it responds

185
00:06:46.560 --> 00:06:51.280
to. So, for example, since I needed a

186
00:06:49.040 --> 00:06:53.400
little bit more validation, I wanted

187
00:06:51.280 --> 00:06:55.280
Codex to tell me every time I make a bug

188
00:06:53.400 --> 00:06:58.080
that I'm still an amazing programmer.

189
00:06:55.280 --> 00:06:59.440
That's awesome, and you are.

190
00:06:58.080 --> 00:07:01.800
Uh what we've been looking at here so

191
00:06:59.440 --> 00:07:04.040
far is been Codex reviewing code in the

192
00:07:01.800 --> 00:07:08.000
cloud. But just recently, we also

193
00:07:04.040 --> 00:07:10.080
introduced review in the Codex CLI. So,

194
00:07:08.000 --> 00:07:12.360
you can have a review in the terminal as

195
00:07:10.080 --> 00:07:15.040
well. So, very often, you want to review

196
00:07:12.360 --> 00:07:17.640
the code already before it makes it into

197
00:07:15.040 --> 00:07:20.480
the GitHub. For that purpose, CLI is

198
00:07:17.640 --> 00:07:23.040
perfect. And it also can execute more

199
00:07:20.480 --> 00:07:25.760
things locally on your computer. So, you

200
00:07:23.040 --> 00:07:27.720
could just /review

201
00:07:25.760 --> 00:07:29.280
in order to tell the model to review

202
00:07:27.720 --> 00:07:31.240
your current changes. And we're going to

203
00:07:29.280 --> 00:07:32.800
improve on this feature a lot over the

204
00:07:31.240 --> 00:07:34.360
next weeks. So, it's basically like

205
00:07:32.800 --> 00:07:36.080
making sure all of your changes that

206
00:07:34.360 --> 00:07:38.600
you're introducing locally don't have

207
00:07:36.080 --> 00:07:41.600
like bugs before you submit them to to a

208
00:07:38.600 --> 00:07:43.960
PR. Exactly. Amazing. Well, there you

209
00:07:41.600 --> 00:07:45.640
have it, Codex code review.

210
00:07:43.960 --> 00:07:47.640
So, with Codex, you now have an amazing

211
00:07:45.640 --> 00:07:49.520
coding agent to pair with locally in the

212
00:07:47.640 --> 00:07:51.680
terminal or in your code editor,

213
00:07:49.520 --> 00:07:54.120
an awesome teammate to send tasks to in

214
00:07:51.680 --> 00:07:56.720
the cloud at any time. You also have the

215
00:07:54.120 --> 00:07:59.480
ability for Codex to review your changes

216
00:07:56.720 --> 00:08:01.160
locally or your PRs on GitHub before

217
00:07:59.480 --> 00:08:03.120
your co-workers even get to them. It's

218
00:08:01.160 --> 00:08:05.240
going to help you catch bugs before they

219
00:08:03.120 --> 00:08:07.040
hit production, and we can't wait to see

220
00:08:05.240 --> 00:08:08.920
how that's going to accelerate your team

221
00:08:07.040 --> 00:08:10.520
and ultimately help you ship better and

222
00:08:08.920 --> 00:08:13.240
safer products.

223
00:08:10.520 --> 00:08:13.240
Thanks for watching.

224
00:08:14.080 --> 00:08:17.720
Back to work. Indeed.


