⌨️Permission Path Pattern
Also known as Read(//abs/path), Edit(/src/**)
The path in a Read or Edit rule. How it starts sets where it points.
Think of it like
It is like an address. Street, town or country changes where it points.
Example
Jack wrote one slash in his user settings. It pointed inside his .claude folder. He adds a second slash.
Why it matters
A rule that points at the wrong folder protects nothing, and nothing tells you so.
Definition
Example code
json
{
"permissions": {
"deny": ["Read(//etc/**)", "Read(~/.ssh/**)", "Edit(/dist/**)", "Read(*.pem)"]
}
}Common mistake
Key takeaways
- 1// is the disk root. Full path.
- 2~/ is home. Your folder.
- 3/ is the settings file. Not the root.