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:
mwiegand 2026-05-12 21:23:27 +02:00
parent 16261c738c
commit b04ed3ffa0
No known key found for this signature in database

View file

@ -14,6 +14,12 @@
project's `AGENTS.md` / `CLAUDE.md` specifies a different directory,
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
- **`ccc` for semantic code search.** Repos containing a