By Hamza Faisal
OpenAI has lifted the lid on how it keeps ChatGPT fast — and the answer is increasingly other AI agents. The company revealed on November 19 an internal system called the Performance Factory, in which coding agents powered by Codex investigate performance regressions, propose fixes and then check that the repair actually worked.
In a detailed engineering post, OpenAI said the pace of agentic development had made traditional performance engineering "unsustainable". Its response is to hand recurring performance work to agents, with human engineers defining the workflows and reviewing what ships.
How the factory works
The first workflow, called the Regression Workflow, starts when a performance alert fires — for example, a drop in ChatGPT's latency or availability. A Codex agent opens a task, investigates the slowdown, records its findings and proposes a fix for an engineer to review. Once the fix is deployed, another agent picks up the same task to check whether performance has returned to baseline.
The system grew out of the work of OpenAI's performance team, which spent years investigating slowdowns by hand. Along the way the team built more than 30 specialised tools, from CPU and memory profilers to tracing utilities. Codex first arrived as a partner engineers could ask "why did this get slower?", and the team's investigation playbook was then captured in a reusable skill called perf-forensics, which tells the agent which tools to use and how to work through a slowdown.
The Performance Factory organises that work into tasks moving through defined stages: needs investigation, root caused, fix proposed and resolved. It has four main parts — a task service, a dispatch loop, Codex running in the cloud, and subscriptions that keep engineers updated.
The results so far
In just over three months, the Regression Workflow tracked more than 1,700 investigations and identified the root cause in over 600 cases — about 17 automated investigations every day. In a manual review of 100 root-cause suggestions, OpenAI graded 70 percent as accurate.
Of the cases where a root cause was found, around 400 reached a proposed fix. About 50 shipped fixes were influenced by or matched agent suggestions, and around 15 shipped fixes were exact pull requests written by Codex itself, according to VentureBeat, which received the engineering report as an exclusive.
Humans still approve every fix
No fix goes live without a person. An engineer reviews every pull request and decides whether to merge it, and OpenAI is candid that the system is not perfect: "getting fixes right has been harder than finding the cause", with some proposed changes more complicated than needed and others introducing new issues of their own.
Still, the Performance Factory is a glimpse of where coding agents are heading — from solving individual tasks to running whole workflows that coordinate agents and human engineers. OpenAI says the same pattern could apply to other recurring engineering jobs, and it expects other service teams to learn from the approach. For ChatGPT users, the practical payoff is simple: when the service slows down, there is a good chance an agent is already on the case.



