OpenAI's Performance Factory automates fixes for ChatGPT performance regressions
Codex agents investigate slowdowns and propose fixes without losing context; an engineer decides what ships.
Performance regressions tend to lose context at the handoff between whoever diagnoses them and whoever ships the fix. OpenAI's Performance Factory, an internal system that Okay Zed and Cyrus Forbes of the technical staff described on November 19, keeps that state in a task that lives outside any single agent's context.
In the Regression Workflow, a performance alert opens the task. A Codex agent, guided by a shared skill called perf-forensics, works out when the metric started degrading, which requests were hit, and whether deployments or feature-flag changes explain the slowdown. A separate Codex session then tries to disprove the diagnosis. If it holds up, the agent opens a pull request, and an engineer reviews it and decides whether to merge. After deployment, another agent resumes the same task to confirm the metric is back to baseline.
According to OpenAI, over a little more than three months the workflow tracked more than 1,700 investigations and found the root cause in more than 600. When the team manually checked 100 root-cause suggestions, it rated 70% of them accurate.
No agent keeps running while a task waits: event subscriptions, such as review comments or failed CI checks on GitHub, put the task back in the queue when there is something to act on. The team itself calls the fix, not the diagnosis, the hard part, and the merge stays with the engineer.