Skip to main content

Crate crabtalk_hooks

Crate crabtalk_hooks 

Source
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 corresponding Memory methods and MemoryHook dispatch 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§

AgentScope
Per-agent scope for dispatch enforcement. Empty vecs = unrestricted.
Hooks
Aggregates all sub-hooks behind a single Hook impl.

Functions§

default_crab
Construct the default crab agent with the given model.

Type Aliases§

EventSink
Late-bindable sink for agent:{name}:done event publishes.