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: format code
Steven Enamakel4fbe5963f4f1
diff --git a/crates/openhuman-core/src/agent/harness/host_definition.rs b/crates/openhuman-core/src/agent/harness/host_definition.rsindex d6c7e3d3be..ad6b2544d2 100644--- a/crates/openhuman-core/src/agent/harness/host_definition.rs+++ b/crates/openhuman-core/src/agent/harness/host_definition.rs@@ -116,9 +116,12 @@ pub fn effective_tokenjuice_compression(def: &AgentDefinition) -> AgentTokenjuic/// The prompt builder behind a `PromptSource::Dynamic(())` marker.pub fn dynamic_prompt_builder(def: &AgentDefinition) -> Result<PromptBuilder> {- def.extensions- .prompt_builder- .ok_or_else(|| anyhow::anyhow!("agent `{}` declares a dynamic prompt but has no builder", def.id))+ def.extensions.prompt_builder.ok_or_else(|| {+ anyhow::anyhow!(+ "agent `{}` declares a dynamic prompt but has no builder",+ def.id+ )+ })}/// Re-check the spawn-hierarchy contract over a slice of definitions.diff --git a/crates/openhuman-core/src/agent/session_host/builder/factory.rs b/crates/openhuman-core/src/agent/session_host/builder/factory.rsindex 9848e3962b..8bc4ed7789 100644--- a/crates/openhuman-core/src/agent/session_host/builder/factory.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/factory.rs@@ -3,7 +3,10 @@use super::dispatcher::{resolve_dispatcher_kind, DispatcherKind};use super::host_tools::derive_turn_workspace_descriptor;use super::should_synthesize_delegation_tools;-use crate::agent::harness::host_definition::{AgentDefinitionRegistry, NO_TOOLS_SENTINEL};+use crate::agent::harness::host_definition::{+ dynamic_prompt_builder, effective_tokenjuice_compression, AgentDefinitionRegistry,+ NO_TOOLS_SENTINEL,+};use crate::agent::host_runtime;use crate::agent::prompts::SystemPromptBuilder;use crate::agent::session_host::types::OpenHumanSessionHost;diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rsindex e8f4215376..3db9023f01 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs@@ -11,7 +11,9 @@ use std::time::Instant;use crate::agent::harness::artifact_offload::{new_artifact_offload, offload_oversized_result};use crate::agent::harness::fork_context::ParentExecutionContext;-use crate::agent::harness::host_definition::{AgentDefinition, AgentDefinitionRegistry};+use crate::agent::harness::host_definition::{+ effective_tokenjuice_compression, AgentDefinition, AgentDefinitionRegistry,+};use crate::agent::prompts::{render_subagent_system_prompt_with_format, PromptContext, SubagentRenderOptions,};