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
refactor(agent): reuse shared tool catalogue in system prompt
Steven Enamakel072cdd032f50
diff --git a/crates/openhuman-core/src/agent/context/channels_prompt.rs b/crates/openhuman-core/src/agent/context/channels_prompt.rsindex 1c59983d25..c7890bd0a4 100644--- a/crates/openhuman-core/src/agent/context/channels_prompt.rs+++ b/crates/openhuman-core/src/agent/context/channels_prompt.rs@@ -141,18 +141,7 @@ pub fn build_system_prompt_with_identity(// ── 1. Tooling ──────────────────────────────────────────────if !tools.is_empty() {- prompt.push_str("## Tools\n\n");- prompt.push_str("You have access to the following tools:\n\n");- for (name, desc) in tools {- let _ = writeln!(prompt, "- **{name}**: {desc}");- }- prompt.push_str("\n## Tool Use Protocol\n\n");- prompt.push_str("To use a tool, wrap a JSON object in <tool_call></tool_call> tags:\n\n");- prompt.push_str("```\n<tool_call>\n{\"name\": \"tool_name\", \"arguments\": {\"param\": \"value\"}}\n</tool_call>\n```\n\n");- prompt.push_str("You may use multiple tool calls in a single response. ");- prompt.push_str("After tool execution, results appear in <tool_result> tags. ");- prompt- .push_str("Continue reasoning with the results until you can give a final answer.\n\n");+ prompt.push_str(&tinyagents_harness::catalog::render_description_catalogue(tools));}// ── 1b. Action instruction (avoid meta-summary) ───────────────diff --git a/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs b/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rsindex 4b5c57a441..d7202d026e 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs@@ -120,7 +120,7 @@ impl OpenHumanContextComposer {Self {config,model_name,- tool_call_format: ToolCallFormat::default(),+ tool_call_format: ToolCallFormat::Json,connected_integrations: Vec::new(),builder: SystemPromptBuilder::with_defaults(),}