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.
Modules§
- diff
- Diff computation and semantic summarization for code edits.
Structs§
- Auto
Insight - An auto-insight generated by trigger-based analysis during PostToolUse.
- 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§
- check_
triggers - Check trigger conditions against session activity and return any auto-insights.
- content_
hash - 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.