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: apply rustfmt formatting across core crates
Steven Enamakel56eb91a7cf5b
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rsindex 4bbad06b81..8e17ce74b2 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs@@ -119,7 +119,9 @@ pub fn scope_spawn_async_subagent_spec(spec: &mut tinytools::ToolSpec, allowed:.parameters.pointer_mut("/properties/agent_id/description"){- *description = serde_json::Value::String("Sub-agent id (only these are dispatchable from here).".to_string());+ *description = serde_json::Value::String(+ "Sub-agent id (only these are dispatchable from here).".to_string(),+ );}}diff --git a/crates/openhuman-core/src/agent/prompts/sections.rs b/crates/openhuman-core/src/agent/prompts/sections.rsindex edc0e3f7c1..d4981579f1 100644--- a/crates/openhuman-core/src/agent/prompts/sections.rs+++ b/crates/openhuman-core/src/agent/prompts/sections.rs@@ -78,8 +78,8 @@ impl PromptSection for DynamicPromptSection {fn build_parts(&self, ctx: &PromptContext<'_>) -> Result<Vec<(PromptTier, String)>> {let body = (self.builder)(ctx)?;- let has_marker = body.contains(PROMPT_TIER_CONTEXT_MARKER)- || body.contains(PROMPT_TIER_VOLATILE_MARKER);+ let has_marker =+ body.contains(PROMPT_TIER_CONTEXT_MARKER) || body.contains(PROMPT_TIER_VOLATILE_MARKER);// A builder that marks its tiers starts in `Stable`; one that does not// stays wholly in `Volatile` (see `tier`).let default_tier = if has_marker {diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rsindex ab0002fc1a..76163d6ad0 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs@@ -68,9 +68,7 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {// Model families that stop after announcing a plan get one short block of// execution discipline; the rest (Claude, Gemini) pay nothing. The text// and the gate are tinyagents', so every host renders the same words.- if let Some(guidance) =- tinyagents_harness::prompt::execution_discipline_for(ctx.model_name)- {+ if let Some(guidance) = tinyagents_harness::prompt::execution_discipline_for(ctx.model_name) {tracing::debug!(model = ctx.model_name,"[orchestrator-prompt] rendering model-gated execution discipline"@@ -96,7 +94,10 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {&mut out,&render_delegation_guide(ctx.connected_integrations, ctx.tool_call_format),);- push(&mut out, &render_connected_mcp_servers(mcp_route.as_deref()));+ push(+ &mut out,+ &render_connected_mcp_servers(mcp_route.as_deref()),+ );// NOTE: the grounding contract lives in `prompt.md` under the shared// heading, so `SystemPromptBuilder::build` skips the global copy.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 78c376fe91..294dea9ee1 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@@ -95,7 +95,9 @@ fn prompt_routes_workflow_authoring_to_the_builder_not_use_skill() {"orchestrator prompt must carry the workflow routing rule");assert!(- ARCHETYPE.contains("skill `workflows` (`build_workflow` to author, `discover_workflows` to find)"),+ ARCHETYPE.contains(+ "skill `workflows` (`build_workflow` to author, `discover_workflows` to find)"+ ),"the rule must name the delegate to call");diff --git a/crates/openhuman-core/src/tools/agent_policy/prompt_tests.rs b/crates/openhuman-core/src/tools/agent_policy/prompt_tests.rsindex 3cc9a7f596..040c0f3429 100644--- a/crates/openhuman-core/src/tools/agent_policy/prompt_tests.rs+++ b/crates/openhuman-core/src/tools/agent_policy/prompt_tests.rs@@ -60,7 +60,10 @@ fn render_prompt_boundary_lists_allowed_and_restricted_summary() {assert!(rendered.contains("## Tool Policy Boundary"));assert!(rendered.contains("Agent: orchestrator"));assert!(rendered.contains("Allowed tools: 1 (the tools in your list)"));- assert!(!rendered.contains("read_notes"), "names ride on the schemas, not here");+ assert!(+ !rendered.contains("read_notes"),+ "names ride on the schemas, not here"+ );assert!(rendered.contains("Restricted tools: 1 omitted by policy"));assert!(!rendered.contains("write_notes"));}diff --git a/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs b/crates/openhuman-core/src/tools/orchestrator_tools_tests.rsindex 7cc942d216..a78d896325 100644--- a/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs+++ b/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs@@ -113,7 +113,10 @@ fn collects_agentid_entries_and_collapses_skills_wildcard() {// Archetype tool descriptions come from `when_to_use`.let research_tool = tools.iter().find(|t| t.name() == "research").unwrap();- assert!(research_tool.description().contains("crawler"), "delegate description is the target's when_to_use");+ assert!(+ research_tool.description().contains("crawler"),+ "delegate description is the target's when_to_use"+ );// The collapsed delegation tool enumerates every connected toolkit// in its description so the orchestrator still discovers what'sdiff --git a/crates/openhuman-core/src/tools/toolpacks/registry.rs b/crates/openhuman-core/src/tools/toolpacks/registry.rsindex 9b0813715d..92ccbfd907 100644--- a/crates/openhuman-core/src/tools/toolpacks/registry.rs+++ b/crates/openhuman-core/src/tools/toolpacks/registry.rs@@ -280,10 +280,7 @@ pub const PACKS: &[ToolPack] = &[ToolPack {id: "scheduling",summary: "Reminders and scheduled jobs: create, list, update, remove, run, inspect.",- tools: &[- "schedule_task",- "cron",- ],+ tools: &["schedule_task", "cron"],owners: &["scheduler_agent"],},ToolPack {diff --git a/scripts/prompt-budget.limits b/scripts/prompt-budget.limitsindex 2cb48b617b..9058d04e54 100644--- a/scripts/prompt-budget.limits+++ b/scripts/prompt-budget.limits@@ -227,7 +227,7 @@ trigger_triage:7422:0workflow_builder:76386:28987summarizer:7236:0tools_agent:5114:61553-orchestrator:8766:21523+orchestrator:8750:21523code_executor:11340:13536crypto_agent:10877:10454task_manager_agent:4880:14861