← Browse by Chapter
Get the Book →
#77Chapter 14 — Permissions and the Sandbox
Auto mode refused this action: [paste the command or tool call and the reason label]. Do not retry it. Sort it into exactly one of four categories and explain your choice in two sentences: (1) it needs a destination I should describe as trusted infrastructure, because I will need it throughout this task; (2) it needs a permission rule, because I want this specific command to run without review from now on; (3) it needs nothing but a clear statement of intent from me, because it was a one-off I did mean; (4) it was correctly blocked and I should not work around it. Then give me the exact text I would add, for categories 1 and 2 only, and say which settings file it goes in.

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