Mehtagent Docs

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.

EnterpriseThe Research run screen for the invented run in the walkthrough below, paused on the critic's message marked Criticism.

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".

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

PartWhat the run shows
AgentsThe main session and each helper, with the agent that started it, its model, its role and the brief it received
StepsEvery action in time order, sorted into eight kinds: Web, Files, Documents, Tests, Visuals, Publishing, Local work and Reasoning
SourcesThe web searches with their queries, the pages each agent read, and the files it opened or changed
MessagesEach brief sent to a helper and each report sent back, marked Brief, Report, Criticism or Approval
ChecksEach test run and each reviewer's verdict, passed or failed
Slow and heavySteps 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

  1. 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.
  2. 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.
  3. 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

  1. Press Play. The run moves forward eight steps a second, and each message travels along the line between the two agents.
  2. Press Pause, then Step back or Step on to move one step at a time. The left and right arrow keys do the same.
  3. 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.
  4. Click a Web or Files chip to list that agent's searches, pages or files, with files grouped by type.
  5. Open Checks or Slow and heavy to list what passed, what failed and which steps stood out.
  6. 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

  1. Press Feedback on this step on a step, or Give feedback on a message, a search, a page, a file or an agent.
  2. 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:

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.

  1. She opens Research runs. The header reads "Sitting 1 of 1 · 12 Nov, 14:05 to 14:51 · 4 agents · 30 steps · 122k tokens".
  2. 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."
  3. Checks lists that verdict as failed. The next message from the main session asks the scan helper to replace both tools.
  4. She opens the licence helper. Its Web chip lists one search and three pages, one of them a blog summary of a licence.
  5. 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