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
//! OpenHuman's implementations of the TinyAgents host capability traits.
//!
//! Each module here adapts one crate trait
//! ([`tinyagents_harness::host`]) onto the OpenHuman domains that actually
//! provide the behaviour. This is `docs/specs/plan-agents.md` **Phase 4**: the
//! agent runtime stops reaching into 45 domains directly and instead asks ten
//! capabilities, each of which is implemented here.
//!
//! # Why this is the valuable half
//!
//! Nothing has *moved* yet, and nothing needs to. Once `agent/` calls these
//! traits instead of the domains, its outbound coupling is ten seams rather
//! than forty-five — which is most of the architectural benefit of the
//! relocation with none of its risk. The plan explicitly allows the program to
//! stop here.
//!
//! # This is where policy lives
//!
//! The crate deliberately knows nothing about taint, scope, redaction,
//! approval, or egress budget. That is not an oversight — it is the boundary.
//! Every one of those guarantees is enforced in *these* files, on the way in
//! and out of the trait. An adapter that widens a permission or drops a scope
//! filter to make a signature fit would silently disable a guarantee the rest
//! of the system assumes, and no crate-side test could catch it.
//!
//! [`OpenHumanRunContext`] is the host-owned, explicit per-turn state. It is
//! the sole input to the host bundle factory for per-turn handles; no adapter
//! discovers its state through a task-local.
pub mod budget_gate;
mod bundle;
mod copy;
pub mod definition_registry;
mod operation_context;
pub mod run_context;
pub mod security_gate;
pub(crate) mod steering;
pub mod tool_outcome_classifier;
pub use budget_gate::OpenHumanBudgetGate;
pub use bundle::{
OpenHumanHostBase, OpenHumanHostBundle, OpenHumanHostBundleFactory, OpenHumanHostBundleInputs,
OpenHumanHostInvocationInputs,
};
pub(crate) use copy::OpenHumanCopyProvider;
pub use definition_registry::OpenHumanDefinitionRegistry;
pub use run_context::{
decide_dispatch, DispatchDecision, DispatchInputs, LastTurnUsage, OpenHumanRunContext,
OpenHumanRunExt, SubagentUsageEntry, TurnDispatchState,
};
pub(crate) use run_context::{direct_subagent_child, HarnessHostPolicy};
pub use security_gate::OpenHumanSecurityGate;
pub use tool_outcome_classifier::OpenHumanToolOutcomeClassifier;