WEBVTT
NOTE Generated by scripts/generate-bilingual-video-tracks.mjs from codex-Gr41tYOzE20.en.vtt and codex-Gr41tYOzE20.zh-Hans.vtt.

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
我现在在 OpenAI，负责构建

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

4
00:00:14.920 --> 00:00:19.840
With Codex, we're building an AI
借助 Codex，我们正在打造一名人工智能

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
然后，我们将邀请 OpenAI 的一些工程师，

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.
日常如何使用 Codex 的一些例子。   他们中的

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
Codex 团队中工作。 他们当中有些人只是

27
00:01:10.440 --> 00:01:15.080
excited users of Codex at OpenAI.
OpenAI Codex 的忠实用户。

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.
现在，无论您构建什么，Codex 都能正常工作。

31
00:01:20.840 --> 00:01:27.080
Whether it's in your IDE, your terminal,
无论是在你的 IDE、终端、

32
00:01:23.640 --> 00:01:28.840
GitHub, web, or mobile.
GitHub、网页还是移动设备上。

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
8 月份，我们发布了 GPT-5，这是我们迄今为止最好的

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
GPT-5 Codex 来认可它，该模型

52
00:02:10.119 --> 00:02:14.920
optimized for work within Codex,
针对 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
添加对规划、MCP、自动

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
从那时起，我们开始看到 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.
很有用，但 CLI 感觉还很早。

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
决定彻底改造 Codex

76
00:03:11.440 --> 00:03:17.840
CLI. We simplified approvals modes,
CLI。 我们简化了审批模式，

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.
作为原生扩展程序集成到 IDE 中的原因。

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
IDE，并获得这个小小的协作工具。 它

93
00:03:56.920 --> 00:04:01.840
works in VS Code, it works in Cursor,
在 VS Code、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
第一周内，我们的用户数量就达到了 10 万

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
直接在 IDE 中使用 Codex。

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
它与扩展程序中捆绑的 CLI 使用的是同一个开源框架

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
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.
通过手机控制 Codex 是一件非常酷的事情。

113
00:04:42.280 --> 00:04:46.480
Cloud tasks now run 90% faster
云任务运行速度提升了 90%

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.
在 GitHub 等工具中开始使用这样的代理了。

122
00:05:02.880 --> 00:05:07.480
Or now Slack.
或者现在也可以用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,
接手，并将其委托给了 Codex。 在这里，

128
00:05:16.000 --> 00:05:20.600
Codex receives the entire context from
Codex 从线程中接收整个上下文

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
OpenAI 过去在代码审查方面的实验表明，代码审查可能

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
因此，我们特意训练 GPT-5 Codex 使其

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
您可以在与 Codex 结对编程时触发它

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.
通过在 GitHub 中的每个 PR 上运行它来完全自动化它。

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.
我们一直使用 Codex 来构建 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
更令人兴奋的是，我们看到 OpenAI

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
OpenAI 92% 的技术人员几乎

176
00:07:04.480 --> 00:07:10.800
uses Codex daily.
每天都在使用 Codex。

177
00:07:07.120 --> 00:07:13.280
Up from 50% around last July.
比去年7月左右的50%有所上升。

178
00:07:10.800 --> 00:07:16.240
Engineers that use Codex submit 70% more
使用 Codex 的工程师每周提交的 PR 数量多 70%

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
几乎所有 PR 都会经过

181
00:07:18.360 --> 00:07:21.880
Codex.
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.
功能发布后才发现bug。

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
“嘿，我经常使用 Codex

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
请Nacho上台，

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.
ChatGPT iOS应用程序的UI迭代。

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.
OpenAI 核心 iOS 团队的成员。

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
在构建 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.
Thibaud让我开发一个天气应用程序。

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
我还请 ChatGPT 制作一个

217
00:08:44.200 --> 00:08:48.320
mock-up of what I want the UI to look
我想要的 UI 界面的模型

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
所以，我打算请 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
你 Codex 将如何

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
在 ChatGPT 核心团队工作意味着我

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
界面，使我们新的 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
以前也遇到过类似的情况。 最后那 10% 的

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.
90% 的时间。

237
00:09:32.640 --> 00:09:37.000
But Codex can help you with that 10%.
但 Codex 可以帮你解决那 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.
真正的 10 倍工程师，你甚至可以同时运行九个其他终端标签页来运行 Codex。

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
如果你在 6 个月前使用过 ChatGPT 或任何其他代理

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
正如 Tevo 所说，我认为 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
我非常喜欢TDD（测试驱动

259
00:10:23.960 --> 00:10:29.200
development. And I think Codex really
开发）。 我认为 Codex 在

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
Codex 是多模态的，这意味着它还可以通过

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
几周前，我们赋予了 Codex 能够

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.
为它编写的 UI 代码生成快照。

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
我创建了这个非常简单的 Makefile，它可以

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.
SwiftUI 预览。

277
00:11:07.200 --> 00:11:11.960
And that calls a small Python script,
这会调用一个小型 Python 脚本，

278
00:11:09.480 --> 00:11:13.680
which Codex wrote, by the way.
顺便说一句，这个脚本是 Codex 编写的。

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.
它们放入一个文件夹中，以便 Codex 可以找到它们。

281
00:11:17.120 --> 00:11:21.720
Then in the agents.md I just told Codex
然后我在 agents.md 文件中告诉了 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
ChatGPT iOS 和 Mac 应用。

286
00:11:29.600 --> 00:11:35.360
the same on web, for example, with tools
例如，您可以使用 Storybook 或 Playwright 等工具在网络上执行相同的操作

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
就是我的工作流程。 我给 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.
能够验证它编写的 UI 代码。

291
00:11:42.560 --> 00:11:46.240
Let's check in and see how Codex is
我们来看看Codex的

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
不，我想不行，但是，请花3分钟时间

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.
像 ChatGPT 应用程序这样的大型项目。   根据

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
我想把这个话题交给 Freal，他

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
我是 Freal，我的工作是提高开发者的

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
在 OpenAI，我为

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
我就是那个能让 Codex

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
因为它能够使用 Codex 一次性实现

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
我亲眼见过 GPT-5 Codex 模型

331
00:13:13.640 --> 00:13:18.480
over 7 hours productively. That was my
高效运行超过 7 个小时。 这就是我的

332
00:13:15.800 --> 00:13:20.200
prompt. Or process more than 150 million
提示。 或者在马拉松式的会话中处理超过 1.5 亿个

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.
我个人 JSON 解析器项目的一项主要功能。

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,
流式工具调用而构建的 JSON 解析器，

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
这个人提交的这个 PR

348
00:13:49.760 --> 00:13:52.960
lines of code changed, and it was
修改了超过 15,000 行代码，这是他花了

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,
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
首先，我们会告诉 Codex，我们希望他们

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,
这里，我已经用 VS Code 打开了我的项目，

362
00:14:21.520 --> 00:14:25.160
and I'll open up our Codex extension as
我也会打开我们的 Codex 扩展

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
我打算告诉 Codex，我希望它

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
但我希望 Codex 能帮我完成繁重的工作，

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
所以我的做法是请 Codex 编写一份

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
我的 Git 历史记录中找到了完整的规范，然后作弊并直接复制粘贴

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
这是我的 plans.md 文件。 我在

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.
全部阅读了。 一共160行。

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
Codex 现在毕竟是一名高级工程师，

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
使用 plans.md 来设计它，对其进行迭代

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
但在这种情况下，这有助于 Codex

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
plans.md 配方上传到我们的 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
如何使用 plans.md 文件的呢？ 正如我

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.
我使用了我的 agents.md 文件。

448
00:17:14.360 --> 00:17:18.839
I drop a couple lines here in my
我在 agents.md 文件中添加了几行代码

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,
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,
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
关注 Codex。

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
顺便说一句，Codex 帮助我编写了所有这些测试，

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,
介入并说，你知道，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
完成了那项任务，直接跳到 Codex 部分。 顺便说一下，我

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.
README 文件中有更新的文档。

519
00:19:40.440 --> 00:19:44.200
Plans.md specifies that all of these
Plans.md 明确规定所有这些

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.
一个功能提示，到提交一个 PR，只需要几个步骤。

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
4200 行代码，大约

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
Codex 团队的一名工程师。

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
正如 Thibault 所提到的，我们

557
00:21:15.000 --> 00:21:19.320
reviews on GitHub a couple months ago
几个月前在 GitHub 上推出了代码审查功能，

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
所有 PR 中都运行了这些工具，

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.
所有 GitHub PR 启用代码审查。

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
这是我提交到 Codex 仓库的一个 PR 的例子

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
Codex 立即开始审查我的代码，并

579
00:21:57.880 --> 00:22:02.960
found a P1 issue. Great.
发现了一个 P1 问题。 伟大的。

580
00:22:00.760 --> 00:22:04.880
Uh so, then I said, "Thanks, Codex.
呃，然后我说：“谢谢，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
说：“好了，Codex，

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.
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}
我只需要输入{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.
针对基础分支进行审查，就像 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
一个普通的 PR 一样，然后

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
为什么 GPT-5 Codex 在代码审查方面如此出色

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
你必须在提交 PR 之前修复的关键问题

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
一击制胜 20 或 30 种不同的方法

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
嗯，所以，它是 P0。 伟大的。 嗯，

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,
我现在要做的就是告诉 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
CLI 中评论的一个好处是，它实际上会

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
为你的所有 PR 启用评论功能。 所以，请访问

691
00:25:59.960 --> 00:26:03.840
chat.openai.com/codex.
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.
你只需连接你的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.
再次运行 {slash} 审查。

714
00:26:44.560 --> 00:26:50.320
So, I hit {slash} review, enter, enter.
于是，我点击了{slash}评论，然后按回车键，再按回车键。

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
PR 又得到了 Codex 的最终认可，

725
00:27:08.640 --> 00:27:11.480
and you're merged.
你的 PR 就被合并了。

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.
创建 PR 之前，都会在日常工作流程中使用 {slash} review 来进行审核的做法。

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
如何借助 Codex 更快、更有

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
如果你还没有尝试过 Codex，只需运行 npm

741
00:27:44.840 --> 00:27:48.840
install. This will give you Codex right
install 即可。 这样就能

742
00:27:47.000 --> 00:27:51.280
in your terminal. Then you just type
在终端里直接打开 Codex 了。 然后你只需输入

743
00:27:48.840 --> 00:27:52.600
Codex and you could get going and use a
Codex，就可以开始使用

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
参与 Codex 团队工作的 Gabriel Peel 刚刚

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
CLI 的 V045 版本现在已经发布了。 它进行了

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
OAuth MCP，我觉得这非常棒

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,
和 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
OpenAI 的一些 Codex 顶级用户也会到场。 我们还在 Discord 上有

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]
[掌声]
