agentdbg view, and it stays running so that new runs appear automatically as your agent executes.
Starting the viewer
Run the following command in your terminal:--host and --port. To start the server without opening a browser (for example in an SSH session), add --no-browser.
UI layout
Sidebar — run list
The left sidebar shows your recent runs, newest first. Each row displays:- Run name — a label you can set or edit
- Started time — when the run began (UTC)
- Status —
ok,error, orrunning - Duration — total elapsed time in milliseconds
Run summary panel
When you select a run, the main area shows a summary at the top with:- Status badge —
OK(green),ERROR(red), orRUNNING(animated) - KPI counts — LLM calls, tool calls, errors, and loop warnings
- Filter chips — quickly narrow the event list (see Filtering events)
- Jump to first error — a shortcut button that scrolls the timeline to the first
ERRORevent when one exists
Timeline
Below the summary, events are listed in chronological order. Click any event row to expand it and see the fullpayload and meta objects as formatted JSON.
LLM call events
LLM call events
Expanding an LLM call shows the model name, prompt, response, token usage (
prompt_tokens, completion_tokens, total_tokens), provider, temperature, stop reason, and status. If the call failed, an error object is shown with the exception type, message, and stack trace.Tool call events
Tool call events
Expanding a tool call shows the tool name, input
args, result, and status. Error details are shown when status is error.Error events
Error events
Error events show
error_type, message, and stack. Guardrail aborts also include guardrail, threshold, and actual fields so you can see exactly which limit was hit.Loop warning events
Loop warning events
Loop warnings show the repeated
pattern, number of repetitions, and the evidence_event_ids that were involved in the detected loop.State update events
State update events
State updates show the full
state snapshot and an optional diff object if your agent computed one.Filtering events
Use the filter chips in the run summary panel to show only specific event types. The available filters are:| Chip | Events shown |
|---|---|
| All | Every event in the run |
| LLM | LLM_CALL events |
| Tools | TOOL_CALL events |
| Errors | ERROR events |
| State | STATE_UPDATE events |
| Loops | LOOP_WARNING events |
URL parameters
You can control the viewer’s initial state with URL parameters. The UI keeps these in sync as you interact, so the URL always reflects what you are viewing.| Parameter | Description |
|---|---|
run or run_id | Run to open. Accepts a full UUID or a short prefix. |
filter | Active event filter: all, llm, tools, errors, state, or loops. |
poll_runs | How often (in seconds) to refresh the run list. Default 3, range 1–60. |
poll_events | How often (in seconds) to poll for new events on a running agent. Default 2, range 1–60. |
Renaming runs
To rename a run, click the rename button next to the run name in the summary panel. Type a new name and confirm. This writes the updatedrun_name to the run’s run.json file on disk. The sidebar reflects the new name on the next poll (within a few seconds).
Deleting runs
To delete a run, click the delete button in the run summary panel and confirm the prompt. The run directory and all its contents (run.json and events.jsonl) are permanently removed from disk. The sidebar automatically switches to another run, or shows “No runs yet” if no other runs exist.
Live refresh
The viewer automatically stays up to date while your agents are running:- Run list is polled every ~3 seconds (configurable with
poll_runs). New runs appear in the sidebar without a page reload. Runs that are deleted from disk are removed on the next poll. - Event list is polled every ~2 seconds (configurable with
poll_events) while the selected run hasstatus: running. The timeline and summary update in place. Polling stops automatically once the run reachesokorerror. - Polling pauses when you switch away from the browser tab (using the Page Visibility API) and resumes the moment you switch back.