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
chore: files changed src/openhuman/agent/debug/dump_writer.rs,src/openhuman/agent/debug/mod.rs
Steven Enamakel4f736e3fbba8
diff --git a/src/openhuman/agent/debug/dump_writer.rs b/src/openhuman/agent/debug/dump_writer.rsindex 956615ee82..d4e78443c9 100644--- a/src/openhuman/agent/debug/dump_writer.rs+++ b/src/openhuman/agent/debug/dump_writer.rs@@ -60,6 +60,15 @@ pub fn write_prompt_dumps(dir: &Path, dumps: &[DumpedPrompt]) -> Result<DumpWrit).with_context(|| format!("writing {}", tools_path.display()))?;+ // The one artefact that shows both halves of the fixed prefix in the+ // form they are sent. The `.md` and `.tools.json` above stay: the first+ // is diffable prose, the second is machine-readable. Neither is what+ // the model receives, and reading them together while mentally+ // minifying one of them is not a thing anyone does.+ let wire_path = dir.join(format!("{stem}.wire.txt"));+ std::fs::write(&wire_path, super::wire::render(dumped))+ .with_context(|| format!("writing {}", wire_path.display()))?;+let label = label_for(dumped);let _ = writeln!(summary,diff --git a/src/openhuman/agent/debug/mod.rs b/src/openhuman/agent/debug/mod.rsindex ffa77dcdc1..c5a9a1a402 100644--- a/src/openhuman/agent/debug/mod.rs+++ b/src/openhuman/agent/debug/mod.rs@@ -26,8 +26,10 @@ use anyhow::{anyhow, Context, Result};pub mod dump_writer;pub mod prompt_size;+pub mod wire;pub use dump_writer::{write_prompt_dumps, DumpWriteSummary};pub use prompt_size::{PromptSizeReport, SectionSize, ToolSize};+pub use wire::render as render_wire_dump;use crate::openhuman::agent::context::prompt::{LearnedContextData, PromptContext, PromptTool, ToolCallFormat,