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
refactor(agent): drop per-definition graph field
Steven Enamakel0548811f2b31
diff --git a/crates/openhuman-core/src/agent/harness/README.md b/crates/openhuman-core/src/agent/harness/README.mdindex bbe77e2b15..c6c52aa821 100644--- a/crates/openhuman-core/src/agent/harness/README.md+++ b/crates/openhuman-core/src/agent/harness/README.md@@ -14,7 +14,7 @@ Cancellation is the tinyagents steering channel (`SteeringCommand` in`crate::agent::tinyagents`); there is no in-house interrupt fence orcancellation token owned here. The message queue that lets a caller steer orfollow up on an in-flight turn is `tinyagents_harness::run_queue::RunQueue`,-used here (not defined here) by [`agent_graph.rs`](./agent_graph.rs) and [`fork_context.rs`](./fork_context.rs).+used here (not defined here) by [`fork_context.rs`](./fork_context.rs).## Responsibilities@@ -111,7 +111,7 @@ turn lifecycle are in `../session_host/`; `run_subagent`,## Notes / gotchas-- `agent_graph.rs`, [`artifact_offload/mod.rs`](./artifact_offload/mod.rs), and+- [`artifact_offload/mod.rs`](./artifact_offload/mod.rs) and[`../subagent_host/ops/runner.rs`](../subagent_host/ops/runner.rs) cite `docs/specs/plan-agents.md` as theplan for moving durable state, the sub-agent graph, and offload mechanicsonto TinyAgents primitives. That file is not checked into this repo, so thediff --git a/crates/openhuman-core/src/agent/harness/builtin_definitions.rs b/crates/openhuman-core/src/agent/harness/builtin_definitions.rsindex 5fc645ff06..9a0c55403c 100644--- a/crates/openhuman-core/src/agent/harness/builtin_definitions.rs+++ b/crates/openhuman-core/src/agent/harness/builtin_definitions.rs@@ -82,7 +82,6 @@ pub(crate) fn test_main_def() -> AgentDefinition {agent_tier: AgentTier::Chat,searches_connected_mcp: false,source: DefinitionSource::Builtin,- graph: Default::default(),}}@@ -125,7 +124,6 @@ pub(crate) fn test_inherit_echo_def() -> AgentDefinition {agent_tier: crate::agent::harness::definition::AgentTier::Worker,searches_connected_mcp: false,source: DefinitionSource::Builtin,- graph: Default::default(),}}@@ -164,7 +162,6 @@ pub(crate) fn test_inherit_parallel_worker_def() -> AgentDefinition {agent_tier: crate::agent::harness::definition::AgentTier::Worker,searches_connected_mcp: false,source: DefinitionSource::Builtin,- graph: Default::default(),}}diff --git a/crates/openhuman-core/src/agent/harness/definition_tests.rs b/crates/openhuman-core/src/agent/harness/definition_tests.rsindex a28b3cae28..3994a6e996 100644--- a/crates/openhuman-core/src/agent/harness/definition_tests.rs+++ b/crates/openhuman-core/src/agent/harness/definition_tests.rs@@ -30,7 +30,6 @@ fn make_def(id: &str) -> AgentDefinition {agent_tier: crate::agent::harness::definition::AgentTier::Worker,searches_connected_mcp: false,source: DefinitionSource::Builtin,- graph: Default::default(),}}diff --git a/crates/openhuman-core/src/agent/library/ops_tests.rs b/crates/openhuman-core/src/agent/library/ops_tests.rsindex 62c7059d5e..a34ff80675 100644--- a/crates/openhuman-core/src/agent/library/ops_tests.rs+++ b/crates/openhuman-core/src/agent/library/ops_tests.rs@@ -36,7 +36,6 @@ fn definition() -> AgentDefinition {agent_tier: AgentTier::Worker,searches_connected_mcp: false,source: DefinitionSource::Builtin,- graph: Default::default(),}}diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rsindex 16c98ada2f..8eed57671f 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_parallel_agents_tests.rs@@ -172,7 +172,6 @@ fn definition_with_tool_scope(agent_tier: AgentTier::Worker,searches_connected_mcp: false,source: DefinitionSource::Builtin,- graph: Default::default(),}}diff --git a/crates/openhuman-core/src/agent/registry/defaults.rs b/crates/openhuman-core/src/agent/registry/defaults.rsindex 27d71607e0..c7e3a7f1d3 100644--- a/crates/openhuman-core/src/agent/registry/defaults.rs+++ b/crates/openhuman-core/src/agent/registry/defaults.rs@@ -115,7 +115,6 @@ pub fn definition_from_registry_entry(entry: &AgentRegistryEntry) -> AgentDefiniagent_tier: AgentTier::Worker,searches_connected_mcp: false,source: DefinitionSource::CustomRegistry,- graph: Default::default(),}}diff --git a/crates/openhuman-core/src/agent/schemas.rs b/crates/openhuman-core/src/agent/schemas.rsindex 2d242c8085..f771ab92ca 100644--- a/crates/openhuman-core/src/agent/schemas.rs+++ b/crates/openhuman-core/src/agent/schemas.rs@@ -484,11 +484,7 @@ fn handle_graph_topologies(_params: Map<String, Value>) -> ControllerFuture {.map_err(|e| format!("loading built-in agent graph resolutions: {e}"))?.into_iter().map(|def| {- let graph = if def.graph.is_default() {- "default"- } else {- "custom"- };+ let graph = "default";serde_json::json!({"id": def.id,"graph": graph,diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests.rsindex a2747625c1..21ff036e13 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs@@ -32,7 +32,6 @@ fn make_def_named_tools(names: &[&str]) -> AgentDefinition {agent_tier: crate::agent::harness::definition::AgentTier::Worker,searches_connected_mcp: false,source: crate::agent::harness::definition::DefinitionSource::Builtin,- graph: Default::default(),}}diff --git a/crates/openhuman-core/src/agent/tinyagents/payload_summarizer_tests.rs b/crates/openhuman-core/src/agent/tinyagents/payload_summarizer_tests.rsindex b2ef8ca627..23723ae50a 100644--- a/crates/openhuman-core/src/agent/tinyagents/payload_summarizer_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/payload_summarizer_tests.rs@@ -36,7 +36,6 @@ fn dummy_definition() -> AgentDefinition {agent_tier: crate::agent::harness::definition::AgentTier::Worker,searches_connected_mcp: false,source: DefinitionSource::Builtin,- graph: Default::default(),}}diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/mod_scoping_tests_tests.rs b/crates/openhuman-core/src/channels/runtime/dispatch/mod_scoping_tests_tests.rsindex 04f0763fdf..26d5eecf2d 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/mod_scoping_tests_tests.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/mod_scoping_tests_tests.rs@@ -75,7 +75,6 @@ fn def_with_scope(scope: ToolScope) -> AgentDefinition {agent_tier: crate::agent::harness::definition::AgentTier::Worker,searches_connected_mcp: false,source: DefinitionSource::Builtin,- graph: Default::default(),}}diff --git a/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs b/crates/openhuman-core/src/tools/orchestrator_tools_tests.rsindex a860256ce3..2a26d3d7d2 100644--- a/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs+++ b/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs@@ -33,7 +33,6 @@ fn def(id: &str, when_to_use: &str, delegate_name: Option<&str>) -> AgentDefinitagent_tier: crate::agent::harness::definition::AgentTier::Worker,searches_connected_mcp: false,source: DefinitionSource::Builtin,- graph: Default::default(),}}diff --git a/vendor/tinyagents b/vendor/tinyagentsindex 991f34408a..8759aaff2f 160000--- a/vendor/tinyagents+++ b/vendor/tinyagents@@ -1 +1 @@-Subproject commit 991f34408a0b7e0a2b1fd9ad0e6d15f985e5e0a7+Subproject commit 8759aaff2f5d2fcc1c9ae64005d396d3a80af410diff --git a/vendor/tinymemory b/vendor/tinymemoryindex 44624c9b93..804ee123a3 160000--- a/vendor/tinymemory+++ b/vendor/tinymemory@@ -1 +1 @@-Subproject commit 44624c9b93636db0191502142b50e1cea01aa896+Subproject commit 804ee123a3417d8b52db92f51132cd343119e99c