diff --git a/AGENTS.md b/AGENTS.md index ffc5ae1..fad25dd 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -735,7 +735,12 @@ linked runbooks. **Ops** - Never `pkill -f` a pattern that appears in your own command line — it kills your ssh session. - Use `pkill -x `. + Use `pkill -x `, or the bracket trick — `pkill -f "serve[-]script.sh"` — + when the pattern has to be named: the bracket makes the pattern stop matching the + command line that carries it. Quote it: a zsh remote glob-expands an unquoted `[s]` + and the kill silently never runs. Re-hit 2026-11-02 — + `ssh host 'pkill -f jfshowswatch.py; …'` killed the remote shell mid-command, and + ssh exits **255 with zero output**, which reads exactly like a network fault. - Both hosts allow passwordless sudo for the deploy user. Use plain `sudo` in committed scripts (no `echo pw | sudo -S`); `FRANK_SUDO_PW` covers hosts without it. - **ComfyUI on Dankclaw runs with GPU access** (`/dev/kfd` + `/dev/dri` via `AddDevice`,