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: reformat long lines and inline arrays for consistency
Steven Enamakel0e542c4635f9
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/archetype_delegation_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/archetype_delegation_tests.rsindex 356b4f674f..3819a3dbe7 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/archetype_delegation_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/archetype_delegation_tests.rs@@ -151,11 +151,7 @@ fn prompt_documents_the_stripped_envelope_fields() {"orchestrator/prompt.md no longer teaches `{needle}`");}- for stale in [- "must_not_assume",- "expected_output",- "citation_requirement",- ] {+ for stale in ["must_not_assume", "expected_output", "citation_requirement"] {assert!(!ORCHESTRATOR_PROMPT.contains(stale),"orchestrator/prompt.md still names `{stale}`, which the delegation \diff --git a/crates/openhuman-core/src/agent/prompts/sections.rs b/crates/openhuman-core/src/agent/prompts/sections.rsindex eebbab74ab..13fcfc84b5 100644--- a/crates/openhuman-core/src/agent/prompts/sections.rs+++ b/crates/openhuman-core/src/agent/prompts/sections.rs@@ -685,9 +685,7 @@ impl PromptSection for DateTimeSection {// than hand-computing) is the fix. Auto-scopes: agents without the// tool never see the rule.if ctx.tools.iter().any(|t| t.name == "resolve_time") {- out.push_str(- " Time arguments come from `resolve_time`, never hand-computed.",- );+ out.push_str(" Time arguments come from `resolve_time`, never hand-computed.");}Ok(out)}diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rsindex 65d70e94fb..1ddc566196 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs@@ -467,7 +467,8 @@ fn connected_integrations_block_is_format_independent() {#[test]fn connected_integrations_block_routes_capability_questions_to_search() {let guide = render_connected_integrations(&gmail_only());- assert!(guide.contains("Its results, not prior knowledge or past answers, say what a toolkit can do."));+ assert!(guide+ .contains("Its results, not prior knowledge or past answers, say what a toolkit can do."));assert!(!guide.contains("integrations_agent"));}diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rsindex 7e9a92371f..d5e4b14e14 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs@@ -109,7 +109,9 @@ fn prompt_routes_workflow_authoring_to_the_builder_not_use_skill() {// The gate is the fix; this pins the prompt so the model is told the route// before it discovers the wall.assert!(- ARCHETYPE.contains("Build or edit a workflow: spawn `workflow_builder` with `spawn_async_subagent`"),+ ARCHETYPE.contains(+ "Build or edit a workflow: spawn `workflow_builder` with `spawn_async_subagent`"+ ),"orchestrator prompt must carry the workflow routing rule and name the spawn to make");diff --git a/crates/openhuman-core/src/agent/session_host/builder/factory.rs b/crates/openhuman-core/src/agent/session_host/builder/factory.rsindex c9c78f7047..702f5d8323 100644--- a/crates/openhuman-core/src/agent/session_host/builder/factory.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/factory.rs@@ -1007,7 +1007,11 @@ impl OpenHumanSessionHost {.tools(tools).synthesized_tools(delegation_tools).visible_tool_names(visible)- .deferred_tools(target_def.map(|def| def.deferred_tools.clone()).unwrap_or_default())+ .deferred_tools(+ target_def+ .map(|def| def.deferred_tools.clone())+ .unwrap_or_default(),+ ).memory(memory).auto_recall(Some(auto_recall)).tool_dispatcher(tool_dispatcher)