Skip to content

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

fix(agent_cli): handle missing config file gracefully

Steven Enamakel6901bf0773ec
diff --git a/src/core/agent_cli.rs b/src/core/agent_cli.rs
index b35a4a3d2a..596c373209 100644
--- a/src/core/agent_cli.rs
+++ b/src/core/agent_cli.rs
@@ -354,6 +354,13 @@ fn print_json(dumped: &DumpedPrompt, with_tools: bool) -> Result<()> {
.collect(),
),
);
+ // The schemas, not just the names: they ride alongside the prompt on
+ // every request and for a few-hundred-tool agent they are the larger
+ // half of the fixed cost. Emitting only `tools` measures the smaller.
+ obj.insert(
+ "tool_specs".into(),
+ serde_json::Value::Array(dumped.tool_specs.clone()),
+ );
}
println!(
"{}",