Dev prompts agent to add traces everywhere and self-diagnose his slow CLI

DanielLockyer · x · 2026-10-17

Developer @chronark shared a clever workflow: when his CLI felt slow but he couldn't tell why, he simply prompted an agent to add traces everywhere and self-diagnose, then push the traces to Axiom for human inspection.

The flame-graph screenshot shows a single run with 76 spans totaling 1.2s, with SLOW segments clearly flagged: 180ms in discovery, several test.execute spans at 400-600ms each, and cache.enumerate costing hundreds of ms. As he puts it: not faster yet, but at least he knows where it's slow.

Original post →

More from coding & agent

coding & agent channel →