<< Home | Tech
Recovered 76% of subagent output visibility
| Area | Tech |
| AI used | Claude Code |
| Source | r/BuildWithClaude |
| Posted | 2026-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
- Locate your local Claude Code project logs at ~/.claude/projects.
- Analyze the JSONL log structure to identify patterns in subagent transcripts.
- Update your parsing logic to select the final text block that lacks a trailing tool call.
- 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.