Agent Debugger / Manual

Manual

Agent Debugger reads the log your coding agent wrote and shows what it did, step by step. This page goes through the whole tool on the sample log.

What it reads

The session log files that three agents write on your computer:

  • GitHub Copilot. The Copilot CLI's ~/.copilot/session-state/<session>/events.jsonl, and the transcripts of Copilot Chat in VS Code.
  • Claude Code. ~/.claude/projects/<project>/<session>.jsonl, with the logs of its subagents in the session's folder.
  • Codex. ~/.codex/sessions/<year>/<month>/<day>/rollout-*.jsonl.

The log is read by code in your browser tab. Nothing from it is uploaded unless you share it.

Opening a log

On the first page, drop a log on the page or press Choose file. Under Where's my log?, pick your agent to see where it keeps its logs on your system. In Chrome and Edge, Open my folder lists the sessions of the Copilot CLI, Claude Code or Codex, newest first, and you open one from the list. Open a sample log opens the sample this page uses.

The Where's my log? panel with Claude Code picked: open the folder, the path to copy, and which file to pick
Where's my log? with Claude Code picked.

Logs you open are listed under Recent on the first page; pin one to keep it under Pinned. The list keeps a pointer to each file, not its contents.

The session page

A log opens on one page. From the top: the session's title, the findings, a filter bar, the timeline of steps, and the context chart with its legend. Click a step and its detail opens on the right.

The sample log's session page: three findings, the timeline of steps with their bars, and the context chart under it
The sample: a Claude Code session of 371 events and 2 h 43 min, with one subagent.

Findings

Each finding is one wasted effort: what happened, what it cost in tokens (marked est. when estimated) and how many steps were involved. Show narrows the timeline to those steps and opens a likely fix; Highlight keeps it with a note. The strip folds to one line, the first finding and a count, when space is short.

Three findings: find_paths.rs returned about 7,000 tokens carried through 119 later model calls, the same read in the subagent carried through 2, and a notes file read twice with the same content

Timeline

One row per step, in order: your messages, the model's replies, each tool call with what it touched, and events such as compactions and waits. Each row shows the tokens it added to the context and how long it took; the bar on the right places it in time. Failed calls carry their exit code, and steps in a finding are tagged with it. Filter by tool, file or command, show only steps longer than a time you give, or only flagged steps.

The filter bar and the first rows of the timeline: time, tool, what, tokens added, duration and a bar for each step

A step's detail

Click a row to open the step beside the list: how long it took, what it added to the context and which model call it went into, its result, the command or file, and the full output the model was sent. ↑ and ↓ move to the step above or below; Esc or × closes it.

The read of find_paths.rs open in the detail on the right: 109 ms, 7.1k tokens added to the context, its arguments, and the output the model was sent
The read of find_paths.rs, open from the Big output finding.

Context over time

The chart shows how full the model's context was at each call. The line is the size the log recorded; the bands under it break that down by kind of content (tool results, model output, messages), estimated. The bars below are what each call added, with the largest named. Drag across the chart to select a time range, which also filters the timeline; scroll to zoom. The time axis can count active time, elapsed time or calls.

The Legend reads the chart at its peak, or at the call under the pointer: the measured size, the breakdown with each kind's share, and what that call added. Fold it to give the chart the width.

The legend at the peak, 164k tokens, beside the chart of tokens in context over the session

What it flags

Seven kinds of wasted effort. Each finding names the steps involved, what they cost in tokens (and whether that number is measured or estimated), and a fix to try.

Re-reads
A file read again with nothing changed, by the agent's file tool or through cat or sed -n. Example: config.py read 4 times, same content each time.
A whole data file for one value
A YAML, JSON, CSV or similar file read in full, about 2,000 tokens or more. Example: settings.yaml read whole, ~6,000 tokens.
A tool's source read instead of its help
The agent opens a script to learn how to run it, then runs it. Example: scripts/export.py read to learn how to run it, then run.
Retries and error loops
The same call failing again and again, or the same error coming back after edits. Example: build.sh failed 3 times in a row, then worked.
Large outputs
One result of about 5,000 tokens or more, which every later model call is sent again until the context is compacted. Example: a test run returned ~12,000 tokens, carried through 40 later model calls.
Many searches in a row
Eight searches or more without opening any result. Example: 9 searches in a row without opening any result.
A skill loaded again
The same skill loaded twice or more with no compaction in between. Example: skill deploy loaded 3 times without a compaction in between.

Highlights and notes

Highlight a step (Highlight in its detail, or h), a finding, or a piece of text (select it in the detail, then Highlight), and write a note on it. Highlighted steps are marked in the timeline's gutter; Only highlighted lists just those, and [ and ] step from one to the next. Your highlights and notes stay in this browser until you share the log.

A shared log with four highlights: the first, where Claude hands work to a subagent, open with the sharer's note in its detail, and the stepper showing 1 of 4
A shared log opens at the sharer's first note.

Sharing: links and embeds

Share uploads the log with your highlights and notes and gives you a link anyone can open, with nothing to install. Sharing needs an account; opening a link doesn't. Before anything is sent, the page looks for API keys, email addresses and home folders (with the user name they carry), and replaces the ones you tick, along with any words you add, in the log, the title and the notes. You choose how long the link lasts: 3 days, 3 weeks, 3 months or a year. A link pasted in chat or social shows the title, the first note and a picture of the log's findings.

The Embed tab gives the code to put the shared log in a blog post or docs page; readers step through your highlights in place. Your shared links on the first page lists your links, where you can delete one at any time.

Comparing two runs

Compare with… on the session page lines one log up against another, step by step, to see what a change of prompt, skill or model did. The top row compares time, tool calls, failed calls, files written, tests run and tokens added. In the list, = is the same step in both, ≈ the same step with different content, and A or B a step only one run took. n and p move between differences. Compare two sample runs on the first page opens the example below.

Two runs of the same prompt side by side: B, with a test-first skill, takes 10 more steps and runs the tests 3 times
The same prompt run twice; B had a test-first skill.

Keys

↑ ↓
previous or next step in the timeline
Esc
close the step's detail, then clear the selection
h
highlight the open step
[ ]
previous or next highlight
← →
previous or next call in the chart
+ -
zoom the chart
Drag, scroll
select a time range in the chart; zoom; Shift and scroll to move along
n p
next or previous difference, when comparing two runs

Mouse and keys under the timeline lists these on the page.

What each log records

Logs differ. The session page marks every estimated token count "est."

  • Claude Code and Codex record the context size on every model call, so the chart's line is measured. The breakdown by kind of content and what each call added are estimated (characters ÷ 4).
  • Copilot CLI records the real context size only at compactions and at the end of the session: the chart and per-call sizes are estimated (characters ÷ 4); the totals it records at shutdown are measured.
  • VS Code transcripts have no tool output. What a tool result added to the context is unknown, so the page counts messages only.

Each agent counts a little differently (Claude Code's size includes its system prompt and tool definitions), so don't compare sizes across agents.

Privacy

Your log is read in your browser tab and is not uploaded unless you share it. The page keeps the list of logs you opened, your pins, highlights and notes in this browser, never the log itself. A share holds what you confirmed, after your replacements, and anyone with the link can read it until it expires or you delete it. Privacy has the detail, including the analytics the site uses.

The sample

Open a sample log opens a real Claude Code session (version 2.1.22), with the log of the one subagent it started, in which an agent renames a command-line argument across the build tool and notes of a Rust C-library project. It is from the public repository winksaville/rlibc-x, under its Apache-2.0 licence. Only the home path and user name were replaced with user; the rest is as Claude Code wrote it. The screenshots on this page are made from it by a script, in light mode.