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
style: apply rustfmt formatting across agent and embed modules
Steven Enamakelb15140b4bde4
diff --git a/crates/openhuman-core/src/agent/prompts/builder.rs b/crates/openhuman-core/src/agent/prompts/builder.rsindex 8ee6e28208..6688c27e67 100644--- a/crates/openhuman-core/src/agent/prompts/builder.rs+++ b/crates/openhuman-core/src/agent/prompts/builder.rs@@ -302,8 +302,7 @@ impl SystemPromptBuilder {// it never ships twice.if !self.verbatim {if !has_grounding {- buckets[tier_index(PromptTier::Stable)]- .push(GROUNDING_BODY.trim_end().to_string());+ buckets[tier_index(PromptTier::Stable)].push(GROUNDING_BODY.trim_end().to_string());}buckets[tier_index(PromptTier::Stable)].push(global_style_block(ctx.workspace_dir).trim_end().to_string());diff --git a/crates/openhuman-core/src/agent/session_host/builder/builder_tests_host_only_tests.rs b/crates/openhuman-core/src/agent/session_host/builder/builder_tests_host_only_tests.rsindex 8183a077bf..0c7328b579 100644--- a/crates/openhuman-core/src/agent/session_host/builder/builder_tests_host_only_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/builder_tests_host_only_tests.rs@@ -8,7 +8,9 @@use super::*;use crate::agent::harness::definition::{SandboxMode, ToolScope};-use crate::agent::tool_policy::{ToolCallContext, ToolPolicy, ToolPolicyDecision, ToolPolicyRequest};+use crate::agent::tool_policy::{+ ToolCallContext, ToolPolicy, ToolPolicyDecision, ToolPolicyRequest,+};use std::sync::Arc;#[derive(Debug)]diff --git a/crates/openhuman-core/src/agent/session_host/builder/factory.rs b/crates/openhuman-core/src/agent/session_host/builder/factory.rsindex 99607337d9..1e450b1464 100644--- a/crates/openhuman-core/src/agent/session_host/builder/factory.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/factory.rs@@ -233,18 +233,18 @@ impl OpenHumanSessionHost {Vec::new()} else {tools::ops::all_tools_with_runtime(- Arc::clone(&tool_config),- &security,- runtime,- audit,- &tool_config.browser,- &tool_config.http_request,- &tool_config.action_dir,- &tool_config.agents,- &tool_config,- workspace_descriptor- .as_ref()- .map(|descriptor| descriptor.root.as_path()),+ Arc::clone(&tool_config),+ &security,+ runtime,+ audit,+ &tool_config.browser,+ &tool_config.http_request,+ &tool_config.action_dir,+ &tool_config.agents,+ &tool_config,+ workspace_descriptor+ .as_ref()+ .map(|descriptor| descriptor.root.as_path()),)};@@ -834,7 +834,8 @@ impl OpenHumanSessionHost {Some(Arc::new(super::host_only::HostOnlyToolPolicy::new(allowed,merged_host_tools.policy,- )) as Arc<dyn crate::agent::tool_policy::ToolPolicy>)+ ))+ as Arc<dyn crate::agent::tool_policy::ToolPolicy>)} else {merged_host_tools.policy};diff --git a/crates/openhuman-core/src/agent/triage/evaluator/prompt.rs b/crates/openhuman-core/src/agent/triage/evaluator/prompt.rsindex 271abdd862..f8d33a057a 100644--- a/crates/openhuman-core/src/agent/triage/evaluator/prompt.rs+++ b/crates/openhuman-core/src/agent/triage/evaluator/prompt.rs@@ -11,7 +11,9 @@ const PAYLOAD_INLINE_LIMIT_BYTES: usize = 8 * 1024;pub(crate) fn extract_inline_prompt(def: &AgentDefinition) -> Option<String> {match &def.system_prompt {- PromptSource::Inline(body) | PromptSource::Verbatim(body) if !body.is_empty() => Some(body.clone()),+ PromptSource::Inline(body) | PromptSource::Verbatim(body) if !body.is_empty() => {+ Some(body.clone())+ }PromptSource::Dynamic(build) => {use crate::agent::prompts::{ConnectedIntegration, PromptContext, PromptTool, ToolCallFormat,diff --git a/crates/openhuman-embed/tests/host_only_tools.rs b/crates/openhuman-embed/tests/host_only_tools.rsindex 41890297c1..361ef6c17f 100644--- a/crates/openhuman-embed/tests/host_only_tools.rs+++ b/crates/openhuman-embed/tests/host_only_tools.rs@@ -194,7 +194,10 @@ fn host_only_refuses_builtin_tools_the_model_names() {let backend = stub_backend().await;let provider = scripted_provider(vec![tool_calls(&[- ("shell", json!({"command": "printf shell-ran > shell-ran.txt"})),+ (+ "shell",+ json!({"command": "printf shell-ran > shell-ran.txt"}),+ ),("write_file",json!({"path": "written.txt", "content": "write-ran"}),@@ -220,8 +223,15 @@ fn host_only_refuses_builtin_tools_the_model_names() {let action_dir = agent.action_dir().to_path_buf();assert!(!action_dir.join("shell-ran.txt").exists(), "shell executed");- assert!(!action_dir.join("written.txt").exists(), "write_file executed");- assert_eq!(calls.load(Ordering::SeqCst), 1, "the host read_file runs once");+ assert!(+ !action_dir.join("written.txt").exists(),+ "write_file executed"+ );+ assert_eq!(+ calls.load(Ordering::SeqCst),+ 1,+ "the host read_file runs once"+ );let requests = chat_requests(&provider).await;assert_eq!(requests.len(), 2);