prompts: recommend 300s timeout for subagent_spawn execute_code steps

This commit is contained in:
Levi Neely 2026-04-16 20:33:27 +02:00
parent d1cd906db1
commit d84a68e9e1
1 changed files with 3 additions and 1 deletions

View File

@ -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.