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: restore Rust source layout limits
Steven Enamakel044d10befb0d
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rsindex c2c257272e..06beb0654e 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs@@ -509,11 +509,6 @@ impl SpawnSubagentTool {prompt.chars().count(),);- // Mirror the spawn onto the parent's per-turn progress sink so the- // web-channel bridge can stream a live subagent row into the- // parent thread's UI. Best-effort: a closed/missing sink is- // silently ignored — the global DomainEvent above is the- // authoritative record.if let Some(progress) = run_context.progress.clone() {let _ = progress.send(AgentProgress::SubagentSpawned {@@ -529,7 +524,6 @@ impl SpawnSubagentTool {.await;}- // ── Run the sub-agent ──────────────────────────────────────────let workspace_descriptor = tool_context.and_then(|ctx| ctx.workspace().cloned());let worktree_action_dir = workspace_descriptor.as_ref()@@ -576,10 +570,6 @@ impl SpawnSubagentTool {options: _,checkpoint,} => {- // Sub-agent paused for user input — publish- // awaiting event and return structured envelope so- // the orchestrator can relay the question and later- // call continue_subagent.if emit_lifecycle_effects {crate::agent::orchestration::subagent_events::publish_subagent_awaiting_user(parent_session,@@ -611,11 +601,6 @@ impl SpawnSubagentTool {Ok(ToolResult::success(envelope))}SubagentRunStatus::Completed => {- // #3883: log the orchestrator taking delivery of each- // artifact path the child handed back, so a run journal- // shows both ends of every `[artifact]` pointer. The- // `consumed_by_parent` stage distinguishes this from the- // child's `recorded_by_child` line for the same path.crate::agent::harness::artifact_offload::note_artifact_handoff(crate::agent::harness::artifact_offload::HANDOFF_STAGE_CONSUMED,&outcome.agent_id,diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rsindex e611d1f4e3..c8ba5cd174 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs@@ -1582,10 +1582,6 @@ impl OpenHumanSessionHost {prelude.refresh_turn_boundary(!view.resumed && view.history.is_empty()).await;- // The driver resolves the same model source, but the- // host sidecar needs this metadata before either the- // successful or partial runtime append asks the codec- // for atomic billing data.let context_window = prelude.turn_model_source.effective_context_window(&prelude.model_name)@@ -1636,10 +1632,6 @@ impl OpenHumanSessionHost {policy_channel,) = prelude.current_tool_source();if overrides.suppress_tools {- // The execution source must narrow with the wire- // snapshot. Leaving instances here would make a- // tool-less override advisory instead of a hard- // authority boundary.current_tools = Arc::new(Vec::new());current_synthesized_tools = Arc::new(Vec::new());}@@ -1664,11 +1656,6 @@ impl OpenHumanSessionHost {session: policy_session,session_id: policy_session_id,channel: policy_channel,- // This is the stable agent definition key- // used for driver diagnostics and policy- // enforcement. The mutable surface carries- // its current display name separately when it- // rebuilds the policy session.agent_definition_id: prelude.agent_definition_id.clone(),});options.run_context.data.required_output = state@@ -1769,15 +1756,7 @@ impl OpenHumanSessionHost {.pending_citations.take();if let Some(prelude) = prelude {- // `after_commit` is only reached after runtime- // transcript durability. Every host write below is- // therefore receipt-gated.prelude.finalize_after_durable_commit(&receipt).await;- // Account the same committed direct + child totals- // that the codec atomically attached to the- // transcript. A continuation's suppression state- // is intentionally cleared by the goals runtime- // only after this receipt exists.account_committed_turn_against_goal(&prelude.workspace_dir,receipt.options.context.thread_id.as_deref(),diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rsindex 140849de03..0e8a303e94 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs@@ -1543,18 +1543,6 @@ async fn run_typed_mode(model_vision,"[subagent_host] resolved sub-agent model vision capability");- // Sub-agent turns run through the tinyagents harness (issue #4249): the graph- // route reuses the same provider + tools and mirrors every legacy seam (child- // progress, steering, cap checkpoint, ask_user_clarification pause,- // worker-thread mirror). The legacy `run_inner_loop` has been removed.- //- // `model_vision` and `max_output_tokens` are now forwarded into the graph- // route (image rehydration + per-call output cap). `lazy_resolver` /- // `handoff_cache` — the integrations-agent progressive-disclosure seams — are- // not yet re-expressed on the tinyagents path; they need a tool-result- // interception middleware and are tracked as a follow-up (issue #4249, 1b).- // `handoff_cache` is now threaded into the graph route below (progressive- // disclosure). `lazy_resolver` remains a follow-up (#4249 1b).let _ = &lazy_resolver;// Per-agent turn graph (issue #4249): `Default` runs the shared sub-agent// graph; `Custom` hands the assembled turn to this agent's own graph runner