The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(orchestration): simplify subagent roster guidance
Steven Enamakele92e599086db
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/roster.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/roster.rsindex 6d3ad37e94..854ae6d4db 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/roster.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/roster.rs@@ -4,7 +4,6 @@use tinyagents_orchestration::subagent::{snapshot_for_owner, SubagentSnapshot};use super::registry::{admit_workspace, owner_key, registry};-use crate::agent::orchestration::fleet_tools::FleetToolSet;/// Snapshot the sub-agents registered under `parent_session`, with each status/// read live from its watch channel (ordered by `agent_id` then `task_id`).@@ -23,38 +22,9 @@ pub(crate) fn snapshot_for_parent(})}-/// The follow-up guidance sentence, built from the tools the parent can see.-fn roster_guidance(fleet: &FleetToolSet) -> String {- let mut parts: Vec<String> = Vec::new();- if fleet.has("wait_subagent") {- parts.push("use wait_subagent to collect a `completed` one".into());- } else {- parts.push(- "a `running` or `completed` worker's result is delivered to you automatically on a \- later turn — do not wait or poll for it"- .into(),- );- }- if fleet.has("steer_subagent") {- parts.push("steer_subagent to redirect a `running` one".into());- }- if fleet.has("continue_subagent") {- parts.push(- "continue_subagent to answer an `awaiting_user` one or to RESUME an `idle` one with \- a follow-up (it keeps its full prior context — do NOT re-delegate the same task \- from scratch)"- .into(),- );- }- if fleet.has("close_subagent") {- parts.push("close_subagent when done".into());- }- if fleet.has("list_subagents") {- parts.push("list_subagents to re-enumerate".into());- }- let mut sentence = parts.join(", ");- sentence.push('.');- sentence+/// The single supported follow-up path for a durable sub-agent task.+fn roster_guidance() -> &'static str {+ "reuse its task_key with spawn_subagent to continue or answer a clarification; completed results are delivered automatically."}/// Most-recent durable sessions surfaced in the roster when they are not in@@ -77,15 +47,10 @@ const DURABLE_ROSTER_CAP: usize = 12;/// would re-delegate from scratch instead of resuming by/// `subagent_session_id` (the "fresh context from day 0" bug).///-/// `fleet` is the parent's fleet-control vocabulary: the guidance sentence-/// only names tools the parent can call (the orchestrator has no-/// `wait_subagent` / `steer_subagent` / `close_subagent` since #5701, and-/// telling it otherwise cost an iteration of confused reasoning per turn).pub(crate) fn active_subagents_context_block(ctx: &crate::core::runtime::DispatchCtx,parent_session: &str,workspace_dir: &std::path::Path,- fleet: &FleetToolSet,) -> Option<String> {admit_workspace(ctx, workspace_dir).ok()?;let workers = snapshot_for_parent(ctx, parent_session);@@ -130,7 +95,7 @@ pub(crate) fn active_subagents_context_block(subagent_session_id. {} Never fabricate a result for a worker still running \or one that has failed.\n",workers.len() + durable.len(),- roster_guidance(fleet)+ roster_guidance());for w in &workers {let session = w.subagent_session_id.as_deref().unwrap_or("(none)");