← Browse by Chapter
Get the Book →
#74Chapter 14 — Permissions and the Sandbox
Here is a deny rule I have added: [paste the rule], in this settings file: [paste the path]. Do not change my settings. Test what it actually covers, in this order, and stop after each attempt to report what happened: (1) read the target path with your file-reading tool; (2) read it with a shell command that reads files, such as printing it; (3) write a three-line script that opens the path and prints its first line, then run the script. For each attempt, tell me whether you were blocked or whether you got the content, and quote the first line you saw if you got it. Then tell me, in one sentence, which of the three a rule can stop and which one needs a different mechanism.

Mastering Claude Code
These prompts are excerpts from the book. Get the full collection with explanations and use cases.