{
  "version": "s06",
  "title": "Subagent",
  "description": "The task tool spawns a fresh subagent context and returns only a final summary to the parent.",
  "steps": [
    {
      "type": "user_message",
      "content": "Explore how the CLI parser works without polluting this main context.",
      "annotation": "The user asks for exploratory work that can be isolated."
    },
    {
      "type": "tool_call",
      "toolName": "task",
      "content": "{\"prompt\":\"Explore the CLI parser and summarize the control flow.\"}",
      "annotation": "The parent delegates through the task tool."
    },
    {
      "type": "system_event",
      "content": "spawn_subagent: messages=[{role:\"user\", content: prompt}], tools=bash/read/write/edit/glob",
      "annotation": "The child receives a fresh message history and no recursive task tool."
    },
    {
      "type": "tool_call",
      "toolName": "read_file",
      "content": "{\"path\":\"cli.py\"}",
      "annotation": "Inside the child loop, intermediate tool calls stay private."
    },
    {
      "type": "tool_result",
      "toolName": "task",
      "content": "Summary: cli.py parses args, selects a command handler, then dispatches.",
      "annotation": "Only the subagent's final summary returns to the parent."
    },
    {
      "type": "assistant_text",
      "content": "The parser is isolated in cli.py and dispatches by command name. I'll use that summary in the main plan.",
      "annotation": "The parent avoids carrying every exploratory detail."
    }
  ]
}
