Skip to content

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

feat(agent): expose agent_teams module and tidy prompt docs

Steven Enamakele08aa1b28c50
diff --git a/crates/openhuman-core/src/agent/orchestration/mod.rs b/crates/openhuman-core/src/agent/orchestration/mod.rs
index 0dae4cbdb9..80b8d49551 100644
--- a/crates/openhuman-core/src/agent/orchestration/mod.rs
+++ b/crates/openhuman-core/src/agent/orchestration/mod.rs
@@ -15,6 +15,7 @@
//! [`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;
diff --git a/crates/openhuman-core/src/agent/prompts/README.md b/crates/openhuman-core/src/agent/prompts/README.md
index b400667af5..7ce911c99d 100644
--- a/crates/openhuman-core/src/agent/prompts/README.md
+++ b/crates/openhuman-core/src/agent/prompts/README.md
@@ -88,7 +88,9 @@ Other domains contribute prompt content without living in this directory:
session-scoped bytes land at the tail of the prompt.
Built-in archetype system prompts (orchestrator, planner, image_agent,
-and so on) live in `agent_registry/agents/<name>/prompt.rs` and
+and so on) generally live in `agent_registry/agents/<name>/prompt.rs`; the
+trigger triage and reactor prompt builders live with `triage`. The remaining
+builders and
`flows/agents/{flow_discovery,workflow_builder}/prompt.rs`, not here. Each is a
`PromptSource::Dynamic` function that hand-assembles its body via the
`render_*` helpers; [`agent/session_host/builder/factory.rs`](../session_host/builder/factory.rs) wraps it with
diff --git a/crates/openhuman-core/src/agent_registry/agents/mod.rs b/crates/openhuman-core/src/agent_registry/agents/mod.rs
index f42420a369..8b283cd438 100644
--- a/crates/openhuman-core/src/agent_registry/agents/mod.rs
+++ b/crates/openhuman-core/src/agent_registry/agents/mod.rs
@@ -1,8 +1,8 @@
//! Built-in agent archetypes.
//!
-//! Each submodule below is one shipped agent and owns the same three
-//! files, so none of the 29 leaf `mod.rs` files need their own doc
-//! comment:
+//! Each submodule below is one shipped agent and generally has the same three
+//! files, so none of the leaf `mod.rs` files need their own doc comment. The
+//! trigger prompt builders live with the triage domain instead:
//!
//! * `agent.toml` — id, `when_to_use`, model, tool scope, sandbox mode,
//! iteration cap, tier, and `omit_*` flags. Parsed directly into
diff --git a/crates/openhuman-core/src/agent_runs/workflow_runs/mod.rs b/crates/openhuman-core/src/agent_runs/workflow_runs/mod.rs
index 4cde8b2602..7f36351c90 100644
--- a/crates/openhuman-core/src/agent_runs/workflow_runs/mod.rs
+++ b/crates/openhuman-core/src/agent_runs/workflow_runs/mod.rs
@@ -3,12 +3,10 @@
#[path = "../../agent/orchestration/workflow_runs/host.rs"]
mod host;
mod engine {
- mod cancel {
- include!("../../agent/orchestration/workflow_runs/engine/cancel.rs");
- }
- mod lifecycle {
- include!("../../agent/orchestration/workflow_runs/engine/lifecycle.rs");
- }
+ #[path = "../../../agent/orchestration/workflow_runs/engine/cancel.rs"]
+ mod cancel;
+ #[path = "../../../agent/orchestration/workflow_runs/engine/lifecycle.rs"]
+ mod lifecycle;
pub(super) const LOG_TARGET: &str = "workflow_run_engine";
pub use lifecycle::{resume_workflow_run, start_workflow_run, stop_workflow_run};
}