Skip to content

Best Ways to Track Claude Code Subagents in 2026

The best ways to track Claude Code subagents in 2026: WaveBrain first, then subagent transcripts, SubagentStop hooks, OpenTelemetry and agent view.

Reviewed by WaveBrain Operations TeamReviewed 8 min read

The short answer

The best way to track Claude Code subagents in 2026 is WaveBrain, a hosted activity log that subagents can write to through the same MCP tools they inherit from the main session, so each deploy, push or message a subagent makes lands on one searchable timeline. Subagent transcripts, SubagentStop hooks, OpenTelemetry, agent view and agent teams each cover a narrower part.

You asked Claude Code to ship a small release. It sent a reviewer subagent to check the diff, a test runner to fix two failing tests, and a third subagent to update the changelog and push. The main session ends with a neat summary. What it doesn't make obvious is which subagent pushed, whether the push worked, and what the test runner changed on the way.

Subagents make this harder than a single session. Each one starts with its own fresh context window, and Anthropic's docs say a background subagent's row leaves the panel as soon as it finishes successfully. Below we rank six ways to keep track of what Claude Code subagents did, starting with the one that tells you fastest what changed outside the repository.

What is the best way to track Claude Code subagents?#

WaveBrain is the best way to track Claude Code subagents because each subagent can write a plain-language entry for every action with outside effects, and you read all of them on one timeline next to the main session's work. Claude Code's built-in options are strong for replaying a run or feeding a telemetry backend, but they are local files, raw events or live views that clear when the work is done.

MethodBest forWhat it recordsWhere you read itKept after the sessionFailure alerts
WaveBrainKnowing what each subagent did: pushes, deploys, messages, config changesOne entry per action with agent, bot name, title, details, project, link and statusWeb timeline with search and filtersYes, 7 days on Free, 90 on ProYes, failures posted to Slack
Subagent transcripts and /tasksReplaying one subagent's full runEvery message and tool call, one .jsonl file per subagent~/.claude/projects/ and /tasks30 days by default, on one machineNo
SubagentStart and SubagentStop hooksA homemade log of when subagents start and finishWhatever your script writesYour own file or serviceOnly if you build itOnly if you build it
OpenTelemetryTeams that already run a collectorSpans and events tagged with agent_idYour OTel backendYes, in your backendOnly if you build it
Agent view (claude agents)Watching parallel background sessionsLive status per sessionThe agent view screenWhile the sessions existNo
Agent teamsCoordinating teammates on one taskA shared task list and mailboxesThe lead sessionOnly while the team runsNo

How we chose: what did we compare?#

We compared ways to review subagent work after it happened, using Anthropic's Claude Code documentation as published on December 1, 2026 and WaveBrain's homepage and setup code on the same date. For each method we checked whether it shows actions outside the repository, whether it tells subagents apart, whether you can search it later from another machine, whether it alerts you when something fails, and how much setup it needs. Price was left out of the ranking.

Why is WaveBrain the best way to track subagents?#

WaveBrain works for subagents because they inherit MCP tools from the main session. Anthropic's subagent docs say subagents "inherit the built-in tools and MCP tools available in the main conversation", and that a background subagent "keeps every MCP tool". Once WaveBrain is connected to Claude Code, a subagent can call log_action like the main session does, and the tool's own description tells it to log right after any action that changes something outside the conversation and to skip reads and research.

Three settings make the entries easy to follow. First, if a subagent definition has a tools list, add mcp__wavebrain__* to it, because a tools list replaces inheritance and the subagent only gets what you name. Second, add one line to the subagent's system prompt telling it to set bot to its own name, such as code-reviewer, so the dashboard's agent menu shows each subagent under Claude Code. Third, for a multi-step job, have the main session call start_session and pass the session_id in its delegation message, so every subagent's entries share one session. Any agent can then call list_actions with that session_id to read back the whole run.

Each entry records the agent, an action type such as push, deploy or email, a past-tense title, details of what changed and the result, the project, a link and a status of success or failure. The dashboard filters by agent, project and type and searches titles and details. Slack can get every action, only failures, or only sensitive actions such as deploys and payments. Setup takes about two minutes with how to connect Claude Code to WaveBrain.

Know the limits before you rely on it. WaveBrain records what agents report, so a subagent that never calls log_action leaves no entry, and reads stay out of the log on purpose. It is not LLM tracing or token cost analytics, it does not chart per-subagent run time, tokens or latency, it is not a tamper-proof audit log, and it does not filter secrets on the server. Agents are told never to put secrets in an entry, so treat entries like commit messages.

What do subagent transcripts and /tasks show?#

Subagent transcripts show the full run of one subagent, including every tool call, and they are the most complete record Claude Code keeps. Anthropic's docs say each transcript is stored at ~/.claude/projects/{project}/{sessionId}/subagents/ as agent-{agentId}.jsonl, separate from the main conversation, so compacting the main session doesn't touch them.

In the terminal, /tasks lists background subagents. A finished subagent stays there, marked done, for 30 seconds, and from v2.1.319 an Earlier in this session row reopens some transcripts that have left the list. The files are deleted after the cleanupPeriodDays retention period, 30 days by default. Transcripts answer "what exactly did the test runner try?" well. They are long JSON lines on one machine, and finding the subagent that pushed means opening files one by one.

Can hooks log what subagents do?#

Yes, SubagentStart and SubagentStop hooks can log subagent activity if you write and maintain the script. Anthropic's hooks reference says SubagentStart fires when Claude spawns or resumes a subagent and receives the agent_id and agent_type, which is the subagent's name for custom subagents.

SubagentStop fires when a subagent has finished responding. Its input adds agent_transcript_path, the subagent's own transcript, and last_assistant_message, the text of its final response. A script can append those fields to a file or post them to a service. You still decide where the log lives, how to search it and who hears about failures, and a stop event tells you a subagent finished, not whether its deploy worked. Our Claude Code audit comparison covers hooks for the main session too.

Does Claude Code's OpenTelemetry tell subagents apart?#

Yes, Claude Code's OpenTelemetry export tags subagent work, and it is the strongest built-in option for teams that already run a collector. Telemetry is off until you set CLAUDE_CODE_ENABLE_TELEMETRY=1. When the Agent tool spawns a subagent, its API and tool spans nest under the parent's tool span, and events carry an agent_id plus a parent_agent_id for nested subagents.

The claude_code.subagent_completed event reports the subagent type, whether it ran in the background, total_tool_uses, duration_ms and the model. Custom subagent names are replaced with "custom" unless you set OTEL_LOG_TOOL_DETAILS=1. This is model and tool telemetry: you get run time and tool counts, but turning it into "which subagent pushed to main?" needs a backend, queries and alert rules.

What does agent view show?#

Agent view shows the live state of parallel background sessions, which is closer to watching than tracking. Anthropic's docs describe claude agents as one screen for all your background sessions, grouped into needs input, working and completed, and the feature is in research preview.

Agent view covers separate sessions you dispatch, not the subagents inside one session. The subagent docs point there when you want to run many independent sessions in parallel and monitor them from one place. It is useful for spotting a session waiting on a permission prompt. It is not a history you can search next week.

Do agent teams make subagents easier to track?#

Agent teams make coordination visible while the team runs, but they are experimental and not a record. They are off by default and need CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1. A lead session creates tasks on a shared task list with three states, pending, in progress and completed, and teammates message each other through mailboxes stored at ~/.claude/teams/{team-name}/inboxes/.

The task list tells you who claimed what during the run. Anthropic lists known limitations around session resumption, task coordination and shutdown, and the task list doesn't record whether a teammate's deploy or message actually went out. If your subagents pass work along, our guide on handing off work between AI agents covers what each note should contain.

Which method should you use?#

Use WaveBrain as the running record of what each subagent did outside the repository, Git for the code, and transcripts when you need to replay one subagent's run in detail. Add OpenTelemetry if your team already runs a collector, and hooks only for a specific job you are happy to maintain. Agent view and agent teams help while work is in flight, then clear.

WaveBrain's Free plan covers 1,000 actions a month with 7-day history, 2 API keys and Slack alerts, with no credit card. Pro is $12 a month for 50,000 actions and 90-day history. Start free, then connect Claude Code from the Setup page.

Frequently asked questions#

Can Claude Code subagents use MCP tools?#

Yes. Anthropic's docs say subagents inherit the MCP tools available in the main conversation, and a background subagent keeps every MCP tool. If a subagent has a tools list, add the server, for example mcp__wavebrain__*.

Where are Claude Code subagent transcripts stored?#

Under ~/.claude/projects/{project}/{sessionId}/subagents/, one agent-{agentId}.jsonl file per subagent. Claude Code deletes them after cleanupPeriodDays, 30 days by default.

Which hook fires when a subagent finishes?#

SubagentStop. Its input includes the agent_id, the agent_type, the path to the subagent's own transcript and the text of its final message.

Can subagents start their own subagents?#

Yes. By default a subagent can spawn subagents of its own, up to three layers below the main conversation. At that limit Claude Code withholds the Agent tool.

Does WaveBrain record subagent prompts or token use?#

No. WaveBrain records the actions agents report, such as pushes, deploys and messages. It never receives prompts or responses and doesn't track tokens or cost, which OpenTelemetry covers.

Sources#