OpenAI 发布案例,介绍代码审查公司 Greptile 如何用 GPT-6 Astra 的 computer use 能力自动运行应用、模拟用户操作来验证 pull request,并用 Daybreak 强化安全、用 Codex 减少返工。这显示模型能力正从读代码扩展到实际执行与验证软件行为。
OpenAI published a case study on how code review company Greptile uses GPT-6 Astra's computer use to run applications and simulate user flows when validating pull requests, alongside Daybreak for security and Codex to reduce rework. The case shows model capabilities extending from reading code to actually executing and validating software behavior.
Greptile 如何利用 GPT‑6 Astra 测试用户工作流、用 Daybreak 强化安全、用 Codex 减少返工。
How Greptile uses GPT‑6 Astra to test user workflows, Daybreak to strengthen security, and Codex to reduce rework.
Greptile(在新窗口打开)构建的 AI 智能体能够结合代码库的完整上下文来审查和测试代码变更。联合创始人兼 CEO Daksh Gupta 表示:“我们的业务就是减少缺陷,让世界上的软件更加可靠。”
Greptile (opens in a new window) builds AI agents that review and test code changes with full context of the codebase. “We are in the business of reducing bugs and making the world’s software more reliable,” says Co-founder and CEO Daksh Gupta.
对 Daksh 而言,这一使命不仅需要阅读代码,还需要测试应用的行为,而 GPT‑6 Astra 的计算机使用能力为 Greptile 提供了一种大规模自动化测试的方式。
For Daksh, that mission requires testing an application’s behavior as well as reading its code, and GPT‑6 Astra’s computer use gives Greptile a way to automate testing at scale.
验证一个拉取请求,需要检查代码在逻辑上是否正确、是否实现了开发者的意图、是否安全,以及是否避免破坏现有功能。其中部分测试必须实际运行应用,因为仅靠阅读代码可能无法发现问题。
Validating a pull request involves checking whether the code is logically correct, does what the developer intended, is secure, and avoids breaking existing functionality. For some of that testing, you need to actually run the application because reading the code alone might not reveal the problem.
Daksh 举了一个例子:在 iPhone 上查看网站时,某个按钮会消失。借助 GPT‑6 Astra,Greptile 可以为某个拉取请求启动开发服务器,将浏览器调整为 iPhone 尺寸的视口,并模拟用户浏览应用的过程。该模型的视觉理解能力使其能够检查屏幕并发现被隐藏的按钮。
Daksh gives the example of a button that disappears when a website is viewed on an iPhone. With GPT‑6 Astra, Greptile can start a development server for a pull request, resize the browser to an iPhone-sized viewport, and simulate a user moving through the application. The model’s visual understanding lets it inspect the screen and spot the hidden button.
他说:“考虑到我们借助这些模型交付代码的速度,让一家 QA 公司测试你的所有变更慢得不切实际。”借助 GPT‑6 Astra,Greptile 能够大规模自动化这类应用测试。
“A QA firm testing all of your changes is just impractically slow considering how fast we’re able to ship code with these models,” he says. With GPT‑6 Astra, Greptile can automate this kind of application testing at scale.
Daksh 表示,更强大的模型也让攻击者更容易利用应用漏洞,使企业面临风险,甚至包括那些过去通常不会成为目标的企业。
Daksh says more powerful models also make it easier for attackers to exploit applications, putting companies at risk, even those that previously would not have been typical targets.
Daksh 说:“我们希望让即便是初创公司也能非常轻松地保护其系统安全。借助 Daybreak,我们能够以非常安全的方式做到这一点,并且可以确保我们的客户拥有比对手的攻击手段更精密的防御机制。”
“We want to make it very easy for even a startup to secure their systems,” says Daksh. “With Daybreak, we’re able to do this in a way that is very safe, and we can ensure that our customers have more sophisticated defense mechanisms than the adversaries have offense mechanisms.”
Greptile 的知识库会索引一家公司的代码库,并以人和智能体都能阅读的形式记录其运作方式。该公司通过 Model Context Protocol(MCP)服务器将这些文档提供给 Codex。
Greptile’s Knowledge Base indexes a company’s codebase and documents how it works in a form people and agents can read. The company makes that documentation available to Codex through a Model Context Protocol (MCP) server.
据 Daksh 介绍,这使 Codex 能够编写遵循客户现有模式的代码,目前已有数千家客户将 Codex 接入 Greptile 的知识库。
This allows Codex to write code that follows the customer’s existing patterns, and thousands of customers have connected Codex to Greptile’s knowledge base, according to Daksh.
为了衡量实际效果,团队会追踪 AI 生成代码被回退的频率。Daksh 表示:“当我们为智能体提供上下文时,回退的情况会减少,客户既能节省时间,也能节省推理成本。”客户可以将这些节省下来的资源投入到新工作中,而不必反复修改同样的改动。
To measure the impact, the team tracks how often AI-generated code is reverted. “When we provide agents with context, fewer reverts happen and customers save time and save inference,” Daksh says. Customers can put those savings toward new work instead of reworking the same changes.
Greptile 还使用 Codex 来构建自己的软件和智能体。Daksh 说:“我们是 Codex 的重度用户,每个职能都在大量使用它,工程团队尤其如此。”
Greptile also uses Codex to build its own software and agents. “We are massive users of Codex,” Daksh says. “We have enormous amounts of usage across every single function, engineering in particular.”
Daksh 解释说,对 Greptile 而言,唯一真正的瓶颈是团队能以多快的速度把想法变成可用的软件。他表示,模型智能对许多任务来说已经足够,因此他把 Ultrafast 视为加快开发速度的一种方式。
For Greptile, Daksh explains, the only real bottleneck is how quickly the team can turn ideas into working software. He says model intelligence is already sufficient for many tasks, so he sees Ultrafast as a way to speed up development.
他的长期目标是让修改和交付关键企业软件变得像发布一个业余项目一样简单,而 OpenAI 正在帮助 Greptile 构建实现这一目标所需的验证能力。
His longer-term goal is to make changing and shipping critical enterprise software as easy as shipping a side project, with OpenAI helping Greptile build the validation that requires.