Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(agent): add fork context harness

Steven Enamakelaa4189c6bc41
diff --git a/crates/openhuman-core/src/agent/harness/fork_context.rs b/crates/openhuman-core/src/agent/harness/fork_context.rs
index b9a24c4016..a6eb750f34 100644
--- a/crates/openhuman-core/src/agent/harness/fork_context.rs
+++ b/crates/openhuman-core/src/agent/harness/fork_context.rs
@@ -152,6 +152,12 @@ pub struct ParentExecutionContext {
/// boundary as web-channel queue messages.
pub run_queue:
Option<Arc<tinyagents_harness::run_queue::RunQueue<crate::agent::queued_turn::QueuedTurn>>>,
+
+ /// The host environment of the turn that built this snapshot (shared model
+ /// budget, delegation depth, hooks, cancellation). Runs started from the
+ /// snapshot instead of a live harness carrier (the orchestration control
+ /// plane, triage escalation) apply it so host policy follows delegation.
+ pub host_env: crate::agent::turn_env::HostTurnEnv,
}
/// A context-preparation source that already ran for the current parent turn.