WhoBuilt

Fighting AI with AI

May 17, 2026· 17 min· 3.4K views·Watch on YouTube

Speaker

Lawrence Jones, a founding engineer at Incident.io, explains how his team uses AI-enabled tools to debug and improve its AI SRE product at an AI Engineer event.

AI systems need help to debug

Incident.io aims to automate production investigations, drawing on logs, metrics, traces, incident history, and code. These investigations can involve hundreds of telemetry queries and many prompts, making them difficult to assess and debug manually. Jones says understanding a single incident can take about an hour.

Make evals manageable for agents

Jones describes evals as unit tests for prompts: they run input data through a prompt and grade the output. Incident.io stores evals in YAML beside its Go prompts, but realistic production cases can grow too large to maintain or fit in an agent’s context. Its Eval Tool lets coding agents inspect and edit cases, add a failing case, improve a prompt, check the rest of the suite, and simplify the prompt.

Turn debugging interfaces into files

A single chatbot interaction can involve around 10 or more agents and many prompts and tools, so a bad result may be hard to trace to its source. Incident.io lets engineers download interaction data, including traces, as a self-documenting file system and open it alongside the codebase in Claude Code. The agent can analyze what went wrong, suggest where to change the system, and use the eval runbook to check the fix.

Analyze backtests in repeatable stages

Incident.io runs daily backtests across thousands of investigations and hundreds of customer accounts, but a rolled-up accuracy figure such as 86% does not explain why results changed. Its Scrapbook repo guides a Claude Code analysis pipeline: agents analyze investigations in parallel, save their findings in files, and cluster recurring failure types. The analysis can be compared with the codebase to identify causes and suggest changes.

Build internal tools for coding agents

Jones recommends making debugging tools easy for coding agents to use, with downloadable files that agents can search in bulk. For complex analysis, he suggests repeatable AI runbooks that preserve per-item findings and combine them into broader patterns. Engineers can carry the analysis into the code session, make a change, and check it against evals.

Takeaways

  • Keep prompt evals focused and small enough for coding agents to inspect and edit.
  • Give agents a tool for adding and updating individual cases in large eval suites.
  • Make traces and interaction data downloadable as a structured file system agents can search.
  • For backtests, analyze cases in parallel, save findings, then cluster recurring failures.
  • Turn repeated analysis into a runbook, connect findings to the codebase, and verify fixes with evals.

Mentioned in this talk

Search inside this talk

What was claimed 7

Related talks