How Comet built Opik Diagnostics: automating agent debugging beyond the single trace

techNmak · x · 2026-10-03

Comet's engineering team published a detailed retrospective on building Diagnostics, their automated agent debugging tool for the Opik observability platform — including two false starts. The problem: manual workflows (find a trace, paste the JSON into Claude Code) don't scale to thousands of daily traces, and the most damaging failures never throw exceptions — agents quietly retry failing tools or drift in behavior no one notices. The article covers how they designed automated diagnostics, several approaches to having models inspect large numbers of traces, and the final decision to move much of large-scale checking into ordinary queries over trace data.

Related event: A convincing agent trace can mislead: count occurrences, don't just read one(2 posts)→

Original post →

More from coding & agent

coding & agent channel →