Skip to content

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

docs(agent): DumpedPrompt::tool_names is the callable surface, not the wire set

M3gA-Mind55527325b52d
diff --git a/crates/openhuman-core/src/agent/debug/mod.rs b/crates/openhuman-core/src/agent/debug/mod.rs
index 6f32101717..abfab3b92c 100644
--- a/crates/openhuman-core/src/agent/debug/mod.rs
+++ b/crates/openhuman-core/src/agent/debug/mod.rs
@@ -93,7 +93,9 @@ pub struct DumpedPrompt {
/// The final rendered system prompt — frozen bytes that would be
/// sent verbatim on every turn of a live session.
pub text: String,
- /// Tool names that made it into the rendered prompt, in order.
+ /// Every tool the agent can call, in registration order. On the session
+ /// path this is the whole callable surface (`all_tool_refs()`), so it can
+ /// be wider than [`Self::tool_specs`]; `prompt-size` measures the latter.
pub tool_names: Vec<String>,
/// Number of `ToolCategory::Workflow` tools in the dump.
pub skill_tool_count: usize,