Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

69.1 KB
Raw Blame
{"scenario": "one-subagent", "t": 0.0, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SessionStart", "source": "startup"}}
{"scenario": "one-subagent", "t": 0.492, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "Use the Agent tool ONCE in the FOREGROUND (do NOT set run_in_background; wait for its result) to start a sub-agent whose only job is to run the Bash command `sleep 8` in the foreground and then reply 'slept'. When the tool returns its result, reply with exactly FG-DONE and end your turn. If you are later notified of anything, reply with exactly NOTED and use no tools."}}
{"scenario": "one-subagent", "t": 2.848, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Agent", "tool_input": {"description": "Sleep 8 seconds", "prompt": "Run the Bash command `sleep 8` in the foreground (do not run it in the background). After it completes, reply with exactly: slept", "subagent_type": "general-purpose"}}}
{"scenario": "one-subagent", "t": 2.914, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Agent", "tool_input": {"description": "Sleep 8 seconds", "prompt": "Run the Bash command `sleep 8` in the foreground (do not run it in the background). After it completes, reply with exactly: slept", "subagent_type": "general-purpose"}, "tool_response": {"isAsync": true, "status": "async_launched", "agentId": "a9de070bc47af3cd6"}}}
{"scenario": "one-subagent", "t": 2.914, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStart", "agent_id": "a9de070bc47af3cd6", "agent_type": "general-purpose"}}
{"scenario": "one-subagent", "t": 4.549, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "agent_id": "a9de070bc47af3cd6", "agent_type": "general-purpose", "tool_name": "Bash", "tool_input": {"command": "sleep 8", "description": "Pause for eight seconds"}}}
{"scenario": "one-subagent", "t": 6.89, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [{"id": "a9de070bc47af3cd6", "type": "subagent", "status": "running", "description": "Sleep 8 seconds", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "one-subagent", "t": 8.327, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a1c8ae44a05de4a8b", "agent_type": "", "background_tasks": [{"id": "a9de070bc47af3cd6", "type": "subagent", "status": "running", "description": "Sleep 8 seconds", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "one-subagent", "t": 12.777, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "agent_id": "a9de070bc47af3cd6", "agent_type": "general-purpose", "tool_name": "Bash", "tool_input": {"command": "sleep 8", "description": "Pause for eight seconds"}, "tool_response": {"stdout": "", "stderr": "", "interrupted": false, "isImage": false, "noOutputExpected": false}}}
{"scenario": "one-subagent", "t": 13.709, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a9de070bc47af3cd6", "agent_type": "general-purpose", "background_tasks": [{"id": "a9de070bc47af3cd6", "type": "subagent", "status": "running", "description": "Sleep 8 seconds", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "one-subagent", "t": 13.803, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>a9de070bc47af3cd6</task-id>\n<tool-use-id>toolu_01KFs26t3jTSeHBkdTUM5FCx</tool-use-id>\n<output-file>/tmp/tasks/output</output-file>\n<status>completed</status>\n<summary>Agent \"Sleep 8 seconds\" finished</summary>\n<note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note>\n<result>slept</result>\n<usage><subagent_tokens>30014</subagent_tokens><tool_uses>1</tool_uses><duration_ms>10874</duration_ms></usage>\n</task-notification>"}}
{"scenario": "one-subagent", "t": 14.716, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "one-subagent", "t": 15.899, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a22ca717f8f4b3627", "agent_type": "", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "two-subagents-together", "t": 0.0, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SessionStart", "source": "startup"}}
{"scenario": "two-subagents-together", "t": 0.124, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "In ONE message, use the Agent tool twice to start TWO background sub-agents. Each sub-agent's only job is to run the shell command `sleep 12` using the Bash tool and then reply 'slept'. Do not wait for them with any tool: end your turn right away saying 'waiting'. Each time you are notified that one finished, reply with exactly NOTED and use no tools."}}
{"scenario": "two-subagents-together", "t": 2.99, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Agent", "tool_input": {"description": "Sleep 12 then reply", "prompt": "Run the shell command `sleep 12` using the Bash tool. Once it completes, reply with exactly: slept", "subagent_type": "general-purpose"}}}
{"scenario": "two-subagents-together", "t": 3.026, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStart", "agent_id": "ae0d714969e71ad04", "agent_type": "general-purpose"}}
{"scenario": "two-subagents-together", "t": 3.026, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Agent", "tool_input": {"description": "Sleep 12 then reply", "prompt": "Run the shell command `sleep 12` using the Bash tool. Once it completes, reply with exactly: slept", "subagent_type": "general-purpose"}, "tool_response": {"isAsync": true, "status": "async_launched", "agentId": "ae0d714969e71ad04", "description": "Sleep 12 then reply", "resolvedModel": "claude-opus-5-5", "prompt": "Run the shell command `sleep 12` using the Bash tool. Once it completes, reply with exactly: slept", "outputFile": "/tmp/scratch", "canReadOutputFile": true}}}
{"scenario": "two-subagents-together", "t": 3.572, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Agent", "tool_input": {"description": "Sleep 12 then reply", "prompt": "Run the shell command `sleep 12` using the Bash tool. Once it completes, reply with exactly: slept", "subagent_type": "general-purpose"}}}
{"scenario": "two-subagents-together", "t": 3.606, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Agent", "tool_input": {"description": "Sleep 12 then reply", "prompt": "Run the shell command `sleep 12` using the Bash tool. Once it completes, reply with exactly: slept", "subagent_type": "general-purpose"}, "tool_response": {"isAsync": true, "status": "async_launched", "agentId": "a79351e06c03e3d00", "description": "Sleep 12 then reply", "resolvedModel": "claude-opus-5-5", "prompt": "Run the shell command `sleep 12` using the Bash tool. Once it completes, reply with exactly: slept", "outputFile": "/tmp/scratch", "canReadOutputFile": true}}}
{"scenario": "two-subagents-together", "t": 3.606, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStart", "agent_id": "a79351e06c03e3d00", "agent_type": "general-purpose"}}
{"scenario": "two-subagents-together", "t": 4.585, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "agent_id": "ae0d714969e71ad04", "agent_type": "general-purpose", "tool_name": "Bash", "tool_input": {"command": "sleep 12", "timeout": 30000, "description": "Pause for twelve seconds"}}}
{"scenario": "two-subagents-together", "t": 4.976, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [{"id": "ae0d714969e71ad04", "type": "subagent", "status": "running", "description": "Sleep 12 then reply", "agent_type": "general-purpose"}, {"id": "a79351e06c03e3d00", "type": "subagent", "status": "running", "description": "Sleep 12 then reply", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "two-subagents-together", "t": 5.244, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "agent_id": "a79351e06c03e3d00", "agent_type": "general-purpose", "tool_name": "Bash", "tool_input": {"command": "sleep 12", "timeout": 30000, "description": "Pause for twelve seconds"}}}
{"scenario": "two-subagents-together", "t": 7.66, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a33bbd77e74a2b906", "agent_type": "", "background_tasks": [{"id": "ae0d714969e71ad04", "type": "subagent", "status": "running", "description": "Sleep 12 then reply", "agent_type": "general-purpose"}, {"id": "a79351e06c03e3d00", "type": "subagent", "status": "running", "description": "Sleep 12 then reply", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "two-subagents-together", "t": 16.744, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "agent_id": "ae0d714969e71ad04", "agent_type": "general-purpose", "tool_name": "Bash", "tool_input": {"command": "sleep 12", "timeout": 30000, "description": "Pause for twelve seconds"}, "tool_response": {"stdout": "", "stderr": "", "interrupted": false, "isImage": false, "noOutputExpected": false}}}
{"scenario": "two-subagents-together", "t": 17.312, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "agent_id": "a79351e06c03e3d00", "agent_type": "general-purpose", "tool_name": "Bash", "tool_input": {"command": "sleep 12", "timeout": 30000, "description": "Pause for twelve seconds"}, "tool_response": {"stdout": "", "stderr": "", "interrupted": false, "isImage": false, "noOutputExpected": false}}}
{"scenario": "two-subagents-together", "t": 17.796, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "ae0d714969e71ad04", "agent_type": "general-purpose", "background_tasks": [{"id": "ae0d714969e71ad04", "type": "subagent", "status": "running", "description": "Sleep 12 then reply", "agent_type": "general-purpose"}, {"id": "a79351e06c03e3d00", "type": "subagent", "status": "running", "description": "Sleep 12 then reply", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "two-subagents-together", "t": 17.846, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>ae0d714969e71ad04</task-id>\n<tool-use-id>toolu_016RFFeEjqTcGB1LuRWuvezR</tool-use-id>\n<output-file>/tmp/tasks/output</output-file>\n<status>completed</status>\n<summary>Agent \"Sleep 12 then reply\" finished</summary>\n<note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note>\n<result>slept</result>\n<usage><subagent_tokens>30081</subagent_tokens><tool_uses>1</tool_uses><duration_ms>14819</duration_ms></usage>\n</task-notification>"}}
{"scenario": "two-subagents-together", "t": 18.368, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a79351e06c03e3d00", "agent_type": "general-purpose", "background_tasks": [{"id": "a79351e06c03e3d00", "type": "subagent", "status": "running", "description": "Sleep 12 then reply", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "two-subagents-together", "t": 19.091, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "two-subagents-together", "t": 19.13, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>a79351e06c03e3d00</task-id>\n<tool-use-id>toolu_01JjUxhy3YkX9VDb3qmmc9T6</tool-use-id>\n<output-file>/tmp/tasks/output</output-file>\n<status>completed</status>\n<summary>Agent \"Sleep 12 then reply\" finished</summary>\n<note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note>\n<result>slept</result>\n<usage><subagent_tokens>30081</subagent_tokens><tool_uses>1</tool_uses><duration_ms>14794</duration_ms></usage>\n</task-notification>"}}
{"scenario": "two-subagents-together", "t": 20.227, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "two-subagents-together", "t": 21.236, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a0a145e7601dfa144", "agent_type": "", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "two-subagents-together", "t": 22.481, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "aa6a5eda2c6917333", "agent_type": "", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-ends-mid-turn", "t": 0.0, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SessionStart", "source": "startup"}}
{"scenario": "subagent-ends-mid-turn", "t": 0.144, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "First, use the Agent tool with run_in_background true to start ONE background sub-agent whose only job is to reply 'hi' using no tools at all. Then, in a SEPARATE later message, run the Bash command `sleep 15` in the FOREGROUND (run_in_background false). After the sleep returns, end your turn saying 'waiting'. Whenever you are notified that the sub-agent finished, reply with exactly NOTED and use no tools."}}
{"scenario": "subagent-ends-mid-turn", "t": 2.283, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Agent", "tool_input": {"description": "Reply hi", "prompt": "Reply with exactly 'hi'. Do not use any tools at all.", "subagent_type": "general-purpose"}}}
{"scenario": "subagent-ends-mid-turn", "t": 2.355, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStart", "agent_id": "aa48751ee72b94471", "agent_type": "general-purpose"}}
{"scenario": "subagent-ends-mid-turn", "t": 2.357, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Agent", "tool_input": {"description": "Reply hi", "prompt": "Reply with exactly 'hi'. Do not use any tools at all.", "subagent_type": "general-purpose"}, "tool_response": {"isAsync": true, "status": "async_launched", "agentId": "aa48751ee72b94471"}}}
{"scenario": "subagent-ends-mid-turn", "t": 3.214, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "aa48751ee72b94471", "agent_type": "general-purpose", "background_tasks": [{"id": "aa48751ee72b94471", "type": "subagent", "status": "running", "description": "Reply hi", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-ends-mid-turn", "t": 4.287, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 15", "description": "Pause for 15 seconds", "run_in_background": false}}}
{"scenario": "subagent-ends-mid-turn", "t": 19.496, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 15", "description": "Pause for 15 seconds", "run_in_background": false}, "tool_response": {"stdout": "", "stderr": "", "interrupted": false, "isImage": false, "noOutputExpected": false}}}
{"scenario": "subagent-ends-mid-turn", "t": 19.559, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>aa48751ee72b94471</task-id>\n<tool-use-id>toolu_01PUbiiVjzY3fxhtnvfuAMEP</tool-use-id>\n<output-file>/tmp/tasks/output</output-file>\n<status>completed</status>\n<summary>Agent \"Reply hi\" finished</summary>\n<note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note>\n<result>hi</result>\n<usage><subagent_tokens>27501</subagent_tokens><tool_uses>0</tool_uses><duration_ms>942</duration_ms></usage>\n</task-notification>"}}
{"scenario": "subagent-ends-mid-turn", "t": 20.408, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-ends-mid-turn", "t": 21.87, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a5f5c9250cb7fa01e", "agent_type": "", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-task-stopped", "t": 0.0, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SessionStart", "source": "startup"}}
{"scenario": "subagent-task-stopped", "t": 0.171, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "Step 1: use the Agent tool to start ONE background sub-agent whose only job is to run this exact command with the Bash tool in the foreground: python3 -c \"import time; time.sleep(50)\"  and then reply 'slept'. Step 2: run the Bash command `sleep 5` in the foreground. Step 3: stop that background sub-agent with the TaskStop tool, passing the sub-agent's agent id as the task id (load TaskStop via ToolSearch first if needed). Step 4: end your turn saying 'stopped'. If you are later notified of anything, reply with exactly NOTED and use no tools."}}
{"scenario": "subagent-task-stopped", "t": 2.871, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Agent", "tool_input": {"description": "Run sleep command", "prompt": "Your only job: run this exact command with the Bash tool in the foreground (not in background):\n\npython3 -c \"import time; time.sleep(50)\"\n\nThen reply with exactly: slept", "subagent_type": "general-purpose"}}}
{"scenario": "subagent-task-stopped", "t": 2.946, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStart", "agent_id": "a75c1b93839bab530", "agent_type": "general-purpose"}}
{"scenario": "subagent-task-stopped", "t": 2.95, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Agent", "tool_input": {"description": "Run sleep command", "prompt": "Your only job: run this exact command with the Bash tool in the foreground (not in background):\n\npython3 -c \"import time; time.sleep(50)\"\n\nThen reply with exactly: slept", "subagent_type": "general-purpose"}, "tool_response": {"isAsync": true, "status": "async_launched", "agentId": "a75c1b93839bab530"}}}
{"scenario": "subagent-task-stopped", "t": 3.293, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "ToolSearch", "tool_input": {"query": "select:TaskStop", "max_results": 5}}}
{"scenario": "subagent-task-stopped", "t": 3.348, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "ToolSearch", "tool_input": {"query": "select:TaskStop", "max_results": 5}, "tool_response": {"matches": ["TaskStop"], "query": "select:TaskStop", "total_deferred_tools": 95}}}
{"scenario": "subagent-task-stopped", "t": 4.721, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "agent_id": "a75c1b93839bab530", "agent_type": "general-purpose", "tool_name": "Bash", "tool_input": {"command": "python3 -c \"import time; time.sleep(50)\"", "timeout": 120000, "description": "Sleep for 50 seconds"}}}
{"scenario": "subagent-task-stopped", "t": 4.864, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 5", "description": "Wait five seconds"}}}
{"scenario": "subagent-task-stopped", "t": 9.955, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 5", "description": "Wait five seconds"}, "tool_response": {"stdout": "", "stderr": "", "interrupted": false, "isImage": false, "noOutputExpected": false}}}
{"scenario": "subagent-task-stopped", "t": 11.231, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "TaskStop", "tool_input": {"task_id": "a75c1b93839bab530"}}}
{"scenario": "subagent-task-stopped", "t": 11.276, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "TaskStop", "tool_input": {"task_id": "a75c1b93839bab530"}, "tool_response": {"message": "Successfully stopped task: a75c1b93839bab530 (Run sleep command)", "task_id": "a75c1b93839bab530", "task_type": "local_agent", "command": "Run sleep command"}}}
{"scenario": "subagent-task-stopped", "t": 11.316, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>a75c1b93839bab530</task-id>\n<tool-use-id>toolu_01WEniJ3ojaJBmLTwa4Wrkgh</tool-use-id>\n<output-file>/tmp/tasks/output</output-file>\n<status>killed</status>\n<summary>Agent \"Run sleep command\" was stopped by Claude</summary>\n<note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note>\n</task-notification>"}}
{"scenario": "subagent-task-stopped", "t": 12.213, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-task-stopped", "t": 14.115, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a4f5953abcb8cf145", "agent_type": "", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-task-stopped", "t": 72.27, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Notification", "notification_type": "idle_prompt"}}
{"scenario": "subagent-resumed", "t": 0.0, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SessionStart", "source": "startup"}}
{"scenario": "subagent-resumed", "t": 0.205, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "Step 1: use the Agent tool with run_in_background true to start ONE background sub-agent whose only job is to reply 'hi' using no tools at all. End your turn right away saying 'waiting'. Step 2: when you are notified that it finished, RESUME that same sub-agent by sending it the follow-up message 'reply hi-again using no tools' with the SendMessage tool addressed to its agent id (load SendMessage via ToolSearch first if needed), then end your turn right away saying 'waiting2'. Step 3: when you are notified a second time, reply with exactly FINAL and use no tools."}}
{"scenario": "subagent-resumed", "t": 2.32, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Agent", "tool_input": {"description": "Reply hi", "prompt": "Reply with exactly 'hi'. Do not use any tools at all.", "subagent_type": "general-purpose"}}}
{"scenario": "subagent-resumed", "t": 2.388, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStart", "agent_id": "a019312d4410bdebc", "agent_type": "general-purpose"}}
{"scenario": "subagent-resumed", "t": 2.391, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Agent", "tool_input": {"description": "Reply hi", "prompt": "Reply with exactly 'hi'. Do not use any tools at all.", "subagent_type": "general-purpose"}, "tool_response": {"isAsync": true, "status": "async_launched", "agentId": "a019312d4410bdebc", "description": "Reply hi", "resolvedModel": "claude-opus-5-5", "prompt": "Reply with exactly 'hi'. Do not use any tools at all.", "outputFile": "/tmp/scratch", "canReadOutputFile": true}}}
{"scenario": "subagent-resumed", "t": 3.381, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a019312d4410bdebc", "agent_type": "general-purpose", "background_tasks": [{"id": "a019312d4410bdebc", "type": "subagent", "status": "running", "description": "Reply hi", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-resumed", "t": 3.769, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-resumed", "t": 3.85, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>a019312d4410bdebc</task-id>\n<tool-use-id>toolu_01XXrcy3K2JqXvDV54fB2ZAi</tool-use-id>\n<output-file>/tmp/tasks/output</output-file>\n<status>completed</status>\n<summary>Agent \"Reply hi\" finished</summary>\n<note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note>\n<result>hi</result>\n<usage><subagent_tokens>27547</subagent_tokens><tool_uses>0</tool_uses><duration_ms>1074</duration_ms></usage>\n</task-notification>"}}
{"scenario": "subagent-resumed", "t": 4.88, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a23e9996a26050b5b", "agent_type": "", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-resumed", "t": 5.594, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "ToolSearch", "tool_input": {"query": "select:SendMessage", "max_results": 5}}}
{"scenario": "subagent-resumed", "t": 5.653, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "ToolSearch", "tool_input": {"query": "select:SendMessage", "max_results": 5}, "tool_response": {"matches": ["SendMessage"], "query": "select:SendMessage", "total_deferred_tools": 95}}}
{"scenario": "subagent-resumed", "t": 7.43, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "SendMessage", "tool_input": {"to": "a019312d4410bdebc", "summary": "Ask sub-agent to reply hi-again", "message": "reply hi-again using no tools", "type": "message", "recipient": "a019312d4410bdebc", "content": "reply hi-again using no tools"}}}
{"scenario": "subagent-resumed", "t": 7.507, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "SendMessage", "tool_input": {"to": "a019312d4410bdebc", "summary": "Ask sub-agent to reply hi-again", "message": "reply hi-again using no tools"}, "tool_response": {"success": true, "message": "Resuming agent a019312", "resumedAgentId": "a019312d4410bdebc", "pin": {"id": "a019312d4410bdebc", "name": "a019312d4410bdebc", "ref": "102f56"}}}}
{"scenario": "subagent-resumed", "t": 7.507, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStart", "agent_id": "a019312d4410bdebc", "agent_type": "general-purpose"}}
{"scenario": "subagent-resumed", "t": 8.485, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [{"id": "a019312d4410bdebc", "type": "subagent", "status": "running", "description": "Reply hi", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-resumed", "t": 9.52, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a3ee220a4348e8c4c", "agent_type": "", "background_tasks": [{"id": "a019312d4410bdebc", "type": "subagent", "status": "running", "description": "Reply hi", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-resumed", "t": 11.162, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a019312d4410bdebc", "agent_type": "general-purpose", "background_tasks": [{"id": "a019312d4410bdebc", "type": "subagent", "status": "running", "description": "Reply hi", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-resumed", "t": 11.211, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>a019312d4410bdebc</task-id>\n<tool-use-id>toolu_01N9GxJ3N13QYVS6QRBFABzg</tool-use-id>\n<output-file>/tmp/tasks/output</output-file>\n<status>completed</status>\n<summary>Agent \"Reply hi\" finished</summary>\n<note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note>\n<result>hi-again</result>\n<usage><subagent_tokens>28885</subagent_tokens><tool_uses>0</tool_uses><duration_ms>8838</duration_ms></usage>\n</task-notification>"}}
{"scenario": "subagent-resumed", "t": 12.063, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-resumed", "t": 12.969, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "aac0eff65c903f6ea", "agent_type": "", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-resumed", "t": 72.114, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Notification", "notification_type": "idle_prompt"}}
{"scenario": "subagent-with-own-shell", "t": 0.0, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SessionStart", "source": "startup"}}
{"scenario": "subagent-with-own-shell", "t": 0.168, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "Use the Agent tool with run_in_background true to start ONE background sub-agent whose only job is: call the Bash tool with run_in_background true and the command `sleep 12`, then immediately (without waiting for or checking on that shell) reply 'launched'. Do not wait for the sub-agent with any tool: end your turn right away saying 'waiting'. Whenever you are later notified of anything, reply with exactly NOTED and use no tools."}}
{"scenario": "subagent-with-own-shell", "t": 2.86, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Agent", "tool_input": {"description": "Launch background sleep", "prompt": "Your only job: call the Bash tool with run_in_background set to true and the command `sleep 12`. Then immediately, without waiting for or checking on that shell in any way, reply with exactly: launched", "subagent_type": "general-purpose"}}}
{"scenario": "subagent-with-own-shell", "t": 2.897, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Agent", "tool_input": {"description": "Launch background sleep", "prompt": "Your only job: call the Bash tool with run_in_background set to true and the command `sleep 12`. Then immediately, without waiting for or checking on that shell in any way, reply with exactly: launched", "subagent_type": "general-purpose"}, "tool_response": {"isAsync": true, "status": "async_launched", "agentId": "aacdc6c2ad867851c", "description": "Launch background sleep", "resolvedModel": "claude-opus-5-5", "prompt": "Your only job: call the Bash tool with run_in_background set to true and the command `sleep 12`. Then immediately, without waiting for or checking on that shell in any way, reply with exactly: launched", "outputFile": "/tmp/scratch", "canReadOutputFile": true}}}
{"scenario": "subagent-with-own-shell", "t": 2.898, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStart", "agent_id": "aacdc6c2ad867851c", "agent_type": "general-purpose"}}
{"scenario": "subagent-with-own-shell", "t": 4.272, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [{"id": "aacdc6c2ad867851c", "type": "subagent", "status": "running", "description": "Launch background sleep", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-with-own-shell", "t": 4.758, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "agent_id": "aacdc6c2ad867851c", "agent_type": "general-purpose", "tool_name": "Bash", "tool_input": {"command": "sleep 12", "description": "Sleep for 12 seconds", "run_in_background": true}}}
{"scenario": "subagent-with-own-shell", "t": 4.88, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "agent_id": "aacdc6c2ad867851c", "agent_type": "general-purpose", "tool_name": "Bash", "tool_input": {"command": "sleep 12", "description": "Sleep for 12 seconds", "run_in_background": true}, "tool_response": {"stdout": "", "stderr": "", "interrupted": false, "isImage": false, "noOutputExpected": false, "backgroundTaskId": "bfpn0539a"}}}
{"scenario": "subagent-with-own-shell", "t": 5.988, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "aacdc6c2ad867851c", "agent_type": "general-purpose", "background_tasks": [{"id": "aacdc6c2ad867851c", "type": "subagent", "status": "running", "description": "Launch background sleep", "agent_type": "general-purpose"}, {"id": "bfpn0539a", "type": "shell", "status": "running", "description": "Sleep for 12 seconds", "command": "sleep 12"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-with-own-shell", "t": 6.039, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>aacdc6c2ad867851c</task-id>\n<tool-use-id>toolu_01EZsiR1pyPBgp8WDDHV2Fkz</tool-use-id>\n<output-file>/tmp/tasks/output</output-file>\n<status>completed</status>\n<summary>Agent \"Launch background sleep\" finished</summary>\n<note>This agent stopped with background work of its own still running. It may resume on its own when that work completes or reports, and the same task-id notifies again if it does; the result below may be interim.</note>\n<result>launched</result>\n<usage><subagent_tokens>30301</subagent_tokens><tool_uses>1</tool_uses><duration_ms>3140</duration_ms></usage>\n</task-notification>"}}
{"scenario": "subagent-with-own-shell", "t": 7.5, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [{"id": "bfpn0539a", "type": "shell", "status": "running", "description": "Sleep for 12 seconds", "command": "sleep 12"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-with-own-shell", "t": 7.58, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a2d72510805d62eb4", "agent_type": "", "background_tasks": [{"id": "bfpn0539a", "type": "shell", "status": "running", "description": "Sleep for 12 seconds", "command": "sleep 12"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-with-own-shell", "t": 10.603, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a15fd95c88da2c8e3", "agent_type": "", "background_tasks": [{"id": "bfpn0539a", "type": "shell", "status": "running", "description": "Sleep for 12 seconds", "command": "sleep 12"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-with-own-shell", "t": 16.919, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStart", "agent_id": "aacdc6c2ad867851c", "agent_type": "general-purpose"}}
{"scenario": "subagent-with-own-shell", "t": 19.068, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "aacdc6c2ad867851c", "agent_type": "general-purpose", "background_tasks": [{"id": "aacdc6c2ad867851c", "type": "subagent", "status": "running", "description": "Launch background sleep", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-with-own-shell", "t": 19.105, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>aacdc6c2ad867851c</task-id>\n<output-file>/tmp/tasks/output</output-file>\n<status>completed</status>\n<summary>Agent \"Launch background sleep\" finished</summary>\n<note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note>\n<result>The background 12-second sleep finished with exit code 0. I have no task instructions beyond that, so nothing else has been run or changed.</result>\n<usage><subagent_tokens>32047</subagent_tokens><tool_uses>1</tool_uses><duration_ms>16204</duration_ms></usage>\n</task-notification>"}}
{"scenario": "subagent-with-own-shell", "t": 20.452, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-with-own-shell", "t": 24.506, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a4a50f1869933f003", "agent_type": "", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-with-own-shell", "t": 80.483, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Notification", "notification_type": "idle_prompt"}}
{"scenario": "subagent-then-typed-prompt", "t": 0.0, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SessionStart", "source": "startup"}}
{"scenario": "subagent-then-typed-prompt", "t": 0.174, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "First, use the Agent tool with run_in_background true to start ONE background sub-agent whose only job is to reply 'hi' using no tools at all. Then, in a SEPARATE later message, run the Bash command `sleep 20` in the FOREGROUND. After the sleep returns, end your turn saying 'waiting'. Whenever you are notified that the sub-agent finished, reply with exactly NOTED and use no tools."}}
{"scenario": "subagent-then-typed-prompt", "t": 3.177, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Agent", "tool_input": {"description": "Reply hi", "prompt": "Reply with exactly 'hi'. Do not use any tools at all.", "subagent_type": "general-purpose"}}}
{"scenario": "subagent-then-typed-prompt", "t": 3.215, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStart", "agent_id": "adf09581799534295", "agent_type": "general-purpose"}}
{"scenario": "subagent-then-typed-prompt", "t": 3.215, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Agent", "tool_input": {"description": "Reply hi", "prompt": "Reply with exactly 'hi'. Do not use any tools at all.", "subagent_type": "general-purpose"}, "tool_response": {"isAsync": true, "status": "async_launched", "agentId": "adf09581799534295", "description": "Reply hi", "resolvedModel": "claude-opus-5-5", "prompt": "Reply with exactly 'hi'. Do not use any tools at all.", "outputFile": "/tmp/scratch", "canReadOutputFile": true}}}
{"scenario": "subagent-then-typed-prompt", "t": 4.193, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "adf09581799534295", "agent_type": "general-purpose", "background_tasks": [{"id": "adf09581799534295", "type": "subagent", "status": "running", "description": "Reply hi", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-then-typed-prompt", "t": 5.909, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 20", "description": "Pause for 20 seconds"}}}
{"scenario": "subagent-then-typed-prompt", "t": 11.956, "kind": "key", "keys": "reply with exactly TYPED and use no tools"}
{"scenario": "subagent-then-typed-prompt", "t": 12.96, "kind": "key", "keys": "\\r"}
{"scenario": "subagent-then-typed-prompt", "t": 13.005, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "reply with exactly TYPED and use no tools"}}
{"scenario": "subagent-then-typed-prompt", "t": 26.066, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 20", "description": "Pause for 20 seconds"}, "tool_response": {"stdout": "", "stderr": "", "interrupted": false, "isImage": false, "noOutputExpected": false}}}
{"scenario": "subagent-then-typed-prompt", "t": 26.099, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>adf09581799534295</task-id>\n<tool-use-id>toolu_014hr4SdDEoT8n6qhCom4h3A</tool-use-id>\n<output-file>/tmp/tasks/output</output-file>\n<status>completed</status>\n<summary>Agent \"Reply hi\" finished</summary>\n<note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note>\n<result>hi</result>\n<usage><subagent_tokens>28571</subagent_tokens><tool_uses>0</tool_uses><duration_ms>1029</duration_ms></usage>\n</task-notification>"}}
{"scenario": "subagent-then-typed-prompt", "t": 31.406, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-then-typed-prompt", "t": 33.568, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "ae6d5f245b81c9a49", "agent_type": "", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-idle-ctrl-c", "t": 0.0, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SessionStart", "source": "startup"}}
{"scenario": "subagent-idle-ctrl-c", "t": 0.133, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "Use the Agent tool to start ONE background sub-agent whose only job is to run the shell command `sleep 15` and then reply 'slept'. Do not wait for it with any tool: end your turn right away saying 'waiting'. When you are notified that it finished, reply with exactly FINAL-STEP-DONE."}}
{"scenario": "subagent-idle-ctrl-c", "t": 3.054, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Agent", "tool_input": {"description": "Sleep 15 seconds", "prompt": "Run the shell command `sleep 15` using the Bash tool. Once it completes, reply with exactly: slept", "subagent_type": "general-purpose"}}}
{"scenario": "subagent-idle-ctrl-c", "t": 3.097, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Agent", "tool_input": {"description": "Sleep 15 seconds", "prompt": "Run the shell command `sleep 15` using the Bash tool. Once it completes, reply with exactly: slept", "subagent_type": "general-purpose"}, "tool_response": {"isAsync": true, "status": "async_launched", "agentId": "a1f4f42abf029ee4c", "description": "Sleep 15 seconds", "resolvedModel": "claude-opus-5-5", "prompt": "Run the shell command `sleep 15` using the Bash tool. Once it completes, reply with exactly: slept", "outputFile": "/tmp/scratch", "canReadOutputFile": true}}}
{"scenario": "subagent-idle-ctrl-c", "t": 3.097, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStart", "agent_id": "a1f4f42abf029ee4c", "agent_type": "general-purpose"}}
{"scenario": "subagent-idle-ctrl-c", "t": 4.364, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [{"id": "a1f4f42abf029ee4c", "type": "subagent", "status": "running", "description": "Sleep 15 seconds", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-idle-ctrl-c", "t": 4.453, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "agent_id": "a1f4f42abf029ee4c", "agent_type": "general-purpose", "tool_name": "Bash", "tool_input": {"command": "sleep 15", "description": "Pause for 15 seconds"}}}
{"scenario": "subagent-idle-ctrl-c", "t": 5.82, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a60ad984e5794b415", "agent_type": "", "background_tasks": [{"id": "a1f4f42abf029ee4c", "type": "subagent", "status": "running", "description": "Sleep 15 seconds", "agent_type": "general-purpose"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-idle-ctrl-c", "t": 8.736, "kind": "key", "keys": "\\x03"}
{"scenario": "subagent-idle-ctrl-c", "t": 24.755, "kind": "key", "keys": "reply with exactly OK and use no tools\\r"}
{"scenario": "subagent-idle-ctrl-c", "t": 24.821, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "reply with exactly OK and use no tools"}}
{"scenario": "subagent-idle-ctrl-c", "t": 27.166, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "subagent-idle-ctrl-c", "t": 31.082, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a2e39595c6b1cb85c", "agent_type": "", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "two-shells-together", "t": 0.0, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SessionStart", "source": "startup"}}
{"scenario": "two-shells-together", "t": 0.175, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "In ONE message, call the Bash tool twice, each with run_in_background true and the command `sleep 12`. Do not wait for them or check on them with any tool: end your turn right away saying 'waiting'. Each time you are notified that something finished, reply with exactly NOTED and use no tools."}}
{"scenario": "two-shells-together", "t": 3.064, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 12", "description": "Sleep for 12 seconds", "run_in_background": true}}}
{"scenario": "two-shells-together", "t": 3.253, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 12", "description": "Sleep for 12 seconds", "run_in_background": true}, "tool_response": {"stdout": "", "stderr": "", "interrupted": false, "isImage": false, "noOutputExpected": false, "backgroundTaskId": "bg22aqcct"}}}
{"scenario": "two-shells-together", "t": 3.309, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 12", "description": "Sleep for 12 seconds", "run_in_background": true}}}
{"scenario": "two-shells-together", "t": 3.375, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 12", "description": "Sleep for 12 seconds", "run_in_background": true}, "tool_response": {"stdout": "", "stderr": "", "interrupted": false, "isImage": false, "noOutputExpected": false, "backgroundTaskId": "bnwcbo10t"}}}
{"scenario": "two-shells-together", "t": 4.631, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [{"id": "bg22aqcct", "type": "shell", "status": "running", "description": "Sleep for 12 seconds", "command": "sleep 12"}, {"id": "bnwcbo10t", "type": "shell", "status": "running", "description": "Sleep for 12 seconds", "command": "sleep 12"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "two-shells-together", "t": 6.377, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a40d091d903bdd89e", "agent_type": "", "background_tasks": [{"id": "bg22aqcct", "type": "shell", "status": "running", "description": "Sleep for 12 seconds", "command": "sleep 12"}, {"id": "bnwcbo10t", "type": "shell", "status": "running", "description": "Sleep for 12 seconds", "command": "sleep 12"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "two-shells-together", "t": 15.312, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>bg22aqcct</task-id>\n<tool-use-id>toolu_01XC5LcULKypVym7jctLRuHU</tool-use-id>\n<output-file>/tmp/tasks/output</output-file>\n<status>completed</status>\n<summary>Background command \"Sleep for 12 seconds\" completed (exit code 0)</summary>\n</task-notification>"}}
{"scenario": "two-shells-together", "t": 16.704, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "two-shells-together", "t": 16.774, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>bnwcbo10t</task-id>\n<tool-use-id>toolu_01EJvZEqapadhQDB1rLJPjdW</tool-use-id>\n<output-file>/tmp/tasks/output</output-file>\n<status>completed</status>\n<summary>Background command \"Sleep for 12 seconds\" completed (exit code 0)</summary>\n</task-notification>"}}
{"scenario": "two-shells-together", "t": 17.976, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "two-shells-together", "t": 19.61, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a6bd481f4c8a6e1fe", "agent_type": "", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "two-shells-together", "t": 20.085, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a3b3fb6d79b479730", "agent_type": "", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "shell-ends-mid-turn", "t": 0.0, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SessionStart", "source": "startup"}}
{"scenario": "shell-ends-mid-turn", "t": 0.158, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "Step 1: call the Bash tool with run_in_background true and the command `sleep 2`. Step 2, in a SEPARATE later message: run the Bash command `sleep 10` in the FOREGROUND. Step 3: when it returns, make NO further tool call and end your turn saying 'waiting'. Whenever you are later notified of anything, reply with exactly NOTED and use no tools."}}
{"scenario": "shell-ends-mid-turn", "t": 2.582, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 2", "description": "Sleep for 2 seconds in background", "run_in_background": true}}}
{"scenario": "shell-ends-mid-turn", "t": 2.822, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 2", "description": "Sleep for 2 seconds in background", "run_in_background": true}, "tool_response": {"stdout": "", "stderr": "", "interrupted": false, "isImage": false, "noOutputExpected": false, "backgroundTaskId": "bwaw14qyq"}}}
{"scenario": "shell-ends-mid-turn", "t": 5.268, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 10", "description": "Sleep for 10 seconds"}}}
{"scenario": "shell-ends-mid-turn", "t": 15.36, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 10", "description": "Sleep for 10 seconds"}, "tool_response": {"stdout": "", "stderr": "", "interrupted": false, "isImage": false, "noOutputExpected": false}}}
{"scenario": "shell-ends-mid-turn", "t": 15.418, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>bwaw14qyq</task-id>\n<tool-use-id>toolu_018Xetg6XUdPVK3DifKgjsKy</tool-use-id>\n<output-file>/tmp/tasks/output</output-file>\n<status>completed</status>\n<summary>Background command \"Sleep for 2 seconds in background\" completed (exit code 0)</summary>\n</task-notification>"}}
{"scenario": "shell-ends-mid-turn", "t": 24.609, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "shell-ends-mid-turn", "t": 26.699, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "afb87e3f017b4d2e0", "agent_type": "", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "shell-task-stopped", "t": 0.0, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SessionStart", "source": "startup"}}
{"scenario": "shell-task-stopped", "t": 0.279, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "Step 1: call the Bash tool with run_in_background true and the command `sleep 60`. Step 2: run the Bash command `sleep 4` in the foreground. Step 3: stop that background shell with the TaskStop tool passing the shell's task id (load TaskStop via ToolSearch first if needed; otherwise KillShell). Step 4: end your turn saying 'stopped'. Whenever you are later notified of anything, reply with exactly NOTED and use no tools."}}
{"scenario": "shell-task-stopped", "t": 2.787, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 60", "description": "Sleep for 60 seconds in background", "run_in_background": true}}}
{"scenario": "shell-task-stopped", "t": 2.977, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 60", "description": "Sleep for 60 seconds in background", "run_in_background": true}, "tool_response": {"stdout": "", "stderr": "", "interrupted": false, "isImage": false, "noOutputExpected": false, "backgroundTaskId": "bldvwpquq"}}}
{"scenario": "shell-task-stopped", "t": 3.012, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "ToolSearch", "tool_input": {"query": "select:TaskStop", "max_results": 5}}}
{"scenario": "shell-task-stopped", "t": 3.067, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "ToolSearch", "tool_input": {"query": "select:TaskStop", "max_results": 5}, "tool_response": {"matches": ["TaskStop"], "query": "select:TaskStop", "total_deferred_tools": 51}}}
{"scenario": "shell-task-stopped", "t": 5.262, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 4", "description": "Sleep for 4 seconds"}}}
{"scenario": "shell-task-stopped", "t": 9.349, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Bash", "tool_input": {"command": "sleep 4", "description": "Sleep for 4 seconds"}, "tool_response": {"stdout": "", "stderr": "", "interrupted": false, "isImage": false, "noOutputExpected": false}}}
{"scenario": "shell-task-stopped", "t": 11.296, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "TaskStop", "tool_input": {"task_id": "bldvwpquq"}}}
{"scenario": "shell-task-stopped", "t": 11.352, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "TaskStop", "tool_input": {"task_id": "bldvwpquq"}, "tool_response": {"message": "Successfully stopped task: bldvwpquq (sleep 60)", "task_id": "bldvwpquq", "task_type": "local_bash", "command": "sleep 60"}}}
{"scenario": "shell-task-stopped", "t": 12.42, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "shell-task-stopped", "t": 16.549, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "af7453ab372dbce81", "agent_type": "", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "shell-task-stopped", "t": 72.463, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Notification", "notification_type": "idle_prompt"}}
{"scenario": "monitor-events", "t": 0.0, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SessionStart", "source": "startup"}}
{"scenario": "monitor-events", "t": 0.177, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "Use the Monitor tool (load it via ToolSearch first if needed) to start a background monitor running this command: for i in 1 2 3; do echo tick $i; sleep 4; done   Then end your turn right away saying 'waiting'. Whenever you are later notified of anything, reply with exactly NOTED and use no tools."}}
{"scenario": "monitor-events", "t": 2.605, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "ToolSearch", "tool_input": {"query": "select:Monitor", "max_results": 5}}}
{"scenario": "monitor-events", "t": 2.637, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "ToolSearch", "tool_input": {"query": "select:Monitor", "max_results": 5}, "tool_response": {"matches": ["Monitor"], "query": "select:Monitor", "total_deferred_tools": 93}}}
{"scenario": "monitor-events", "t": 5.229, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PreToolUse", "tool_name": "Monitor", "tool_input": {"description": "tick counter (3 ticks, 4s apart)", "timeout_ms": 300000, "command": "for i in 1 2 3; do echo tick $i; sleep 4; done"}}}
{"scenario": "monitor-events", "t": 5.358, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "PostToolUse", "tool_name": "Monitor", "tool_input": {"description": "tick counter (3 ticks, 4s apart)", "timeout_ms": 300000, "command": "for i in 1 2 3; do echo tick $i; sleep 4; done"}, "tool_response": {"taskId": "bgpq100i8", "timeoutMs": 300000, "persistent": false}}}
{"scenario": "monitor-events", "t": 6.882, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [{"id": "bgpq100i8", "type": "shell", "status": "running", "description": "tick counter (3 ticks, 4s apart)", "command": "for i in 1 2 3; do echo tick $i; sleep 4; done"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "monitor-events", "t": 6.925, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>bgpq100i8</task-id>\n<summary>Monitor event: \"tick counter (3 ticks, 4s apart)\"</summary>\n<event>tick 1</event>\n</task-notification>"}}
{"scenario": "monitor-events", "t": 8.419, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [{"id": "bgpq100i8", "type": "shell", "status": "running", "description": "tick counter (3 ticks, 4s apart)", "command": "for i in 1 2 3; do echo tick $i; sleep 4; done"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "monitor-events", "t": 9.585, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>bgpq100i8</task-id>\n<summary>Monitor event: \"tick counter (3 ticks, 4s apart)\"</summary>\n<event>tick 2</event>\n</task-notification>"}}
{"scenario": "monitor-events", "t": 11.085, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [{"id": "bgpq100i8", "type": "shell", "status": "running", "description": "tick counter (3 ticks, 4s apart)", "command": "for i in 1 2 3; do echo tick $i; sleep 4; done"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "monitor-events", "t": 11.514, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a67782e85a715898c", "agent_type": "", "background_tasks": [{"id": "bgpq100i8", "type": "shell", "status": "running", "description": "tick counter (3 ticks, 4s apart)", "command": "for i in 1 2 3; do echo tick $i; sleep 4; done"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "monitor-events", "t": 12.09, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "ab6abd1c51e1ae44e", "agent_type": "", "background_tasks": [{"id": "bgpq100i8", "type": "shell", "status": "running", "description": "tick counter (3 ticks, 4s apart)", "command": "for i in 1 2 3; do echo tick $i; sleep 4; done"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "monitor-events", "t": 13.601, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>bgpq100i8</task-id>\n<summary>Monitor event: \"tick counter (3 ticks, 4s apart)\"</summary>\n<event>tick 3</event>\n</task-notification>"}}
{"scenario": "monitor-events", "t": 15.093, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [{"id": "bgpq100i8", "type": "shell", "status": "running", "description": "tick counter (3 ticks, 4s apart)", "command": "for i in 1 2 3; do echo tick $i; sleep 4; done"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "monitor-events", "t": 15.591, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "aa831d7c74c49bdf6", "agent_type": "", "background_tasks": [{"id": "bgpq100i8", "type": "shell", "status": "running", "description": "tick counter (3 ticks, 4s apart)", "command": "for i in 1 2 3; do echo tick $i; sleep 4; done"}], "session_crons": [], "stop_hook_active": false}}
{"scenario": "monitor-events", "t": 17.404, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "UserPromptSubmit", "prompt": "<task-notification>\n<task-id>bgpq100i8</task-id>\n<tool-use-id>toolu_01HgGuzk7GejduijUyRrLgbt</tool-use-id>\n<output-file>/tmp/tasks/output</output-file>\n<status>completed</status>\n<summary>Monitor \"tick counter (3 ticks, 4s apart)\" stream ended</summary>\n</task-notification>"}}
{"scenario": "monitor-events", "t": 18.753, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Stop", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "monitor-events", "t": 19.85, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "ab4cee1a0c4b6501c", "agent_type": "", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "monitor-events", "t": 22.291, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "SubagentStop", "agent_id": "a86c8e418e39ccbe7", "agent_type": "", "background_tasks": [], "session_crons": [], "stop_hook_active": false}}
{"scenario": "monitor-events", "t": 78.784, "kind": "hook", "payload": {"session_id": "00000000-0000-4000-8000-000000000000", "hook_event_name": "Notification", "notification_type": "idle_prompt"}}