Skip to content

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

docs(agent): update READMEs and doc comments to match current behaviour

Steven Enamakelbee6d63587bd
diff --git a/crates/openhuman-core/src/agent/goals/README.md b/crates/openhuman-core/src/agent/goals/README.md
index 224e9f97d7..607886db3f 100644
--- a/crates/openhuman-core/src/agent/goals/README.md
+++ b/crates/openhuman-core/src/agent/goals/README.md
@@ -4,8 +4,8 @@ TinyAgents owns goal types, lifecycle, persistence, budgets, and prompt
rendering. This directory contains OpenHuman runtime adapters for explicit
thread selection, tool registration, and turn accounting.
-Goals are controlled by the agent tools and runtime. There is no thread-goal
-frontend or `openhuman.thread_goals_*` JSON-RPC API.
+Goals are controlled by the agent tools and runtime. The conversation UI reads
+them through the `threads.goal_get` RPC and renders the thread goal panel.
## Further reading
diff --git a/crates/openhuman-core/src/agent/orchestration/README.md b/crates/openhuman-core/src/agent/orchestration/README.md
index 1555c203bb..f20ec93349 100644
--- a/crates/openhuman-core/src/agent/orchestration/README.md
+++ b/crates/openhuman-core/src/agent/orchestration/README.md
@@ -190,27 +190,23 @@ re-exports them through `crate::tools` ([`tools/mod.rs`](../../tools/mod.rs):
`pub use crate::agent::orchestration::tools::*`). LLM-callable tools, by wire
name:
-- Spawn: `spawn_subagent`, `spawn_async_subagent`, `spawn_parallel_agents`,
- `spawn_worker_thread`.
+- Spawn: `spawn_subagent`, `spawn_async_subagent`, `spawn_parallel_agents`.
- Control: `steer_subagent`, `continue_subagent`, `close_subagent`,
`wait_subagent`, `wait`, `wait_loop`, `list_subagents`.
-- Delegation: `DelegateGraphTool` (`delegate_graph.rs`),
- `ArchetypeDelegationTool` (name set per instance, e.g. `research`),
- and `CollapsedDelegationTool` (`delegate_to`).
+- Delegation: `DelegateGraphTool` (`delegate_graph.rs`) and
+ `ArchetypeDelegationTool` (name set per instance, e.g. `research`).
There is no integrations delegate: connected Composio actions are
`Deferred` tools on the orchestrator's own belt, found through
`tool_search` and called directly ([`tools/orchestrator_tools.rs`](../../tools/orchestrator_tools.rs)).
-`dispatch.rs` (the shared spawn path every tool above
-calls), `awaiting_user.rs` (the awaiting-user envelope), and
+`dispatch.rs` (the shared archetype spawn path), `awaiting_user.rs` (the awaiting-user envelope), and
`threads/worker_thread.rs` (worker thread creation) are `pub(crate)` helpers, not
tools. Live harness registrations use typed `ToolDispatch<(),
OpenHumanRunContext>` wrappers and fork the parent carrier for every child,
so cancellation, origin, progress, dispatch state, thread, and workspace stay
-attached. `delegate_to` retains its concrete enum-to-agent routing table in
-its schema metadata at registration; it never broadens a call by rebuilding
-targets from the global agent registry. `delegate_graph` has a dedicated typed
-registration for its durable plan→execute→review loop, while the optional
+attached. Synthesized archetype routes carry their target marker in the
+registration, so dispatch never rebuilds targets from the global agent
+registry. `delegate_graph` has a dedicated typed registration for its durable plan→execute→review loop, while the optional
config-driven `delegate` registration preserves the configured executor and
races it against the inherited cancellation token. Execution itself routes through
`agent::subagent_host::run_subagent`.
diff --git a/crates/openhuman-core/src/agent/registration.rs b/crates/openhuman-core/src/agent/registration.rs
index e5c0d3f4cd..cde2154394 100644
--- a/crates/openhuman-core/src/agent/registration.rs
+++ b/crates/openhuman-core/src/agent/registration.rs
@@ -51,9 +51,8 @@ pub(crate) fn dialogue_tools(action_dir: &Path, root_config: &Config) -> Vec<Box
// checkpointed to the session DB. Heavier than spawn_subagent; for
// sub-tasks that benefit from a self-review/revision loop.
Box::new(DelegateGraphTool::new()),
- // 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.
+ // The session todo list is scoped to the conversation thread.
+ // `plan_exit` hands a completed plan-mode pass to the build-mode pass.
Box::new(TodoTool::new(root_config.workspace_dir.clone())),
// Interactive plan-review gate: parks the live turn on a thread-scoped
// plan the user must approve before execution (Codex/Claude plan mode).
diff --git a/crates/openhuman-core/src/agent/tools.rs b/crates/openhuman-core/src/agent/tools.rs
index 6342904a7b..9f032fc669 100644
--- a/crates/openhuman-core/src/agent/tools.rs
+++ b/crates/openhuman-core/src/agent/tools.rs
@@ -10,8 +10,7 @@
//! - [`DelegateTool`] — hands a subtask to a named agent with its own
//! provider/model configuration.
//! - [`PlanExitTool`] — ends a plan-mode pass by returning the plan plus
-//! [`PLAN_EXIT_MARKER`]. The mode switch itself lives outside the tool;
-//! nothing in this crate consumes the marker yet.
+//! [`PLAN_EXIT_MARKER`], which TinyAgents consumes to switch to build mode.
//! - `RunWorkflowTool` / `AwaitWorkflowTool` — spawn a
//! `crate::skills::runtime` workflow run and wait on its outcome. Compiled
//! in only with the `skills` feature, so builds without it omit both tools
@@ -21,9 +20,6 @@
//! `agent::registration` assembles the dialogue tools; `tools::ops` composes
//! domain registrations and applies the runtime capability filters.
pub(crate) mod plan_exit;
-// Pure `skill_runtime` client (spawn + await a workflow run) — compiled out
-// with the `skills` gate so the tool list OMITS these rather than degrading
-// them to a disabled-error.
mod todo;
pub use plan_exit::PlanExitTool;
diff --git a/crates/openhuman-core/src/tools/impl/document/types.rs b/crates/openhuman-core/src/tools/impl/document/types.rs
index 1748627068..c77fd115c1 100644
--- a/crates/openhuman-core/src/tools/impl/document/types.rs
+++ b/crates/openhuman-core/src/tools/impl/document/types.rs
@@ -1,7 +1,7 @@
//! Typed input / output / error contracts for the `generate_document` tool.
//!
//! The *document* half of these contracts — the section spec, its size
-//! limits, and the validation rules — lives in the host-local
+//! limits, and the validation rules — is shared through the
//! [`format`](super::format)
//! module and is re-exported here. Nothing about "a title, some sections, and a bullet
//! list" is OpenHuman-specific, so the definitions live where any host can
diff --git a/crates/openhuman-core/src/tools/impl/presentation/engine.rs b/crates/openhuman-core/src/tools/impl/presentation/engine.rs
index 54685493ff..7114b3ea22 100644
--- a/crates/openhuman-core/src/tools/impl/presentation/engine.rs
+++ b/crates/openhuman-core/src/tools/impl/presentation/engine.rs
@@ -1,7 +1,7 @@
//! Async wrapper around the `tinydocs` module's `.pptx` writer.
//!
//! The synthesis itself — the slide mapping, the single-column image layout, the
-//! EMU geometry — lives in `crate::tools::implementations::document::format::pptx` and runs inside the loaded module.
+//! EMU geometry is implemented by the loaded module; its wire spec is shared through the document format alias.
//! What is left here is the policy only a host can supply:
//!
//! 1. a deadline, because the module holds no opinion about how long a caller