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
merge: upstream/main into pr/6949
Steven Enamakel5742d1017239
diff --cc crates/openhuman-core/src/agent/prompts/mod_tests.rsindex a90884e3bc,403b24ab7b..b30d303618--- a/crates/openhuman-core/src/agent/prompts/mod_tests.rs+++ b/crates/openhuman-core/src/agent/prompts/mod_tests.rs@@@ -81,10 -163,12 +81,12 @@@ fn agents_md_ctx(global: Option<String>mod agents_md_registration_tests;#[path = "mod_tests_builder_sections_tests.rs"]mod builder_sections_tests;+ #[path = "mod_tests_grounding_spec_check_tests.rs"]+ mod grounding_spec_check_tests;#[path = "mod_tests_subagent_render_tests.rs"]mod subagent_render_tests;-#[path = "mod_tests_user_files_reflections_tests.rs"]-mod user_files_reflections_tests;+#[path = "mod_tests_tools_sections_tests.rs"]+mod tools_sections_tests;#[test]fn tool_call_format_maps_to_the_dialect_and_harness_vocabulary() {diff --cc crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rsindex 3041990cdf,5d7802022a..62a76897ab--- a/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs@@@ -346,11 -383,15 +383,19 @@@ fn master_agent_has_coding_hint_and_nam}ToolScope::Wildcard => panic!("orchestrator must have named tool allowlist"),}- assert_eq!(def.max_iterations, 50);+ // #6958: a coding turn routinely needs 50-180 model calls (every other+ // harness on the DeepSWE sample did); 50 stopped all ten tasks before a+ // single source edit.+ assert_eq!(def.max_iterations, 200);+ // Memory retrieval is on-demand (via the `agent_memory` subagent,+ // surfaced as `delegate_retrieve_memory`), not an eager pre-turn+ // pre-fetch. The allowlist entry is what makes that route reachable+ // (see the `agent_memory::tools` allowlist gate).+ assert_eq!(def.trigger_memory_agent, TriggerMemoryAgent::Never);+ assert!(+ !def.omit_memory_context,+ "the user-facing agent opens new sessions with the memory context"+ );}/// Regression guard for the `resolve_time` wiring. Agents that emitdiff --cc crates/openhuman-core/src/agent/session_host/builder/mod.rsindex 25ec0f4424,ee87fc2648..e4c8661e6b--- a/crates/openhuman-core/src/agent/session_host/builder/mod.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/mod.rs@@@ -11,7 -11,10 +11,9 @@@ pub(crate) use factory::provider_role_fmod builder_build;mod dispatcher;mod factory;-mod helpers;mod host_tools;+ mod iteration_cap;+ mod permanent_tool;mod setters;pub use host_tools::{HostTools, HostTurnTools, TurnContext};diff --cc crates/openhuman-core/src/agent/session_host/builder/setters.rsindex 4604f18bb5,0fafd8479f..afd99d4829--- a/crates/openhuman-core/src/agent/session_host/builder/setters.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/setters.rs@@@ -15,8 -17,11 +15,9 @@@ impl SessionHostBuildersynthesized_tools: None,visible_tool_names: None,withheld_tool_names: std::collections::HashSet::new(),+ permanent_tool_names: std::collections::HashSet::new(),deferred_tools: Vec::new(),subagent_tool_ceiling_names: None,- memory: None,- auto_recall: None,prompt_builder: None,tool_dispatcher: None,config: None,diff --cc crates/openhuman-core/src/config/schema/README.mdindex 3bed2a1ec8,d826341d45..5472952b5c--- a/crates/openhuman-core/src/config/schema/README.md+++ b/crates/openhuman-core/src/config/schema/README.md@@@ -41,9 -41,11 +41,10 @@@ is mounted as a submodule of `load/dirs| `[[model_routes]]`, `[[embedding_routes]]` | `routes.rs` | `ModelRouteConfig`, `EmbeddingRouteConfig` || `[runtime]` (+ `[runtime.docker]`), `[shell]`, `[reliability]`, `[scheduler]` | `runtime.rs` | `RuntimeConfig`, `DockerRuntimeConfig`, `ShellConfig`, `ReliabilityConfig`, `SchedulerConfig` || `[runtime_pool]` | `runtime_pool.rs` | `RuntimePoolConfig`, `RuntimePoolLangConfig` |+ | `[runtime.local_jail]` | `runtime_local_jail.rs` | `LocalJailConfig` — filesystem grants for the local OS jail || `[runtime_python]` | `runtime_python.rs` | `RuntimePythonConfig` || `[scheduler_gate]` | `scheduler_gate.rs` | `SchedulerGateConfig`, `SchedulerGateMode` |-| `[memory]`, `[memory_tree]`, `[storage]` | `storage_memory.rs` | `MemoryConfig`, `MemoryTreeConfig`, `StorageConfig`, `StorageProviderConfig`, `LlmBackend` |-| `[subsystems]` | `subsystems.rs` | `SubsystemsConfig`, `MemorySubsystemConfig` |+| `[memory]` (engine, `engines.<id>`, `conversations`, `context`, `sources`, embedding settings) | `memory.rs` | `MemoryConfig`, `MemoryEngineSettings`, `MemoryConversationsConfig`, `MemoryContextConfig`, `MemorySourceConfig` (see `docs/specs/memory-v2.md`) || `[task_sources]` | `task_sources.rs` | `TaskSourcesConfig` || `[tokenjuice]` | `tokenjuice.rs` | `TokenjuiceConfig` || tool-related sections (see below) | `tools/` | (multiple structs) |diff --cc crates/openhuman-core/src/config/schema/context.rsindex e2242f02bc,181beb30a0..c2c863f9d9--- a/crates/openhuman-core/src/config/schema/context.rs+++ b/crates/openhuman-core/src/config/schema/context.rs@@@ -48,14 -50,16 +48,15 @@@ pub struct ContextConfig#[serde(default = "default_tool_result_budget_bytes")]pub tool_result_budget_bytes: usize,- /// Tool results larger than this **token** count trigger the- /// `summarizer` sub-agent (orchestrator session only). The summarizer- /// compresses the payload into a dense note that preserves- /// identifiers and key facts, and the compressed summary replaces- /// the raw payload before it enters agent history. Default: 4000 tokens.- /// Set to 0 to disable.+ /// Tool results larger than this **token** count are stored behind a+ /// TinyJuice recovery handle (orchestrator session only). The registered+ /// `juice_summarize` tool currently returns TinyJuice's deterministic+ /// overview; OpenHuman does not pass the turn's summarizer model into that+ /// tool yet. Ingest-time LLM summaries are disabled+ /// (`LlmSummaryMode::OnDemand`). Default: 4000 tokens.+ /// Set to 0 to disable the summary model.///- /// Token count is estimated as `chars / 4` (the same heuristic used- /// by `tree_summarizer::estimate_tokens`). Pairs with+ /// Token count is estimated as `chars / 4` (a rough heuristic). Pairs with/// [`Self::summarizer_max_payload_tokens`] which caps the upper end/// (paying for an LLM call on a multi-million-token blob makes no/// economic sense, so above the cap the existingdiff --cc crates/openhuman-core/src/config/schema/mod.rsindex 67dd7dc287,8782c04f1d..04c0e67d4e--- a/crates/openhuman-core/src/config/schema/mod.rs+++ b/crates/openhuman-core/src/config/schema/mod.rs@@@ -107,9 -107,17 +108,10 @@@ pub use routes::{EmbeddingRouteConfig,pub use runtime::{DockerRuntimeConfig, ReliabilityConfig, RuntimeConfig, SchedulerConfig, ShellConfig,};+ pub use runtime_local_jail::LocalJailConfig;pub use runtime_pool::{RuntimePoolConfig, RuntimePoolLangConfig};pub use runtime_python::RuntimePythonConfig;-pub use scheduler_gate::{SchedulerGateConfig, SchedulerGateMode};-pub use storage_memory::{- LlmBackend, MemoryConfig, MemoryTreeConfig, StorageConfig, StorageProviderConfig,- StorageProviderSection, DEFAULT_CLOUD_LLM_MODEL,-};-pub use subsystems::{- MemoryDriverConfig, MemoryHooksConfig, MemorySubsystemConfig, SubsystemsConfig,-};+pub use scheduler_gate::{PauseReason, Policy, SchedulerGateConfig, SchedulerGateMode};pub use task_sources::TaskSourcesConfig;pub use tokenjuice::TokenjuiceConfig;pub use tools::{diff --cc scripts/ci/check-openhuman-rust-layout.mjsindex 2608c40606,92dbf0bd46..694d7adc66--- a/scripts/ci/check-openhuman-rust-layout.mjs+++ b/scripts/ci/check-openhuman-rust-layout.mjs@@@ -43,10 -43,10 +43,10 @@@ const LEGACY_LIMIT_ENTRIES =// provider, security, memory, tool and prompt policy. Generic session// state moved to tinyagents-runtime; this remaining composition is split in// a follow-up without reintroducing an old harness/session exception.- ["crates/openhuman-core/src/agent/session_host/builder/factory.rs", 1000],+ ["crates/openhuman-core/src/agent/session_host/builder/factory.rs", 1181],["crates/openhuman-core/src/agent/subagent_host/lifecycle.rs", 1309],- ["crates/openhuman-core/src/agent/subagent_host/ops/runner.rs", 1427],- ["crates/openhuman-core/src/tools/ops.rs", 1322],+ ["crates/openhuman-core/src/agent/subagent_host/ops/runner.rs", 1152],+ ["crates/openhuman-core/src/tools/ops.rs", 1209],["crates/openhuman-core/src/web_chat/progress_bridge.rs", 1304],// These established external test modules grew with upstream coverage. Pin// their current sizes while follow-up work separates their test concerns.