docs: fix Claude Code prompt-cache troubleshooting — .claudeignore is a no-op, use .claude/settings.json deny rules#1845
Open
prvthmpcypher wants to merge 1 commit into
Conversation
…ting (#<issue_number>)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1843
Problem
The Troubleshooting section advised users to add
graph.jsonandgraphify-out/to a.claudeignorefile to prevent Claude Code's promptcache from being invalidated on every
graphify extractrun..claudeignoredoes not exist in Claude Code. Evidence from the issue:permissions.denyRead rules(in
.claude/settings.json) as the supported mechanism, replacing thedeprecated
ignorePatterns. No page mentions.claudeignore..claudeignorefeature request(anthropic/claude-code#579) was closed with "you can do this now with
deny permission rules" — no
.claudeignorefile was ever shipped.(anthropic/claude-code#36163, #16704, #46699, #56997, #65812).
So users following the README created a file that had no effect, and the
prompt-cache symptom persisted.
Fix
Replaced the
.claudeignoreblock with the supported equivalent —a
denyrule in.claude/settings.json— and added a plain-languagenote explaining the tradeoff:
denyrules gate Claude Code's readaccess, not just cache inclusion, which means Claude Code can no longer
read
GRAPH_REPORT.md, the wiki, or other files undergraphify-out/.Users who rely on those files for navigation need to know this before
applying the fix.
Changes
README.md— Troubleshooting section, "Claude Code prompt cacheinvalidated after every
graphify extract":.claudeignorecode block.claude/settings.jsondenyrulescope the rule to specific files only