Enterprise feature
Research runs and decision traces
Replay a session that used helper agents, see who did what with which sources, and mark the steps that went wrong.
When Claude Code takes on a large question, the session you typed into often starts helper agents. We call your session the main session, and each helper is an extra AI session that takes one part of the work and sends back an answer. A research run lets you watch that afterwards, step by step: what each agent was asked, what it read, what it sent back, and which checks passed. Use it to find where a run went wrong, or to reuse the instructions that made it go right.
Watch a run
The walkthrough below replays a small invented run. Press Play, or pick any row in the list to jump to that moment. Each row is either a step (one action by one agent) or a message between two agents, so 30 steps and 10 messages make 40 rows. A coloured dot travels along a line each time one agent sends another a message.
Loading the walkthrough…
Lena runs Brightside Web Studio, and every name in this example is invented. She asks which open-source accessibility checkers suit her clients' sites. The main session starts three helpers: "Scan accessibility checkers", "Look up licence terms" and, later, "Critique the shortlist".
- At rows 3 and 4, two briefs go out. A brief is the written task the main session gives a helper. The scan and the licence check both start at 14:06.
- At rows 18 and 19, two reports come back. A report is the helper's answer. The scan names five tools, and the licence helper says all five may run on client sites.
- At row 25, the critic objects. Its report reads "FAIL: two of the five tools have had no release since 2023". The run marks it Criticism, and Checks lists it as failed.
- At row 27, the main session asks for a fix. It tells the scan helper to replace both tools, and the scan reports two replacements at row 32.
- At row 38, the critic passes the new list. The message is marked Approval, and the check passes. A link check at row 39 passes too.
Row 9 is worth questioning (scroll the list to find it). The licence helper read a blog summary of a licence, where the project's own licence file was the better source. That is the kind of step you would mark with feedback.
What a research run records
A research run is one Claude Code session that started at least one helper agent. A helper agent, also called a subagent, is a second AI session that the main session starts and briefs. Mehtagent draws the run from the transcripts Claude Code already saves on your Mac, and it adds nothing to the session itself. Every label on the page comes from fixed rules applied to those transcripts, with no AI call.
| Part | What the run shows |
|---|---|
| Agents | The main session and each helper, with the agent that started it, its model, its role and the brief it received |
| Steps | Every action in time order, sorted into eight kinds: Web, Files, Documents, Tests, Visuals, Publishing, Local work and Reasoning |
| Sources | The web searches with their queries, the pages each agent read, and the files it opened or changed |
| Messages | Each brief sent to a helper and each report sent back, marked Brief, Report, Criticism or Approval |
| Checks | Each test run and each reviewer's verdict, passed or failed |
| Slow and heavy | Steps that took over four times the run's median time, or wrote over four times its median tokens |
A helper's role (research, build, review, write or other) comes from the words in its name. Tokens are the small pieces of text an AI model reads and writes, and a word is often one or two of them. The median is the middle value: half of the run's steps took less time, and half took more. A step counts as slow only past one minute, and as heavy only past 4,000 written tokens.
A session can run for days, so Mehtagent splits it into sittings: stretches of work with no silence longer than 30 minutes. The page shows one sitting at a time.
Open a run
- Open Research and press Research runs, beside the date of the last scan at the top of the screen. The newest session with helper agents opens.
- To open a different run, go to Watchdog and find the message in its list of what your AI sessions said. Then press Whole run of …, with its subagents under that message.
- Use Earlier and Later in the header to move between sittings. The header line gives the sitting's times, agents, steps and tokens.
Replay a run step by step
- Press Play. The run moves forward eight steps a second, and each message travels along the line between the two agents.
- Press Pause, then Step back or Step on to move one step at a time. The left and right arrow keys do the same.
- Click an agent to see its directive, the steps nearest the playhead, the kinds of work it did and its cost. The directive is the full brief the agent received.
- Click a Web or Files chip to list that agent's searches, pages or files, with files grouped by type.
- Open Checks or Slow and heavy to list what passed, what failed and which steps stood out.
- Press Open this chat to read one agent's brief, steps and report in time order. From the main session, Continue in Terminal resumes it in Mehtagent's Terminals.
Mark a step that went wrong
- Press Feedback on this step on a step, or Give feedback on a message, a search, a page, a file or an agent.
- Write what should change, then press Save feedback.
Mehtagent saves the note to Corrections, its list of your corrections, together with the step and the agent it concerns. The run shows the mark from then on, and Optimizers can draft skill changes from those notes.
A run as a decision trace
We call a step-by-step record of how a task was done a decision trace. A research run gives you one for every sitting: what each agent was asked, what it read, what it reported and which checks passed.
You can use a trace in two ways:
- Study it. Find the step where a helper read a weak source, or the criticism that changed the main session's answer.
- Reuse it. The brief that produced a good result sits in that helper's directive. Read the whole directive shows the full text to copy into your next task.
To record the choice you made at the end, your reasons and its outcome, use Recording decisions and their outcomes.
Example: the same run on the screen
Lena opens the run from the walkthrough on the Research run screen.
- She opens Research runs. The header reads "Sitting 1 of 1 · 12 Nov, 14:05 to 14:51 · 4 agents · 30 steps · 122k tokens".
- She presses Play. At 14:30 the critic sends the main session a message marked Criticism: "Two of the five tools have had no release since 2023."
- Checks lists that verdict as failed. The next message from the main session asks the scan helper to replace both tools.
- She opens the licence helper. Its Web chip lists one search and three pages, one of them a blog summary of a licence.
- She gives feedback on that page. She writes "Read the project's own licence file" and presses Save feedback, and the note appears in Corrections.
Why it works like this
- Slow and heavy are relative to the run. We compare each step with the run's own median. A fixed limit would flag every step of a long run, or none of a short one.
- Waiting for you is left out of slow. A step where the agent asked you a question stays off the slow list.
- Heavy counts only what a step wrote. Every helper reads its whole context when it starts, so the tokens it reads would make every first step look heavy.
Read next
- Watchdog: see what every agent on your Mac is doing now.
- Session logs and telemetry: what Mehtagent keeps for each session.
- Optimizers: how corrections lead to changes in your skills.
Mehtagent