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
Merge upstream/main into remove-integrations-delegate
Steven Enamakelaae205d7ce0d
diff --cc crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.mdindex 0edf3693ef,b3d4a41fe2..eb04d3def9--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md@@@ -3,8 -3,8 +3,8 @@@Take the first branch that applies:1. **Answerable without tools**: reply. Small talk, simple Q&A, general knowledge.-1b. **Needs a capability you do not see listed**: call `tool_search` with the intent in plain words before delegating or declining. Your list is a core set; one clear action on a connected service (send this message, create that issue) is a search-then-call, not a delegation.-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, math, and anything public on the web (a public repository, a product page, docs) never delegate here; those are `web_fetch` / `web_search_tool` / `research` work. Delegate to 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.+1b. **Needs a capability you do not see listed**: `tool_search` with the intent in plain words before delegating or declining. Your list is a core set; if nothing comes back, say so.- 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 happens: emit the call itself in that message. 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 go to a service. Not connected? Raise a connect card with `composio_connect`: **Connected Integrations** 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.++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, so an announced search never happens: emit the call itself in that message. 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; those are `web_fetch` / `web_search_tool` / `research` work. 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`: **Connected Integrations** 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.diff --cc crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rsindex dd4f98b5d5,9859eeea87..c1a217683a--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs@@@ -353,13 -343,13 +353,13 @@@ fn build_emits_connected_integrations_afn build_scope_gates_integrations_delegation() {// Regression: a connected service (e.g. Gmail) is not, by itself, a// reason to operate on it — a general-knowledge / web / date ask that- // names no service must NOT spawn `delegate_to_integrations_agent`.+ // names no service must NOT reach for a service action.// Guards both the static Step-2 scope gate and the rendered- // delegation-guide clause.+ // connected-integrations clause.let no_integrations = build(&ctx_with(&[])).unwrap();assert!(- no_integrations.contains("general knowledge, web/news lookups, headlines, date/time and math never go to a service"),- no_integrations.contains("general knowledge, web/news lookups, headlines, date/time, math, and anything public on the web (a public repository, a product page, docs) never delegate here"),- "Step-2 scope gate must keep general/web/date asks off integrations delegation"++ no_integrations.contains("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"),+ "Step-2 scope gate must keep general/web/date asks off integration actions");assert!(no_integrations.contains("A service being connected is not a reason to touch it"),@@@ -533,7 -554,13 +533,15 @@@ fn build_includes_evidence_aware_syntheassert!(body.contains("truncated, oversized, partial or unavailable"));assert!(body.contains("Preserve numeric evidence exactly"));assert!(body.contains("plus whatever `tool_search` returns"));- assert!(body.contains("call `tool_search` with the intent in plain words"));+ assert!(body.contains("`tool_search` with the intent in plain words"));+ // Under the native dialect no tool is "listed in this prompt"; a model told+ // that its tools are the listed ones concluded it had no web search while+ // `web_search_tool` sat in its tool list (thread-7e52b, 2026-09-22).+ assert!(!body.contains("listed in this prompt"), "{body}");+ assert!(body.contains("`web_search_tool` and `web_fetch` are usually in it"));- assert!(body.contains("anything public on the web (a public repository, a product page, docs) never delegate here"));++ assert!(body.contains(++ "anything public on the web (a public repository, a product page, docs) never go to a service"++ ));}#[test]diff --cc vendor/tinyagentsindex 914f8202c4,3c9ba00cea..28760a45c2--- a/vendor/tinyagents+++ b/vendor/tinyagents@@@ -1,1 -1,1 +1,1 @@@- Subproject commit 914f8202c4f6c82ed0519a412a5fcb78c9dba318-Subproject commit 3c9ba00cea1581352977f8c5b7167c1747fa7c8d++Subproject commit 28760a45c22f1e449d837f68d3b5115eeb15eae7