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(orchestration): import task types from tinyagents-tasks
Steven Enamakel23619214a7d3
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.tomlindex bef4275f5e..cad933bc7e 100644--- a/crates/openhuman-core/Cargo.toml+++ b/crates/openhuman-core/Cargo.toml@@ -152,6 +152,7 @@ tinyagents-registry = { path = "../../vendor/tinyagents/crates/tinyagents-registtinyagents-session = { path = "../../vendor/tinyagents/crates/tinyagents-session" }tinyagents-runtime = { path = "../../vendor/tinyagents/crates/tinyagents-runtime" }tinyagents-orchestration = { path = "../../vendor/tinyagents/crates/tinyagents-orchestration" }+tinyagents-tasks = { path = "../../vendor/tinyagents/crates/tinyagents-tasks" }tinyinference-core = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-core" }tinyinference-embeddings = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-embeddings" }tinyinference-llm = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-llm" }diff --git a/crates/openhuman-core/src/agent/orchestration/ops.rs b/crates/openhuman-core/src/agent/orchestration/ops.rsindex eb03c1a018..1d589a7a36 100644--- a/crates/openhuman-core/src/agent/orchestration/ops.rs+++ b/crates/openhuman-core/src/agent/orchestration/ops.rs@@ -39,7 +39,7 @@ use crate::core::events::DomainEvent;use std::collections::BTreeMap;use std::sync::Arc;use thiserror::Error;-use tinyagents_graph::orchestration::{+use tinyagents_tasks::{DetachedTaskRegistry, DetachedTaskRegistryError, DetachedTaskWaitOutcome,OrchestrationTaskStatus,};diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents.rsindex a2d3e87705..5bcaabdd32 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents.rs@@ -6,7 +6,7 @@//! closes both gaps.//!//! Each running async sub-agent registers in TinyAgents'-//! [`DetachedTaskRegistry`](tinyagents_graph::orchestration::DetachedTaskRegistry),+//! [`DetachedTaskRegistry`](tinyagents_tasks::DetachedTaskRegistry),//! keyed by its `task_id`, with://! - an `Arc<RunQueue>` — the same steering channel the steering forwarder in//! `run_turn_via_tinyagents_shared` drains mid-turn, so `steer_subagent` can@@ -28,7 +28,7 @@//!//! Alongside the executor plumbing (abort handle + steering queue + watch//! status), every detached sub-agent is also recorded in a process-wide-//! [`tinyagents` orchestration `TaskStore`](tinyagents_graph::orchestration)+//! [`tinyagents` orchestration `TaskStore`](tinyagents_tasks)//! as an `OrchestrationTaskKind::SubAgent` task. `register` inserts it//! (`Pending` → `Running`) and spawns a watcher that mirrors the child's//! terminal status into the store (`Completed`/`Failed`/`Awaiting`); the canceldiff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/registry.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/registry.rsindex 1f6d1cf2c3..b3066fe30a 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/registry.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/registry.rs@@ -27,7 +27,7 @@ use tokio::sync::watch;use tokio::task::AbortHandle;use crate::agent::tinyagents::host::steering::shared_steering_registry;-use tinyagents_graph::orchestration::DetachedTaskRegistry;+use tinyagents_tasks::DetachedTaskRegistry;use tinyagents_harness::ids::TaskId;use tinyagents_harness::run_queue::RunQueue;use tinyagents_harness::CancellationToken;diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rsindex 0b92cf6139..81bf8f01cb 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs@@ -2,7 +2,7 @@//! sub-agent: the `RunQueue` compatibility lane, and the TinyAgents//! `SteeringHandle` fast path for runs that have registered one.-use tinyagents_graph::orchestration::DetachedTaskRegistryError;+use tinyagents_tasks::DetachedTaskRegistryError;use tinyagents_harness::ids::TaskId;use tinyagents_harness::run_queue::QueueLane;use tinyagents_harness::steering::SteeringCommand;diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rsindex f8ecd3ec8f..5db94f85d0 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs@@ -12,7 +12,7 @@use std::path::{Path, PathBuf};use std::sync::{Arc, OnceLock};-use tinyagents_graph::orchestration::{+use tinyagents_tasks::{open_jsonl_task_store_or_memory, reconcile_orphaned_tasks, InMemoryTaskStore,OrchestrationTaskFilter, OrchestrationTaskRecord, TaskStore, TaskStoreRegistry,};diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rsindex 3859568bbd..0490d7459f 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs@@ -9,7 +9,7 @@ use crate::agent::tinyagents::host::steering::shared_steering_registry;use std::path::PathBuf;use std::sync::Arc;use std::time::Duration;-use tinyagents_graph::orchestration::OrchestrationTaskStatus;+use tinyagents_tasks::OrchestrationTaskStatus;use tinyagents_harness::ids::TaskId;use tinyagents_harness::run_queue::{QueueLane, RunQueue};use tinyagents_harness::steering::{SteeringCommand, SteeringHandle};diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_wire_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_wire_tests.rsindex 9a25452aca..0aaf284d49 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_wire_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_wire_tests.rs@@ -6,7 +6,7 @@use super::*;use crate::agent::orchestration::running_subagents::roster::snapshot_for_parent;use crate::agent::orchestration::running_subagents::task_ledger::task_store_for_workspace;-use tinyagents_graph::orchestration::{+use tinyagents_tasks::{OrchestrationTaskKind, OrchestrationTaskResult, OrchestrationTaskSpec,};use tinyagents_harness::ids::TaskId;diff --git a/crates/openhuman-core/src/agent/orchestration/tools/list_subagents.rs b/crates/openhuman-core/src/agent/orchestration/tools/list_subagents.rsindex 8e0edfa11a..e85661ec15 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/list_subagents.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/list_subagents.rs@@ -10,7 +10,7 @@ use crate::agent::orchestration::{use async_trait::async_trait;use serde_json::json;use std::sync::Arc;-use tinyagents_graph::orchestration::{OrchestrationTaskRecord, OrchestrationTaskStatus};+use tinyagents_tasks::{OrchestrationTaskRecord, OrchestrationTaskStatus};use tinyagents_harness::context::RunContext;use tinyagents_harness::tool::{ToolDispatch, ToolExecutionContext};use tinytools::{PermissionLevel, Tool, ToolCallOptions, ToolResult, ToolRunContext};diff --git a/crates/openhuman-core/src/agent/orchestration/types.rs b/crates/openhuman-core/src/agent/orchestration/types.rsindex 64419004fa..4fd527dedf 100644--- a/crates/openhuman-core/src/agent/orchestration/types.rs+++ b/crates/openhuman-core/src/agent/orchestration/types.rs@@ -9,7 +9,7 @@use serde::{Deserialize, Serialize};use std::collections::BTreeMap;-pub use tinyagents_graph::orchestration::OrchestrationTaskStatus;+pub use tinyagents_tasks::OrchestrationTaskStatus;/// Request to spawn a child agent from the current parent agent turn.#[derive(Debug, Clone, Default, Serialize, Deserialize)]diff --git a/crates/openhuman-core/src/agent/tinyagents/host/steering.rs b/crates/openhuman-core/src/agent/tinyagents/host/steering.rsindex 60921aadaf..4817b955ea 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/steering.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/steering.rs@@ -2,7 +2,7 @@use std::sync::OnceLock;-use tinyagents_graph::orchestration::SteeringRegistry;+use tinyagents_tasks::SteeringRegistry;#[cfg(test)]use tinyagents_harness::ids::TaskId;use tinyagents_harness::steering::{SteeringCommandKind, SteeringHandle, SteeringPolicy};