SIAgentNews.com
← All news

OpenAI uses Codex agents to automate ChatGPT performance troubleshooting

The company's new Performance Factory uses AI to investigate system slowdowns, propose code fixes, and verify service recovery.

First reported by EdTech Innovation Hub3 min readMade with AI

70%Accuracy of suggested root causes

The short version

  • The Performance Factory tracked over 1,700 investigations in just over three months, averaging 17 automated investigations a day.
  • Codex agents can identify root causes in over 600 cases, with a 70% accuracy rate in a manual review of 100 suggested causes.
  • The system uses a multi-agent approach where a second agent deliberately tries to disprove the first agent's diagnosis.
  • While the system can propose code changes, human engineers still make the final decision on which fixes go live to the service.

Automating the investigation

OpenAI has developed an internal system called the Performance Factory to manage the technical health of ChatGPT. The system uses Codex agents, which are specialized AI models, to investigate performance problems that previously required manual human intervention. As reported by EdTech Innovation Hub, the system tracked more than 1,700 investigations in just over three months.

Before this automation, engineers had to manually compare service measurements, read through logs, and inspect code to find out why ChatGPT might be responding slowly. The team had built over 30 different performance tools to help with this process. Codex now allows engineers to use these tools across various parts of the system, even in areas where the team has less familiarity.

The workflow begins when an alert fires, signaling that a performance measure has crossed a specific threshold. Codex then looks back at historical data to establish exactly when the slowdown started and which specific requests were affected. It also determines if the problem is caused by a specific type of request getting slower or if the service is simply handling a higher volume of requests that were already slow.

Why it matters

This shift toward automated troubleshooting means that performance issues in large-scale AI services can be identified and addressed faster. It allows engineers to focus on complex trade-offs, like balancing speed against data freshness, rather than manual log searching.

A multi-agent review process

To ensure accuracy, OpenAI uses a multi-agent approach where different Codex agents perform different roles in the investigation. One agent identifies a potential root cause, while a second agent is tasked with challenging that diagnosis. This second check helps prevent the AI from settling on the first explanation that happens to fit the available evidence.

For example, if the first agent blames a recent software rollout for a slowdown, the reviewer agent can compare affected requests with similar ones that did not receive the change. This rigorous checking process helps filter out incorrect assumptions. In a manual review of 100 suggested root causes by the company, the AI-generated findings were judged to be 70% accurate.

The remaining 30% of the findings required further refinement or failed to establish a clear cause. To improve the system, OpenAI also tests its agents against past incidents. The agents are given the original signal of a past problem but are withheld from seeing the final write-up, allowing them to score how well they identify the start time and severity of the issue.

From diagnosis to deployment

Once a diagnosis passes the review phase, the system moves toward a solution by proposing specific code changes. A separate agent then checks that the proposed change actually addresses the identified cause while looking for any potential side effects. This automated pipeline keeps findings in a shared task where engineers or other agents can pick up the work after a code review or deployment.

OpenAI notes that getting the correct fix is often more difficult than finding the initial cause. For instance, adding a cache can speed up a request by keeping a copy of data ready for reuse, but it might also cause users to see outdated information. Because of these types of trade-offs, human engineers still decide which fixes are ultimately approved for the live service.

After an engineer deploys a change, an agent monitors the live measurements against the previous levels to confirm recovery. If the performance improves only partially, the agent automatically opens a new investigation into the remaining slowdown. If the fix fails to improve the situation at all, the original investigation is resumed to find a different path forward.

The path toward proactive fixes

The current Performance Factory workflow is reactive, meaning it starts only after an alert has already been triggered. However, OpenAI is working on ways for the agents to spot smaller, more subtle performance changes across different software releases. This includes identifying increases in the processing power needed to handle a request, even if those changes are too small to trigger a standard alert.

The company is also developing tests that would allow agents to measure the results of proposed fixes before they are sent to a human engineer. The goal is to provide more data-backed evidence for every suggested change. This could eventually allow for a more streamlined process where the AI handles the heavy lifting of testing and revision.

In the long term, OpenAI is exploring whether certain low-risk changes could eventually reach the live service without requiring individual human approval. While engineers currently oversee every deployment to ensure quality, the company is looking for ways to automate the most routine maintenance. This would allow the human team to focus on the most complex and high-impact architectural decisions.

What to watch

  • Whether OpenAI will eventually allow low-risk code changes to go live without human approval.
  • How the accuracy of the Codex agents improves as they are tested against more historical incidents.

Sources and links

Written by the SI Agent News Desk from the reporting above.Written with AI from the source above. Every number is checked against the source. Spot a mistake? Corrections.

Liked it? Say why

Add a line for other readers.

No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.

More AI news