Skip to content

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

refactor(agent): drop unused orchestration re-exports and expose agent_runs

Steven Enamakelca270fc224f3
diff --git a/crates/openhuman-core/src/agent/orchestration/agent_teams/mod.rs b/crates/openhuman-core/src/agent/orchestration/agent_teams/mod.rs
index aa11ba7340..3350b9753e 100644
--- a/crates/openhuman-core/src/agent/orchestration/agent_teams/mod.rs
+++ b/crates/openhuman-core/src/agent/orchestration/agent_teams/mod.rs
@@ -23,9 +23,4 @@
//! which manages backend org/team membership.
pub mod runtime;
-mod schemas;
pub use runtime::start_member_run;
-pub use schemas::{
- all_controller_schemas as all_agent_team_controller_schemas,
- all_registered_controllers as all_agent_team_registered_controllers,
-};
diff --git a/crates/openhuman-core/src/agent/orchestration/mod.rs b/crates/openhuman-core/src/agent/orchestration/mod.rs
index efd53b1401..0dae4cbdb9 100644
--- a/crates/openhuman-core/src/agent/orchestration/mod.rs
+++ b/crates/openhuman-core/src/agent/orchestration/mod.rs
@@ -15,11 +15,9 @@
//! [`running_subagents`] mirrors detached-sub-agent lifecycle into a
//! TinyAgents task store.
-pub mod agent_teams;
pub(crate) mod background_completions;
pub(crate) mod background_delivery;
pub(crate) mod busy_guard;
-pub mod command_center;
pub(crate) mod completion_notice;
pub(crate) mod completion_owners;
pub(crate) mod completion_target;
@@ -33,14 +31,11 @@ pub(crate) mod parent_context;
pub(crate) mod run_ledger_finalize;
pub(crate) mod running_subagents;
pub(crate) mod spawn_parallel;
-pub mod subagent_control;
pub(crate) mod subagent_events;
pub(crate) mod subagent_sessions;
pub mod tools;
pub mod types;
-pub mod workflow_runs;
pub mod worktree;
-mod worktree_schemas;
#[cfg(test)]
mod ops_tests;
@@ -53,10 +48,6 @@ mod background_completions_tenant_tests;
#[path = "background_delivery_tenant_tests.rs"]
mod background_delivery_tenant_tests;
-pub use agent_teams::{all_agent_team_controller_schemas, all_agent_team_registered_controllers};
-pub use command_center::{
- all_command_center_controller_schemas, all_command_center_registered_controllers,
-};
pub use ops::{AgentOrchestrationSession, OrchestrationError};
/// Release the background-completion logs this process holds open. The core
@@ -64,18 +55,7 @@ pub use ops::{AgentOrchestrationSession, OrchestrationError};
pub async fn release_background_completion_stores() -> usize {
background_completions::release_all().await
}
-pub use subagent_control::{
- all_controller_schemas as all_subagent_control_controller_schemas,
- all_registered_controllers as all_subagent_control_registered_controllers,
-};
pub use types::{
AgentSnapshot, SpawnAgentRequest, SpawnAgentResponse, WaitAgentOptions, WaitAgentResponse,
};
-pub use workflow_runs::{
- all_workflow_run_controller_schemas, all_workflow_run_registered_controllers,
-};
pub use worktree::OpenHumanWorktreeIsolation;
-pub use worktree_schemas::{
- all_controller_schemas as all_worktree_controller_schemas,
- all_registered_controllers as all_worktree_registered_controllers,
-};
diff --git a/crates/openhuman-core/src/agent/tinyagents/mod.rs b/crates/openhuman-core/src/agent/tinyagents/mod.rs
index 73ea687087..b3a3c1f052 100644
--- a/crates/openhuman-core/src/agent/tinyagents/mod.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/mod.rs
@@ -50,7 +50,6 @@ pub mod payload_summarizer;
mod policy_denial;
pub(crate) mod reaper;
pub(crate) mod reasoning;
-pub(crate) mod replay;
mod routes;
mod steering_forwarder;
pub(crate) mod stop_hooks;
diff --git a/crates/openhuman-core/src/lib.rs b/crates/openhuman-core/src/lib.rs
index 4a5fd054b4..5083a8056d 100644
--- a/crates/openhuman-core/src/lib.rs
+++ b/crates/openhuman-core/src/lib.rs
@@ -54,6 +54,7 @@
pub mod agent;
pub mod agent_registry;
+pub mod agent_runs;
pub mod artifacts;
pub mod backend;
pub mod channels;
diff --git a/docs/gitbooks/en/developing/architecture/agent-harness.md b/docs/gitbooks/en/developing/architecture/agent-harness.md
index 05de5ab201..381208e4c7 100644
--- a/docs/gitbooks/en/developing/architecture/agent-harness.md
+++ b/docs/gitbooks/en/developing/architecture/agent-harness.md
@@ -625,13 +625,13 @@ The harness shell lives under `crates/openhuman-core/src/agent/`, with the tinya
| `harness/graph.rs` | The channel/CLI bus turn route into the tinyagents runner. |
| `subagent_host/` | Direct OpenHuman planner/executor/persistence adapters for `tinyagents-orchestration::subagent`; product prompt/tool/model/security/artifact/progress behavior remains here. |
| `orchestration/subagent_sessions/` | Durable reusable sub-agent identity, compatibility matching, persisted status/history. |
-| `agent_registry/host_definition.rs` | Host extension and registry over `tinyagents_definition::AgentDefinition`. |
+| `../agent_registry/host_definition.rs` | Host extension and registry over `tinyagents_definition::AgentDefinition`. |
| `subagent_host/ops/runner.rs` | Integration-tool ranking and the host execution leaf; generic lifecycle stays in `tinyagents-orchestration`. |
| `tinyagents/payload_summarizer.rs` | The model call behind TinyJuice's oversized-tool-result summary. |
| `session_host/tool_progress.rs` | Surviving OpenHuman seam: `TurnProgress`. |
| `message_convert.rs` | Concrete durable/provider conversion around canonical tool-call dialect APIs. |
| `triage/` | External-trigger classification + escalation. |
-| `agent_registry/agents/` | Built-in archetypes: one subdirectory per agent. |
+| `../agent_registry/agents/` | Built-in archetypes: one subdirectory per agent. |
| `hooks.rs` / `stop_hooks.rs` | Post-turn and mid-turn hook surfaces. |
| `cost.rs` | Per-turn USD/token accounting. |
| `progress.rs` | Real-time progress events to the UI. |