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.
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.
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.
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.
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.
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.
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
catorsed -n. Example:config.pyread 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.yamlread 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.pyread 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.shfailed 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
deployloaded 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.
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.
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.