Claude Code · tool · fg-0494

Read deny rule like Read(/private/**) in user settings does not protect that absolute path

If you see Claude still reads files under the absolute path named in a deny rule, the cause and the fix for Claude Code are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Claude still reads files under the absolute path named in a deny ruleThe rule in ~/.claude/settings.json matches ~/.claude/private instead of /private
Cause
In permission rules a single leading slash is relative to the directory the settings file belongs to, not the filesystem root. Absolute paths need two leading slashes, and home paths use a tilde.
Fix
Write absolute rules with // and home rules with ~/ in user settings, and test them with a read attempt.
Apply
"permissions": { "deny": ["Read(//Users/alice/private/**)", "Read(~/Documents/keys/**)"] }
Affected
Claude Code permission rules, as of 2026-10
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun