mirror of
https://github.com/safishamsi/graphify.git
synced 2026-07-13 10:57:13 +00:00
5cc7ec8a23
The Bash search hook only nudges grep/rg/find, so an agent that answers a codebase question by Read-ing many source files one by one (the most common way the graph gets skipped) slips right past it (#1114). Add _READ_SETTINGS_HOOK matching Read|Glob: it fires only when graphify-out/graph.json exists, only for a source/doc file outside graphify-out/, injects the same query-first additionalContext, and never blocks (every branch fails open). Install and uninstall now register and dedup both hooks idempotently. Implemented independently rather than merging the community PR #1120; same idea, our own hook (Read/Glob only, no fragile multi-file cat/head/tail heuristic). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>