Skip to content

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

feat(openhuman-core): enable host-rendered tool catalogue in harness

Steven Enamakel06735d9b1b7e
diff --git a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs
index d919dac1f0..d3268c4b32 100644
--- a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs
@@ -153,6 +153,12 @@ pub(super) fn assemble_turn_harness(
policy.discovery = super::discovery::discovery_policy();
policy.tool_dialect = tool_dialect;
+ // The session composes its prompt for this same dialect: `ToolsSection`
+ // renders the protocol block and the catalogue of the visible tools into
+ // the system prompt (inside the cacheable prefix, counted by
+ // `prompt-size`). Without this the harness appended a second copy of
+ // both on every text-dialect call.
+ policy.host_renders_tool_catalogue = true;
tracing::debug!(
model,
?tool_dialect,