From alerts to an agent workflow

OpenAI has described the Performance Factory, an internal system that uses Codex agents to investigate and help resolve performance regressions affecting services such as ChatGPT. The first running workflow begins when an alert fires, creates a persistent task, assigns an agent to investigate the slowdown and records evidence outside any single model context. If a cause is identified, another step proposes a fix for an engineer to review.

Why traditional performance work struggled to keep pace

Performance engineering normally requires specialists to compare metrics, inspect traces, profile processes and read unfamiliar code. OpenAI says the speed of agent-assisted software development increased the number and pace of changes enough that manual investigation became difficult to sustain. Its performance team had accumulated more than 30 diagnostic tools, but using them effectively still depended on deep service knowledge and repeated human steering.

Codex skills captured investigation practice

The team first used Codex as an interactive partner, then encoded its investigation method in a reusable skill called perf-forensics. The instructions tell an agent which tools are available and how to examine when a slowdown began, which requests were affected and whether deployments or configuration changes could explain it. Historical incidents became evaluation cases so changes to the skill or underlying model could be tested before wider use.

The factory keeps work state between turns

The Performance Factory combines a task service, a dispatch loop, cloud execution and event subscriptions. Workflows define allowed states and identify where engineer judgement is required. The dispatcher starts an agent when a task is ready, while the task record preserves findings and next steps. This means work can pause for a code review or deployment and resume later without relying on one continuously running agent session.

Production access is scoped and observable

Agents run in cloud environments with access to code repositories and selected observability systems, including metrics, logs, traces and profiles. OpenAI says they operate under service identities so permissions can be constrained and actions attributed. That architecture matters because autonomous diagnosis requires real evidence, but broad production access would create unacceptable risk. Identity, audit trails and tool boundaries become core parts of the agent design.

Early scale is substantial

OpenAI reports that the Regression Workflow tracked more than 1,700 investigations and found root causes in over 600 cases during a little more than three months, averaging about 17 automated investigations each day. The system can investigate more incidents than engineers could read individually, so the team learned to group related alerts, rank estimated impact and preserve the charts and evidence needed for a quick human decision.

Evaluation covers diagnosis and handoff quality

The team backtests investigations against past production incidents while restricting agents from seeing write-ups or saved memories that reveal the answer. It scores timing, impact, affected requests, evidence use and causal ranking separately. OpenAI also evaluates summaries using saved task snapshots, asking whether an engineer unfamiliar with the system can understand the incident, inspect supporting charts and judge whether a proposed next step follows from the evidence.

A pattern for controlled agent operations

The release is less a claim that agents can run production alone than a blueprint for structuring autonomy. Explicit workflow states, scoped identities, persistent evidence, independent review and repeatable evaluations create boundaries around the model. OpenAI is exploring more proactive detection and self-repair, but engineers still review and deploy fixes. For other teams, that division of responsibility is likely the most transferable lesson from the Performance Factory.