Skip to content

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

feat(cli): add openhuman-embed crate and wire it into the agent harness

Steven Enamakel7d52f69182e0
diff --git a/Cargo.lock b/Cargo.lock
index a7245f8836..639c3814f6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4683,6 +4683,7 @@ dependencies = [
"sha2 0.10.9",
"tar",
"tempfile",
+ "tinyagents-definition",
"tinyagents-graph",
"tinyagents-harness",
"tinyagents-session",
@@ -4734,6 +4735,7 @@ dependencies = [
"serde_json",
"tempfile",
"thiserror 2.0.20",
+ "tinyagents-definition",
"tinyagents-graph",
"tinyagents-harness",
"tinyagents-session",
diff --git a/crates/openhuman-cli/Cargo.toml b/crates/openhuman-cli/Cargo.toml
index 634adc6d96..78fb414f7b 100644
--- a/crates/openhuman-cli/Cargo.toml
+++ b/crates/openhuman-cli/Cargo.toml
@@ -373,6 +373,7 @@ sha2 = "0.10"
tar = "0.4"
tinyagents-graph = { path = "../../vendor/tinyagents/crates/tinyagents-graph", features = ["sqlite", "storage-drivers"] }
tinyagents-harness = { path = "../../vendor/tinyagents/crates/tinyagents-harness", features = ["sqlite", "multimodal"] }
+tinyagents-definition = { path = "../../vendor/tinyagents/crates/tinyagents-definition" }
tinyagents-session = { path = "../../vendor/tinyagents/crates/tinyagents-session" }
tinydocs-bus = { path = "../../vendor/tinydocs/crates/tinydocs-bus" }
tinysearch-bus = { path = "../../vendor/tinysearch/crates/tinysearch-bus" }
diff --git a/crates/openhuman-core/src/agent/harness/mod.rs b/crates/openhuman-core/src/agent/harness/mod.rs
index d03fc501d4..2d5ea75187 100644
--- a/crates/openhuman-core/src/agent/harness/mod.rs
+++ b/crates/openhuman-core/src/agent/harness/mod.rs
@@ -14,7 +14,7 @@
//! identity, global skills) to keep sub-agent prompts small.
//!
//! ## Key Sub-modules
-//! - **[`definition`]**: Data structures for defining an agent's archetype.
+//! - **[`host_definition`]**: OpenHuman's extension slot and registry over `tinyagents-definition`.
//! - **[`fork_context`]**: Task-local storage for parent context sharing.
//!
//! Cancellation is handled by the tinyagents steering channel (see
@@ -30,10 +30,6 @@ pub(crate) mod tool_result_artifacts;
// NOTE: deliberately no flat re-export here. `artifact_offload::ArtifactKind`
// would shadow the unrelated `openhuman::agent::artifacts::ArtifactKind` for anyone
// glob-importing this module; callers import the owning library directly.
-pub use definition::{
- AgentDefinition, AgentDefinitionRegistry, DefinitionSource, ModelSpec, PromptSource,
- SandboxMode, ToolScope,
-};
pub use fork_context::{
current_parent, with_parent_context, AgentContextPreparedSource, ParentExecutionContext,
};
diff --git a/crates/openhuman-embed/Cargo.toml b/crates/openhuman-embed/Cargo.toml
index 2c58405d12..cbc5dfead3 100644
--- a/crates/openhuman-embed/Cargo.toml
+++ b/crates/openhuman-embed/Cargo.toml
@@ -78,6 +78,7 @@ tinymcp-bus = { path = "../../vendor/tinymcp/crates/tinymcp-bus" }
# conversations in its own database, and the in-memory provider; same path as
# the core's so one copy resolves.
tinyagents-harness = { path = "../../vendor/tinyagents/crates/tinyagents-harness", default-features = false }
+tinyagents-definition = { path = "../../vendor/tinyagents/crates/tinyagents-definition" }
tinyagents-session = { path = "../../vendor/tinyagents/crates/tinyagents-session" }
# Native persisted todo codec exposed by the existing session-store contract.
tinyagents-graph = { path = "../../vendor/tinyagents/crates/tinyagents-graph", default-features = false }