From 695d58de8b1304b000894bd795b17b16298d2cd8 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sat, 26 Sep 2026 22:52:03 +0800 Subject: [PATCH] docs(agents): mention quoted heredoc for multi-line code --- agents/AGENTS.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agents/AGENTS.md b/agents/AGENTS.md index a9342daf..b70e1af4 100644 --- a/agents/AGENTS.md +++ b/agents/AGENTS.md @@ -107,7 +107,8 @@ shell it provides. - Use Bash for simple, obviously correct commands, such as running a tool or a short `&&` sequence. - Once a command filters or transforms output, loops, polls, or needs careful quoting, agents MUST use Nushell (structured pipelines) or Python (real logic) instead, e.g. `nu -c '...'` or - `python -c '...'`. + `python -c '...'` for one-liners, or a quoted heredoc fed to any interpreter (e.g. + `python3 - <<'PY' ... PY`) for multi-line code. - Commands MUST NOT block: disable pagers and prompts, avoid commands that wait on stdin or never exit, and bound every wait and retry with a timeout. Run servers and watchers in the background with output redirected to a log file, and track them by PID, not by matching `ps` output. Prefer