All stories

OpenAI automates ChatGPT regression fixes with Codex

OpenAI has built the Performance Factory, a cloud system where Codex agents investigate, fix and verify ChatGPT performance regressions, a template for running agentic workflows in production.

OpenAI described the Performance Factory, an internal system that uses Codex agents to handle performance regressions in ChatGPT. The company said the agentic development pace has made traditional performance engineering unsustainable.

Its first workflow, the Regression Workflow, opens a task when a performance alert fires. An agent investigates the slowdown, records its findings and proposes a fix for an engineer to review. After deployment, another agent checks whether performance has returned to baseline. In just over three months, OpenAI says, the workflow tracked more than 1,700 investigations and found the root cause in over 600 cases, about 17 investigations a day.

The system has four parts: a task tracker with configurable workflows, a dispatch loop that assigns ready work to agents, an API that runs Codex in the cloud, and subscriptions that wake agents on events such as a GitHub review comment or a completed deployment. Engineers define workflows in configuration files and Markdown prompts. These set the states a task can move through and which steps need a human.

OpenAI traced how it got there in stages. Engineers first investigated by hand, using more than 30 internal performance tools. They then worked with Codex as an interactive partner. Next they captured the team's methods in a reusable skill called perf-forensics, refined with evals built from past regressions. That let Codex return a diagnosis from a single alert for issues like ChatGPT latency and availability drops.

OpenAI said workflows that spot optimizations can open tasks in other workflows. The source text provided ends before the post's lessons from running the system.

Sources