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(todos): consolidate todo tools into a single session-scoped tool
Steven Enamakel19be70530a23
diff --git a/crates/openhuman-core/src/agent/tinyagents/harness_tool_registration.rs b/crates/openhuman-core/src/agent/tinyagents/harness_tool_registration.rsindex 99f64ecd99..bcd25eb9a7 100644--- a/crates/openhuman-core/src/agent/tinyagents/harness_tool_registration.rs+++ b/crates/openhuman-core/src/agent/tinyagents/harness_tool_registration.rs@@ -20,7 +20,7 @@ use crate::agent::orchestration::tools::{use crate::agent::tinyagents::host::OpenHumanRunContext;use crate::agent::tinyagents::tools::{CanonicalSharedToolAdapter, EarlyExitHook};use crate::agent::tinyagents::turn_policy::is_subagent_spawn_or_delegate_tool;-use crate::agent::tools::{DelegateToolDispatch, TodoToolDispatch, UpdateTaskDispatch};+use crate::agent::tools::{DelegateToolDispatch, TodoToolDispatch};use crate::memory::agent::CallMemoryAgentDispatch;/// Register every admitted tool from `tool_sets` onto `harness` (and itsdiff --git a/crates/openhuman-core/src/agent/todos/mod.rs b/crates/openhuman-core/src/agent/todos/mod.rsindex a7b2a5401e..e77fa56b8c 100644--- a/crates/openhuman-core/src/agent/todos/mod.rs+++ b/crates/openhuman-core/src/agent/todos/mod.rs@@ -1,14 +1,13 @@//! OpenHuman adapters around the TinyAgents todo store.//!//! Design notes:-//! - **Per-thread scoped.** The current agent thread id (or an explicit-//! thread id selects which board to mutate.+//! - **Per-thread scoped.** The list belongs to the conversation thread the+//! turn runs in; there is no cross-thread or app-wide board.//! - **In-memory scratch.** When no thread context is available the-//! process-global scratch store is used (legacy fallback for tool-//! invocations outside a chat thread).+//! process-global scratch store is used (tool invocations outside a chat+//! thread, tests).//! - **Markdown output.** Tool results include a rendered representation for//! the agent transcript.pub mod ops;-pub mod tools;pub mod types;diff --git a/crates/openhuman-core/src/agent/tools.rs b/crates/openhuman-core/src/agent/tools.rsindex b12d0a1588..49f69b2a31 100644--- a/crates/openhuman-core/src/agent/tools.rs+++ b/crates/openhuman-core/src/agent/tools.rs@@ -20,7 +20,7 @@//! `crate::skills::runtime` workflow run and wait on its outcome. Compiled//! in only with the `skills` feature, so builds without it omit both tools//! from the catalog.-//! - [`TodoTool`] — CRUD on the current thread's task board.+//! - [`TodoTool`] — the session's todo list (whole-list write, thread-scoped).//! [`UpdateTaskTool`] edits one card by id on a target board (default://! the proactive `task-sources` board).//!@@ -38,7 +38,6 @@ pub mod remember_preference;mod run_workflow;pub mod save_preference;mod todo;-mod update_task;pub use ask_clarification::AskClarificationTool;pub use delegate::DelegateTool;@@ -52,5 +51,3 @@ pub use run_workflow::{pub use save_preference::SavePreferenceTool;pub use todo::TodoTool;pub(crate) use todo::TodoToolDispatch;-pub(crate) use update_task::UpdateTaskDispatch;-pub use update_task::UpdateTaskTool;diff --git a/crates/openhuman-core/src/tools/mod.rs b/crates/openhuman-core/src/tools/mod.rsindex 60adfce790..1db580a200 100644--- a/crates/openhuman-core/src/tools/mod.rs+++ b/crates/openhuman-core/src/tools/mod.rs@@ -19,7 +19,6 @@ pub(crate) mod implementations;pub use crate::agent::artifacts::tools::*;pub use crate::agent::learning::tools::*;pub use crate::agent::orchestration::tools::*;-pub use crate::agent::todos::tools::*;pub use crate::agent::tools::*;pub use crate::config::tools::*;pub use crate::config::workspace::tools::*;diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rsindex 3a690bdd0d..7d4c6cd9fd 100644--- a/crates/openhuman-core/src/tools/ops.rs+++ b/crates/openhuman-core/src/tools/ops.rs@@ -210,20 +210,13 @@ pub fn all_tools_with_runtime(// checkpointed to the session DB. Heavier than spawn_subagent; for// sub-tasks that benefit from a self-review/revision loop.Box::new(DelegateGraphTool::new()),- // Coding-harness control flow (issue #1205): a process-global- // todo registry the agent can rewrite end-to-end, plus the- // `plan_exit` marker that hands a plan-mode pass off to a- // build-mode pass. The plan→build mode switch itself is a- // follow-up; the tool emits a stable marker today.+ // The session todo list (Claude/Codex style): one whole-list write per+ // call, scoped to the conversation thread. `plan_exit` is the marker+ // that hands a plan-mode pass off to a build-mode pass.Box::new(TodoTool::new()),// Interactive plan-review gate: parks the live turn on a thread-scoped// plan the user must approve before execution (Codex/Claude plan mode).Box::new(crate::agent::plan_review::RequestPlanReviewTool::new()),- // Move/update a specific task card by id on a target board (defaults to- // the proactive `task-sources` board) — lets the agent advance the task- // it's working (in_progress / done+evidence / blocked+reason) from any- // thread, complementing `todo` which only touches the current thread.- Box::new(UpdateTaskTool::new()),Box::new(PlanExitTool::new()),// Workflow composition: `run_workflow` runs another workflow as a// subagent and (by default) waits on its result like a function call;@@ -538,22 +531,13 @@ pub fn all_tools_with_runtime(Box::new(LearningEnrichProfileTool),// Task & productivity tools (issue: agent-tool expansion).// Read/observe + bounded-write tools are registered here; the- // destructive/overextending siblings (artifact_delete, todo_remove/- // replace/clear, task_source_add/update/remove) are registered too- // but ship default-OFF via `tools::user_filter` (their toggle IDs- // default off in onboarding). The per-call permission ladder still- // gates them.+ // destructive/overextending siblings (artifact_delete,+ // task_source_add/update/remove) are registered too but ship+ // default-OFF via `tools::user_filter` (their toggle IDs default off+ // in onboarding). The per-call permission ladder still gates them.Box::new(ArtifactListTool::new(config.clone())),Box::new(ArtifactGetTool::new(config.clone())),Box::new(ArtifactDeleteTool::new(config.clone())),- Box::new(TodoListTool::new(config.clone())),- Box::new(TodoAddTool::new(config.clone())),- Box::new(TodoEditTool::new(config.clone())),- Box::new(TodoUpdateStatusTool::new(config.clone())),- Box::new(TodoDecidePlanTool::new(config.clone())),- Box::new(TodoRemoveTool::new(config.clone())),- Box::new(TodoReplaceTool::new(config.clone())),- Box::new(TodoClearTool::new(config.clone())),Box::new(TaskSourceListTool::new(config.clone())),Box::new(TaskSourceGetTool::new(config.clone())),Box::new(TaskSourceFetchTool::new(config.clone())),@@ -1239,12 +1223,12 @@ fn tool_group(name: &str) -> crate::core::all::DomainGroup {{return DomainGroup::Memory;}- // Threads family (harness-kept): thread_* + todo_* + per-thread goal + search.+ // Threads family (harness-kept): thread_* + per-thread goal + search.// `thread_` is kept as a prefix even though the `thread_*` agent-tool- // family was removed: `todo_`, `goal_*` and the THREADS_EXTRA entries still+ // family was removed: `goal_*` and the THREADS_EXTRA entries still// classify here, and a future threads tool should land in Threads rather// than falling through to Platform.- if name.starts_with("thread_") || name.starts_with("todo_") || THREADS_EXTRA.contains(&name) {+ if name.starts_with("thread_") || THREADS_EXTRA.contains(&name) {return DomainGroup::Threads;}// Harness families realigned out of Platform.@@ -1259,7 +1243,6 @@ fn tool_group(name: &str) -> crate::core::all::DomainGroup {| "delegate_graph"| "delegate_to_personality"| "todo"- | "update_task"| "wait"| "wait_loop"| "request_plan_review"