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
refactor(tinyagents): pass harness by value to turn middleware installers
Steven Enamakela7129eed982f
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_middleware.rs b/crates/openhuman-core/src/agent/tinyagents/turn_middleware.rsindex 40fe1ae1f6..03dbe338c3 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_middleware.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_middleware.rs@@ -257,7 +257,7 @@ pub(super) fn install_turn_middleware(}stop_hooks::install(- &mut harness,+ harness,handle.as_ref(),model,stop_hooks,@@ -344,7 +344,7 @@ pub(super) fn install_turn_middleware(}).map(|schema| schema.name).collect();- context_mw.install(&mut harness, tool_policies, summary_focus_tools);+ context_mw.install(harness, tool_policies, summary_focus_tools);// Plan mode (issue: plan-mode approvals). `run_mode` is `Some` only for a// turn with a thread identity (chat, not a sub-agent child); the@@ -400,7 +400,7 @@ pub(super) fn install_turn_middleware(let agent_id = tool_policy.as_ref().map(|p| p.agent_definition_id.as_str());let turn_wall_clock_ms = harness.policy().limits.max_wall_clock_ms;verify_before_finish::install(- &mut harness,+ harness,is_subagent,agent_id,&wrap_up_fired,@@ -409,7 +409,7 @@ pub(super) fn install_turn_middleware(// The rungs above all *tell* the turn to produce its deliverable; this one// looks, on the same scope as the requirements check.if verify_before_finish::applies(is_subagent, agent_id) {- install_unmet_deliverable(&mut harness);+ install_unmet_deliverable(harness);} else {tracing::debug!(is_subagent,