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
refactor: reorganize module paths and re-exports
Steven Enamakel53da56877e45
diff --git a/crates/openhuman-core/src/agent/context/mod.rs b/crates/openhuman-core/src/agent/context/mod.rsindex 92900c4c65..c54acac883 100644--- a/crates/openhuman-core/src/agent/context/mod.rs+++ b/crates/openhuman-core/src/agent/context/mod.rs@@ -14,8 +14,6 @@//! Session hosts hold their prompt builder and context settings directly;//! TinyAgents owns live transcript reduction and middleware execution.-pub mod channels_prompt;-/// Default number of most-recent tool-result envelopes the TinyAgents/// microcompact middleware leaves intact.pub const DEFAULT_KEEP_RECENT_TOOL_RESULTS: usize = 5;diff --git a/crates/openhuman-core/src/agent/mod.rs b/crates/openhuman-core/src/agent/mod.rsindex 006582f8cb..1557e2f07b 100644--- a/crates/openhuman-core/src/agent/mod.rs+++ b/crates/openhuman-core/src/agent/mod.rs@@ -29,7 +29,6 @@ pub mod hooks;/// resolve by id, with their definition, host tools and context.pub mod host_agents;pub mod host_overrides;-pub mod host_runtime;pub(crate) mod message_convert;pub mod messages;pub mod multimodal;@@ -38,12 +37,10 @@ pub mod orchestration;/// and [`crate::sandbox::ops`] so all three shell-spawning sites/// agree on `cmd.exe` (Windows) vs `bash`/`sh` (Unix). Fixes #4705 where/// the sandbox paths hardcoded `sh` and failed at spawn on Windows.-pub mod progress;/// Structured tracing export off the [`progress`] channel: turns the/// real-time [`progress::AgentProgress`] stream into OpenTelemetry//// Langfuse-style spans (turn → iteration → tool / subagent) correlated by/// session id with user attribution (issue #3886).-pub(crate) mod progress_tracing;/// Prompt plumbing — types, section builders, and/// [`SystemPromptBuilder`](prompts::SystemPromptBuilder).pub mod prompts;diff --git a/crates/openhuman-core/src/channels/mod.rs b/crates/openhuman-core/src/channels/mod.rsindex 05ceb3485d..ccb42e1d73 100644--- a/crates/openhuman-core/src/channels/mod.rs+++ b/crates/openhuman-core/src/channels/mod.rs@@ -28,6 +28,7 @@ pub mod host;pub mod proactive;#[cfg(feature = "channels")]pub mod providers;+pub(crate) mod prompt;#[cfg(feature = "channels")]mod routes;#[cfg(feature = "channels")]@@ -114,7 +115,7 @@ pub use runtime::test_support;// the prompt-building code. Re-exported here for callers that used the// old `channels::build_system_prompt` path.#[cfg(feature = "channels")]-pub use crate::agent::context::channels_prompt::build_system_prompt;+pub use prompt::build_system_prompt;#[cfg(feature = "channels")]pub use commands::doctor_channels;#[cfg(feature = "channels")]diff --git a/crates/openhuman-core/src/channels/prompt.rs b/crates/openhuman-core/src/channels/prompt.rsindex e8f853a4b7..943c5b83b7 100644--- a/crates/openhuman-core/src/channels/prompt.rs+++ b/crates/openhuman-core/src/channels/prompt.rs@@ -277,5 +277,5 @@ fn inject_workspace_file(}#[cfg(test)]-#[path = "channels_prompt_tests.rs"]+#[path = "prompt_tests.rs"]mod tests;diff --git a/crates/openhuman-core/src/channels/system_prompt.rs b/crates/openhuman-core/src/channels/system_prompt.rsindex 3933c952ed..a171646c40 100644--- a/crates/openhuman-core/src/channels/system_prompt.rs+++ b/crates/openhuman-core/src/channels/system_prompt.rs@@ -20,7 +20,7 @@//! `channels_prompt.rs` documents. Only an identity change produces new//! bytes, which is the whole point.-use crate::agent::context::channels_prompt::{+use crate::channels::prompt::{build_system_prompt_with_identity, render_project_context, ProjectContextPlacement,PromptIdentityOverride,};diff --git a/crates/openhuman-core/src/core/observability.rs b/crates/openhuman-core/src/core/observability.rsindex 07a75efd48..66aafb4fb9 100644--- a/crates/openhuman-core/src/core/observability.rs+++ b/crates/openhuman-core/src/core/observability.rs@@ -3464,3 +3464,5 @@ pub fn is_stale_release_event(event: &sentry::protocol::Event<'_>) -> bool {#[cfg(test)]#[path = "observability_tests.rs"]mod tests;+pub(crate) mod progress_tracing;+diff --git a/crates/openhuman-core/src/lib.rs b/crates/openhuman-core/src/lib.rsindex fe71ea01e1..4929926867 100644--- a/crates/openhuman-core/src/lib.rs+++ b/crates/openhuman-core/src/lib.rs@@ -78,6 +78,8 @@ pub mod memory;pub mod modules;pub mod plan_review;pub mod platform;+pub mod progress;+pub mod prompts;pub mod profiles;pub mod sandbox;pub mod search;diff --git a/crates/openhuman-core/src/modules/tinybox.rs b/crates/openhuman-core/src/modules/tinybox.rsindex fe1b6e58b2..fffd7423df 100644--- a/crates/openhuman-core/src/modules/tinybox.rs+++ b/crates/openhuman-core/src/modules/tinybox.rs@@ -9,6 +9,8 @@ use std::time::Duration;use serde::{de::DeserializeOwned, Serialize};pub use tinybox_bus as contract;+pub mod host_runtime;+use crate::config::Config;use tinybus::module::{ModuleCallError, ModuleClient};diff --git a/crates/openhuman-core/src/security/mod.rs b/crates/openhuman-core/src/security/mod.rsindex 39cc9764f7..86ce67aa16 100644--- a/crates/openhuman-core/src/security/mod.rs+++ b/crates/openhuman-core/src/security/mod.rs@@ -20,6 +20,7 @@ pub mod pairing;pub mod policy;pub mod prompt_injection;pub mod scrub;+pub mod turn_origin;pub mod secret_storage;pub(crate) mod secure_open;diff --git a/crates/openhuman-core/src/skills/mod.rs b/crates/openhuman-core/src/skills/mod.rsindex cdcd1f5ad0..2aa84e3c31 100644--- a/crates/openhuman-core/src/skills/mod.rs+++ b/crates/openhuman-core/src/skills/mod.rs@@ -27,6 +27,8 @@ pub mod ops_types;// outright: it has always-compiled callers in `crates/openhuman-core/src/core/` and is not part of// the `skills` gate at all.pub mod catalog;+#[cfg(feature = "skills")]+pub(crate) mod run_workflow;/// Whether the ambient context has the `skills` component on. No ambient/// context (a bare library call) counts as on.diff --git a/crates/openhuman-core/src/tools/mod.rs b/crates/openhuman-core/src/tools/mod.rsindex 0fbbdb0191..5339180ebc 100644--- a/crates/openhuman-core/src/tools/mod.rs+++ b/crates/openhuman-core/src/tools/mod.rs@@ -1,4 +1,5 @@pub mod host_extensions;+pub(crate) mod delegate;pub(crate) mod native_ops;mod native_ops_types;pub mod ops;diff --git a/vendor/tinyagents b/vendor/tinyagentsindex 47b311aef9..4fb2893b8a 160000--- a/vendor/tinyagents+++ b/vendor/tinyagents@@ -1 +1 @@-Subproject commit 47b311aef96087daf2376b5331e5ba50992fff66+Subproject commit 4fb2893b8a6077a49f77d2763b80899f50058569