
The iteration loop
One turn of the loop has four steps. A coding agent with the Laminar skill runs all four on its own; you can run any of them by hand.- Run. Start your agent with
LMNR_DEBUG=true. The run is traced and recorded into the session. - Read. Open the trace in Laminar and read the transcript: the agent’s inputs, every LLM turn, every tool call, sub-agents collapsed into cards. This is where what worked and what didn’t becomes obvious, for you and for the coding agent reading the same trace.
- Change. Edit the agent: the prompt, a tool, the control flow, whatever the trace pointed at.
- Run again. Rerun against the recorded trace. Everything before the call you’re testing comes back from cache instantly; only your change and what follows it run live. The new run is a fresh trace in the same session, next to the last one.
Who drives the loop
The loop is the same whoever runs it, and you watch it from the same session view either way. Hand it to a coding agent and watch: with the Laminar skill it runs your agent, reads the trace, edits your code, and reruns on its own, writing a note before each turn so you can follow along without touching the terminal. Stay in the loop by reading each run as it lands and pointing the agent at the span that’s wrong, or drive it yourself: every step is a CLI command or an environment variable, no coding agent required.Sessions and replay
Two primitives make the loop work:- Sessions group every run from one investigation so the turns sit together. The traces appear in order in the Laminar UI, so you (or your coding agent) can compare attempts and follow the notes on each one. The first
LMNR_DEBUG=truerun starts a session and writes.lmnr/debug-session.json; every later run in the same directory rejoins it automatically, so neither you nor the agent copies a session id between runs. - Replay is what makes a turn fast. Rerunning against a recorded trace serves cached LLM responses up to the boundary you pick and runs everything past it live, so you only pay for the calls your change actually touched. See how caching works for the mechanism.
What’s next
Setup
Install the CLI, run setup, and let your coding agent take it from there.
The debugger process
The full run, read, change, and rerun loop your coding agent runs, step by step.
How caching works
What gets cached, how the input hash works, and which integrations support it.
Browser Use debugger guide
End-to-end walkthrough debugging a Browser Use agent.
