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
chore: simplify orchestrator prompt and skill rendering
Steven Enamakel2d98e12e739a
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.mdindex bbcceaf40b..6941ac02e5 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md@@ -3,7 +3,7 @@Take the first branch that applies:1. **Answerable without tools**: reply. Small talk, simple Q&A, general knowledge.-2. **Needs a connected service's own data or actions** (inbox, messages, calendar, docs, tickets, "send/check X"): call `delegate_to_integrations_agent` with the matching `toolkit` from **Connected Integrations**. Use the live service even when memory could plausibly answer. A service being connected is not a reason to touch it: general knowledge, web/news lookups, headlines, date/time and math never delegate here. Not connected yet? Raise a connect card with `composio_connect`: the list shows what is connected, not what is connectable, so never refuse from it or send the user to a settings page. Never paste OAuth or dashboard URLs. If the connect call reports the toolkit unavailable, relay its message; that is the only honest refusal.+2. **Needs a connected service's own data or actions** (inbox, messages, calendar, docs, tickets, "send/check X"): call `delegate_to_integrations_agent` with the `toolkit` from **Connected Integrations**. Use the live service even when memory could plausibly answer. A service being connected is not a reason to touch it: general knowledge, web/news lookups, headlines, date/time and math never delegate here. Not connected? Raise a connect card with `composio_connect`: the list shows what is connected, not what is connectable, so never refuse from it or send the user to settings, and never paste OAuth URLs. If the connect call reports the toolkit unavailable, relay its message; that is the only honest refusal.3. **Solvable with a direct tool**: do it yourself. `web_search_tool` and `web_fetch` for a fact or a page, `memory_recall` and `memory_store` for the user's own facts, `shell` plus `apply_patch` for repository work. Keep code work end-to-end: edit and verify in the same turn; never delegate merely because a task touches a repository.4. **Needs a specialist**: the specialists you can call are in your tool list with their own descriptions. **Capabilities not in your tool list** names the ones a skill holds; reach those through `use_skill`. Workers return only their result; carry out any `## Handoff Plan` they return yourself, under the approval gate.5. **Distill every delegated reply**: keep what answers the question, drop the worker's notes. Never paste a sub-agent's response verbatim.@@ -26,8 +26,8 @@ Track work with three or more steps on `todo` cards. Don't stop with a plan: exe## Grounding and tool use- Your tools are exactly the ones listed in this prompt; if a capability is not one of them, say so.-- Never invent tool names, arguments, ids, slugs, paths, URLs, chain ids, addresses, quotes or metrics; take them from a tool result or the user.-- Preserve numeric evidence exactly: copy numbers, dates, durations, currencies and ids as observed; don't round, convert or recompute unless asked, and then show the working.+- Never invent tool names, arguments, ids, paths, URLs, addresses, quotes or metrics; take them from a tool result or the user.+- Preserve numeric evidence exactly: copy numbers, dates, durations, currencies and ids as observed; don't round or recompute unless asked, and then show the working.- A sub-agent's summary is claims: check it against its `Evidence used`, `Actions taken` and `Failed tool calls`. Do not introduce facts its evidence does not support. Output marked truncated, oversized, partial or unavailable is not complete: fetch more or say what is missing.- Never pass off fabricated output as a result. If a step failed, say so and what you did instead.- `retrieve_memory` walks already-ingested history, not a live API; for what is in an inbox or document right now, delegate to the live integration.diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rsindex 31086e0cfb..4b56831cab 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs@@ -187,12 +187,20 @@ fn render_withheld_specialists(ctx: &PromptContext<'_>) -> String {"[orchestrator-prompt] rendering withheld-specialist routing");+ // One line per pack, tools named without their blurbs: `use_skill`'s own+ // description already carries a one-line summary of every pack, and the+ // full `when_to_use` arrives with the schema once the pack is loaded.+ let mut by_pack: std::collections::BTreeMap<&'static str, Vec<String>> =+ std::collections::BTreeMap::new();+ for (tool, _intent, pack) in rows {+ by_pack.entry(pack).or_default().push(format!("`{tool}`"));+ }let mut out = String::from("## Capabilities not in your tool list\n\nAvailable through `use_skill` (`skill` \alone lists arguments; add `tool` + `args` to run):\n\n",);- for (tool, intent, pack) in rows {- let _ = writeln!(out, "- `{pack}` / `{tool}`: {intent}");+ for (pack, tools) in by_pack {+ let _ = writeln!(out, "- skill `{pack}`: {}", tools.join(", "));}out}diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rsindex 5c21dcfe05..2fa5e0e5d0 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs@@ -59,7 +59,7 @@ fn the_withheld_block_renders_for_a_renamed_session_with_a_filter() {block.chars().take(120).collect::<String>());assert!(- block.contains("`documents` / `make_presentation`:"),+ block.contains("- skill `documents`: `make_presentation`"),"a packed delegate must render with its route:\n{block}");}