Replies: 1 comment
|
Hey @wshossein — the infrastructure for this already exists in graphify, you likely just need one command in your project directory: graphify install claudeThis does two things that passive CLAUDE.md rules cannot:
The root cause of your issue: you wrote the rule in global user memory, but the hook was never installed. Without the hook, it is just text that competes with Claude's default instinct to grep. The hook changes the cost model — Claude sees the reminder at the moment it is about to grep rather than having to recall it proactively. After running the install, Claude will see something like this every time it reaches for grep/find on your repo:
That is the nudge at exactly the right moment. |
Uh oh!
There was an error while loading. Please reload this page.
How can I prevent Claude from ignoring Graphify and force it to always use
/graphify querybefore falling back to grep/find/Read?Context
I'm using Claude Code inside VS Code and have Graphify set up for my repository (
lends-club-api). Thegraphify-out/folder exists withgraph.json,manifest, and cost files already indexed — no need to rebuild.I wrote the following rule in Claude's global CLAUDE.md (user memory):
Despite having this rule written in memory, Claude keeps defaulting to grep/find/Read and only uses Graphify when I explicitly remind it in the conversation.
Questions
graphify querywithout needing a manual reminder each session?Any tips from people who have successfully enforced this workflow would be very helpful. Thanks!
All reactions