{"type": "user", "uuid": "u1", "parentUuid": null, "sessionId": "sess-subagent", "timestamp": "2026-05-12T13:00:00.000Z", "cwd": "/workspace", "message": {"role": "user", "content": "Dispatch a sub-agent"}}
{"type": "assistant", "uuid": "a1", "parentUuid": "u1", "sessionId": "sess-subagent", "timestamp": "2026-05-12T13:00:01.000Z", "cwd": "/workspace", "message": {"role": "assistant", "model": "claude-sonnet-4-6", "content": [{"type": "tool_use", "id": "tu_task_1", "name": "Task", "input": {"subagent_type": "myplug:my-agent", "description": "Do some work", "prompt": "Analyze the data"}}]}}
{"type": "user", "uuid": "u2", "parentUuid": "a1", "sessionId": "sess-subagent", "timestamp": "2026-05-12T13:00:10.000Z", "cwd": "/workspace", "message": {"role": "user", "content": [{"type": "tool_result", "tool_use_id": "tu_task_1", "is_error": false, "content": [{"type": "text", "text": "Sub-agent completed"}]}]}}
{"type": "assistant", "uuid": "a2", "parentUuid": "u2", "sessionId": "sess-subagent", "timestamp": "2026-05-12T13:00:11.000Z", "cwd": "/workspace", "message": {"role": "assistant", "model": "claude-sonnet-4-6", "content": [{"type": "text", "text": "Sub-agent finished successfully."}]}}
