Skip to content

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

fix(agent): give the orchestrator a reachable Composio catalogue lookup

M3gA-Mind20fd52145fe8
diff --git a/crates/openhuman-core/src/agent/registry/agents/integrations_agent/agent.toml b/crates/openhuman-core/src/agent/registry/agents/integrations_agent/agent.toml
index 67e4d0b1a1..13cdd0580c 100644
--- a/crates/openhuman-core/src/agent/registry/agents/integrations_agent/agent.toml
+++ b/crates/openhuman-core/src/agent/registry/agents/integrations_agent/agent.toml
@@ -20,6 +20,13 @@ hint = "burst"
# `workflow_phase` tools (removed with the `agent_workflows` domain) are gone.
named = [
"composio_list_tools",
+ # Declared explicitly because `composio_list_toolkits` is no longer a
+ # member of the `composio` pack (unpacked so the orchestrator can own the
+ # "what can I connect?" lookup — see the registry note). This agent OWNS
+ # that pack, so it previously reached the tool one `use_skill` away without
+ # naming it; unpacking closed that route. Naming it here keeps the
+ # capability exactly as it was rather than silently removing it.
+ "composio_list_toolkits",
"file_read",
"composio_execute",
"storage_upload_file",
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 dc91fc297a..fe053e2e1f 100644
--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml
+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml
@@ -335,6 +335,21 @@ named = [
# spawn and the synchronous delegate paths instruct the model to call it.
"continue_subagent",
"composio_list_connections",
+ # "What can I connect?" — the backend allowlist as
+ # `{toolkits, catalog:[{slug, name, description, categories}]}`. Distinct
+ # from `composio_list_connections`, which returns only ACTIVE/CONNECTED
+ # entries: prompt.md is right that "the list shows what is connected, not
+ # what is connectable", and THIS is the connectable half.
+ #
+ # Unpacked in `toolpacks::registry` so it can be declared here at all —
+ # packed, `closed_by_direct_handoff` denied it to this agent and every
+ # route out was closed: `use_skill{composio}` answers "no tools available",
+ # and the `plan` hand-off it names describes itself as DAG decomposition,
+ # which gives a model no reason to try it for a catalogue lookup. Measured:
+ # asked to list Composio apps, this agent ran `use_skill`, six
+ # `tool_search` calls, a 404 and two doc fetches, then reported a marketing
+ # "1,552+ apps" instead of this install's real 119.
+ "composio_list_toolkits",
# Inline OAuth connect card (#3993). Free-form `toolkit` slug — the
# orchestrator calls this directly to connect a service the user names,
# whether or not it is already connected. Validates against the backend
diff --git a/crates/openhuman-core/src/tools/toolpacks/registry.rs b/crates/openhuman-core/src/tools/toolpacks/registry.rs
index f4f60be124..263b617e71 100644
--- a/crates/openhuman-core/src/tools/toolpacks/registry.rs
+++ b/crates/openhuman-core/src/tools/toolpacks/registry.rs
@@ -108,18 +108,35 @@ pub const PACKS: &[ToolPack] = &[
},
ToolPack {
id: "composio",
- summary: "Composio toolkits: list connections and toolkits, list and execute actions.",
+ summary: "Composio toolkits: list connections, list and execute actions.",
// `composio_connect` is deliberately not a member: it is the
// orchestrator's inline connect card. Packed, it sat in a pack that
// `ops::closed_by_direct_handoff` closes to the orchestrator (the
// planner, one `plan` hand-off away, owns this pack), so the prompt's
// "raise a connect card" route was a tool the model could not reach.
+ //
+ // `composio_list_toolkits` is unpacked for the same reason, one bug
+ // later. It answers "what can I connect?" — the backend allowlist as
+ // `{toolkits, catalog:[{slug, name, description, categories}]}` — and
+ // the orchestrator owns that conversation. Packed, it was `Deny`ed to
+ // the orchestrator by the rule above, and the only escapes were a
+ // `use_skill` that answers "no tools available" and a `plan` hand-off
+ // whose description ("break a task into a DAG of subtasks") gives a
+ // model no reason to associate it with a catalogue lookup. Observed:
+ // asked to list Composio apps, the orchestrator tried `use_skill`,
+ // then six `tool_search` calls, then scraped docs.composio.dev and
+ // reported a marketing figure of "1,552+ apps" instead of this
+ // install's real 119.
+ //
+ // Its own owners keep it by DECLARING it: `planner/agent.toml:72` and
+ // `workflow_builder/agent.toml:109`. `integrations_agent` reached it
+ // only through this pack, so it now declares it too — unpacking must
+ // not quietly take a capability from a second consumer.
tools: &[
"composio",
"composio_authorize",
"composio_execute",
"composio_list_connections",
- "composio_list_toolkits",
"composio_list_tools",
],
owners: &["integrations_agent", "workflow_builder", "planner"],
diff --git a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs
index 3c0a84b2c2..3961143e22 100644
--- a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs
+++ b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs
@@ -497,7 +497,10 @@ fn every_pack_declares_the_tools_it_is_named_for() {
// card and stays unpacked (see the registry note).
"composio_execute",
"composio_list_connections",
- "composio_list_toolkits",
+ // `composio_list_toolkits` is the orchestrator's catalogue
+ // lookup and stays unpacked (see the registry note): packed,
+ // `closed_by_direct_handoff` denied it to the orchestrator and
+ // the agent scraped the web for a list the app already had.
"composio_list_tools",
],
),