Codex 的新工作方式:上下文、云环境与智能体委派
原题New Ways of Working with Codex — Dominik Kundel & Charlie Guo, OpenAI
推荐理由Codex 团队现场演示上下文、云环境与委派入口怎样串起来,适合读者对照哪些开发工作可以从编辑器发起并随后接手。
看前速览
OpenAI 的 Dominik Kundel 与 Charlie Guo 演示如何把共享上下文、快速迭代、云环境和多种委派入口接起来,让 Codex 承担单次编码对话之外的工作。
让智能体接触工作资料所在的位置
仓库约定、已连接插件、Appshots 和可编辑的 Space 页面减少重复说明,同时保留人与智能体共同协作的方式。
优化真正发生的迭代过程
Ultrafast 适合配合热更新开发服务器和合适推理强度快速修改 UI;耗时构建与验证则可能占据大部分任务时间。
把远程工作需要的条件落实到环境里
云环境可配置多个仓库、依赖、密钥、OIDC 和 Tailscale。讲者也明确说明,托管 Linux 虚拟机无法完成 iOS 构建。
委派制作步骤,同时保留审阅
Cutroom 把素材和批注交给能使用 DaVinci Resolve 的远程智能体,再将新版剪辑送回人工审阅;Sites 为这套流程提供存储、登录和插件能力。
按任务选择委派方式
Voice 管理多个聊天的活动,Dots 处理主动提醒和持续请求,测试中的 Agents API 则把执行框架放入产品。职责相互依赖的智能体仍需沟通协调。
完整摘要
这场工作坊把 Codex 展示为一个彼此连通的工作环境。插件让工具和资料跨入口复用,Appshots 与电脑操作补充应用上下文,ChatGPT Space 则承载可共同编辑的计划和持续维护。Dominik 说明了 Ultrafast 适合哪些 UI 迭代,以及编译和验证为何会限制整体提速;随后介绍多仓库云环境、私有资源连接,并明确指出当前托管 Linux 环境无法构建 iOS 应用。Charlie 以 Cutroom 为例,展示如何把 DaVinci Resolve 剪辑交给远程智能体,再把新版本送回人工审阅。后续还涉及代码评审、作为跨聊天控制入口的 Voice、处理持续任务的 Dots、测试中的 Agents API,以及模型推理强度和并行智能体的协同。价值在于把具体流程与操作边界串起来,但多项能力和成效仍属于讲者演示,没有独立基准验证。
章节
文字稿
简要描述Brief Description
Dominik Kundel 和 Charlie Guo 演示了 Codex 如何连接工作场景中的上下文、支持快速迭代、在本地和云端环境中运行,并通过 Sites、Voice、Dots 和 Agents API 委派工作。Dominik Kundel and Charlie Guo demonstrate how Codex connects workplace context, supports fast iteration, runs locally and in cloud environments, and delegates work through Sites, Voice, Dots, and the Agents API.
目录Table of Contents
- Codex 的演变历程How Codex has evolved
- 上下文收集、插件与共享知识Context gathering, plugins and shared knowledge
- Appshots、计算机使用与隐私Appshots, computer use and privacy
- 与 ChatGPT Space 协作Collaboration with ChatGPT Space
- 快速迭代、Ultrafast 和注释Fast iteration, Ultrafast and annotations
- Codex Cloud 和远程环境Codex Cloud and remote environments
- 使用 ChatGPT Sites 和 Cutroom 发布Shipping with ChatGPT Sites and Cutroom
- 一场使用电脑进行的维基百科竞速游戏A computer use wiki race
- 使用 Codex 进行代码审查Code review with Codex
- 语音、Dots 与 Agents APIVoice, Dots and the Agents API
- 模型、推理强度与并行智能体Models, reasoning effort and parallel agents
- CLI、快捷方式和结束提示CLI, shortcuts and closing tips
Codex 的演进历程How Codex has evolved
Charlie Guo:好。非常感谢大家今天来参加。我是 Charlie,我们两人都在 OpenAI 的开发者体验团队。今天我们想和大家聊聊使用 Codex 的一些新方式。我想,我们已经有一阵子没办 AIE 了。过去我们聊过一些内容,但今天想带大家了解一下过去四五个月里我们推出的所有新功能。不过在进入正题之前,值得先问一句:Codex 过时了吗?如果你长期混迹网络,可能已经看到过一些对此问题的犀利评论。我认为答案不仅是 Codex 没有过时,而且如今 Codex 的使用方式比以往更多,覆盖的场景比以往更广,功能也比以往更丰富。Charlie Guo: All right. Thanks everybody so much for coming. I am Charlie. And we're both on the developer experience team at OpenAI. And today we wanted to talk to you guys about some new ways of working with Codex. I think it's been a little while since we've had an AIE. We've talked about some things in the past, but wanted to catch you up on all the new things we've shipped kind of over the last four or five months, I think, But before we get there, it is worth asking the question, is Codex dead? I think you if you are terminally online, you may have seen some hot takes around this question. And I think the answer is not only is Codex not dead, I think Codex is now available, in more ways than ever, in more places than ever, with more features than ever.
我会说,它不只是壮大了,而是在不断演进。我认为今年的一大变化是,Codex 某种程度上融入了 ChatGPT 的工作流程。这样一来,又有数千万人能够利用 Codex 这个执行框架,开始使用长时间运行的智能体,并真正感受到 AGI 如何融入他们的日常工作。你也可以在这里看到我们实际整合 Codex 和 ChatGPT 的日期,以及这对使用人数带来的影响。它正在向云端演进。我想,很多人并不知道,Codex 的第一个版本其实是一个云原生智能体,在自己的环境中运行。它会检出你的代码仓库。And I would say that it's, not just that it's growing, but that it is evolving. I think one of the big, changes of this year is that Codex kind of merged with ChatGPT work. And in doing so, we tens of millions of more people have been able to leverage the harness that is Codex, kind of start working with long-running agents, And really kind of feel the AGI in the work that they do every day. You can see here too the date where we actually, combined Codex and ChatGPT and just like what that did to to the number of folks using it. It's evolving into the cloud. I think, not a lot of people know this, but the very first version of Codex was a cloud native, agent that ran in its own environment. It checked out your repo.
它的所有工作都是远程完成的。我认为,我们一直在慢慢回到那种状态:为你打造更好的工具,让你能够远程控制自己机器上的 Codex,同时不断启动更强大的云端环境,继续进行这类工作。现在,Codex 也能在更多服务中使用。今天我们会更深入地介绍其中一些。作为底层框架的 Codex,如今为 ChatGPT 工作、ChatGPT 和 Slack 的 CLI、Dots、我们的全新 agents API,以及许多你熟悉并喜爱的功能提供支持,现在它也能在更多地方使用了。就像我在七月说的,那时我们举办了 IIE 世界博览会,我当时在这里介绍了你可以用 Codex 做些什么。在那场研讨会上,我们大致回顾了从一月到七月期间推出的所有内容。It did all of its work remotely. And we've been, I think, slowly getting back to that place. it comes to making better tools for you to remotely control Codex on your machines. As well as increasingly spin up more powerful cloud environments to keep doing that kind of work. And it's available across, more services. And we're going to talk about, some of these in more depth today, but Codex as a harness is now what powers, ChatGPT work, the CLI at ChatGPT and Slack, Dots, our new agents API, a lot of these things that you kind of know and love, it's available in a lot more places now. Like I said, back in July, we had the IIE World's Fair and I was here talking about things that, you could do with Codex. In that in that workshop, we talked about here's kind of everything we've shipped between January and July.
既然我回来了,我想更新一下这张幻灯片。下面是我们在 7 月到 11 月期间发布的所有内容。为了让它能放得进屏幕,我不得不删掉列表中的一些项目,因为要列的东西实在太多了。我觉得团队的发布速度快得惊人。接下来我们会介绍其中的许多功能。不过从整体上来说,我想先谈谈我们会涉及的一些主题。显然,我们想聊聊上下文,以及如何以新的、更好的方式为你的智能体提供合适的上下文。我们还想谈谈迭代:如何持续与长时间运行的智能体协作,并逐步获得理想结果,因为并不是所有任务都能像在 Twitter 上发布的炫酷单次演示那样一蹴而就。我们还想聊聊如何随时随地使用 Codex,包括在本地、云端和远程环境中使用;如何交付产品,如何从创意走向生产,以及我们为此提供的一些新工具;我们在委派任务、使用子智能体、与 Dots 协作以及跨不同形态使用工具方面看到的新进展;最后还会快速分享一轮技巧。Since I'm back, I wanted to update this slide. Here's everything we've shipped between July and November. And I had to cull this list in order to make it fit on the screen because there were too many things to put in here. I think the team has been shipping at an unbelievable rate. And, we're going to cover like a lot of these features. But I think at a high level, I want to talk to you about kind of some of themes that we're going touch on. Obviously, we want to to talk about context and new and improved ways to bring the right context into your agent. We want to talk about iteration, how to keep working with long-running agents and get to the right outcome because not everything is a cool one-shot demo that you post on Twitter. We want to talk about working with Codex everywhere, both locally and in the cloud and remotely, how to ship, how to get from an idea to production and some of the new tools we have to make that happen, the new things that we're seeing with delegation, working with sub-agents, working with Dots and across these different form factors, and then a quick speed round of tips.
为了帮助大家在日常工作中充分发挥 Codex 的作用。接下来交给 Dom。To help get the most out of Codex for everyday work. So with that, I'll turn it over to Dom.
上下文收集、插件与共享知识Context gathering, plugins and shared knowledge
Dominik Kundel:我们首先想聊的是上下文,因为显然,要想从编码代理那里获得任何成果,最重要的就是为它提供正确的上下文,让它不仅理解自己要做什么,也理解我们想要实现的目标。过去两年里,大家一直在谈上下文工程,也就是如何把所有需要纳入上下文的不同信息完美地结合起来。但我觉得,我们正越来越多地进入一个我称之为“模糊提示”的时代:你真正想要的是,能够像和一位已经了解一切、掌握全部上下文的同事或朋友交谈那样,和你的编码代理交流。Dominik Kundel: So the first thing we wanted to talk about is context, because obviously, the biggest thing for you to be able to get anything out of a coding agent is to have it have the right context in order to, understand not just what is it trying to do, but what is the goal that we're trying to fulfill. And so, the last two years we talked everything everyone talked about context engineering and like trying to perfectly combine all of the different things that have to go into a context. But I think we're increasingly getting into this world of what I call like vague prompting, which is like you really want to be able to like converse with your coding agent the same way that you would do with a colleague or a friend who understands and has all of the context already.
这样你就不必一直把所有事情都口头交代清楚,因为说到底,没人愿意和那种同事共事——每件小事都得明确指示到你干脆自己做还更省事的程度。而 Codex 的一大优点,就是它很擅长收集上下文。我们最初构建 Codex 时,遇到的问题是,OpenAI 的代码都在一个巨大的单体仓库里。这意味着,如果你想在这个单体仓库里顺利开展工作,Codex 就必须非常擅长,我们的模型也必须非常擅长在这些庞大的代码仓库中摸索,找到那些 proverbial 的、藏在大海捞针般的代码库里的针。这种收集上下文的能力也不只适用于代码。一方面,你希望确保所有适用于你仓库的标准,或者说仓库中的标准,都得到遵循。我觉得现在大家都会这么做,不管是通过 agents.md 文件,还是通过 linter 和其他工具。说实话,如果你把一位经验丰富的工程师放进你的代码库里,他应该能够做出贡献,而且不犯错。so you don't have to continuously dictate everything because like reality is nobody wants to work with a colleague like that who you have to like explicitly dictate every little thing at the point to which you can just do it yourself. and the great thing is Codex is great at that context gathering. when we originally built Codex, we had the problem that OpenAI builds on a giant mono repo, which means that like if you want to have, be successful with working in that mono repo, Codex needs to be really good and our models need to be really good at like navigating these giant repositories and finding like the proverbial like needle in the haystack. and this context gathering capability spans beyond just, code. So on the one hand, you want to be able to make sure that all of the standards that, apply to your repository or in your repository I think we all do this at this point, whether it's through agents.md files or linters and other tools, like realistically, if you have a really skilled engineer and you drop them in your codebase, they should be able to contribute without making a mistake.
智能体也是如此。因此,如果只是编码规范之类的内容,你应该始终把它们放在实际的代码仓库中。不过,很多上下文信息都存在于仓库之外,这时插件就派上用场了。插件是由 MCP 服务器、技能以及其他可能与特定用例相关的资源打包而成的。我们推出了一个插件市场,里面有各种各样的插件,而且我们还在不断添加新插件。你也可以提交自己构建的插件。大多数插件使用远程 MCP,这样就不只是连接到你的一台机器。不过,正如 Charlie 所说,如今开源的 Codex harness 为所有这些不同的平台提供支持,因此你可以在所有这些平台上使用同一个插件连接。The same goes for agents. So if it's just things like, coding standards, you should always put them in the actual repository. However, a lot of context lives outside of that repository. And this is where plugins come in. so plugins are bundles between MCP servers, skills, and any additional resources that might be relevant for that particular use case. And so on the one hand, we have a plugin marketplace that we launched that has a wide series of plugins and we keep adding to them. You can submit yourself any plugins that you build, and they use remote MCPs for the majority of them to not just have a connection to, like, your one machine. But because, as Charlie said, the open source Codex harness powers all of these different surfaces at this point, you can use that same plugin connection across all of these surfaces.
所以,如果你连接一次,比如在网页版 ChatGPT 上连接,那么你开发机上的 Slack 插件 Codex 就能访问那些 Slack 消息,就像任何其他设备,或者任何使用 Codex harness 的界面(例如 @ChatGPT Slack 标签)一样,也能访问相同的资源。这样一来,我们就能在所有这些平台之间共享上下文。你也可以构建这些插件,只在公司内部分享,或者把它们接入其他服务,又或者发布到 GitHub 上的开源市场,让其他人也能接入。这样一来,对话就会自然得多。这是我前阵子发给 Codex 的一条消息;你看了之后,或许能对我让它做什么有一点了解,但实际上,其中还有很大的发挥空间。So if you connect once, say on ChatGPT on the web, your like Slack plugin Codex on your dev box has access to those Slack messages the same way that like any other, device that is, or like any other, interface that uses the Codex harness, like the @ChatGPT, Slack tag for example, has access to those same resources. And so that means we can share that context across all of these surfaces. you can also build these plugins and just share them within your company or connect them or or publish an open source marketplace to GitHub so that other people can connect to it. And with that, you get to a much more natural conversation. This was like a message I sent to my Codex a while ago where if you look at it, you might get a bit of context out of what I'm asking it to do, but the reality is there's a lot of openness.
就像我没说我是在 Slack 的哪个地方被 @ 提到的。我也没说我指的是哪个 Katya,但我的 Codex 知道所有这些上下文,因为它连接着我交流的各种渠道。所以它可以访问我的 Google 云端硬盘,这样就能打开那条 Slack 消息里分享的电子表格。显然,它也能访问 Slack,以便调取那段对话;但它还可以访问其他东西,这些东西是我们开发新功能或类似项目所需要的。它还能让你把工作推进得更远。我们有过这么一次经历,是在六月,但至今仍是我最喜欢的例子之一:我们不得不在周日午夜更新文档网站。我不知道你们怎么想,但我可不想一直盯着这件事。Like I didn't say like where in Slack I got tagged. I'm like didn't say which Katya I was referring to, but my Codex has all of that context because it's connected to all of the different ways that I'm talking. So it has access to my Google Google Drive so it can access the spreadsheet that was shared in that Slack message. It has access to Slack, obviously, to be able to pull that conversation, but it also has it also has access to other things that we need to build new features or similar things. The other thing that allows you to do is like take your work way further. So we had a this was in June, but I still it's still one of my favorite examples where we had to update our documentation site on Sunday at midnight. I don't know about you all, but like I don't want to have to like watch that.
于是我让我的 Codex 开始干活,并和它一起准备好了 PR。我这边都准备妥当了。我让它继续争取及时拿到审批,然后留意 Slack 频道,以防这次发布临时有任何变动;如果没有,就提前 20 分钟按时发布。当时部署花了这么久,然后还要确认它已经上线。所以那天午夜过后 4 分钟,它就说:“嘿,已经上线了,一切顺利。”我其实完全不需要介入。更有趣的是,前一天也就是周六,我事后才注意到,有人提到了我,问正在进行哪些改动,以及预览 URL 在哪儿。我的 Codex 替我回复了。然后我的同事说:“看起来不错。”所以这事我也完全不用操心。So I told my Codex to go and I prepped with it the PR. I was good. I asked it to continue to try to get like an approval on time and then keep an eye out on the Slack channel in case there's any last minute changes to this launch and otherwise launch it on time 20 minutes ahead of time. That's how long the deployment took at that time and then make sure it's live. And so 4 minutes after midnight on that day, it was like, hey, it 's live. We're all good. And I didn't really have to get involved there. The funnier thing though was on Saturday, the day before, I didn't notice this until afterwards where my I got tagged about like the changes that had that were being done and where the preview URL was. And my Codex replied for me. And my colleague was like, looks good. So I didn't have to deal with anything there.
它掌握了所有相关背景信息。他们能够跟进并解决这个问题,因为我赋予了它推动这次发布顺利进行的能力。它没有转而去聊别的事情,而是能够推动这件事向前发展。不过,插件有趣的一点是,我们最近推出了插件扩展。插件扩展为你提供了另一种处理上下文的方式。到目前为止,我们谈到的是把插件作为一种为智能体提供上下文的方式。但在整个 ChatGPT 生态系统中,你还有很多不同的方式,可以更好地与这些上下文交互。借助插件扩展,你几乎可以扩展桌面应用的每个部分,以及网页版和移动端的 ChatGPT。比如,你可以添加侧边栏条目,也可以添加侧面板。It just had all the contact. They could keep up with it and solve this because I empowered it to like be able to like shepherd that launch ahead. It didn't go and like have a conversation about something else, but it was able to like push this forward. One of the interesting things though with plugins is that we recently launched plugin extensions and plugin extensions gives you another way of dealing with context. So so far we talked about having plugins as a way to give your agent context. But there's also a lot of different ways that you want to better interface with said context in the overall ChatGPT ecosystem. And so with plugin extensions, you can extend pretty much every part of the desktop app as well as ChatGPT online and on mobile. So you can add sidebar entries. You can add a side panel.
你可以创建全页面视图,也可以修改文件查看器和编辑器之类的内容。如果你们公司内部有一些非常贴合工作流程和工作方式的需求,就可以开发一个插件,让你和你的智能体都能更轻松地使用这些功能。下面我快速举个例子。这是桌面应用。我开发的其中一项功能是——你可以看到这里有很多不同的页面。其中很多实际上都是我们自己开发的插件,并作为 Codex 的一部分发布。我们基于相同的基础组件进行构建。你可以看到这里有 sites 插件、Charlie 接下来要介绍的代码审查,还有 Security Cloud。这里面的很多功能本身就是插件。不过我开发了一个小插件,叫作 Design System。You can create a full-page view, but you can also change things like the file viewer and composer. So if you have things inside of your company that are very specific to your workflow and your ways of working, you can go and build a plugin that makes that more accessible for both you and your agent. And so let me give you a quick example of this. So this is the desktop app. And one of the things that I built, so you can see we have all these different pages here. A lot of them are actually plugins that we built ourselves and are just like shipping as part of Codex. So we build on the same primitives. So you can see the sites plugin here, code review which Charlie is going to talk about, security cloud. A lot of these things are plugins themselves. But I built a little plugin called design system.
所以现在这就成了桌面应用中的一个功能,让我可以探索我们公司的设计系统。我可以查看有哪些组件可用,然后用它们来开发。这特别有帮助,因为我不知道你是不是也这样,但我有时候会专门开一个标签页,查看设计系统,从中获取灵感,想想该怎么提示模型,以及我希望这些东西看起来是什么样子。现在我可以直接在这里嵌入设计系统。然后我可以进去修改,比如说,我可能想在项目里用这种下拉菜单。我让 Codex 来做这一切——整个功能都是 Codex 根据一个提示构建的。我当时说:“这是我们的设计系统,帮我构建一个能实现这些功能的插件。”这里还有一个“添加到 Composer”按钮。And so this is like now directly in the desktop app as a way for me to explore our company's design system. I can look at what kind of components are available and then work with them. And this is incredibly helpful because like I don't know about you, but like I sometimes end up like having like a tap open without design system just to like get some inspiration of like what I'm trying to prompt the model to do, what I want these things to look like. And so I can have this embedded directly in here. And then I can go in and I can change, like maybe I want this sort of like drop down in my project. And I asked Codex, all of this was built with one prompt from Codex. I was like, here's our design system, build me a plugin that does this. And I have an add to composer button here.
现在我把这个上下文注入到这里,你可以看到,我们切换到了“操作”下拉菜单。现在它包含了所有上下文,我就不用再把这些内容逐一输入了。Codex 也不必再去查找这些信息。所有内容都以一种非常原生的方式注入到了这里。 我还可以做另一件事:修改撰写框。比如,我可以在这里添加对设计系统的提及,然后它会显示“点击搜索”。点击进去后,我又能看到所有设计系统组件。而且这可以是任何东西。比如,如果你安装了 Figma 插件,就可以对你拥有的 Figma 文件启用自动补全;同样,你也可以把它扩展到你们内部使用的任何工具上。这就是通过插件扩展上下文的一个例子。我还特别喜欢的另一件事是……And now I injected this context here that has, you can see here we switch to actions drop down. It has all of the context now that I don't have to type out. It Codex doesn't have to go and find it anymore. It's injected in there all in a very like native way. The other thing that I can do with this though is I can modify the composer. so I can add mention the design system here and then it says tap to search. So if I tap into it, now I see all of my design system components again. And this can be anything. So if you if you install the Figma plugin for example, you can get autocomplete on like the Figma files that you have or similarly you can like extend it to whatever internally you're using. so that's an example of extending context through plugins. the other thing that I'm a big fan of
Appshots、计算机使用与隐私Appshots, computer use and privacy
Dominik Kundel:这是 Appshots。你们有多少人以前用过 Appshot?好,只有几个人。这是个被严重低估的功能。如果你用的是 Mac,而且总是截图发给 Codex,那就该改用 Appshots 了。如果你已经安装了桌面应用,现在就可以试试。按两次 Command,也就是左右两个 Command 键都按下;如果你用的是 Windows,就同时按两边的 Alt 键。这样会截取屏幕截图,不过第一次使用时,可能会要求你授予一些权限。它不但会截图,还会捕捉当前可视区域之外的额外上下文。比如你在处理或浏览网站时,截图之外往往还有很多内容;Slack 也是如此。如果你想截取一段对话,屏幕下方通常还有更多内容。Dominik Kundel: is Appshots. How many of you have used an app shot before? Okay, just a few. Highly underrated feature. if you're using Mac and you keep taking screenshots and sending them to your Codex, you should switch to Appshots. So if you have the desktop app already installed, you can try this right now. Press command command so both command keys left and right or if you're on Windows, it's alt on both sides and it will take a screenshot, but it will also take it might ask you the first time for like some permissions that you have to grant. But it's going to take both a screenshot, but it's also going to take additional context that is outside of that viewable port because if you're for example working on a website. Or you're looking at a website, there's a lot of things that are often outside of that screenshot or same on Slack or if you want to like screenshot a conversation, there's like more beyond the fold.
因此,Appshot 会获取该页面上的无障碍树信息,并一并发送。你可以在 Appshot 中进行操作。我快速给你演示一下。我之前做过这个。看这里,这看起来像一张截图,但我们可以点击这里的“查看文本”。你会看到很多额外信息,比如变量、数字,以及无障碍树中的其他内容。这样就能为你的 Codex 提供丰富得多的信息,而你不必再去涵盖这些内容。另一个方面是电脑操控。如果没有插件,但你仍然需要 Codex 能够访问信息,可以使用电脑操控。在 macOS 上,它可以完全在后台运行。这样就不会接管你的电脑,你也不必坐在一旁等着它处理。And so an Appshot is going to take the accessibility tree information that is on that page and send that as well. So you can go in an Appshot. Let me quickly show this to you. I did this earlier. here. so this is it looks like a screenshot, but we can click here on view text. And you can see there's a lot of additional information, Like variables, numbers, anything that is like part of that accessibility tree. And so it's going to give you way richer information to your Codex that you don't have to cover. The other part is computer use. So if there's no plugin you and you still need Codex to be able to access information, you can use computer use for this. On macOS, this can work entirely in the background. So you don't it doesn't take over your your computer and you have to like sit away and like it's going to handle it.
它实际上有自己的光标,因此可以与之交互。这非常适合提取信息,也适合测试应用。例如,在这个例子中,它就像是在与 iOS 模拟器交互。另一方面,你也可以安装 Chrome 扩展程序。如果你不想让它控制整个桌面,但希望它能访问你网站上的内容,就可以使用 Chrome 扩展程序来获取这些上下文。它可以在 Windows、Linux 和 macOS 上在后台运行。因此,如果你想继续在浏览器的多个标签页中工作,又不想让 Codex 接管浏览器,但希望 Codex 能使用同一登录状态下的上下文,这个功能就很有用。还有一项功能,目前遗憾的是仅支持 macOS,那就是电脑历史记录。这类功能只需开启,然后等待一段时间,它就会神奇地自动运行。It actually has its own cursor so it can interact with it. This is great for just pulling information, but also testing applications. For example, in this case it's like interacting with the iOS simulator. The other part of this is you can install the Chrome extension. So if you don't want to have computer use for your entire desktop, but you wanted to have contacts over your websites, you can then use the Chrome extension to pull in that context through that. And that works on Windows, Linux, and macOS all in the background. So this is great when like you want to continue to work on multiple tabs in your browser without Codex taking it over, but Codex having that same logged in context. The other thing and this is unfortunately macOS only at the moment is computer history. This is one of those things that like you have to turn on and just wait and it just magically works.
这不是那种一打开就能立刻看到好处的东西。不过,电脑使用记录基本上会追踪你做了哪些事,并据此了解你如何使用某些工具——比如说,这一点又是很重要的背景信息。举个例子,通过电脑使用记录,我的 Codex 学会了:每当我写博客文章时,我都会先在 Google 文档里起草,这样就能请别人审阅。如果我改变了这个习惯,比如现在开始在 ChatGPT 的空间里起草文章(我们稍后会聊到这一点),它就会因为知道我在使用哪些应用,而了解到这个背景。之后,它可以把这些信息作为 Codex 中的记忆,用来引导自己的行为,并将其作为上下文。它还可以帮你找出“我刚才看的那份文档是什么来着?”之类的东西,甚至能直接帮你把文档调出来。It's not the thing that like you turn on and you instantly see a benefit. But computer history basically keeps track of what things you are doing and learns based on that how you use certain tools, for example, because that is again important context. So for example, like through computer use my Codex learned that whenever I work on a blog post, I draft those in a Google Doc first so that I can get them reviewed. If I changed that habit, I started actually drafting them now in like chat GPT space, which we'll talk about in a second. It learns about that context because it knows what apps I'm interacting with. and then it can use that as memories inside Codex to be able to steer its behavior, use that as context. It can also do things like help you with what was that document that I was looking at earlier and it can actually go and pull that up for you.
启用的方法是进入设置里的“电脑历史记录”部分,然后打开它。之后它就会开始为你创建一份历史记录,让你能看到它一直在做什么。它主要利用 Mac 上的各种事件流,而不是截图,因此能大幅提高 token 使用效率,也更快。你可以看到这份历史记录逐渐建立起来,比如你都在使用哪些应用。不过我知道,你现在可能会想:安全性怎么办?你有很多不同的控制选项,可以管理这项功能的隐私设置。一方面,你可以随时暂停电脑历史记录;你也可以追溯并清除最近的历史记录,比如你突然想到:“糟了,我刚才开始查看这份文档了。”the way you turn it on is you just go into the computer history part in the settings, you turn it on but and then it starts creating you this history where you can see the things that it's been doing. It uses for that a lot of the like event streams of your of your Mac rather than screenshots, which makes us way more token efficient, but also faster. and you can see it sort of like building that history of like what are the different apps that you are using. I know now though you're thinking what about safety. you have a lot of different controls for you to control the privacy aspect of this. So on the one hand, you can pause computer history whenever you want to. you can also go retroactively and clear the most recent history if you're like, oh shoot, I just started like looking at this document.
我得为此关闭电脑历史记录。比如,我可以去清除最近大概一分钟的记录。然后你也可以完全排除特定的网站或应用。比如,隐私模式下的网站记录已经会被排除,但如果有些特定网站你不想让它们出现在电脑历史记录里,也可以把它们排除掉。I'm supposed to turn off computer history for this. Like let me go and clear the last like minute. and then you can exclude specific websites or apps entirely. So like private mode website stuff is already excluded, but if there's like specific websites that you don't want to be have as part of your computer history, you can.
与 ChatGPT Space 协作Collaboration with ChatGPT Space
Dominik Kundel:关于上下文,我最后想谈的是,我觉得我们都会遇到这个问题:上下文并不是某个可以直接扔进代码仓库里的单一东西。通常,上下文分散在多个不同的地方:比如产品经理写在 Google 文档或 Notion 里的 PRD;比如你一直在慢慢迁移到 GitHub 仓库里的架构图;还有销售团队发给你的 Google 表格,里面有一大堆客户反馈。你得设法同时处理所有这些东西。这让 Codex 很难持续把这些信息整合起来,也让你很难与他人和 Codex 一起应对这些挑战。一个很好的例子就是为一个较大的功能制定计划。Dominik Kundel: The last thing I want to talk about for context is I think we all deal with this, but like context is not this one thing that you throw into your repo. Like your context is normally spread across multiple different surfaces, whether it's the PRD that your product manager wrote in a Google Doc or Notion, it's like your architecture diagrams that you've been like slowly moving into your GitHub repository, you know, sales sends you a sends you a Google Sheet with like a bunch of customer feedback, and you're trying to juggle all of these different things. it makes incredibly hard both for Codex to continuously stitch these things together. but it also makes it hard for you to collaborate with others and Codex on these challenges. a good example of this is, an a plan for a larger feature.
你可以让 Codex 帮你写一份计划。我觉得我们很多人都做过的一件事,就是把它提交到代码库里,这样我就能在拉取请求中看到并审查。但要在上面反复修改、征求反馈,实在太麻烦了。所以很多人会开始把计划复制粘贴到 Google 文档之类的地方,这样就能发给团队;然后你再把它复制粘贴回来,或者得把 Google 文档链接贴过来。正因为如此,为了让智能体和人们能够协作,我们推出了 ChatGPT Space。从这里,我只要让 Codex 把计划整理成一个页面,它就会在 ChatGPT Space 中创建一个页面,而且可以用这种富文本格式随意编辑。然后我就可以在这里标记我的 ChatGPT。You might ask Codex to write one for you, and then one of the things I think a lot of us have done is like go and like check it into the repo so that I can see it in a pull request and review it there. This is a giant pain to like iterate on and get feedback on. So a lot of people start like copying and pasting the plan into a Google Doc or something so you can send it to their team, and then you like copy paste it back or you have to like link your Google Doc. but for that reason, for this like collaboration between agents and people, we added we launched ChatGPT Space. And so from here, I can just like ask Codex to go and turn the plan into a page, and it's going to go and create a page in ChatGPT Space that is fully editable in this rich text format. and I can go from here and tag my ChatGPT.
所以,如果我有一些问题,比如说,我们是不是已经有某种数据库结构,应该把它纳入这里,只是之前漏掉了?ChatGPT 可以帮忙处理这些问题。不过我也可以去标记一下查理,比如请他回答一个问题。如果他愿意,他可以在 ChatGPT 里标记,也可以在他的文档里标记。这样我们大家就能一起协作。看到 ChatGPT 的光标弹出来,然后开始编辑内容,真的特别有意思。你甚至还可以添加丰富的功能,比如内置在 HTML 对象中的可视化效果,或者处理我认为这个世界上最让人头疼的事情之一:更新遗留信息。你想想,你写过多少次文档,比如值班手册?你写的时候会不会经常想:“啊,糟了,我忘了更新,我们最近改了这里的命令。”So if I have like questions like, do we have already some database structure that we should fit in here that was like missing? ChatGPT can work through that. But I can also go and tag Charlie, for example, and ask him for a question. If he wants to, he can tag in ChatGPT, he can tag in his dot. and we can all kind of collaborate on this, and it's incredibly fascinating to see, you know, like ChatGPT having like a cursor pop up and start editing things, and you can even add rich functionality like visualizations built in HTML objects or deal with one of the most painful things I think in this world, which is updating legacy information because how many times have you like written a document on like this is like your your runbook, for example, for on call? Like how many times do you write that and like, ah damn it, I forgot like update that we recently changed the command here.
你实际上可以通过提供助手指令,让代理替你完成这件事。这些指令既可以规定代理何时修改空间中的页面,也可以在你开启自动更新后,说明如何按固定周期更新这些页面。你可以把它理解为针对各个页面的 agents.md,非常有用。you can actually ask your agent to do that for you by giving assistant instructions that are both dealing with when an agent is going to modify a page in space or you if you turn on auto update for it to like have instructions on how to go and update these on a regular cadence. so you can think of this as like agents.md for your individual pages. It's incredibly helpful.
快速迭代、超快与注释Fast iteration, Ultrafast and annotations
Dominik Kundel:接下来我想谈谈迭代。到目前为止,我们谈了上下文,以及你需要给智能体什么样的指令,才能让它围绕某个目标开展工作。但很多时候,我们实际上并没有掌握全部上下文。最典型的例子就是,你正在尝试开发一项新功能或一个 Web 应用,但设计师还没有给你设计稿之类的东西。你只是想摸索一下自己想往哪个方向走,哪些字段合适,然后不断迭代。其中非常有帮助的一项功能就是 Ultra Fast。我们在十月份的 Dev Day 上为 GPT-6 Sol、GPT-6 GPT-6.1 Sol 和 GPT-6 Astra 都推出了 Ultra Fast,它的速度是原来的八倍,而成本仅为六倍。不过我想强调一件重要的事。Dominik Kundel: The next thing I want to talk about is iteration. so far we talked about context and sort of what instructions you have to give your agent to be able to work on a goal. but there's a lot of times where we don't actually have all the context. The most classic example of this is you're trying to build a new feature or web app and like you don't have a design from your designer or something. You're trying to kind of just like figure out which direction do I want to go, what fields write and iterate on that. One of the things that is incredibly helpful for that is Ultra Fast. so we launched Ultra Fast for both GPT-6 Sol and GPT-6 GPT-6.1 Sol and GPT-6 Astra in October at Dev Day and it's eight times faster at just six times the cost. But I think I want to I want to say one important thing.
你不总是需要 Ultra Fast,也不应该总是使用 Ultra Fast。我知道人们很容易忍不住想:我想让一切都快起来。毕竟我们生活在一个什么都讲求速度的时代。快点给我吧。问题在于,很多时候即使你使用 Ultra Fast,速度也未必会有实质性的提升。比如,如果你的任务需要大量验证,而且构建时间很长,那么即便用了它也一样。假如你在开发 iOS 应用或电子游戏之类的东西,而你有一半甚至更多时间都花在运行编译器、端到端测试和验证上,你可能根本不会明显感觉到速度变快。不过,我最喜欢用它的一点,是它能让我重新进入全神贯注、状态正佳的模式。You don't always need Ultra Fast nor should you always use Ultra Fast. I know it's incredibly tempting to just be like I want everything fast. Just give like we're living in an economy where like everything should be fast. Give it to me fast. The problem with this is that a lot of times even if you use Ultra Fast, you're not going to materially see changes fast if for example your task requires a lot of validation and build time. If you're building an iOS app or like a video game or something and like half your time or even longer is like spend on like running compile compilers or like running end-to-end tests and validations, it might not actually like you might not actually notice that much the speed up. What I love using it for though is to really be back in the locked in and in the zone.
比如,随着时间推移,从自己写代码转变为让智能体承担大量工作后,我开始怀念其中一些东西:我启动任务后就走开了,少了那种创意过程——和智能体协作、尝试不同的想法,并快速迭代。UltraFast 在这方面就特别出色。 在开始演示之前,我还想给你们展示另一项功能:批注。如果你从未在桌面应用中用过它,应用内浏览器里有个按钮,位于左上角。点击它,就可以对网站的不同部分添加批注,也就是说,你可以提供非常具体、有针对性的反馈。你还可以使用那个小小的设置按钮,在页面上实时调整内容,更直观地感受效果。Like, one of the things that I started to miss over time from like going from like, writing code myself to having agents do a lot of the work is sort of like I kick off the task and I walk away and there isn't this sort of like creative process like where I'm collaborating and like trying out different ideas and quickly iterate on an idea. And so this is where UltraFast is really good. the other thing before I jump into a demo that I want to show you is annotations. So annotations, if you've never used them in the desktop app, you have the in app browser and you can click the button at the top left to go and annotate different parts of the site, which means that you can give very specific targeted feedback. But you can also use that little settings button to go and tweak things in the page live to get a better feeling for something.
那么我来快速演示一下这两种用法。这里我有一个正在为演示制作的小网站,并且正在运行开发服务器。我觉得,如果你在使用 UltraFast,却没有热重载开发服务器,那你在这些使用场景中可能并没有真正从 UltraFast 中受益。所以先运行一个开发服务器;如果你在使用 UltraFast,就把推理级别调低,设为 Light。高于这个级别也能用,但你就体验不到 UltraFast 带来的那种神奇时刻了。有时候,如果我知道某件事相当复杂,或者涉及一些细微之处,我会把它调到 High,但大多数时候我都用 Light。然后我可以在这里输入:移除标题“All Good Music Great Company”和那个按钮。So let me show you both of these quickly in action. so here I have a little site that were building for a demo and I'm running a dev server. I think this is one of the first things that like if you're using UltraFast, if you don't have a hot reloading dev server, you're probably not actually benefiting from using UltraFast for these use cases. So have a have a dev server running and then if you're using UltraFast, just turn it down. Just go reasoning on like light anything above it can work, but you're going to see like not sort of that magic moment that you get from UltraFast. So sometimes I turn it like if I know that something is like fairly complex or there's like nuance, I turn it to high, but most of the time I'm on light. And so from here I can go in and I say like remove the all good music great company header with the button.
写这些东西花的时间比运行其中一些东西还长。第一个任务有时会花一秒钟,因为它会开始读取几个文件,像是在熟悉情况;而且这也正是你会碰到的情况:你的文件系统比其他任何东西都更容易成为瓶颈。把另一个标题设为全屏。所以我做这类事情、反复调整 UI 时,通常会把任务拆得很小,然后滚动浏览。比如这次,咱们就把宽度设为全屏,其他部分保持正常。这样我就可以反复调整这些东西。有时候我真的会往椅背上一靠,用语音听写,然后就说:“好,做这个,做那个。”Takes me longer to write these things than it takes to run for some of these things. the first task sometimes takes a second because it starts reading a couple of the files like orientate itself and again this is sort of where you're running into like the limitations of like your file system faster than anything else. make the other header full screen. And so what I often do when I'm doing these sort of things where I'm like iterating on UIs I often even just like started giving it very small tasks and scroll through it. So like in this case actually let's just do horizontally full and rest normal. so like I can iterate on these things. I sometimes literally just like sit back on my chair and I'm just like using voice dictation. I'm just like okay do this do this.
加一些背景动画,让 LP 看起来更像真的黑胶唱片,并旋转起来。你可以看到这里这些改动,比如恢复效果花了大概五秒钟,这个花了十秒钟。所以你可以非常快速地反复调整这些东西,最终做出你脑海中构想的效果,尤其是在你还不确定自己到底想做成什么样的时候。我觉得如果能让光标划过时留下划痕,应该会很有趣。你知道,这是张 LP。不过我现在用的指令还挺简单的,但你有办法让其中一些操作变得更快。比如这里,让这些内容都更易读。我可以给出非常有针对性的反馈,有时候你会看到我试着很快地连续发出一堆这样的消息。add some background animation, make the LP look more like real vinyl and spin. And you can see here all these changes like this like restoring took like five seconds. This took 10 seconds. And so like you can really quickly iterate on these things and get to a world that you're actually sort of like envisioning with your stuff especially if you're unsure what you actually want to get to. Like I think it would be fun if we can make it scratchable with the cursor. You know it's an LP. but like right now I'm relying on like fairly simple instructions but you there's a way for you to like speed up some of these things even more. Like here for example make all of these more readable. Like I can give like very targeted feedback and like sometimes you see me like trying to queue up a bunch of these messages very quickly.
我很难跟上,因为 Astra 好像很快就把它们踢出去了;或者说,在这个例子里,是 Sol 很快把它们踢出去。我们可以看到,这里现在可以刮擦了。举个非常具体的例子:我最近一次用到这个功能,是在 DevDay 前夕,也就是发布前一晚。我当时在看一些 ChatGPT Space 的文档,想把介绍这些功能的页面做得更吸引人一些。这里的这些小功能全都是 HTML,并不是视频。你可以看到,我基本上就是先把一些东西排上队,然后一边摸索一边找到自己想要的方案,因为我当时也不太确定自己想要什么。所以每做一轮,我就会更清楚自己到底想要实现什么。and it's hard for me to keep up because Astra is like kicking them out or in this case Sol is kicking them out so quickly. We can see here it's scratchable now. to give you a very concrete example, where I recently used this was leading up to DevDay, the night before the launch, I was looking at some of our docs for ChatGPT space. And I wanted to make this page that talks about the features a bit more engaging. and so all of these little features here, they're all HTML, they're not videos. and you can see here I basically just started queuing up things and I was like touching my way to the solution that I wanted cuz I wasn't quite sure what I wanted. and so like every time I would do a turn, I'll get more clarity on like what I'm actually trying to get towards.
关于注释,最后一点是,如果我们回到这里。现在你可以看到,每次我把鼠标悬停在某个东西上时,它都会基于 DOM 来处理。DOM 为所有 HTML 网站提供支持,并赋予它们结构。但有些时候,这并不是我们真正想要的效果。这时我们就可以添加一个注释 API。你只要让 Codex 来做就行,它会知道我在说什么。这个 API 允许你选择这些页面上哪些内容可以被选中。比如说,如果你正在开发一个设计系统,可能希望每个独立组件都可以被选中,但不希望故事书的框架本身也能被选中;或者你可能想要设置不同的规则。举个例子,昨天我们为 Chromatic Game Boy 发布活动制作 Mod Retro 插件时,就使用了注释 API,这样你就可以标记模拟游戏内部的内容,但不能标记模拟器本身。the last thing on annotations is if we go back here. Right now you can see every time I'm like hovering something, it tries to do this based on the DOM, which is the thing that is powering every HTML site and gives it the structure. but there's moments where that's not actually what we want. and this is where we add in an annotations API. You can just ask Codex to do it. It will know what what I'm talking about, but it allows you to select what is actually selectable on these pages. So for example, if you're working on a design system, maybe you want all of the individual components to be selectable, but you don't want it to have like the frame of your story book a story book selectable or you want to have different settings. For example, for the chromatic Game Boy launch that we had yesterday, we for the mod retro plugin, we ended up using the annotations API so that you can like mark up things inside the emulated game, but you can't like mark out the like actual emulator.
Codex Cloud 和远程环境Codex Cloud and remote environments
Dominik Kundel:好。我们聊过上下文,也聊过迭代,但真正神奇的另一点之一,对吧,就是长时间运行的任务。去年我们还在为能运行七个小时的任务而兴奋。看起来动画好像没了。我们从那种能运行七个小时的任务,发展到现在可以让任务连续运行数小时甚至数天。因此,我们很多人——我知道你也这么做了——开始买 Mac mini,或者把那台旧笔记本翻出来,塞到桌子底下,当作额外的开发机,这样你就可以把自己的笔记本合上;或者开始在网上租各种虚拟专用服务器,只为了搭建自己的算力集群。Dominik Kundel: All right. So we talked about context, we talked about iteration, but really one of the other magical parts, right, is long-running tasks. We've went from last year being excited about, seven hours of tasks running. looks like I guess there's no more animation. went from like seven hours of tasks running to like now being able to have tasks that run for hours or days. and as a result, a lot of us, I know you've done it too, started buying like Mac Minis or like dusting off that old laptop and shoving it under your desk as like an additional dev box just so that you can like keep your laptop closed or you start renting random virtual private servers online just so you build your fleet of compute.
如果你喜欢氛围编程,这样做可能挺有趣;但如果你像经营企业那样定期这么做,就不太可持续了。因为你得处理设备的设置和更新,还得不断扩容,以应对计算资源和可运行任务数达到上限、磁盘空间不足等问题。我们真正希望的是让你随处都能使用 Codex。Codex 应该能为你想要工作的任何地方提供支持。因此,我们投入了大量精力,让你合上笔记本电脑后,仍然可以放心地让任务继续运行。其中一个重要部分,就是全面改造 Codex Cloud。This might be fun if you're like doing vibe coding, but like it's not really like sustainable if you're doing this on a regular basis for like a business, for example, because you have to deal with like setting up all these devices, deal with the updates, but you also have to like continuously scale them as you're running into like issues around, saturating the amount of compute and tasks that you can run there or running into disk space issues, etc. and we really want you to be able to use Codex everywhere. Like Codex should just power wherever you want to work. And so that's why we put a lot of effort into like allowing you to go and close that laptop and still be happy with the tasks that are running. And one big part of that is revamping Codex Cloud.
正如 Charlie 所说,我们去年实际上推出了 Codex Cloud,它是去年大约五月推出的首批重要产品之一。到现在已经有一段时间了。不过,模型和运行框架花了些时间才逐渐成熟到一个阶段,让我们能够打造出真正引人入胜的体验。因此,在这次 Dev Days 上,我们对 Codex Cloud 进行了全面改版,推出了全新的 V2。接下来我会给大家演示几项功能,介绍如何使用它。到目前为止,我们一直是在我的电脑上运行这些任务。你们当中有些人可能打开过设置里的“连接”,并远程连接了自己的其他设备。如果你还没试过,可以把手机连接到这台 Mac 上,比如就在这里连接,它会通过你的 ChatGPT 订阅完成连接。So as Charlie said, we actually launched Codex Cloud last year as one of the first big offers around like May last year. So it's been a while. but it took a while for models and harnesses to kind of like equalize into something where we can build a really engaging experience. And so at Dev Days here, went and revamped Codex Cloud to be a new V2. I'm going to show you a couple of the things on how to how you can use it. So right now, so far we've been running all these tasks on my computer. some of you might have gone into settings and gone into connections and you connected remotely your other devices. So if you've never done this, you can connect your phone, for example, to this Mac by like just connecting here and it connects through your ChatGPT subscription.
你可以控制其他安装了这个软件的设备,因此可以把它们连接到同一个网络中;如果你使用 API 密钥进行身份验证,或者这些设备本来就在同一个网络中,也可以通过 SSH 连接到设备。不过,有了 Codex Cloud,我们现在可以直接在 Composer 中创建新的环境。你可以看到,我已经有几个环境了,稍后我们会看看环境究竟是什么。如果你在公司工作,可以在公司内部共享这些环境;也可以自己创建环境。首先,你需要选择希望获得访问权限的 GitHub 仓库。我们做的第一项改进就是现在可以同时选择多个仓库。You can control other devices that have this installed and so you can like network them all together or if you either are using API keys for your authentication or you anyways have all of the devices on the same network, you could also use SSH to connect to things. but with Codex Cloud, we can now go and spin up new environments that inside directly from the composer. So here you can see I already have a couple of environments and we'll take a look in a second of what an environment actually is. And these can be shared within a company if you're if you're working in a company or you can just create your own and you start off by picking the GitHub repositories that you want to have access to. This is one of the first changes that we did is you can now select multiple repositories at the same time.
接下来,Codex 会为你设置好这个环境。你可以把环境理解为一台虚拟机,它会克隆你的代码仓库,或者在这个例子中,克隆多个代码仓库。不过,Codex 还会进一步了解要成功处理这些代码仓库需要哪些东西。比如,我可能需要哪些 API 密钥?需要安装哪些依赖项?实际需要运行哪些命令来启动 Web 开发服务器、验证测试是否正常运行,等等。以前这些都得手动完成,现在 Codex 会帮你处理。你仍然可以修改所有这些设置,但默认情况下,Codex 会启动一项任务,并开始摸清环境中的各种细节,把不同的事项都列出来。And from here, Codex goes and sets up this environment for you. So an environment on the one hand, you can think about it, it's a it's a VM that clones your repository or in this case multiple repositories, but then Codex also goes in and figures out what are the things that are necessary to actually successfully work on this repository. Like what are the API keys that I might need for this? What are the dependencies that need to be installed? What what are the commands that I actually need to run to spin up a web a dev server or verify the tests running, etc. And so previously you had to do all of this manually and now Codex is handling this for you. You can still modify all these things, but by default Codex is just going to kick off a task, and it's going to start figuring out all of these nuances for your environment, and call out different things.
趁它运行的时候,我给你看个例子。在这个例子中,我启动了同样的操作,你看到我选了两个代码仓库:一个叫 Blossom Music,另一个叫 Blossom Music mobile。如果你做过移动端开发,或者尝试过构建应用,就会知道,实际上你无法在 Linux 机器上构建 iOS 应用。目前,我们托管的这些 Linux 虚拟机都在努力支持你使用自己的环境,这样你就可以用自己的硬件,同时享受 Codex Cloud 的优势;也就是说,你可以使用自己的机器。如果你有一些云端 Mac,就可以用它们。不过在这个例子中,你可以看到,它确实注意到你克隆的这些代码仓库中包含一个 iOS 应用,并指出它无法执行诸如启动应用之类的操作,但仍会保留这个应用,以便之后参考。I'm going to while this is running, I'm just going to show you an example here. so in this case, I kicked off the same thing, and you saw me pick two repositories. One was called Blossom Music, one was called Blossom Music mobile. And if you've done any mobile development or if you've tried to build an app, that you cannot actually build an iOS app on a Linux machine. And right now, all of these Linux VMs that we host, we're working on letting you be able to bring your own environments so that like you can have your own hardware that still benefits from codex cloud, but like you can use your own your own machines. So if you have some cloud max, you could use that. But in this case, you can see that it actually noticed that there was an iOS app as part of these repositories that you're cloning, and it called out that like it can't actually do anything like spin up the app, but it's still going to keep it around so that it can reference it.
这正是我希望它能够做到的,这样我们就能大致了解:哦,我们在移动应用上实现了一个新功能,那也去把它实现到网页播放器上。然后你可以不断提供反馈,或者反复迭代。如果我们回到另一个项目,它现在开始处理安装脚本了。这就是我之前说的,要弄清楚运行这项任务需要哪些依赖项,以及我们该如何实际启动这些东西。所有这些都很重要,因为我们改变这种方式的做法是:在设置这些环境的过程中,为它们创建快照并持续更新,让它们运行得非常快。这样一来,我们就能迅速让它们重新跑起来。And which that's actually what I wanted it to be able to do so that we can still get an idea of like, oh, there was this new feature that we implemented on the mobile app, go and implement it on the web player as well. and then you can continuously give feedback or iterate on it. If we go back to the other one, it's beginning to work here on a install script. So this is what I was talking about on like if figuring out what are the dependencies that are necessary to go and run this task. how do we actually spin up things? And all these things are important because the way we change this is that these environments as they're being set up, you snapshotting and continuous updating to make them really fast. so on the one hand, that means that we can quickly like speed them back up.
如果你发起一个新任务,而你已经有几个小时没碰它了,它仍然应该感觉非常即时。另一方面,这意味着我们可以按照固定的节奏在后台运行,比如确保所有依赖项都是最新的,确保从比如说 main 分支拉取了最新的更改。等你有了自己的环境,我们再回到这里。你有了环境之后,就可以修改它。按钮在哪儿?我们换一个吧。看,这里。你可以编辑这个环境,还可以设置一些选项,比如是否允许访问网络、有没有什么密钥想要保存。你可以和团队共享这些密钥,也可以使用个人密钥。比如说,它们可以关联到你的环境;或者你也可以说:“嘿,这种情况下,每个人都得输入自己的密钥。”If you're sending a new task and it's been like a couple of hours you haven't touched it, it should still feel very instant. on the other hand, it means that we can in the background on a regular cadence, like make sure all the dependencies are up to date, make sure that like the latest changes are being pulled from let's say main. and once you have your environment, we go back here. once you have your environment, you can go and modify this. Where's the button? Let's go to a different one. here we go. You can edit that environment. and you can control things like do you want to have web access? Are there any like secrets that you want to store? You can share these with your team or you can have personal ones. So like they can be attached to your environment or you can say, hey, this is actually something where people have to put in their own key.
不过,我还想在这里展示另一件事:有时,你需要访问某些无法通过公共互联网访问的资源,但又需要让云端环境能够访问它们。云端环境通常就是在这种情况下出问题的。针对这种情况,我们添加了对 OIDC(如果你的云服务提供商支持的话)和 Tailscale 的支持。你可以设置 Tailscale,获取一个 API 密钥并完成配置,之后就可以通过 Tailscale 连接,向 Codex 云端环境开放 HTTP 服务,让它仍然能够访问你的代码等资源。这样,你就不必让这些资源能够通过公共互联网访问,只需让它们在你的 Tailscale 网络内可访问即可。我们回到幻灯片。最后我想指出一件事,因为这是一个常见的误解:我刚才展示了如何设置 Codex 远程访问,也就是在你自己的某台设备上设置,这样你就可以从其他设备(例如手机)访问它。通常,你需要安装桌面应用。the other thing that I wanted to show here though is sometimes you have the situation where you have resources that are not accessible to the public internet, but you need cloud you need your environment to have access to them. This is normally where cloud environments break for people. in this case, we added support for both OIDC, if your cloud provider supports that, or Tailscale. So you can set up Tailscale, you get an API key, you configure it, and from there you can expose like you can expose HTTP services that your code your Codex cloud environment can still access through that Tailscale connection. So you don't have to make them publicly accessible, just accessible within your Tailscale network. let's jump back to the slides. The last thing I want to call out because this is a common misconception, so I showed you how you can set up Codex remote as well, meaning on one of your own devices, if you want to be able to go and access it access that device, for example, on your on your phone, you normally have to install the desktop app.
实际上,你也可以使用 Codex CLI 来做同样的事。比如,如果你在开发机上安装了 Codex CLI,而这台机器运行在某个云主机上,就可以运行 Codex remote control start。它会启动应用服务器,也就是为所有这些功能提供支持的 Codex harness。这样你就可以连接到它,在手机上运行,而不必安装桌面应用。接下来,我把时间交给 Charlie。You can actually use the Codex CLI to do the same thing. So if you have the Codex CLI installed, for example, on a dev box, then you're running on some cloud host, you can go and run Codex remote control start, and it spins up the app server, which is the Codex harness that is powering all these things so that you can then connect to it and run it on your phone without having to install like the desktop app. And with that, I'm going to hand it off to Charlie.
使用 ChatGPT Sites 和 Cutroom 发布Shipping with ChatGPT Sites and Cutroom
Charlie Guo:很棒。用 Codex 能做的事情多得惊人。无论是在本地还是在云端,我都想聊聊我们新加入的一些功能,它们能帮你把东西发布到外界,真正交付出去。首先,我想聊聊网站。有人用过或制作过 ChatGPT 网站吗?很棒。我觉得这其实是 ChatGPT 和 Codex 最强大的功能之一,只不过大家可能还不太了解。它非常强大,既能让你快速迭代内容,也能让你把内容分享给全世界。举个例子,这是我几乎每天都会用的一个内部网站的截图。我和 Dom 都在开发者体验团队,我们工作的一部分是支持产品发布,可能包括编写文档、发表演讲,也包括制作发布视频。Charlie Guo: Cool. so an incredible amount of stuff you can do with Codex. Whether locally or in the cloud, I want to talk about some new things that we've added to help you just get things out into the world and actually, ship them. to start with, I want to talk about sites. who is like used or made a ChatGPT site? Cool. so I think this is one of actually the most powerful features of ChatGPT and Codex that folks don't know that much about necessarily. incredibly powerful both to like quickly iterate on content and to like share it with the world. as one example, this is a screenshot from an internal site that I use pretty much every day. Dom and I are on the developer experience team, and part of that is making, supporting launches, maybe that's writing documentation, giving talks, but also making launch videos.
拍摄完成后,我们会使用一个内部搭建的网站,叫作 Cut Room。基本上,我们会把拍摄素材上传到上面——或者由摄像师上传——然后通过这个界面浏览素材、留下评论、上传屏幕录制或 B-roll。等我们提交这些内容,并告诉网站可以开始审核后,它就会把所有内容交给一个远程运行的 Codex agent。这个 agent 可以使用 DaVinci Resolve 和一系列视频剪辑技能,然后自主创建一个新剪辑版本,再把它上传回来,并通知我们:“嘿,新版本已经可以审核了。”我觉得我们已经基本实现了自动化处理许多发布材料中的视频剪辑部分。And after we do the filming, we use this site that we've built internally called Cut Room. and what we do is essentially upload that footage or, the videographer uploads that footage, and then we have this UI where we can like look through the footage, leave comments, upload, screen recordings or B-roll. and then when we submit these and we, we tell, the website that this is ready for review, it hands all of this off to, like, a Codex agent running remotely that; that agent has access to DaVinci Resolve, to a bunch of, like, video editing skills, and it just like, autonomously go, autonomously goes and creates a new cut and then uploads it back and notifies us that, "Hey, we're ready to review the next version of this," And we are like most of the way through I think like just automating out the video editing portion of a lot of our launch materials.
我觉得我们做过好几个由 GPT-6 Astra 完全剪辑的视频,不是主视频,而是工作流里那些次要视频。人们有时会低估 Sites,我认为部分原因是他们觉得它基本上只是用来发布或托管静态内容的。但实际上,底层还运行着更多东西。通过 D1,你可以获得完整的数据库服务;通过 R2,你可以获得完整的文件和对象存储服务。还有「使用 ChatGPT 登录」功能,我稍后会稍微详细介绍,它提供了完整的身份验证和用户管理层。而且,由于它运行时配备了许多 Codex harness 工具,你还可以使用插件和数据。I believe we had a number of like GPT-6 Astra, not the main video, but like a number of the sort of secondary videos that were just fully edited by Astra in this workflow. think part of the reason that people underestimate sites a little bit is because they assume that it's, basically a way to just public static content or host static content. and there's actually a lot more kind of under the hood that's that's happening. you get like a full database service through D1. You get a full file and object storage service through R2. you get through sign in with ChatGPT, which I'll go into a little bit, this like full authentication and user management layer. and then, because it's running with a lot of Codex harness tools, you get access to plugins and data.
显然,你可以获取分析数据,也可以存储机密信息。所以,它能让你构建真正功能完善的 Web 应用,而不只是托管静态内容。我觉得它最棒、也最让我喜欢的一点,就是“使用 ChatGPT 登录”功能。如果你是开发者,自己做过一些微型网站,那你可能已经试过上百次自己实现身份验证,或者用 Ruby on Rails、Django 插件来安装用户身份验证功能。但很快你就会碰上一堆模糊不清的问题:应该提供哪些字段?该如何考虑权限、团队以及所有这些东西?有了 Sites,你就能开箱即用地支持“使用 ChatGPT 登录”,这样你可以立即限制某些功能仅供特定用户使用,也可以直接把整个应用隐藏起来。obviously, you can get analytics back out, you can store secrets. So it's a way to build like actually fully fleshed out web applications, not just hosting static content. one of the I think the best parts that I really appreciate about this is the sign in with ChatGPT feature. if you're a developer that's made your own like microsites, you have probably, like a hundred times tried to just roll your own auth or use like a Ruby on Rails or a Django plugin to just try to like, install user auth. But then very quickly you get into some like murkiness around, what fields should be available, how do I think about permissions, teams, all this stuff. with sites you just get sign in with ChatGPT out of the box, and this just gives you a way to like immediately, gate features to certain users or just like hide the app entirely.
我们通常会为不同受众构建不同版本的网站,并可以灵活控制谁能访问哪些信息和功能。最近,我们还新增了使用插件的能力,让 ChatGPT 网站也能拥有插件带来的所有优势。你可以构建围绕连接用户 Google Calendar 的应用。我们正在迭代 Cut Room,尝试通过自动接入 Google Calendar,并让大家在共享日历上预约时段,实现拍摄空间的预订。你也可以使用 Linear 跟踪有哪些任务尚未完成,创建任务并分配给团队。当网站和插件结合起来时,你可以开始重新组合出许多不同的玩法。often we'll build, different versions of sites for different audiences, and we can kind of direct who has access to what information and what features. and more recently, we added the ability to use plugins to bring all of that goodness that comes with plugins into ChatGPT sites. So you know, you can build applications that revolve around connecting people's Google Calendar. we're actually working on an iteration of Cut Room where we can like book our filming space just by automatically like hooking up Google Calendar and letting people book times on a shared calendar. you can use Linear to track, what tasks are open or like create tasks right and assign them to the team. there's a lot that you can start to remix when you have sites and plugins together.
哦,说到改编,你可以通过改编功能让其他人创建你的网站副本,并根据他们的使用场景进行调整。我觉得把这些功能结合起来看,你会发现网站有很多不同的用法,其中一些并不那么显而易见。对我来说,一个很重要的使用场景是处理内部数据,并想办法用更有趣的方式呈现它。我觉得公司各个团队都探索出了很多类似的用法。比如,传播团队做过一份发布回顾,整个主题都像是八位电子游戏。他们用这种方式呈现内容,让它更吸引人。工程团队也做过架构合并回顾,讲述方式就像学乐出版社的系列图书一样,分成一卷一卷的。Oh, and actually speaking of remixing, you can use remixing to like let other people create copies of your site and like tweak it as as necessary for their use case. And I think when you put all these things together, you know, there's a lot of different ways that you can use sites, some that aren't immediately obvious. I think a big use case for me has been working with internal data and finding more interesting ways to present it. I think across the company we have seen a lot of different use cases like this. For example, I think the Comms team did a launch recap where the entire theme was like eight-bit video game. And like they presented it in this way to make it more engaging. The engineering teams have done like recaps of our architecture merging like told through the lens of like scholastic, book volumes.
社交媒体团队做过一些这样的事情:他们回顾已经发布的社交内容,但把它做成了一个类似 iPhone 的浏览器。你可以一路滑动浏览,同时查看这些内容的数据分析。就我个人而言,我觉得这样看起来、浏览起来有意思多了,比起那种放在那里、一成不变的 Google 文档或 PowerPoint,要有趣得多。嗯,the social team has done things where they've reviewed like social content that went out, but they built it as like this iPhone viewer. And like you were able to scroll through and actually see analytics of the content as you were going. and me for me personally, this is like way more interesting to consume and look at than like a Google Doc or a PowerPoint that just kind of like you know, sits once and is like static. Um,
一场计算机操作维基竞速赛A computer use wiki race
Charlie Guo:顺着刚才那个话题,说到网站上那些有意思、可以随手尝试的东西,我想测试一下 Astra 的 computer use 能力。如果你听说过维基百科竞速这个概念,那是我高中时的一个想法:选两篇截然不同的维基百科页面,然后两个人比赛,看谁能更快地从一篇跳转到另一篇。我于是搭建了一个 ChatGPT 网站,在后台配置了 API 密钥,并使用 Agents API 和 computer use,想看看能不能让 Astra 跟我比赛。这次的起点是弗里达·卡罗的维基百科页面,终点则是魔方的维基百科页面。我在右边橙色框里,你可以看到我正拼命寻找通往魔方页面的路。Charlie Guo: kind of on that last note, like things that interesting things you can do with sites, just kind of on a whim, I wanted to test out Astra's computer use capabilities. So, if you've heard of this concept of wiki racing, this is an idea for me this was back in high school you would pick two dramatically different Wikipedia pages, and two people would try to race to see, like, how quickly they could navigate from one to the other. and so I built a ChatGPT site, with an API key in the background that was using, the Agents API and computer use, to try to, like, get Astra to race me in this case, from the Frida Kahlo Wikipedia page all the way to the Rubik's Cube Wikipedia page. and so I'm on the right here in the orange box and you can see I am like desperately trying to find a way to get to Rubik's Cube.
我不知道。遗憾的是,比赛进行到这一步时我才意识到,这东西可能是匈牙利人做的。而 Astra 已经注意到了这一点,我却不知道。所以我当时试着先导航到“圣诞节”,然后进入类似“玩具”的子类别,看看能不能找到那里。再说一次,这么做未必能创造股东价值,但对我来说,这只是一个很酷的实验,可以测试模型的能力,也可以做出点我想和团队其他成员分享的东西。我不知道我们还有多少时间,不过先剧透一下:这场 Astra 会赢。我觉得在实际测试中,我能不能赢过这个模型的概率大概是五五开,这有点让人担忧。I don't know. Unfortunately, I realized at this point in the race that like it was probably made by somebody from Hungary. And because Astra has picked up on that already, I didn't know that. So I was trying to navigate to Christmas and then go into like a toys subcategory and figure out if I could get there. And again, like this, not necessarily like driving shareholder value with this, but like this was just a really cool experiment for me to test the capabilities of the model and to just like make something that I wanted to share with with the rest of the team. I don't know how much time we have, but like spoiler alert, Astra is going to beat me in this one. And I think it like in play testing, it is like pretty close to 50/50 on whether I'm able to beat the model, which is a little bit concerning.
使用 Codex 进行代码审查Code review with Codex
Charlie Guo:不错。交付工作中的另一部分,显然不只是把自己的代码部署到生产环境,还包括审查别人可能通过氛围编程写好、然后丢给你审查的代码。为了帮你完成这项工作,我们在 Codex 里新增了一个代码审查标签页,我来找给你看。它就在左侧这里,或者你也可以在这里找到。连接 GitHub 后,它会自动显示你创建的或分配给你的拉取请求。这样你就能直接在应用里快速审查代码,不必离开应用。比如这个案例,你可以看到,提交代码的人——或者说,这个账号——截了几张图,以便确认一切都正常运行。Charlie Guo: Cool. Another part of shipping, right, is obviously not just shipping your own code to production, but like reviewing code that other people have perhaps vibe coded and then thrown on your plate for a review. And to help with this, we have a new code review tab in Codex that let me see if I can find it. It's over here on the left, right, or you can find it kind of in here. And it pulls up, automatically will pull up when you connect GitHub pull requests that you've been either created or you've been assigned to. And this is a way to just like review the code quickly without having to leave the application. You know, you can see in this case like the person who authored this or I guess this account authored this took screenshots so that they could actually verify that, everything worked.
拍了移动端截图。如果你想深入查看实际代码,可以在这里查看所有差异。当然,也有链接可以跳转到 GitHub 或对应的网址。不过,我最喜欢的功能之一就是只需点击一个按钮,就能用 Codex 进行审查。这会创建一个单独的对话线程。我们可以回到主视图继续操作,但它会自动开始审查这个拉取请求。它还预先准备了一段提示词,我们可以打开并自定义。如果我们想重点关注某些方面,也可以给它添加自定义指令。接下来,它会启动一个子代理来进行审查,然后把结果发回这个聊天中。我们过一会儿再回来看看。Took mobile screenshots. If you want to dive into, the actual code, you can see all the diffs here. You know, obviously there's links back to GitHub or to the URL. But one of my favorite features is just this like single button click, review with Codex. And this is going to create a separate thread. We can get back to it, in our main view, but it's just going to automatically kick off a review of the pull request. It has like a pre-made prompt which we can go in and customize. We can give it, custom instructions, if we wanted to focus on certain things. but that's going to go ahead and, just start using like a sub-agent to review and then give us the results back in this chat. we will check back in on that in a little bit.
语音、Dots 和 Agents APIVoice, Dots and the Agents API
Charlie Guo:好。我觉得这里最后一个我想重点谈的大主题是委派。年初的时候,我们还只是在尝试子代理。但现在,在 Codex 内部以及通过 Codex 进行委派的方式越来越多了。我想先从 Codex Voice 说起。这是我们几个月前推出的一项功能。我觉得大家对它有不少误解:我看到的大多数人在编程时使用语音,基本上都把它当作日常工作的一种不同媒介。比如,你可能会新开一个对话,然后想:“我不打字了,直接口述我想要什么,再这样来回交流。”如果你想这么做,Codex 的语音模式当然可以做到。Charlie Guo: Cool. And I think the last big section here that I want to cover is about delegation. Because when we started the year, were just kind of poking at sub-agents. but increasingly there are like more ways to think about delegating within Codex, across Codex. I think starting with Codex Voice. and this is a feature that we shipped a few months ago. and I think there's a lot of misconceptions around it where most people I see that use voice with coding essentially treat it as like just a different medium on top of their normal work. So like you might start a new thread and just sort of say, instead of typing, I'm just going to like dictate out, what I want and just going to go back and forth that way. And voice mode in Codex can do that if that's what you want to do.
但它实际上远不止于此。我喜欢把它当作一个控制平面,来统筹我在 Codex 应用中进行的所有事情。作为用户,你在 Codex 应用的语音模式下几乎能做的任何事,它都能代你完成。所以我不会把它看成是“我现在用语音完成的这一项工作”。我会想:该如何管理我的会话?该如何查看进展?该如何通过“电脑操作”功能从电脑上的其他应用中提取数据?又该如何只用语音就在应用中创建新的会话?希望接下来能看到一个可行的演示。我来快速呼叫一下 Codex。嗨,你能听见我吗?but it's actually more powerful than that. And I like to use it as kind of this control plane across everything that is happening for me in the Codex app. nearly anything that you can do as a human user in the Codex app voice mode can just do on your behalf. And so I don't think about it as saying like here's the one lane of work that I'm doing right now with voice. I think about it as saying how do I manage my threads? You know, how do I check in on stuff? How do I pull data from other apps on my computer with computer use? How do I create new threads in the application just using my voice. and hopefully we will see a demo that works here. I'm going to give Codex a quick call. Hey, can you hear me?
Codex Voice:是的,声音清晰响亮。Codex Voice: Yes, loud and clear.
Charlie Guo:我们听不到你的声音。测试一下?Charlie Guo: We can't hear you. Testing?
哦,我觉得问题出在场地那边。你能把笔记本电脑的声音打开吗?已经打开了。好,我们马上切到笔记本电脑音频。耳机接口?那个东西?把你的 Mac 接回来,然后……对,我们用内置扬声器。你能说点什么吗?可以,嗨。我在这儿。现在能听见我了吗?不错。嗯。我想赶紧做点工作。能帮我个忙吗?你能看看我们发起的投票审核请求吗?然后我想知道 Matt 在 Slack 上的最新消息。哦,还有,如果可以的话,我们要给 AIE 做个演示。你能在一个新讨论串里把那些幻灯片打开,然后我们一起做个设计评审吗?等你弄完之后,把那个幻灯片评审讨论串置顶,我们会看看你的笔记。Codex Voice:好。我会把这些整理好,尽量简洁。Oh, I think it's on the venue. Are you able to turn the sound on for the laptop? It is on. All right, we're going to laptop audio real quick. Headphone port? That thing? your Mac back and Yeah, we'll do built-in. Can you say something? Yeah, hi. I'm here. Can you hear me now? Cool. Yeah. I just want to do some some work real quick. Can you do me a favor? Can you check on the poll review request that we kicked off? and then would love to know the latest from Matt in Slack. oh and then if it's possible we're giving a presentation to AIE. Can you in a new thread pull up those slides and let's do a design critique? and then when you're done go ahead and pin that slide review thread and we'll we'll take a look at your notes. Codex Voice: All right. I'll pull those together and keep it tight.
查理·郭:Charlie Guo:
我先把自己静音,不过 Codex 正在这里的后台处理那些聊天。它用到了我们今天一直在讨论的所有功能,包括操控电脑的能力。Codex Voice:Slack 里是哪位 Matt?I'm going to mute myself, but in the in the background here Codex is working across those chats. It's using all of the features we've been talking about today. The ability to drive computer use. Codex Voice: Which Matt in Slack?
Charlie Guo:谢谢,Codex。那它会去快速看一下。我们时间不多了,所以我不确定能不能等它全部完成。不过再说一次,你也不需要非得让语音跟你对话。我觉得我喜欢的一种用法,基本上就是开启语音模式,然后在我做事的过程中让它控制各种操作;不一定要让它给我反馈,而是让它在不同应用之间充当操控助手。Charlie Guo: Thanks, Codex. so that's going to go and take a quick look. we're running out of time so I don't know that we can wait for that all to finish. but again like you you don't need to and you don't need to necessarily have the voice talk back either. I think one of the things that I like to do is basically just like have voice mode on and then just have it control things as I go, not necessarily to like give me notes back, but to just act as a driver across applications.
特别是像 Dom 刚才说的,如果你开启了 Ultra Fast,就可以直接口述给它,让它接收更改并在后台分派任务。你也可以用它来帮你在电脑上把东西展示出来,然后直接说:“嘿,把这个调出来,把那个挪一下。”你会开始有点像钢铁侠,仿佛在和 Jarvis 一起工作。就像让它控制你电脑上的一切。接下来是 Dots。Dots 是个相对较新的东西,我觉得它也是一种相对较新的 AI 委派方式,或者说是交给智能体处理的方式。说实话,作为 Codex 的重度用户,我觉得 Dots 用起来有点别扭。我想这是因为它是一种新的范式,而且和主版 Codex 不一样;它们擅长的事情也不一样。Especially like Dom was saying if you've got Ultra Fast on you can just sort of dictate to it and just like have changes come in and get delegated in the background. You can also use it to start to visualize things on your computer for you and just say hey pull this up, move this around. You start to kind of feel a little bit like Iron Man, like working with Jarvis. Just like having it control everything on your computer. next up is Dots. And like Dots is a relatively new thing and I think a relatively new way of delegating to AI. Or to an agent. and I think if I'm honest. Like as a Codex power user, Dots feel a little bit awkward to work with. And I think because they're a new paradigm and because they're different, they're good at different things than the main Codex is.
所以我觉得,使用 Dots 大概有三种方式,和使用 Codex 有些不同;用 Codex 做这些事可能会稍微棘手一些。第一种是把 Dots 当作安全网。下面是一些真实例子,都是 Dom 的 Dot 和我的 Dot 帮我们标出来的事情。它发现了一个我们准备发布的 PR 里有个 bug。它告诉 Dom 有合并冲突。有一次,它还告诉你:“嘿,Charlie 还有另一个 PR,而你在一个他不在的频道里。你应该去告诉他,他正在做的这件事已经过时了。”今天,它提醒我,我预留的演讲时段和一个我不得不取消的一对一会议撞了。我记得它还曾经告诉过你,奥克兰或伯克利山那边发生了火灾。So I think there's three kind of ways that I think about using Dots that's a little bit different from Codex that Codex is maybe is a little bit trickier to do. The first is using Dots as a safety net. These are some real examples of like things that Dom's Dot and my Dot have like flagged for us. It grabbed that like there was a bug in a in a PR that were going to ship. It told Dom that like there was a merge conflict. And in one case, it told you like, hey, Charlie has this other PR and you were in this channel that he's not in and you should go tell him that like this thing he 's working on is out of date. It let me know today that like my my speaker hold overlapped with a one-on-one that I had to go cancel. And I think it told you one point there was like a fire in the Oakland or Berkeley Hills.
它还会说:“嘿,我知道你住在东湾,这可能会影响你下班回家的通勤。”而这些事情,普通的 Codex 是不会替你做的。使用 Dots 的另一种方式,是把它当作承接委派任务的入口。我在 Slack 里经常用 Dots,因为我们已经把它接入 Slack 了,我也总是不停地把消息转发给它,告诉它:“去调查一下这个,再为这个创建一条待办事项。”我会在一天中陆续把事情发给它,就像把它当成一个真正的虚拟同事或直接下属。我觉得 Dots 与众不同的第三点是,我们的目标是让它们真正出现在你工作的各个地方。显然,不只是 ChatGPT 应用、Slack 和 Teams,还有手机上。And it said, hey, like, I know you live in the East Bay, this might affect you on your commute home. And like these are things that just your normal Codex are not going to do for you. Another way to use Dots is like as a delegation sink. So like, I use Dots a ton in Slack, and because we have it connected there and I, m just constantly forwarding messages to it in Slack and just telling it, "Go look into this, go create a to-do item for this," like treating it like a true, virtual coworker or direct report as I send it stuff throughout the course of the day. And I think the third way that Dots are a little bit different is, we're we're aiming to make them truly everywhere that you work. Obviously in the ChatGPT apps and in Slack and Teams, but also like on the phone.
能够给你的 Dot 打电话,也能够像使用 iMessage 或 RCS 一样给你的 Dot 发短信。我们希望尽可能覆盖更多场景。关于委派,还有最后一种思路,对吧?就是在你自己的产品内部。我们有 Agents API,目前处于测试阶段。它可以把 Codex harness 里的所有这些功能——也就是为桌面应用提供支持的那些功能,以及为 Dots 提供支持的那些功能——集成到你自己的应用中。因此,如果你想创建数百、数千个临时会话,并让它们拥有相同的沙箱、插件及其他所有功能的访问权限,现在可以通过 Agents API 实现。The ability to call your Dot, the ability to text your Dot like iMessage or or RCS. We wanted to be in as many places as possible. And the last way to think about delegation here, right, is, inside of your own products. We have the agents API, which is currently in beta, and it's a way to take all of these goodies in the Codex harness, right, that power the desktop app that power dots and build them into your own application. So if you want the ability to create, hundreds, thousands of ephemeral sessions with the same access to sandboxes and plugins and everything else, we can do that now through the agents API.
模型、推理投入与并行代理Models, reasoning effort and parallel agents
Charlie Guo:最后来几个快速问答环节的小建议,我把时间交还给 Dom。Charlie Guo: For some quick speed-round tips, I'll turn it back over to Dom.
Dominik Kundel:还有几件事我们觉得值得和大家分享,但它们不太适合归入前面那些类别。第一件事是:把档位调低一些。你不必总是把滑块一路拉到最右边——我知道,尤其是效果看起来很不错的时候,这确实很诱人。但实际上,对于你正在做的大多数事情来说,高推理通常是个不错的起点。另外,随着新一代模型陆续推出,如果你之前一直卡在超高档位,那么新模型出来后,不妨稍微调低到高档,看看效果是否同样适合你。这些模型的确越来越强,但把档位直接调到最高,并不一定能让你获得更多,尤其是可能会出现收益递减,或者模型对问题过度思考之类的情况。Dominik Kundel: So a couple of different things that were like we felt like we wanted to share with you all, but didn't fit into a sort of these things. The first thing like turn it down. Like you don't have to like I know it's very enticing to just slide the slider all the way to the right, especially if there's like pretty effects. But the reality is for most of the things that you're doing, high reasoning is often a good starting point. Also as new model generations come out, it's a good idea that like if you were like stuck on like extra high before and a new model comes out, like dial it down slightly to a high and see if that fares as well for you. Like these these models become increasingly better, but you're not necessarily getting more out of it if you just crank it to the highest tier, especially as there can be diminishing returns or things like where it's overthinking problems.
如果你真的不太确定该选什么模型、该选什么推理力度,可以试试让你的智能体帮忙。比如,大多数任务都可以让它使用中等推理力度的 Sol,然后告诉它,如果遇到自己搞不定的问题,就以高推理力度启动 Astra 子智能体来帮忙;或者,对于更繁琐、可以轻松委派出去的工作,就以高推理力度启动一批 Luna 子智能体。等一下我会把这套做法的完整提示词分享给你,不过你也可以自己设置一个小技能,让它在使用中等推理力度的 Sol 时按这些方式来做。先提醒一句:这样做并不总是更好,也不总是更省钱。And if you are really sort of like struggling with like what model do I pick, what reasoning effort do I pick, one of the things you can try is like asking your agent for help. So, for example, you can have use Sol on medium for the majority of the things that you're doing and then tell it to, like, spin up Astra sub agents on high if it needs help with, like, something that it can't figure out, or spin up a bunch of Luna sub agents on high for, like, more tedious work that it can, it can delegate more easily. there is going to be I'm going to share with you in a second like the full prompt for this but you can just set up a little skill for this to like tell it to do these things on Sol Medium. fair warning this doesn't always mean it's always better or always cheaper.
模型仍然很难完美判断哪些东西适用于哪些场景,不过这至少能稍微减轻你的一些压力,比如说,不必再费心琢磨该如何搭配。子代理协同工作的另一种有趣方式,是让它们成对工作。比如,有些任务可以并行处理不同的事情,但这些事情之间仍然存在一定的依赖关系。你不必先提前把事情拆分好,再让某个代理制定一份庞大的计划、把一切都安排妥当,然后再并行实施;你可以启动成对的代理。一个很适合的场景是,假设你正在开发一个新应用,它既有 Web 应用,也有移动应用。Models still have a hard time to perfectly figure out what is the right use case for for which things but it takes at least a little bit that pressure away from you of like having to figure out what is the right combination. another interesting way of sub agents working together is sort of through this like pair of sub agents. So like, there's tasks where you might be able to work on different things in parallel, but there are still somewhat, somewhat interdependent on it. And like, rather than you having to like go and first split things up ahead of time and then like do or like have one, one agent create like a giant plan and everything perfect, and then parallelize implementation. You can spin up these pairs of agents. So a good use case is let's say you you're working on a new app and there is a web app and a mobile app for it.
你可能会安排一个智能体负责 Web 应用,同时处理前端和后端逻辑,再把移动应用的工作分配给另一个智能体。在这种情况下,你希望它们仍然能够协作,因为某些后端改动可能与移动应用有关,或者移动应用做出的一些决策可能需要后端进行相应改动。因此,你可以让它启动一组新的、由同级子智能体组成的团队,让它们彼此协调。这里会稍微复杂一些,因为你需要让 Codex 找出它们之间的沟通障碍在哪里;不过,模型后来学会了如何彼此沟通,这样它们就能互相同步最新进展。如果你把这个过程截个图,然后让你的智能体为这种设置找一些合适的用例,它很可能会找到一些。You might have one agent work on the web app which involves both the front end and back end logic and then the mobile app work another is assigned to another agent. In those cases you want to have them still collaborate because maybe some back end changes are relevant for the mobile app or the mobile app made some decisions that require back end changes. And so you can have it spin up a new new set of peer sub agents essentially that coordinate with each other. This is a bit more tricky in the sense that like you need to have Codex figure out like where are the communication barriers between these but then the models learn learned how to communicate with each other so they can like keep each other up to date. So if you take a screenshot of that and you ask your agent to like find some find some good use cases for this setup, it will probably find some.
Charlie 简单提到过这一点,但我觉得谈论它的人还不够多。你也可以让 Codex 启动其他聊天。这样一来,它们就不像子代理那样依附于主会话,而是完全独立的。你可以引导它们,也可以创建一串对话线程,比如启动所有不同的代理;或者让你的 Dot 帮你启动线程。Charlie briefly covered this, but I think not enough people talk about it. You can have your Codex spin up other chats as well. So, rather than sub agents which are tied to a main session, these can be completely independent. You can go steer them and you can have sort of a thread of threads where like you spin up all of your different agents or you can have your Dot, for example, spin up threads for you.
CLI、快捷方式与最后提示CLI, shortcuts and closing tips
Dominik Kundel:如果你特别喜欢用 CLI,我们最近也更新了它。现在里面也有一个 agents 视图。你只要按左箭头键,就可以在这些会话之间切换。如果你需要通过 SSH 登录开发机,并快速切换正在运行的任务,这个功能也很有用。同样,我们也在 CLI 中加入了语音模式。所以,如果你喜欢语音模式和 Charlie 刚才展示的那些功能,也可以在 CLI 里做同样的事。很多人不知道,你几乎可以为应用里的任何操作设置快捷键,这样就能更轻松地调整应用,让它适合自己的使用场景。你还可以设置全局听写和全局语音快捷键,这样想要启动语音模式,或者想在其他应用中使用听写时,就不必切换到这个应用,也不必安装第三方应用。Dominik Kundel: if you are a big fan of the CLI, we recently updated that. So, you have now an agents view in there as well. So, you can just press the left arrow key and you can switch between those sessions. It's also helpful if you just like have to SSH into your dev box and you quickly want to switch between the tasks that are running there. similarly, we added voice mode to the CLI as well. So, you if you love the voice mode and all the things that Charlie was showing you, you can do the same thing there. not enough people know this, but you can just set up more you can set up shortcuts for pretty much anything in the app which makes it much easier for you to like really tweak your use cases. But you can also set up global dictation and a global voice hotkey so that like you don't have to switch into the app if you want to either start voice mode or if you want to use dictation in other apps without having to install a third party app.
最后一件事,去申请 Daybreak 访问权限。Daybreak 是我们的网络安全计划。如果你申请 Daybreak Blue,任何个人都可以申请,不需要隶属于某家公司。你只需要一把硬件安全密钥,比如 YubiKey,我们还提供折扣。你可以申请,然后用它来保护自己的应用。所以一定要去申请。 最后,不要太执着于自己使用工具的方式。情况一直在变化,新的模型和新功能不断推出。每次有新模型发布,都可以考虑暂时放下你之前一直在做的事情,试试看不用那些方法效果会不会更好,然后再把那些在使用过程中仍然遇到问题的地方补回来。 最后,如果你想有机会赢得一把 Codex Micro——一款很酷、能帮你大幅提升 Codex 工作流效率的键盘——就扫描那个二维码。The last thing is go and apply for daybreak access. So, daybreak is our like cyber security program. If you apply for daybreak blue which any individual can do, you don't have to be part of a company. You just need a hardware key like a YubiKey and we have a discount for that. you can apply for that and then you can use it for securing your own applications. So, definitely do that. the last thing, don't get too attached to how you're using things. things are constantly changing, new models come out, new capabilities. And every time a new model comes out, consider like abandoning the things that you've been doing so far. Try out if it works better without it, and then bring back the things where you're still running into issues. With that, scan that QR code if you want to have a chance to like win a Codex Micro, which is a cool keyboard that helps you really speed up your Codex workflows.
而且,那个链接里包含了我们讲到的所有细节,以及其他一些资源。由于时间关系,我们会在这个房间外面。如果你们有任何问题,欢迎来和我们聊聊。最后,非常感谢大家参加。but also that link has all of the details that we covered as well as additional resources. And because we're out of time, we're going to be right outside this room. if you want to ask us any questions, we're happy to chat with you. And with that, thank you so much for joining us.