Skip to content

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

feat(agent): replace integrations_agent delegation with direct tool_search-and-call for composio act

Steven Enamakeldec4dc6f6c82
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml b/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml
index 990f2821aa..5726200424 100644
--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml
+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml
@@ -49,9 +49,11 @@ omit_memory_md = false
# as the tool name, and the target's `when_to_use` as the
# LLM-visible tool description.
#
-# * `{ skills = "*" }` → one `SkillDelegationTool` per connected
-# Composio toolkit, all routing to the generic `integrations_agent` with
-# the toolkit slug pre-filled as `skill_filter`.
+# * `{ skills = "*" }` → one `Deferred` action tool per action of every
+# connected Composio toolkit. Off the wire, found through `tool_search`,
+# called directly. This used to be a `delegate_to_integrations_agent`
+# spawn; one clear service action is now a search and a call, and the
+# wildcard admits no sub-agent id (`AgentDefinition::allowed_subagent_ids`).
#
# The orchestrator LLM sees these as first-class entries in its
# function-calling schema, so routing decisions happen at the tool-
@@ -206,14 +208,14 @@ hint = "coding"
# delegating.
#
# `composio_list_connections` lets the agent detect newly-authorised
-# integrations mid-session (the session-start fetch froze the Delegation
-# Guide's connected list). `composio_connect` lets it raise an inline
+# integrations mid-session (the session-start fetch froze the Connected
+# Integrations block). `composio_connect` lets it raise an inline
# connect card for ANY toolkit the user asks to connect — including ones
# not yet connected (#3993); the tool validates the slug against the
# backend allowlist and the OAuth handoff itself runs inside the card.
-# Toolkit *action* listing and execution still live downstream in
-# `integrations_agent` — the orchestrator never calls composio_list_tools
-# / composio_execute directly.
+# Toolkit *actions* are the per-action `Deferred` tools synthesised from
+# `{ skills = "*" }` below and reached through `tool_search` — the
+# orchestrator never calls composio_list_tools / composio_execute directly.
named = [
# Tool packs add this proxy to the visible set when they withhold member
# schemas. The hosted runtime also enforces this definition as its dispatch
diff --git a/crates/openhuman-core/src/agent/registry/agents/planner/prompt.md b/crates/openhuman-core/src/agent/registry/agents/planner/prompt.md
index 3b7d9e8c5a..145964ded8 100644
--- a/crates/openhuman-core/src/agent/registry/agents/planner/prompt.md
+++ b/crates/openhuman-core/src/agent/registry/agents/planner/prompt.md
@@ -33,14 +33,13 @@ Return **only** valid JSON matching this schema:
## Available Agent IDs
- `code_executor` — Writes and runs code. Use for implementation tasks.
-- `integrations_agent` — Executes skill tools (Notion, Gmail, etc.). Use for service interactions.
- `tool_maker` — Writes polyfill scripts. Rarely needed in planning.
- `researcher` — Reads docs, web searches. Use for information gathering.
- `critic` — Reviews code quality and security. Use after code changes.
## Rules
-0. **You are the reasoning tier.** The chat-tier Orchestrator handed off to you because the task needs sustained thinking. Compose plans for the **worker tier** — `code_executor`, `researcher`, `critic`, `integrations_agent`, `archivist`. **Never delegate to another reasoning agent** (no planner-spawns-planner, no planner-spawns-orchestrator); the loader rejects this at boot, and the planned runtime depth gate will reject it at spawn time. If a single worker can't cover a node, split the node — don't smuggle a second reasoning hop in.
+0. **You are the reasoning tier.** The chat-tier Orchestrator handed off to you because the task needs sustained thinking. Compose plans for the **worker tier** — `code_executor`, `researcher`, `critic`, `archivist`. Connected-service actions (Gmail, Notion, Slack, …) are the orchestrator's own `tool_search`-and-call step, not a worker. **Never delegate to another reasoning agent** (no planner-spawns-planner, no planner-spawns-orchestrator); the loader rejects this at boot, and the planned runtime depth gate will reject it at spawn time. If a single worker can't cover a node, split the node — don't smuggle a second reasoning hop in.
1. **Gather before planning** — Search memory and the web first. Don't guess what you can look up.
2. **Minimise tasks** — Use the fewest nodes needed. Don't over-decompose.
3. **Dependencies matter** — Use `depends_on` to express ordering. Independent tasks run in parallel.
diff --git a/crates/openhuman-core/src/agent/registry/agents/tools_agent/prompt.md b/crates/openhuman-core/src/agent/registry/agents/tools_agent/prompt.md
index e283562617..aa6509b5ba 100644
--- a/crates/openhuman-core/src/agent/registry/agents/tools_agent/prompt.md
+++ b/crates/openhuman-core/src/agent/registry/agents/tools_agent/prompt.md
@@ -4,7 +4,7 @@ You are the **Tools Agent**. You complete ad-hoc tasks using only OpenHuman's bu
## Scope
-- You do **NOT** have access to Composio / managed OAuth integrations. If a task requires acting on an external SaaS account (Gmail, Notion, GitHub, Slack, …), stop and report back — the orchestrator will spawn `integrations_agent` with the correct toolkit.
+- You do **NOT** have access to Composio / managed OAuth integrations. If a task requires acting on an external SaaS account (Gmail, Notion, GitHub, Slack, …), stop and report back — the orchestrator searches for and calls the connected service's action itself.
- You **DO** handle: running commands, reading and writing files in the workspace, scraping the web, searching the user's memory, querying structured data, chaining simple transformations.
## Operating rules
diff --git a/crates/openhuman-core/src/agent/session_host/builder/factory.rs b/crates/openhuman-core/src/agent/session_host/builder/factory.rs
index f643255b3c..1b14220b44 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/factory.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/factory.rs
@@ -596,7 +596,7 @@ impl OpenHumanSessionHost {
// This builder is synchronous and sits on the CLI / REPL /
// Tauri-web code path. It still opportunistically reuses the
// process-wide Composio cache when one is already warm, which
- // lets the session start with the right `delegate_<toolkit>`
+ // lets the session start with the right integration action
// surface and prompt block without paying a turn-1 fetch. On a
// cold cache we still fall back to the empty slice and let the
// first turn repair the session state if needed.