OpenAI has disclosed an internal system that puts Codex agents to work investigating ChatGPT slowdowns, proposing repairs and checking recovery after deployment. Called Performance Factory, it tracked more than 1,700 investigations in just over three months, the company says. Engineers still decide which code changes ship—a boundary that matters in its early results.

In its November 19 engineering post, OpenAI says the system identified root causes in more than 600 cases. But finding an explanation is not the same as delivering a repair. The performance team told VentureBeat that around 15 shipped fixes were the exact pull requests—proposed code changes—authored by Codex.

Related on X

OpenAI built and uses Performance Factory, an internal Codex-powered workflow system that investigates ChatGPT performance regressions, proposes fixes, and checks whether deployed fixes work. OpenAI says it handled more than 1,700 investigations and identified root causes in over 600 cases in just over three months. The system is not described as a public product launch; OpenAI says it plans to explore proactive optimization workflows.

— @VentureBeat (@VentureBeat) View post

A task survives the agent that started it

The project grew out of an awkward handoff. Engineers had developed more than 30 performance tools, then captured investigation procedures in a reusable Codex skill called perf-forensics. Eventually, people were copying alerts into Codex and pasting findings into Slack. Moving investigations to the cloud removed that step, but left engineers to organize the follow-through.

Performance Factory turns each problem into a persistent task. Engineers define its stages and instructions in configuration files and Markdown prompts. A dispatch loop checks for ready work and starts a Codex session. The task retains findings outside any individual agent’s context, allowing another agent or an engineer to continue the investigation.

Those sessions run inside OpenAI’s network, with access to code, metrics, logs and other diagnostic tools. A service identity lets OpenAI limit permissions and track agent actions. Tasks can pause for a code review or deployment, then resume when a matching event arrives, rather than keeping an agent running while it waits.

A second agent challenges the first explanation

The first running workflow begins with a configured performance alert. Codex establishes which metrics worsened, when the change began and which requests were affected. It also distinguishes genuinely slower requests from a shift toward serving more requests that were already slow. Those possibilities call for different explanations.

OpenAI found that agents sometimes accepted the first plausible cause too readily. It added adversarial review: a separate Codex session instructed to challenge the diagnosis. In a manual review of 100 root-cause suggestions, OpenAI graded 70% as accurate; the rest needed refinement or did not fully establish causality.

One investigation blamed failing ChatGPT conversations on image-download errors. The reviewer noticed that a file-location service had recovered while image requests kept failing, so it reopened the case. The performance team told VentureBeat that adversarial review currently sends back around 25% of diagnoses for further investigation.

From diagnosis to deployed codeAround 400Proposed fixes

OpenAI’s team says around 400 investigations progressed to a proposed fix.

Approximately 50Shipped fixes influenced by or matching agent suggestions

Approximately 50 shipped fixes were influenced by or matched agent suggestions; around 15 were exact Codex-authored pull requests.

Repairs remain the harder job

According to the performance team, Codex works best when the cause is clear and the change is contained—for example, removing repeated processing of the same conversation. Architectural changes are harder. An agent might propose a cache that speeds responses but leaves stale data, trading one problem for another. OpenAI has added adversarial review to fixes too.

Human review also requires usable evidence. OpenAI generates task summaries with the problem’s impact, suspected cause and proposed repair, alongside charts and traces. Engineers can edit the proposed code or write their own fix from the diagnosis. After deployment, another agent checks recovery; a persistent problem goes back for investigation.

OpenAI is exploring proactive workflows that compare performance across releases and identify inefficient autoscaling settings. For now, its performance team says automating regression investigations has freed engineers to spend more time on long-term improvements rather than continually responding to incidents.