Skip to content

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

docs(tools): update tool registration docs

Steven Enamakel0277179df4e9
diff --git a/crates/openhuman-core/src/agent/orchestration/tools.rs b/crates/openhuman-core/src/agent/orchestration/tools.rs
index 8b5c35c1da..d7288faa40 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools.rs
@@ -14,9 +14,8 @@
//! helpers shared by the tools above (the common spawn path, the awaiting-user
//! envelope, and worker thread creation), not tools themselves.
//!
-//! All tools are re-exported through `crate::tools` (`tools/mod.rs`:
-//! `pub use crate::agent::orchestration::tools::*`), which is how the agent
-//! tool-calling loop discovers them. Execution itself goes through
+//! `agent::registration` assembles the delegation tools for the catalogue.
+//! Execution itself goes through
//! `agent::subagent_host::run_subagent`; this module only owns the tool-call
//! surface (schema, argument parsing, response formatting).
diff --git a/crates/openhuman-core/src/agent/tools.rs b/crates/openhuman-core/src/agent/tools.rs
index c8925f7e04..496b605e04 100644
--- a/crates/openhuman-core/src/agent/tools.rs
+++ b/crates/openhuman-core/src/agent/tools.rs
@@ -18,9 +18,8 @@
//! from the catalog.
//! - [`TodoTool`] — the session's todo list (whole-list write, thread-scoped).
//!
-//! `crate::tools` re-exports everything here (`pub use
-//! crate::agent::tools::*;` in `tools/mod.rs`); `tools::ops` registers the
-//! tools into the catalog.
+//! `agent::registration` assembles the dialogue tools; `tools::ops` composes
+//! domain registrations and applies the runtime capability filters.
mod delegate;
mod plan_exit;
// Pure `skill_runtime` client (spawn + await a workflow run) — compiled out
diff --git a/crates/openhuman-core/src/tools/README.md b/crates/openhuman-core/src/tools/README.md
index ce544e357f..6a7e9e73ca 100644
--- a/crates/openhuman-core/src/tools/README.md
+++ b/crates/openhuman-core/src/tools/README.md
@@ -197,8 +197,10 @@ else is agent-only.
- Search provider resolution and the TinySearch bridge are `crate::search`
(see [`../search/README.md`](../search/README.md)); the module itself is
`tinysearch`.
-- New domain tools go in the owning domain's `tools.rs` and are re-exported
- through `mod.rs`. Only cross-cutting families belong under [`impl/`](./impl/).
+- New domain tools go in the owning domain's `tools.rs`. Its registration
+ function builds that family, and `ops.rs` composes the families before
+ applying capability filters. Preserve catalogue order when moving
+ registrations. Only cross-cutting families belong under [`impl/`](./impl/).
- This folder has no persistence and no event-bus subscriber. Approval
routing reads `Tool::external_effect_with_args`; the gate itself is
`security/approval/`.