From 6a21a52d910eae0d109b6db066781c2d9c0bbc0a Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Mon, 18 May 2026 23:50:22 +0200 Subject: [PATCH] docs: add ad-hoc script guidance --- AGENTS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/AGENTS.md b/AGENTS.md index e3880791..40438dc4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -32,6 +32,7 @@ - When writing tests, run them, identify issues in either the test or implementation, and iterate until fixed. - For `packages/coding-agent/test/suite/`, use `test/suite/harness.ts` plus the faux provider. Do not use real provider APIs, real API keys, or paid tokens. - Put issue-specific regressions under `packages/coding-agent/test/suite/regressions/` and name them `-.test.ts`. +- For ad-hoc scripts, write the script to a temporary file (for example under `/tmp`) using `write`, run that file, edit it if needed, and remove it when it is no longer needed. Do not embed multi-line scripts directly in `bash` commands. - NEVER commit unless user asks ## Contribution Gate