Skip to content
TheCircle.ai

Technology

Inside OpenAI's Multi-Agent DevOps Factory

  • Video

· 5 min · With Sherif, Vera

A friendly translucent glass factory building with glowing internal cogs set in a clean minimalist scene.

Watch the episode

5:29 · MP3 · MP4 · Transcript

Made with AI voices (Sherif, Vera). Sherif's voice is an AI clone, used with his approval. Script researched and written with AI and reviewed by TheCircle.ai.

Discover how OpenAI's Performance Factory uses adversarial Codex agents to investigate ChatGPT performance slowdowns.

Automating Root-Cause Analysis with Codex Agents

OpenAI built an internal system called Performance Factory that uses Codex agents to investigate ChatGPT performance slowdowns. Over a period of just over three months, the system tracked more than 1,700 investigations and found root causes in over 600 cases.

The system utilizes more than 30 internal performance tools, reads logs, compares service measurements, and inspects code when an alert fires. Instead of leaving findings in Slack replies, Performance Factory stores findings in a shared task, groups related alerts, and ranks them by estimated impact.

The Adversarial Reviewer Architecture

To prevent agents from settling on the first plausible explanation, OpenAI added a separate Codex reviewer agent tasked with trying to disprove the initial diagnosis. In an internal manual review of 100 suggested root causes, OpenAI judged 70% to be accurate, while 30% required further refinement or failed to establish the cause.

Once a diagnosis passes review, a Codex agent can propose a code change, and a separate agent checks if the change addresses the cause and looks for side effects. However, human engineers currently make the final decision on whether to edit, approve, or rewrite proposed fixes before deployment.

Post-Deployment Monitoring and Future Horizons

After an engineer deploys a fix, an agent monitors live measurements to close the task upon full recovery, open a new investigation upon partial recovery, or resume the original investigation if no improvement occurs.

OpenAI is exploring ways for agents to detect sub-alert performance regressions across software releases and whether low-risk changes could eventually be deployed without human approval.

Key takeaways

  • Do not trust a single agent in production workflows; pair builder agents with adversarial skeptic agents to challenge initial diagnoses.
  • Move agent workflows out of ephemeral chat threads into shared state systems that track context and tasks continuously.
  • Keep human engineers owning architectural trade-offs, deployment risk, and final code approvals.
  • Use historical incidents with withheld write-ups to rigorously benchmark agent performance and accuracy.

Questions this episode answers

What is the Performance Factory?

Performance Factory is an internal system built by OpenAI that uses Codex agents to investigate ChatGPT performance slowdowns, propose code fixes, and verify service recovery.

How accurate are the agent-generated root causes?

In an internal manual review of 100 suggested root causes, OpenAI judged 70% to be accurate, while the remaining 30% required further refinement or missed the cause.

This article is written from the episode itself (its transcript and the day’s topic brief) and reviewed by TheCircle.ai. The episode cites its original source.

Transcript

Read the full transcript (803 words)

Sherif: When ChatGPT slows down, who actually hunts down the bug? Turns out, OpenAI has built an internal system called Performance Factory where Codex agents investigate the slowdowns themselves.

Vera: And it's not a small experiment, Sherif. Over just three months, this system ran about 17 automated investigations a day, tracking over 1,700 cases and finding more than 600 root causes.

Sherif: Seriously. That's a serious operational load. How did they set this up without just flooding their engineers with more noisy alerts?

Vera: Well, OpenAI engineers Okay Zed and Cyrus Forbes explained that early automation just dumped findings into Slack replies. Engineers still had to dig through threads to pick up the pieces.

Sherif: Every engineering lead knows the pain of dead-end Slack threads. What replaced it?

Vera: Right. A shared task state. Instead of ephemeral chat, Performance Factory connects over 30 internal performance tools, reads logs, inspects code, and groups related alerts ranked by estimated impact.

Sherif: And when an alert fires, the slowdown might have actually started hours earlier, right?

Vera: Exactly. The Codex agent looks back to find when performance actually shifted. It checks whether a specific request type got slower, or if the system just got hit with more requests that were already slow.

Sherif: Here's what always worries me with single agents doing root-cause analysis, Vera. They love to jump at the first plausible explanation that fits the logs.

Vera: Yep. OpenAI hit that exact wall. Their fix is my favorite part of the architecture: they added a second, adversarial Codex reviewer agent whose sole job is to disprove the first agent's diagnosis.

Sherif: Give me a concrete example of how that plays out.

Vera: Say the first agent blames a new software rollout. The reviewer agent will pull similar requests that never received that rollout change and compare them to see if the theory holds up.

Sherif: Fascinating. And did pairing a builder with a skeptic actually move the needle on accuracy?

Vera: In an internal manual review of 100 suggested root causes, OpenAI judged 70% to be accurate. The other 30% still needed refinement or missed the cause.

Sherif: They also test these agents against past incidents by feeding them the original alert signal while withholding the human write-up, which is a smart way to benchmark.

Vera: It is, though we have to keep our healthy skepticism hat on here. That 70% accuracy rate and the investigation volumes are entirely self-reported by OpenAI.

Sherif: Fair point. And what are they not telling us in those numbers?

Vera: Two big things for any executive looking at the ROI. First, they haven't shared the compute cost or latency overhead of spinning up multiple adversarial agents for every alert.

Sherif: Makes sense. Running 30 tools and multiple agents 17 times a day isn't free. What's the second caveat?

Vera: We don't know how much agent-written code actually reaches production untouched. Once a diagnosis passes review, an agent proposes a code fix and another checks for side effects.

Sherif: Wait, so a third agent checks the fix? Why not just let it deploy?

Vera: Precisely. Because as OpenAI admits, getting the fix right is much harder than finding the cause. Human engineers still make the final call to edit, approve, or completely rewrite the fix.

Sherif: Why draw the human boundary there if the agents are so good at reading the code?

Vera: Architectural trade-offs. Take caching: adding a cache speeds up requests, which solves the latency alert, but it might serve users out-of-date information.

Sherif: Right, an agent optimizes for the metric, while a human engineer understands the product risk of stale data. What happens after the human deploys the fix?

Vera: Because the work lives in that shared task state, the agent comes right back in to monitor live telemetry. If service fully recovers, it closes the task.

Sherif: And if the fix only partially works, or fails completely?

Vera: It automatically opens a new investigation into the remaining slowdown, or resumes the original one. That happened when ChatGPT image requests kept failing even after a file-locating service recovered.

Sherif: Where are they pushing this next? Waiting for a threshold alert feels reactive.

Vera: They're now testing agents that spot sub-alert regressions across software releases—like tiny increases in processing power per request—and exploring if low-risk fixes could eventually deploy without human approval.

Sherif: Bottom line then. So Vera, for a CTO or engineering VP listening, what is the one thing to remember for Monday morning?

Vera: Don't trust a single agent in production workflows. Pair your builder agent with an adversarial skeptic agent, move them out of chat threads into shared state systems, and keep humans owning architectural trade-offs.

Sherif: Build the skeptic right into the loop. Thanks, Vera, and thanks everyone for listening—see you next time.