generated from nhcarrigan/template
ca08b990d8
Previously the feature relied on SubagentStop hook events via stderr, but Claude Code writes nothing to stderr. Instead, extract the agent's final output from the ToolResult content block in the stdout JSON stream, which contains the actual task result text. Handles both plain string and array-of-content-block formats.