From 3e4840d7e1186f524a707eb1755bfbbda0fe661a Mon Sep 17 00:00:00 2001 From: Hebilicious Date: Mon, 16 Nov 2026 16:49:10 +0700 Subject: [PATCH 1/3] docs(agents): remove worktrees of closed pull requests and scratch worktrees --- AGENTS.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 123a284..91888d0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -46,7 +46,9 @@ standard library or writing code from first principles. session owns. - The session that merges a branch makes CI pass on it. Rebase on `main`, fix what fails, and merge only when every required check is green. Never skip or weaken a check to make it pass. -- After the merge, remove the worktree with `git worktree remove .worktrees/`. +- After the merge, or when the pull request closes without merging, remove the worktree with + `git worktree remove .worktrees/`. Remove every other worktree you made (a baseline, a + comparison) before you hand off. ## Engineering workflow From 9dc182a91ecea0dcac7223def8743bdacc6888a8 Mon Sep 17 00:00:00 2001 From: Hebilicious Date: Mon, 16 Nov 2026 17:09:48 +0700 Subject: [PATCH 2/3] docs(agents): remove a task's other worktrees when its pull request merges, not at handoff --- AGENTS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 91888d0..2245855 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -47,8 +47,8 @@ standard library or writing code from first principles. - The session that merges a branch makes CI pass on it. Rebase on `main`, fix what fails, and merge only when every required check is green. Never skip or weaken a check to make it pass. - After the merge, or when the pull request closes without merging, remove the worktree with - `git worktree remove .worktrees/`. Remove every other worktree you made (a baseline, a - comparison) before you hand off. + `git worktree remove .worktrees/`, and every other worktree you made for the task (a + baseline, a comparison). ## Engineering workflow From a49d9e3cac6bbfda6fa9ae2d594538ba92e65bd4 Mon Sep 17 00:00:00 2001 From: Hebilicious Date: Mon, 16 Nov 2026 17:36:39 +0700 Subject: [PATCH 3/3] docs(agents): say explicitly to keep the branches --- AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 2245855..ba76f2a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -48,7 +48,7 @@ standard library or writing code from first principles. merge only when every required check is green. Never skip or weaken a check to make it pass. - After the merge, or when the pull request closes without merging, remove the worktree with `git worktree remove .worktrees/`, and every other worktree you made for the task (a - baseline, a comparison). + baseline, a comparison). Keep the branches. ## Engineering workflow