Expand description
Hooks module: PostToolUse hook handler for passive capture from AI coding assistants.
Parses PostToolUse JSON payloads from stdin, extracts relevant information based on tool type, and creates appropriate memories with auto-tagging.
Re-exports§
pub use triggers::check_triggers;pub use triggers::AutoInsight;
Modules§
- diff
- Diff computation and semantic summarization for code edits.
- triggers
- Trigger-based auto-insights generated during PostToolUse.
Structs§
- Extracted
Memory - Extracted memory from a hook payload.
- Hook
Payload - PostToolUse hook payload from an AI coding assistant.
- Pending
Edge - A pending edge to be created once both nodes exist.
Functions§
- content_
hash - Content hash for deduplication. Compute a SHA-256 content hash for deduplication.
- extract
- Extract memory from a hook payload.
- materialize_
edges - Resolve pending edges into concrete
Edgevalues, given the memory ID that was just stored and the set of existing graph-node IDs. - parse_
payload - Parse a hook payload from JSON string.
- resolve_
edges - Populate
graph_edgeson anExtractedMemoryby checking which file graph nodes already exist in the database. This creates edges between files that were previously Read and are now being Edited or Written, capturing the common explore-then-modify workflow.