You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add knowledge-retrieval detection to auto-retrieve hook
Routes institutional-memory queries ("what's our process for X",
"recall how we handle Y") through GitMem search instead of passive
scar injection. Fixes UserPromptSubmit missing from init wizard's
buildClaudeHooks(). Updates stale EXPECTED_TOOL_COUNTS (free 21→22,
pro 26→27, dev 30→31).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Process/documentation queries ("what's our process for X", "how do we usually Y")
77
+
elifecho"$PROMPT_LOWER"| grep -qE "(what('s| is) our (process|approach|pattern|method)|how do we (usually|typically|normally)|remind me (how|what|about)|what('s| is) the (process|protocol|procedure) for)";then
78
+
IS_KNOWLEDGE_QUERY=true
79
+
# Documentation discovery ("show me the docs", "where are the scars")
"additionalContext": "KNOWLEDGE RETRIEVAL DETECTED. Route through GitMem FIRST:\n\n1. gitmem search (query relevant to the question) OR gitmem recall (if action-oriented)\n2. gitmem log (if browsing recent learnings)\n3. ONLY THEN fall back to filesystem reads if gitmem doesn't have the answer\n\nDo NOT start with Read/Glob/Grep on local files. Institutional memory exists precisely so we don't re-explore the filesystem every time."
0 commit comments