Recently Written · git

ai-config

One canonical AI agent config (rules, skills, MCP servers) rendered into Claude Code, Codex, Copilot CLI and Antigravity by acsync

git clone https://github.com/equwal/ai-config

Log | Files | Refs


commit 5be3e93eb6ccf5d39692acd370387b67a6d02aa6
equwal <13551856+equwal@users.noreply.github.com>
2026-10-04 05:24:02 -0700

Add rule: clean up files and processes before finishing

 acsync.toml      | 1 +
 rules/cleanup.md | 9 +++++++++
 2 files changed, 10 insertions(+)
diff --git a/acsync.toml b/acsync.toml
index 465c372..855d695 100644
--- a/acsync.toml
+++ b/acsync.toml
@@ -43,6 +43,7 @@ adopt_heading = "## MANDATORY on the Windows PC: PowerShell 7.6 syntax"
 machines = ["pc"]        # g never had it; add "g" to roll it out there
 adopt_heading = "## MANDATORY: Undo commands are copy-only"
 [rules.patches]
+[rules.cleanup]
 
 # ---------- skills (all 8 skills folders) ----------
 # ste-writing: retired; must not exist in any skills folder.
diff --git a/rules/cleanup.md b/rules/cleanup.md
new file mode 100644
index 0000000..6ebca31
--- /dev/null
+++ b/rules/cleanup.md
@@ -0,0 +1,9 @@
+## MANDATORY: Clean up files AND processes before you finish
+
+A task is not done while anything it started is still running or lying around. Leftovers from dead agents once kept 10 `grep -r` processes and 2 emulators busy for hours, and made the desktop slow.
+
+- **Processes.** Stop every process, job, and service that you started: background commands, `nohup`/`&` jobs, emulators (qemu), dev servers, watchers, tunnels, `sleep` loops, long `find`/`grep -r` runs, and containers. Do this on every host you touched, also over ssh. Kill by PID that you recorded, or by an exact command-line match, never by a broad pattern that can hit the user's own programs.
+- **Files.** Delete the scratch files, temp scripts, logs, and test output that you created, on every host (`/tmp`, scratch folders, copied scripts).
+- **Before you report.** Run `ps` on each host you used and confirm that none of your processes remain. Say in the report what you stopped and deleted.
+- **Keep.** Deliverables, backups of files you edited, and anything the user asked to keep. If you must leave something running on purpose (a service, a long build), name it, its PID, and how to stop it.
+- **Unsure?** If you did not start it, do not kill it. Ask.