OpenAI built an agent factory that tracks down what slows ChatGPT
OpenAI described the Performance Factory, a system in which Codex agents investigate performance alerts for ChatGPT, propose fixes for engineers to review and check after deployment that the speed has recovered. In just over three months its first workflow tracked more than 1,700 investigations and found the root cause in over 600 cases.
A product that ships changes all day gets slower in small steps, and each step has to be traced back to the change that caused it. Before Codex, OpenAI's engineers did that by hand: they read metrics and logs, compared traces, debugged live machines and read code, helped by more than 30 performance tools built over the years. With agents speeding up development, OpenAI says that approach became unsustainable.
The team reached automation in steps. Engineers first asked Codex why something got slower and steered the investigation. Then they wrote the team's method into a shared skill called perf-forensics, which tells Codex which tools exist and how to work through a slowdown: find when it began, identify the affected requests, and check whether a deployment or configuration change explains it. When engineers found they were only pasting alerts into Codex and the findings back into Slack, the investigations moved to the cloud and started by themselves.
The Performance Factory adds everything after the diagnosis. It has four parts: a task service where engineers define a workflow as a configuration file plus Markdown prompts for each step, a dispatch loop that hands ready tasks to agents, an internal API that runs Codex in the cloud under its own service identity, and subscriptions that wake a waiting task when a review comment arrives or a deployment finishes. In its first workflow, for regressions, a task moves from needs investigation to root caused, fix proposed and resolved. Its findings are stored outside any one agent's context, so another agent or an engineer can pick the work up.
Early agents sometimes stopped at the first plausible explanation. A separate Codex session now tries to disprove each diagnosis, for example by checking whether similar requests that were not exposed to a suspected rollout stayed healthy. In a manual review of 100 root cause suggestions, OpenAI graded 70% as accurate. Fixes have been harder: agents propose changes that are more complicated than necessary or that introduce new issues, so each fix gets its own adversarial review and an engineer decides whether to merge it. OpenAI tests every change to its skills against past incidents, with the agent denied saved memories and the incident write-up, and runs an agent every day that looks through recent runs for broken tools and missing permissions.
Getting fixes right has been harder than finding the cause.
