From d84a68e9e178b8c48dee2f42c0c1fa384b88cf9e Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Thu, 16 Apr 2026 20:33:27 +0200 Subject: [PATCH] prompts: recommend 300s timeout for subagent_spawn execute_code steps --- prompts/08_subagents.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prompts/08_subagents.md b/prompts/08_subagents.md index e1ecbbd..6fe8b37 100644 --- a/prompts/08_subagents.md +++ b/prompts/08_subagents.md @@ -46,11 +46,13 @@ execute_code: steps=[ {code: "subagent_spawn 'Summarize core/pkg/agent/loop.go'"}, {code: "subagent_spawn 'Summarize core/pkg/backend/anthropic.go'"}, {code: "subagent_spawn 'Summarize 9p/internal/p9/server.go'"} -] +], timeout=300 ``` Three concurrent subagents, three different prompts. Results appear under `=== step N ===` headers from `execute_code`. +Set `timeout` to at least 300 seconds when subagents are doing non-trivial work — the default 30 seconds is not enough. + ## Design rules **Same agent across parallel subagents.** Different agents produce different output schemas; concatenating them is incoherent.