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(plan_review): move plan review module out of agent
Steven Enamakel7b53ebaf791f
diff --git a/crates/openhuman-core/src/agent/bus.rs b/crates/openhuman-core/src/agent/bus.rsindex 0b68a00957..3db176a59d 100644--- a/crates/openhuman-core/src/agent/bus.rs+++ b/crates/openhuman-core/src/agent/bus.rs@@ -30,7 +30,7 @@ use crate::security::prompt_injection::{use tinyagents_session::transcript::TranscriptMessage;use tinytools::Tool;-use super::harness::host_definition::AgentDefinitionRegistry;+use crate::agent_registry::host_definition::AgentDefinitionRegistry;use super::harness::run_channel_turn_via_graph;use tinyagents_definition::SandboxMode;use tinytools_std::file_state::with_file_state_agent_id;diff --git a/crates/openhuman-core/src/agent/harness/test_support.rs b/crates/openhuman-core/src/agent/harness/test_support.rsindex 1601bfcc75..b573b3ffe9 100644--- a/crates/openhuman-core/src/agent/harness/test_support.rs+++ b/crates/openhuman-core/src/agent/harness/test_support.rs@@ -1,6 +1,6 @@//! Test-only agent definitions used by harness and orchestration tests.-use super::host_definition::AgentDefinition;+use crate::agent_registry::host_definition::AgentDefinition;use tinyagents_definition::DefinitionSource;/// Test-only parent used by `AgentBuilder`'s default `agent_definition_name = "main"`.diff --git a/crates/openhuman-core/src/agent/queued_turn.rs b/crates/openhuman-core/src/agent/queued_turn.rsindex b3280184aa..5766514dec 100644--- a/crates/openhuman-core/src/agent/queued_turn.rs+++ b/crates/openhuman-core/src/agent/queued_turn.rs@@ -41,7 +41,7 @@ pub fn text_preview(text: &str) -> String {let mut names = Vec::new();let caption = MARKERS.replace_all(text, |capture: ®ex::Captures<'_>| {if &capture[1] == "ATTACHMENT" {- let (_, files) = super::attachments::parse(&capture[0]);+ let (_, files) = crate::attachments::parse(&capture[0]);let Some(file) = files.into_iter().next() else {return capture[0].to_owned();};diff --git a/crates/openhuman-core/src/agent/queued_turn_tests.rs b/crates/openhuman-core/src/agent/queued_turn_tests.rsindex 6694d79ad8..9af5bf2eed 100644--- a/crates/openhuman-core/src/agent/queued_turn_tests.rs+++ b/crates/openhuman-core/src/agent/queued_turn_tests.rs@@ -1,7 +1,7 @@use super::*;fn marker(name: &str) -> String {- super::super::attachments::Attachment {+ crate::attachments::Attachment {path: "uploads/thread/id/file.zip".into(),name: name.into(),mime: "application/zip".into(),@@ -42,7 +42,7 @@ fn mixed_markers_keep_source_order() {#[test]fn invalid_durable_reference_stays_literal() {- let invalid = super::super::attachments::Attachment {+ let invalid = crate::attachments::Attachment {path: "../escape.zip".into(),name: "escape.zip".into(),mime: "application/zip".into(),diff --git a/crates/openhuman-core/src/agent_registry/agents/loader.rs b/crates/openhuman-core/src/agent_registry/agents/loader.rsindex 489e747b91..7dd714b4ae 100644--- a/crates/openhuman-core/src/agent_registry/agents/loader.rs+++ b/crates/openhuman-core/src/agent_registry/agents/loader.rs@@ -123,7 +123,7 @@ pub const BUILTINS: &[BuiltinAgent] = &[#[cfg(feature = "skills")]BuiltinAgent {id: "skill_setup",- toml: include_str!("../../../skills/catalog/agent/skill_setup/agent.toml"),+ toml: include_str!("../../skills/catalog/agent/skill_setup/agent.toml"),prompt_fn: crate::skills::catalog::agent::skill_setup::prompt::build,},// Workflow-authoring specialist (Phase 5a): builds tinyflows automation@@ -134,7 +134,7 @@ pub const BUILTINS: &[BuiltinAgent] = &[#[cfg(feature = "flows")]BuiltinAgent {id: "workflow_builder",- toml: include_str!("../../../flows/agents/workflow_builder/agent.toml"),+ toml: include_str!("../../flows/agents/workflow_builder/agent.toml"),prompt_fn: crate::flows::agents::workflow_builder::prompt::build,},// Workflow-discovery specialist (the "Flow Scout"): reads the user's@@ -147,7 +147,7 @@ pub const BUILTINS: &[BuiltinAgent] = &[#[cfg(feature = "flows")]BuiltinAgent {id: "flow_discovery",- toml: include_str!("../../../flows/agents/flow_discovery/agent.toml"),+ toml: include_str!("../../flows/agents/flow_discovery/agent.toml"),prompt_fn: crate::flows::agents::flow_discovery::prompt::build,},];diff --git a/crates/openhuman-core/src/agent_registry/agents/loader_tests_builtin_registration_tests.rs b/crates/openhuman-core/src/agent_registry/agents/loader_tests_builtin_registration_tests.rsindex 99955e988e..123e0e4ee8 100644--- a/crates/openhuman-core/src/agent_registry/agents/loader_tests_builtin_registration_tests.rs+++ b/crates/openhuman-core/src/agent_registry/agents/loader_tests_builtin_registration_tests.rs@@ -131,7 +131,7 @@ fn folder_ids_match_toml_ids() {fn coding_agent_prompts_reference_action_sandbox_not_stale_workspace() {// The coding playbook is the `coding` skill's guide now (the// `code_executor` specialist it replaced is gone).- let coding = include_str!("../../../tools/toolpacks/guides/coding.md");+ let coding = include_str!("../../tools/toolpacks/guides/coding.md");assert!(!coding.contains("sandboxed environment"),"guides/coding.md says 'sandboxed environment' generically — anchor in \diff --git a/crates/openhuman-core/src/agent/plan_review/gate.rs b/crates/openhuman-core/src/plan_review/gate.rssimilarity index 100%rename from crates/openhuman-core/src/agent/plan_review/gate.rsrename to crates/openhuman-core/src/plan_review/gate.rsdiff --git a/crates/openhuman-core/src/agent/plan_review/gate_tests.rs b/crates/openhuman-core/src/plan_review/gate_tests.rssimilarity index 100%rename from crates/openhuman-core/src/agent/plan_review/gate_tests.rsrename to crates/openhuman-core/src/plan_review/gate_tests.rsdiff --git a/crates/openhuman-core/src/agent/plan_review/mod.rs b/crates/openhuman-core/src/plan_review/mod.rssimilarity index 100%rename from crates/openhuman-core/src/agent/plan_review/mod.rsrename to crates/openhuman-core/src/plan_review/mod.rsdiff --git a/crates/openhuman-core/src/agent/plan_review/schemas.rs b/crates/openhuman-core/src/plan_review/schemas.rssimilarity index 100%rename from crates/openhuman-core/src/agent/plan_review/schemas.rsrename to crates/openhuman-core/src/plan_review/schemas.rsdiff --git a/crates/openhuman-core/src/agent/plan_review/schemas_tests.rs b/crates/openhuman-core/src/plan_review/schemas_tests.rssimilarity index 100%rename from crates/openhuman-core/src/agent/plan_review/schemas_tests.rsrename to crates/openhuman-core/src/plan_review/schemas_tests.rsdiff --git a/crates/openhuman-core/src/agent/plan_review/tool.rs b/crates/openhuman-core/src/plan_review/tool.rssimilarity index 100%rename from crates/openhuman-core/src/agent/plan_review/tool.rsrename to crates/openhuman-core/src/plan_review/tool.rsdiff --git a/crates/openhuman-core/src/agent/plan_review/tool_tests.rs b/crates/openhuman-core/src/plan_review/tool_tests.rssimilarity index 100%rename from crates/openhuman-core/src/agent/plan_review/tool_tests.rsrename to crates/openhuman-core/src/plan_review/tool_tests.rsdiff --git a/crates/openhuman-core/src/agent/plan_review/types.rs b/crates/openhuman-core/src/plan_review/types.rssimilarity index 100%rename from crates/openhuman-core/src/agent/plan_review/types.rsrename to crates/openhuman-core/src/plan_review/types.rsdiff --git a/vendor/tinyagents b/vendor/tinyagentsindex a92c3b04a0..4e1975e024 160000--- a/vendor/tinyagents+++ b/vendor/tinyagents@@ -1 +1 @@-Subproject commit a92c3b04a017d40d3603fb52930c97a817948366+Subproject commit 4e1975e0242674c692f85fca1036323104f8512f