I was on-call recently at work, and I was paged at 4 AM. Of course, at 4 in the morning, something was potentially going up in flames.
As we all do these days, I just asked Claude to investigate it while I was doing the checks on my own. Claude was saying something while I checked what was going on.
The next day I was exploring how we can have an agent do the incident response. It is one thing to use agents to write code. But having them debug production incidents, when every second counts, is a whole different thing.
For starters, making sure it has access to all the data is itself an engineering challenge, unless you want to let agents SSH into your servers and run random bash commands on them.
So on the weekend I hacked together a benchmark, and different agent architectures, to see how well they can handle production incidents.
Setup
Step 0 of building this eval was building the environment for this task. I had to come up with a somewhat realistic version of a production environment, with a semi-complex architecture, so the agents don't one-shot my requests.
So I dusted off my DDIA book (yes, I own one) to design a modern microservice system for an e-commerce website, along with some fake tool calls to access different telemetry data.
The service
The service was a small e-commerce website with 7 services for different parts of the shop. It uses Postgres, Redis and Kafka, and has some 3rd-party integrations like Stripe.
Adding some metrics to it
As incident response is just competitive debugging, there should be a way for the agent to look at all the metrics which you can see in a Grafana dashboard.
To do this, I had to do 2 things:
- Create synthetic data which mimics a real production environment.
- Expose it to the agent in some way.
The first part was quite fun. Claude and I hacked together a script to generate some fake data, so the agents can identify an anomaly.
To do this, I wrote a Python script to generate the data. You can check it here.
This is a nice way for the agent to know what the baseline looks like.
Real production is never quiet. Every day, things happen that look like a problem, and a good on-call engineer learns to ignore them. So I added 13 kinds of noise on top of the baseline. For example:
- Every night, a price import makes the Catalog read replica fall 44 seconds behind, and the
ReplicaLagHighalert fires. - At 4 AM, traffic is so low that 1 to 3 card declines push payment success under 90%, and the alert fires.
- A known memory leak restarts a Notification pod about every 6 hours.
Each test case mixes one real fault with some of this noise. One case is only noise, to check if the agent can say “this is not an incident”.
In the end, we had a system which looked like this:
Exposing this data
To expose all the beautiful data which we created, I did some research on how the famous error-tracking tools provide data for agents to use.
And though I have some strong thoughts on the way they expose this data, I decided I'll just use tool calls to expose it to my agent.
So I created 21 tools to expose different data like logs, traces, change history, server health, etc. to the agent.
Each tool is a plain function with a JSON schema. For example, query_metric gives one metric over time, compared to normal:
{
name: 'query_metric',
description: 'One metric over time: the shape of the problem (spike, climb, drop to zero). ' +
'Gives a summary with normal, and up to 60 points (worst value per bucket).',
parameters: { name, labels, from, to },
run(store, { name, labels, from, to }) { /* ... */ },
}This is what the agent gets back when it asks for the Catalog database query time:
{
"name": "pg_query_p95_ms",
"labels": { "db": "catalog" },
"unit": "ms",
"normal": 5.61,
"max": 107.61,
"max_at": "2026-11-20T11:28:00Z",
"points": [
{ "at": "06:24", "value": 5.56 },
{ "at": "06:31", "value": 5.4 },
{ "at": "06:38", "value": 81.53 },
{ "at": "06:45", "value": 82.31 },
"..."
]
}The tools give short summaries, not raw data, so the agent does not fill its context with millions of log lines. You can see all 21 tools here.
The experiment
The experiment involved creating some not-so-obvious incidents, and having a bunch of agents with different architectures have a go at them, to see how well they perform.
The test cases
Models in 2026 are unbelievably good. So designing the test cases was itself the main step of the experiment. I had to come up with a few test cases which were not obvious, but were solvable with the tools available to the agent.
I created 9 test cases which test the agent on multiple different failure cases, trying to simulate some real-world failures, after having (mostly ChatGPT) researched a bunch of post-mortem reports.
You can take a look at them in the repo. Some of them are quite fascinating, and I actually went through some post-mortems myself. It was quite a fun read.
They simulate a wide variety of cases, from a 3rd-party failure to some not-so-apparent issue which happens in the service.
A few examples:
- Stripe returns empty responses. Checkout fails because Stripe is slow and sends empty
200responses. An Order deploy goes live 4 minutes before the fault, so it is easy to blame the deploy. - Redis is full. Add-to-cart fails. 3 hours earlier, someone moved the cart Redis to a smaller instance to save cost, with
maxmemory640 MB and no eviction. There is also a deploy called “Upgrade Redis client library” in between, which is a perfect trap. - An invalid index. Checkout fails while a warehouse restock holds row locks. But the restock is not the root cause. 5 hours before the alert, a migration dropped an index, and its new index failed to build. Every stock update got 15× slower, and the restock only made it visible.
The harness
I ended up using pi-durable to run these experiments, as it is amazing, minimal and very extensible.
There were 2 agent architectures which I tested:
- A single agent – I just give it a pager alert, and ask it to solve it.
- A multi-agent – It was a combination of an orchestrator with some specialized sub-agents, which only have access to specific tools.
I had a hard limit of 5 mins for single agents, and 20 mins for multi-agents, so they complete it in a decent amount of time.
The grading
The models were judged on 3 criteria:
- The trajectory – Are the models going down the right path, based on the investigation? And are they able to course-correct if they reach a dead end?
- The outcome – Were the agents able to come up with an accurate hypothesis based on evidence? And are they upfront about it if they are not able to diagnose some issue?
- Efficiency – How many turns does the model take to do the task? The more turns it takes, the less efficient it is.
I used a combination of deterministic checks (where I checked if the agent looked at a certain trace or error) and an LLM as a judge.
You can check the skill I used to create the test cases and the graders.
The Result
I ran 2 models, GPT-5.6 Luna and GPT-6, on this experiment. The run lasted for about 5.5 hours, used around 90 million tokens, and ended up costing around $10 in API credits.
{
"name": "Model Comparison",
"models": ["openai-codex/gpt-5.6-luna", "openai-codex/gpt-6-luna"],
"architectures": ["single", "multi"],
"efforts": ["off", "low", "high", "max"],
"cases": [
"auth-pool-exhaustion", "carrier-booking-deadline",
"catalog-list-sort-regression", "delivery-schema-break",
"email-winback-quota", "invalid-stock-index",
"noise-price-import-replica-lag", "redis-maxmemory-cut",
"stripe-empty-responses"
],
"repeats": 3,
"parallel": 10,
"judge": { "model": "openai-codex/gpt-6-luna", "thinking": "max" }
}| Model | Architecture | off | low | high | max |
|---|---|---|---|---|---|
| gpt-5.6-luna | single | 6.0 | 6.6 | 6.5 | 6.8 |
| gpt-5.6-luna | multi | 6.0 | 6.5 | 5.7 | 0.0 |
| gpt-6-luna | single | 6.6 | 5.6 | 6.4 | 7.0 |
| gpt-6-luna | multi | 6.7 | 5.7 | 6.6 | 7.2 |
Average score out of 10. A run that did not finish in 20 minutes scores 0. 20 runs that hit a quota limit are not counted.
Some key takeaways were:
-
A team of agents was not better than a single agent.
From looking at the traces, I think the reason is twofold.
- The agent architecture is not right. There are a lot of cases where the critic agent is too harsh and rejects a hypothesis when there is some concerning evidence.
- The tasks are small enough that a single agent is good enough to solve them.
- More thinking helps, but only directionally. This could most definitely be because of the small volume of the test cases. The agents scored the max marks at the max level, but this is not conclusive at lower thinking levels.
- Agents largely fell for the traps. According to Claude, “In the Redis case, only 21% of runs did not ask to roll back the cart deploy, but the deploy was not the cause.” A run with more intelligent models might help us paint a better picture.
- Weirdly, a lot of multi-agent GPT-5.6 Luna runs at max effort hit the timeout. They kept thinking and thinking, and were not able to make a decision. This might be due to the agent architecture.