From 4aaac3b769fe29c247719422037b11c36751f107 Mon Sep 17 00:00:00 2001 From: YASHAS Date: Tue, 14 Jul 2026 09:38:27 +0530 Subject: [PATCH] docs: replace unsupported .claudeignore with permissions.deny rules Claude Code does not read .claudeignore; the previous remedy was a no-op. Document the supported permissions.deny approach and the access trade-off. Fixes #1843 --- README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0a883e75b..20eb36928 100644 --- a/README.md +++ b/README.md @@ -597,12 +597,16 @@ graphify install # overwrites the skill file ``` **Claude Code prompt cache invalidated after every `graphify extract`** -Graphify writes output files (`graph.json`, `graphify-out/`) into the workspace. If those paths aren't ignored, every write invalidates Claude Code's prompt cache, forcing a full re-upload at cache-write rates on the next turn. Add them to `.claudeignore`: -```text -# .claudeignore -graph.json -graphify-out/ -``` +Graphify writes output files (`graph.json`, `graphify-out/`) into the workspace. If those paths aren't excluded, every write invalidates Claude Code's prompt cache, forcing a full re-upload at cache-write rates on the next turn. Claude Code does not read a `.claudeignore` file; use `permissions.deny` Read rules in `.claude/settings.json` instead: +```json +// .claude/settings.json +{ + "permissions": { + "deny": ["Read(./graph.json)", "Read(./graphify-out/**)"] + } +} +``` +Note that deny rules gate *access*, so this also stops the assistant from reading `graphify-out/` directly (e.g. browsing the generated wiki as navigation). If you rely on that workflow, keep the paths readable and accept the cache cost instead. ---