docs(agents): prefer $TMPDIR or .tmp/ over /tmp to avoid sandbox prompts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
16261c738c
commit
b04ed3ffa0
1 changed files with 6 additions and 0 deletions
|
|
@ -14,6 +14,12 @@
|
||||||
project's `AGENTS.md` / `CLAUDE.md` specifies a different directory,
|
project's `AGENTS.md` / `CLAUDE.md` specifies a different directory,
|
||||||
that wins.
|
that wins.
|
||||||
|
|
||||||
|
## Temporary Files
|
||||||
|
|
||||||
|
- **Use `$TMPDIR` or `.tmp/` (project-local) for temporary files.** Never use `/tmp` directly or paths like `/Library/Application Support` — those are not in the sandbox allowlist and trigger permission prompts.
|
||||||
|
- `$TMPDIR` is set by the sandbox to a writable path. `.tmp/` inside the project directory is always writable without prompts.
|
||||||
|
- Ensure `.tmp/` is listed in `.gitignore` when creating temp files in a tracked repo.
|
||||||
|
|
||||||
## Tooling
|
## Tooling
|
||||||
|
|
||||||
- **`ccc` for semantic code search.** Repos containing a
|
- **`ccc` for semantic code search.** Repos containing a
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue