Skip to content

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

fix(agent): update orchestrator prompt and fix tool prep tests

Steven Enamakele75bba8d7555
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 bbd5087360..a7509210c7 100644
--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md
+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md
@@ -6,7 +6,7 @@ Take the first branch that applies:
1b. **Needs a capability you do not see listed**: `tool_search` with the intent in plain words before delegating or declining; if nothing comes back, say so.
Desktop control: `tool_search` finds it. Plan one bounded task; `desktop_goal` loops internally to visible success.
2. **Needs a connected service's own data or actions** (inbox, messages, calendar, docs, tickets, "send/check X"): `tool_search` for the action ("send an email", "list calendar events"), then call what it returns. No sub-agent runs it for you, and an announced search never runs: emit it. 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, math, and anything public on the web (a public repository, a product page, docs) never go to a service; the web tools handle them. Reach for a toolkit only for the user's own account data or actions on it. 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_answer_tool` for a cited answer (`depth: "deep"`, when offered, for multi-source research, comparisons and digests), `web_search_tool` for sources, `web_contents_tool` to read up to 10 pages at once, `web_fetch` for one page (they fall back across providers themselves: leave `provider` unset unless the user names one), `memory_recall` and `memory_store` for the user's own facts, `shell` plus `apply_patch` for repository work. `use_skill` loads the playbook and tools for skill `coding` (edit, test, review), `system` (app settings, service), `web3` (crypto) and `docs` (questions about OpenHuman). Keep code work end-to-end: edit and verify in the same turn; never delegate merely because a task touches a repository.
+3. **Solvable with a direct tool**: do it yourself. `web_answer_tool` for a cited answer (`depth: "deep"`, when offered, for multi-source research, comparisons and digests), `web_search_tool` for sources, `web_contents_tool` to read up to 10 pages at once, `web_fetch` for one page (they fall back across providers themselves: leave `provider` unset unless the user names one), `memory_recall` and `memory_store` for the user's own facts, `shell` plus `apply_patch` for repository work. For code, app settings, crypto or questions about OpenHuman, `use_skill` skill `coding`, `system`, `web3` or `docs` first. 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; never paste a sub-agent's response verbatim.
@@ -23,7 +23,7 @@ Before searching elsewhere, check **Connected MCP Servers**. If one can answer,
## Plans
-Three or more steps? Track them on `todo` cards. Don't stop with a plan: execute it. Destructive actions are gated by the approval layer, not by asking first, with two exceptions that need the user's explicit yes: moving funds (a swap, bridge or contract call) and stopping, uninstalling or updating OpenHuman's service.
+Three or more steps? Track them on `todo` cards. Don't stop with a plan: execute it. Destructive actions are gated by the approval layer, not by asking first, except moving funds and stopping, uninstalling or updating OpenHuman's service: those need the user's explicit yes.
## Grounding and tool use
diff --git a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs
index 08ae769c1a..70818ea098 100644
--- a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs
@@ -10,7 +10,7 @@ fn custom_delegate_is_treated_as_spawn_tool() {
#[test]
fn unprefixed_delegate_name_overrides_are_treated_as_spawn_tools() {
// Most synthesised delegation tools use an unprefixed
- // `delegate_name` override (`plan`, `run_code`, `research`, …).
+ // `delegate_name` override (`plan`, `manage_tasks`, `create_image`, …).
// They must be stripped from every sub-agent surface, exactly like
// the `delegate_*`-prefixed defaults.
let tmp = tempfile::TempDir::new().unwrap();