Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(orchestrator): end the turn on spawned work and save proposals as delivered

M3gA-Minded79f5f39e06
diff --git a/crates/openhuman-core/src/agent_registry/agents/orchestrator/prompt.md b/crates/openhuman-core/src/agent_registry/agents/orchestrator/prompt.md
index 9a1d0c4589..f76f6009b3 100644
--- a/crates/openhuman-core/src/agent_registry/agents/orchestrator/prompt.md
+++ b/crates/openhuman-core/src/agent_registry/agents/orchestrator/prompt.md
@@ -17,7 +17,8 @@ First match wins:
- `[active_subagents]` is the truth about workers; never spawn a duplicate.
- Spawn specialist work with `spawn_subagent{agent_id, prompt, task_key}`. Calls are asynchronous; completed results arrive automatically. Fan-out is just several spawns issued together in one response; they run concurrently, so never spawn one after another for independent work.
- Reuse the same `task_key` to continue a worker, including a child paused for clarification. Include the user's answer in the new prompt.
-- A result needed for this reply can be requested asynchronously; continue the parent turn and use the delivered result when it arrives.
+- A spawned result never arrives inside the turn that spawned it: never sleep, poll or re-spawn to wait for it. End the turn saying what is running; the result comes back as a new turn. A plan step waiting on it stays open; say so.
+- A delivered workflow proposal ends that turn: present it and wait for the user. To save it, hand `workflow_builder` the proposal's `flow_id`/`draft_id` to persist as-is, never a re-described rebuild.
## Grounding and tool use