Expand description
Reusable hook implementations and composition for the Crabtalk runtime.
Hooks is the single Hook the runtime Env sees — it owns the
sub-hooks registered into it, the dispatch map, per-agent scope
enforcement, agent descriptions, and the late-bound event sink.
Re-exports§
pub use mcp::McpHook;pub use memory::DEFAULT_SOUL;pub use memory::Memory;pub use memory::MemoryHook;pub use os::OsHook;pub use skill::handler::SkillHook;
Modules§
- mcp
- MCP tool — as a Hook implementation.
- memory
- Memory hook — thin facade over
crabtalk-memory. Per-tool files (recall.rs,remember.rs,forget.rs) own the correspondingMemorymethods andMemoryHookdispatch handlers. See RFC 0150 for the design. - os
- OS tools — bash, read, edit — as a Hook implementation.
- skill
- Crabtalk skill integration — SKILL.md parsing and tool handler.
Structs§
- Agent
Scope - Per-agent scope for dispatch enforcement. Empty vecs = unrestricted.
- Hooks
- Aggregates all sub-hooks behind a single
Hookimpl.
Functions§
- default_
crab - Construct the default
crabagent with the given model.
Type Aliases§
- Event
Sink - Late-bindable sink for
agent:{name}:doneevent publishes.