Skip to content

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

fix(agent): correct orchestrator prompt to include missing instruction

Steven Enamakel1c00b3efb6fe
diff --git a/src/openhuman/agent/registry/agents/orchestrator/prompt.rs b/src/openhuman/agent/registry/agents/orchestrator/prompt.rs
index e13c077fb5..91e8a72af6 100644
--- a/src/openhuman/agent/registry/agents/orchestrator/prompt.rs
+++ b/src/openhuman/agent/registry/agents/orchestrator/prompt.rs
@@ -24,6 +24,22 @@ const ARCHETYPE: &str = include_str!("prompt.md");
pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
let mut out = String::with_capacity(8192);
+
+ // Identity leads the prompt (#5701): SOUL.md is the product persona every
+ // opted-in agent shares, ROLE.md is this agent's own role brief. Both are
+ // workspace files, so tuning either is an edit rather than a rebuild.
+ //
+ // Rendered here rather than via `IdentitySection` because the orchestrator
+ // is a `PromptSource::Dynamic` agent: `SystemPromptBuilder::from_dynamic`
+ // installs only this builder and never consults `omit_identity`, so the
+ // section chain that would otherwise inject these files does not run for
+ // us. Same reason `render_user_files` is called by hand just below.
+ let identity = render_identity(ctx)?;
+ if !identity.trim().is_empty() {
+ out.push_str(identity.trim_end());
+ out.push_str("\n\n");
+ }
+
out.push_str(ARCHETYPE.trim_end());
out.push_str("\n\n");