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
docs(hooks): update hook and seam references
Steven Enamakel2a8067479c64
diff --git a/docs/gitbooks/en/developing/embed/concepts/hooks-seams.md b/docs/gitbooks/en/developing/embed/concepts/hooks-seams.mdindex cbbe25c8d4..866b662f1f 100644--- a/docs/gitbooks/en/developing/embed/concepts/hooks-seams.md+++ b/docs/gitbooks/en/developing/embed/concepts/hooks-seams.md@@ -6,13 +6,13 @@ description: "Host seams replace infrastructure ports; hooks observe or controlRuntime builders accept host-owned ports for storage, sessions, memory, tools and controller extensions. These are composition seams: the host supplies an implementation of the owning library's contract, while OpenHuman retains access policy, approvals and lifecycle.-Post-turn and tool hooks can be registered runtime-wide or on one agent. Agent hooks compose with parent runtime hooks and do not leak into sibling contexts. Use stable hook names to replace or remove runtime registrations through the live API; changes apply to subsequent turns.+Learning sinks and tool hooks can be registered runtime-wide or on one agent. Agent hooks compose with parent runtime hooks and do not leak into sibling contexts. Use the live API's registration key to replace or remove runtime registrations; changes apply to subsequent turns. Learning sinks receive the upstream `TurnSummary`, while tool hooks receive the turn's `OpenHumanRunContext` and tool event.## Runtime and agent scope| Runtime responsibility | Agent or call responsibility || --- | --- |-| Shared port implementations and named global hook registrations | Scoped hooks and host overrides inherited by recursive child contexts |+| Shared port implementations and keyed global hook registrations | Scoped hooks and host overrides inherited by recursive child contexts |## Verified examplediff --git a/docs/gitbooks/en/developing/hooks.md b/docs/gitbooks/en/developing/hooks.mdindex a4c5447701..cf61c42bc4 100644--- a/docs/gitbooks/en/developing/hooks.md+++ b/docs/gitbooks/en/developing/hooks.md@@ -11,7 +11,7 @@ A hook is a script you own. OpenHuman runs it at a set moment, such as before aThe contract matches [Cursor's](https://cursor.com/docs/hooks): the same file name, event names, stdin envelope, stdout decision and exit codes. A hook script written for either host runs on the other unchanged.-> "Hook" has a second, unrelated meaning in this codebase: the in-process Rust traits in `crates/openhuman-core/src/agent/hooks.rs`. An embedding host installs those by compiling against the core. This page is about the file-based kind.+> "Hook" has a second, unrelated meaning in this codebase: the in-process Rust contracts from `tinyagents-hooks`. Embedding hosts register those through `openhuman-embed`. This page is about the file-based kind.## The file@@ -214,6 +214,6 @@ Both need `chmod +x`.## Implementation-The engine and the whole `hooks.json` contract live upstream in `tinyagents_runtime::command_hooks`. That covers the types, the file and its layering, the matcher, running one hook (stdin, timeout, exit codes), selection, ordering and aggregation, the context envelope, and follow-ups.+The engine and the whole `hooks.json` contract live upstream in `tinyagents_hooks::command`. That covers the types, the file and its layering, the matcher, running one hook (stdin, timeout, exit codes), selection, ordering and aggregation, the context envelope, and follow-ups.-`crates/openhuman-core/src/hooks/` holds the host half: `bridge` (mounts the engine on the harness's tool and turn paths), `ops` (moments with no existing path), `host`, `schemas` (the RPC surface) and `prompt_eval`. The `README.md` beside the code is the authoritative split.+`crates/openhuman-core/src/hooks/` holds the host half: `ops` (runtime lifecycle), `host`, `schemas` (the RPC surface) and `prompt_eval`. The `README.md` beside the code is the authoritative split.