Skip to content

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

docs(hooks): trim module docs to a short summary

Steven Enamakel0f2b228affbb
diff --git a/crates/openhuman-core/src/hooks/mod.rs b/crates/openhuman-core/src/hooks/mod.rs
index b0cdeb8784..6762db2f98 100644
--- a/crates/openhuman-core/src/hooks/mod.rs
+++ b/crates/openhuman-core/src/hooks/mod.rs
@@ -1,29 +1,7 @@
-//! Configurable hooks — user-authored scripts that observe and gate the agent.
+//! Configurable hooks — user-authored scripts that observe and gate an agent.
//!
-//! OpenHuman already had *hooks* in the sense of in-process Rust callbacks an
-//! embedding host installs ([`crate::agent::hooks`],
-//! upstream `tinyagents-hooks` contracts. Those require compiling against
-//! the core, which makes them the wrong tool for the thing people actually want
-//! hooks for: a small script, checked into a repository, that blocks `rm -rf`,
-//! runs the formatter after an edit, or writes an audit line per tool call.
-//!
-//! This domain adds that second kind, taking Cursor's `hooks.json` contract as
-//! the model (<https://cursor.com/docs/hooks>) so scripts port between hosts:
-//! same event names, same stdin envelope, same stdout decision object, same
-//! exit-code semantics.
-//!
-//! ## Shape
-//!
-//! | Module | Owns |
-//! | ------ | ---- |
-//! | `tinyagents_runtime::command_hooks` | the engine and the whole `hooks.json` contract: types, config, matcher, exec, engine, context, follow-ups |
-//! | [`host`] | the process-global engine and its OpenHuman seams (product name, home, shell, prompt model) |
-//! | [`bridge`] | mounting the engine on the harness's existing tool/turn seams |
-//! | [`ops`] | the lifecycle moments that have no existing seam |
-//!
-//! The two rules that govern the engine (strictest verdict wins; gating costs a
-//! turn's latency, observing does not) are documented with it in
-//! `tinyagents_runtime::command_hooks`.
+//! The engine and `hooks.json` contract are supplied by `tinyagents-hooks`.
+//! This module keeps the OpenHuman host lifecycle and its stable RPC surface.
pub mod host;
pub mod ops;