How They Use AI  |  Newest

<< Home  |  Tech

Recovered 76% of subagent output visibility

AreaTech
AI usedClaude Code
Sourcer/BuildWithClaude
Posted2026-08-30

The move

Identify subagent answers by selecting the last text block without a following tool call instead of relying on specific markers.

Steps

  1. Locate your local Claude Code project logs at ~/.claude/projects.
  2. Analyze the JSONL log structure to identify patterns in subagent transcripts.
  3. Update your parsing logic to select the final text block that lacks a trailing tool call.
  4. Validate the new logic against historical logs to ensure consistency with previous 'end_turn' markers.

Prompt for your AI

Analyze this JSONL log file from [path to log file]. Identify the subagent's final answer by finding the last text block that is not followed by a tool call, and extract the content of that block.

What happened

The user built a tool to parse Claude Code logs but found that recent updates stopped including the 'end_turn' marker in subagent transcripts. This caused the parser to fail and report zero output for subagents. By switching the logic to identify the answer as the final text block without a subsequent tool call, the user restored visibility for 76% of subagent outputs.

Watch out

Log schemas in beta tools change frequently and without notice. Relying on specific markers like 'end_turn' is fragile compared to structural analysis.

Give it to your agent

Read https://howtheyuse.ai/p/recovered-76-of-subagent-output-visibility.md and help me do this.

Sources



Last updated November 26, 2026.