Skip to content

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

chore(agent-harness): add temporary debug logging

Steven Enamakel4f5b7b8049c1
diff --git a/crates/openhuman-core/src/flows/caps_host/agent_harness.rs b/crates/openhuman-core/src/flows/caps_host/agent_harness.rs
index 8039428439..fa5aba6559 100644
--- a/crates/openhuman-core/src/flows/caps_host/agent_harness.rs
+++ b/crates/openhuman-core/src/flows/caps_host/agent_harness.rs
@@ -56,6 +56,7 @@ impl OpenHumanAgentRunner {
// Model precedence for a harness node: node `config.model` > the
// custom registry entry's own `model` pin (if any) > the definition's
// own default.
+ eprintln!("DBG permit ok");
let initial = self
.prepare_agent_run(request.clone(), entry_model, None, 0)
.await?;
@@ -85,6 +86,7 @@ impl OpenHumanAgentRunner {
OpenHumanSessionHost::from_config_for_agent(dispatch, effective.as_ref(), agent_ref)
}
};
+ eprintln!("DBG built ok={}", built.is_ok());
let mut agent = built.map_err(|e| {
EngineError::Capability(format!(
"agent node: failed to build harness agent '{agent_ref}': {e:#}"
@@ -189,6 +191,7 @@ impl OpenHumanAgentRunner {
Some(context) => Box::pin(crate::core::runtime::CoreContext::scope(context, run)),
None => run,
};
+ eprintln!("DBG running");
let final_text = match tokio::time::timeout_at(absolute_deadline, run).await {
Ok(Ok(text)) => text,
Ok(Err(e)) => {