Skip to content

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

docs(architecture): clarify that integrations agent is not reachable from chat

Steven Enamakelb1da24947e82
diff --git a/crates/openhuman-core/src/agent/orchestration/README.md b/crates/openhuman-core/src/agent/orchestration/README.md
index a22a39256d..0bebe469fe 100644
--- a/crates/openhuman-core/src/agent/orchestration/README.md
+++ b/crates/openhuman-core/src/agent/orchestration/README.md
@@ -124,9 +124,11 @@ name:
- Control: `steer_subagent`, `continue_subagent`, `close_subagent`,
`wait_subagent`, `wait`, `wait_loop`, `list_subagents`.
- Delegation: `DelegateGraphTool` (`delegate_graph.rs`),
- `ArchetypeDelegationTool` and `SkillDelegationTool` (names set per
- instance, e.g. `delegate_to_integrations_agent`), `CollapsedDelegationTool`
- (`delegate_to`), and `agent_prepare_context`.
+ `ArchetypeDelegationTool` (name set per instance, e.g. `research`),
+ `CollapsedDelegationTool` (`delegate_to`), and `agent_prepare_context`.
+ There is no integrations delegate: connected Composio actions are
+ `Deferred` tools on the orchestrator's own belt, found through
+ `tool_search` and called directly (`tools/orchestrator_tools.rs`).
`dispatch.rs` (`dispatch_subagent`, the shared spawn path every tool above
calls), `awaiting_user.rs` (the awaiting-user envelope), and
diff --git a/crates/openhuman-core/src/agent/registry/README.md b/crates/openhuman-core/src/agent/registry/README.md
index abf028cd35..9825ca74cb 100644
--- a/crates/openhuman-core/src/agent/registry/README.md
+++ b/crates/openhuman-core/src/agent/registry/README.md
@@ -97,7 +97,7 @@ The 29 archetypes in this directory:
| `goals_agent` | Background: keeps `MEMORY_GOALS.md` fresh from session context |
| `help` | Answers "how does OpenHuman work" questions from the bundled GitBook docs |
| `image_agent` | Image generation/edit specialist |
-| `integrations_agent` | Drives a single Composio toolkit (gmail, notion, github, …) per spawn |
+| `integrations_agent` | Drives a single Composio toolkit (gmail, notion, github, …) per spawn; no chat agent delegates to it — the orchestrator searches for and calls connected actions itself |
| `mcp_agent` (feature `mcp`) | Calls tools on an already-connected MCP server |
| `morning_briefing` | Proactive scheduled daily summary (tasks, calendar, email, skills) |
| `orchestrator` | Default user-facing `chat`-tier agent; direct-first, delegates only when it materially helps |
diff --git a/crates/openhuman-core/src/tools/README.md b/crates/openhuman-core/src/tools/README.md
index 90d77361bc..0235898f9d 100644
--- a/crates/openhuman-core/src/tools/README.md
+++ b/crates/openhuman-core/src/tools/README.md
@@ -27,7 +27,7 @@ The agent tool layer. Defines the core [`Tool`] trait every agent-callable capab
| `crates/openhuman-core/src/tools/schemas.rs` (thin shell over the `schemas/` submodule: `apify.rs`, `composio.rs`, `registry.rs`, `web_search.rs`) | JSON-RPC `tools` namespace controllers + `handle_*` fns. `all_controller_schemas` / `all_registered_controllers` (re-exported as `all_tools_*`). |
| `crates/openhuman-core/src/tools/policy.rs` | `ToolPolicy` trait + `PolicyDecision` (`Allow`/`Deny`) + allow-all `DefaultToolPolicy`. Evaluated on the agent hot path before each `execute()`. |
| `crates/openhuman-core/src/tools/schema.rs` | Re-exports `SchemaCleanr`, `CleaningStrategy` and `GEMINI_UNSUPPORTED_KEYWORDS` from `tinyagents_harness::tool` (local `$ref` resolution, provider-rejected keyword stripping, literal-union flattening). The only in-crate caller is `generated.rs`, which runs `SchemaCleanr::validate` on generated tool schemas at admission. |
-| `crates/openhuman-core/src/tools/orchestrator_tools.rs` | Synthesizes named per-subagent tools from the orchestrator's `subagents = [...]` definition; collapses skill wildcards into `delegate_to_integrations_agent`. |
+| `crates/openhuman-core/src/tools/orchestrator_tools.rs` | Synthesizes named per-subagent tools from the orchestrator's `subagents = [...]` definition; expands the skills wildcard into one `Deferred` `ComposioActionTool` per connected action (reached through `tool_search`, no delegate). |
| `crates/openhuman-core/src/tools/generated.rs` | `GeneratedToolDefinition` + wrapper for runtime/profile-supplied generated capability tools (provider/capability/risk metadata for policy). |
| `crates/openhuman-core/src/tools/user_filter.rs` | `filter_tools_by_user_preference` + UI-toggle-ID → Rust-tool-name map. Unmapped tools are always retained. |
| [`crates/openhuman-core/src/tools/status/`](status/mod.rs) | Tool-call lifecycle state (`ToolLifecycleState`) and human-readable failure classification (`ToolFailureClass`, `classify`). Pure data/logic; no persistence, no RPC. |
diff --git a/docs/prompt-evals.md b/docs/prompt-evals.md
index 99db0148cd..7b99452671 100644
--- a/docs/prompt-evals.md
+++ b/docs/prompt-evals.md
@@ -26,8 +26,9 @@ A green tier 1 is therefore not evidence of comprehension. Only tier 2 is.
The six cases cover the agents where mis-routing has cost something:
`workflow_builder` (must reach `propose_workflow`, never three consecutive
-catalog searches), `orchestrator` (hands integration work off, never holds the
-raw Composio or cron tools), `integrations_agent`, `scheduler_agent`, and the
+catalog searches), `orchestrator` (searches for and calls integration actions
+itself, never holds the raw Composio or cron tools), `integrations_agent`,
+`scheduler_agent`, and the
two zero-belt agents `summarizer` and `trigger_triage` (advertise nothing).
Fleet-wide static coverage of all agents lives in the prompt tests under
`crates/openhuman-core/src/agent/registry/agents/`, not here.
diff --git a/gitbooks/developing/architecture/agent-harness.md b/gitbooks/developing/architecture/agent-harness.md
index 1bf597cb6f..96f320e364 100644
--- a/gitbooks/developing/architecture/agent-harness.md
+++ b/gitbooks/developing/architecture/agent-harness.md
@@ -344,7 +344,7 @@ Each archetype lives under `agents/<name>/` with an `agent.toml` (metadata, tool
| `archivist` | Memory distillation - what to persist, what to forget. |
| `tool_maker` | Self-healing - writes polyfills for missing shell commands. |
| `tools_agent` | Generic specialist for arbitrary tool-bound tasks. |
-| `integrations_agent` | Bound to a specific Composio toolkit (Gmail, GitHub, Slack…) for that toolkit's actions. |
+| `integrations_agent` | Bound to a specific Composio toolkit (Gmail, GitHub, Slack…) for that toolkit's actions. Not reachable from chat: the orchestrator finds a connected action through `tool_search` and calls it directly. |
| `trigger_triage` | Classifies incoming external events into drop / notify / spawn-reactor / spawn-agent. |
| `trigger_reactor` | Lightweight reaction to a triaged trigger that doesn't need a full orchestrator turn. |
| `morning_briefing` | Curated daily digest run by cron. |
@@ -399,7 +399,7 @@ Each `AgentDefinition` carries an `agent_tier` field (`chat` / `reasoning` / `wo
| `reasoning` | `worker` | another `reasoning`, any `chat` | `planner` (today the canonical one) |
| `worker` | nothing[^1] | anything | researcher, code_executor, critic, archivist, tool_maker, integrations_agent, … |
-[^1]: Skill-wildcard entries (`{ skills = "*" }`) are exempt because they collapse to a single `delegate_to_integrations_agent` tool whose target is a worker; they're a fan-out delegation surface, not a recursive spawn.
+[^1]: Skill-wildcard entries (`{ skills = "*" }`) are exempt because they name no agent: they expand to the connected Composio actions as `Deferred` tools the agent reaches through `tool_search`, not to a spawn.
**Why the rules.**