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(agent): move parent execution context into subagent host
Steven Enamakeladaeb165dea8
diff --git a/crates/openhuman-core/src/agent/harness/mod.rs b/crates/openhuman-core/src/agent/harness/mod.rsindex 0eedce7151..3acd33290d 100644--- a/crates/openhuman-core/src/agent/harness/mod.rs+++ b/crates/openhuman-core/src/agent/harness/mod.rs@@ -13,14 +13,10 @@//! - **Typed Sub-agents**: Skip unnecessary system prompt sections (e.g.,//! identity, global skills) to keep sub-agent prompts small.//!-//! ## Key Sub-modules-//! - **[`fork_context`]**: The parent execution snapshot handed to sub-agents.-//!//! Cancellation is handled by the tinyagents steering channel (see//! `crate::agent::tinyagents`); there is no in-house interrupt fence.pub mod artifact_offload;-pub mod fork_context;pub(crate) mod graph;#[cfg(test)]pub(crate) mod test_support;@@ -29,6 +25,4 @@ pub(crate) mod tool_result_artifacts;// NOTE: deliberately no flat re-export here. `artifact_offload::ArtifactKind`// would shadow the unrelated `openhuman::artifacts::ArtifactKind` for anyone// glob-importing this module; callers import the owning library directly.-pub use fork_context::{AgentContextPreparedSource, ParentExecutionContext};-pub(crate) use graph::run_channel_turn_via_graph;diff --git a/crates/openhuman-core/src/agent/harness/fork_context.rs b/crates/openhuman-core/src/agent/subagent_host/fork_context.rssimilarity index 100%rename from crates/openhuman-core/src/agent/harness/fork_context.rsrename to crates/openhuman-core/src/agent/subagent_host/fork_context.rsdiff --git a/crates/openhuman-core/src/agent/subagent_host/mod.rs b/crates/openhuman-core/src/agent/subagent_host/mod.rsindex f4512efb7a..39cc1e09b0 100644--- a/crates/openhuman-core/src/agent/subagent_host/mod.rs+++ b/crates/openhuman-core/src/agent/subagent_host/mod.rs@@ -36,6 +36,7 @@//! | `ops/` | typed/fork mode and TinyAgents graph route |//! | `tool_prep.rs` | Tool filtering + prompt loading + prompt protocol block |+mod fork_context;mod autonomous;mod lifecycle;mod ops;@@ -56,6 +57,7 @@ mod persisted_compat_tests;// Public API — the entry point and the shapes it returns.pub use autonomous::{definition_iter_cap, subagent_iter_cap_with_autonomous_lift};+pub use fork_context::{AgentContextPreparedSource, ParentExecutionContext};pub(crate) use lifecycle::checkpoint_resume;pub(crate) use lifecycle::detached_subagent_parent;pub(crate) use lifecycle::load_subagent_checkpoint;