← Browse by Chapter
Get the Book →
#47Chapter 12 — Permissions, Sandbox, `--enable-auto-mode`
I'm about to start an `xhigh` session for [describe the work — e.g., "deploying service X to staging"]. Help me design a sandbox config. For each of these three categories, list what should be allowed and explain why: (1) writable directories, (2) read-only directories, (3) network outbound endpoints. Then flag anything I might have missed — directories the build process writes to that I haven't listed, endpoints that dependencies call during build. Output as a three-column table with a "Risk if omitted" column.

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