From b04ed3ffa0a1616eff8adcf99b033d1795b17694 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Tue, 12 May 2026 21:23:27 +0200 Subject: [PATCH] docs(agents): prefer $TMPDIR or .tmp/ over /tmp to avoid sandbox prompts Co-Authored-By: Claude Sonnet 4.6 --- agents/AGENTS.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/agents/AGENTS.md b/agents/AGENTS.md index 0677925..457b689 100644 --- a/agents/AGENTS.md +++ b/agents/AGENTS.md @@ -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