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
feat(orchestrator): add prompt markdown file and update Rust module
Steven Enamakelbbc0e702c2f8
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.mdindex 1420acba5e..22285fb9a1 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md@@ -4,7 +4,8 @@ First match wins:- Chat or general knowledge: answer.- Missing capability: `tool_search` in plain words before declining (desktop control: then one bounded `desktop_goal`); nothing found: say so.-- The user's own data or actions on a connected service: `tool_search` the action and call it yourself, now, even if memory might answer. Public facts, news, time and math never go to a service. Not connected: `composio_connect`; never refuse from the list or paste OAuth URLs; relay an "unavailable" reply.+- The user's own data or actions on a connected service: `tool_search` the action and call it yourself, now, even if memory might answer. Public facts, news, time and math never go to a service.+- Service not connected: `composio_connect`; never refuse from the list or paste OAuth URLs; relay an "unavailable" reply.<!--route:composio-->- Web: `web_answer_tool` (`depth: "deep"` for research), `web_search_tool`, `web_fetch`; `provider` unset unless named. Live asks get a tool call now.- Code, settings, crypto, OpenHuman help: `use_skill` `coding`/`system`/`web3`/`docs` first; edit and verify in the same turn.- MCP: server tools come from `tool_search`; never guess their arguments.<!--route:mcp-->diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rsindex 0af8b1a660..712b36fe21 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs@@ -55,6 +55,16 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {.iter().any(|tool| tool.name.as_ref() == "mcp_registry_tool_call"));+ // `composio_connect` exists only while Composio is on (the registry builds no+ // Composio tools under `composio.mode = "disabled"`), so its routing row must+ // vanish with it. Same sentinel rule as MCP: an empty visible set is unfiltered.+ let composio_available = ctx.visible_tool_names.is_empty()+ || ctx.visible_tool_names.contains("composio_connect")+ || ctx+ .tools+ .iter()+ .any(|tool| tool.name.as_ref() == "composio_connect");+// ── Stable tier: identical across sessions for a given build ─────────//// Identity leads the prompt (#5701): SOUL.md is the product persona every@@ -69,6 +79,7 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {ARCHETYPE,skill_run.is_some() || skill_install.is_some(),mcp_available,+ composio_available,),);// A native-tool-calling provider carries the schemas in the request, and@@ -301,15 +312,16 @@ fn belt_lists(ctx: &PromptContext<'_>, tool: &str) -> bool {/// `prompt.md` with the route-tagged rows this build cannot honour removed.///-/// A row tagged `<!--route:skills-->` or `<!--route:mcp-->` names a hand-off+/// A row tagged `<!--route:skills-->`, `<!--route:mcp-->` or `<!--route:composio-->` names a hand-off/// that exists only while that family is compiled in: with `skills` off the/// loader drops `skill_setup` from the builtins, so no/// delegate is synthesised and the static row would order the model to call a/// tool nobody has — the very failure this issue is about (#6302). The tag is/// stripped from every row that stays, so it never reaches the model.-fn strip_route_lines(archetype: &str, skills: bool, mcp: bool) -> String {+fn strip_route_lines(archetype: &str, skills: bool, mcp: bool, composio: bool) -> String {const SKILLS_TAG: &str = "<!--route:skills-->";const MCP_TAG: &str = "<!--route:mcp-->";+ const COMPOSIO_TAG: &str = "<!--route:composio-->";archetype.lines().filter(|line| {@@ -317,11 +329,17 @@ fn strip_route_lines(archetype: &str, skills: bool, mcp: bool) -> String {skills} else if line.contains(MCP_TAG) {mcp+ } else if line.contains(COMPOSIO_TAG) {+ composio} else {true}})- .map(|line| line.replace(SKILLS_TAG, "").replace(MCP_TAG, ""))+ .map(|line| {+ line.replace(SKILLS_TAG, "")+ .replace(MCP_TAG, "")+ .replace(COMPOSIO_TAG, "")+ }).collect::<Vec<_>>().join("\n")}