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
fix(agent): grant memory_recall and composio_execute to agents that need them
Steven Enamakelc9875628dde0
diff --git a/crates/openhuman-core/src/agent/prompts/sections.rs b/crates/openhuman-core/src/agent/prompts/sections.rsindex a468f23cb9..f40b749751 100644--- a/crates/openhuman-core/src/agent/prompts/sections.rs+++ b/crates/openhuman-core/src/agent/prompts/sections.rs@@ -496,7 +496,7 @@ impl PromptSection for WorkspaceSection {// its real working directory at runtime and keep writes/reads there.let mut out = String::from("## Workspace\n\n\- Run `pwd` to confirm your working directory — that is where `shell` runs and \+ Run `pwd` to confirm your working directory — that is where commands run and \where every file tool resolves a relative path. Create files in that \directory and read them back from the same place (use the relative path, or \confirm the absolute path with `pwd`). Writes and reads outside your granted \diff --git a/crates/openhuman-core/src/agent/registry/agents/code_executor/agent.toml b/crates/openhuman-core/src/agent/registry/agents/code_executor/agent.tomlindex 7bcb627b62..c5cf4b0122 100644--- a/crates/openhuman-core/src/agent/registry/agents/code_executor/agent.toml+++ b/crates/openhuman-core/src/agent/registry/agents/code_executor/agent.toml@@ -25,6 +25,7 @@ hint = "coding"# OPENHUMAN_LSP_ENABLED — listing it here is harmless when the gate is# off (the tool is simply not registered).named = [+ "composio_execute","shell","file_read","file_write",diff --git a/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rsindex 58d2ed9a95..2f8723548e 100644--- a/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rs@@ -106,6 +106,9 @@ fn can_call(def: &AgentDefinition, tool: &str, universe: &BTreeSet<String>) -> b.iter().any(|n| on_belt(def, n) && is_withheld_from(&def.id, n));}+ if crate::agent::tinyagents::turn_policy::is_subagent_spawn_or_delegate_tool(tool) {+ return false;+ }on_belt(def, tool)&& !def.disallowed_tools.iter().any(|n| n == tool)&& !is_withheld_from(&def.id, tool)@@ -131,7 +134,6 @@ pub(super) fn names_presented_as_callable<'a>(text: &str,not_callable: impl IntoIterator<Item = &'a str>,) -> Vec<&'a str> {- let packed = crate::tools::toolpacks::all_packed_tool_names();const HEADING: &str = "## Capabilities not in your tool list";let mut prose = match text.find(HEADING) {Some(start) => {@@ -153,9 +155,6 @@ pub(super) fn names_presented_as_callable<'a>(prose = prose.replace(&format!("skill `{}`, tool `{name}`", pack.id), "");}}- for name in &packed {- prose = prose.replace(&format!("skill `{name}`"), "");- }not_callable.into_iter().filter(|name| prose.contains(&format!("`{name}`")))@@ -175,11 +174,6 @@ pub(super) fn names_presented_as_callable<'a>(const KNOWN_UNCALLABLE: &[(&str, &str, &str)] = &[// Real.("*", "shell", "shared `## Workspace` section says \"that is where `shell` runs\" to every agent (`prompts/sections.rs` WorkspaceSection)"),- ("planner", "memory_recall", "told to search memory; not on its belt"),- ("profile_memory_agent", "memory_recall", "told to read state first; belt has memory_store but no recall"),- ("trigger_reactor", "memory_recall", "told to recall prior context; not on its belt"),- ("trigger_reactor", "memory_forget", "not on its belt"),- ("code_executor", "composio_execute", "a \"hard rule\" routes GitHub ops through a tool not on its belt"),("morning_briefing", "composio_list_connections", "withheld by the `composio` pack"),("morning_briefing", "composio_list_tools", "withheld by the `composio` pack"),("morning_briefing", "composio_execute", "withheld by the `composio` pack"),@@ -252,7 +246,12 @@ fn every_prompt_names_only_tools_its_agent_can_call() {/// Agents whose prompt defers to the rendered tool list instead of naming a/// tool; [`every_prompt_names_at_least_one_tool_it_can_call`] skips them.-const NAMES_NO_TOOL: &[&str] = &["critic", "archivist", "skill_setup"];+const NAMES_NO_TOOL: &[&str] = &["critic", "archivist"];++#[cfg(feature = "skills")]+const SKILL_SETUP_NAME: Option<&str> = Some("skill_setup");+#[cfg(not(feature = "skills"))]+const SKILL_SETUP_NAME: Option<&str> = None;/// An agent with a belt must be told about at least one tool on it.///@@ -265,6 +264,7 @@ fn every_prompt_names_at_least_one_tool_it_can_call() {let expected: Vec<&str> = NAMES_NO_TOOL.iter().copied()+ .chain(SKILL_SETUP_NAME).filter(|id| defs.iter().any(|d| d.id == *id)).collect();let silent: Vec<String> = defsdiff --git a/crates/openhuman-core/src/agent/registry/agents/planner/agent.toml b/crates/openhuman-core/src/agent/registry/agents/planner/agent.tomlindex 8231b91305..20a8beed07 100644--- a/crates/openhuman-core/src/agent/registry/agents/planner/agent.toml+++ b/crates/openhuman-core/src/agent/registry/agents/planner/agent.toml@@ -39,6 +39,7 @@ hint = "reasoning"# even though `composio_execute` is on this list. Only `Read`-scoped# actions slip past the gate.named = [+ "memory_recall","file_read",# NOTE: `agent_prepare_context` is intentionally NOT here. When the planner# runs via `delegate_plan` it executes under the orchestrator'sdiff --git a/crates/openhuman-core/src/agent/registry/agents/profile_memory_agent/agent.toml b/crates/openhuman-core/src/agent/registry/agents/profile_memory_agent/agent.tomlindex 0f543e1b46..59a089ba38 100644--- a/crates/openhuman-core/src/agent/registry/agents/profile_memory_agent/agent.toml+++ b/crates/openhuman-core/src/agent/registry/agents/profile_memory_agent/agent.toml@@ -18,6 +18,7 @@ hint = "agentic"[tools]named = [+ "memory_recall","memory_store","memory_forget","memory_doctor",diff --git a/crates/openhuman-core/src/agent/registry/agents/trigger_reactor/agent.toml b/crates/openhuman-core/src/agent/registry/agents/trigger_reactor/agent.tomlindex 3b106d7c39..23675a5b52 100644--- a/crates/openhuman-core/src/agent/registry/agents/trigger_reactor/agent.toml+++ b/crates/openhuman-core/src/agent/registry/agents/trigger_reactor/agent.toml@@ -36,6 +36,7 @@ hint = "agentic"# - spawn_subagent: escalate to a real specialist if the reaction# turns out to be bigger than the triage agent expectednamed = [+ "memory_recall","memory_store","read_workspace_state","spawn_subagent",diff --git a/crates/openhuman-core/src/agent/registry/agents/trigger_reactor/prompt.md b/crates/openhuman-core/src/agent/registry/agents/trigger_reactor/prompt.mdindex 041bf0ff60..b7a80f947e 100644--- a/crates/openhuman-core/src/agent/registry/agents/trigger_reactor/prompt.md+++ b/crates/openhuman-core/src/agent/registry/agents/trigger_reactor/prompt.md@@ -24,7 +24,7 @@ One of two paths:- **Do not plan.** If you're about to write a list of steps, you're the wrong agent — escalate to the orchestrator instead.- **Do not chain more than ~3 tool calls.** Reactor turns that balloon are almost always hiding an escalation-shaped task.-- **Do not re-interpret the triage decision.** The classifier already decided this was a `react` trigger, not a `drop`. If the trigger actually looks like noise to you, write a one-line memory note acknowledging you saw it and stop — do not call `memory_forget` on things you didn't create.+- **Do not re-interpret the triage decision.** The classifier already decided this was a `react` trigger, not a `drop`. If the trigger actually looks like noise to you, write a one-line memory note acknowledging you saw it and stop — do not delete records you didn't create.- **Do not ask the user clarifying questions.** This turn runs in a bus-spawned task; there is no user to answer. If you can't decide, escalate.## Output