You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(lifecycle): auto-cleanup worktrees at completion milestones
Worktrees and branches are now cleaned up automatically when work
is persisted: unit merged into intent, unit PR created, intent MR
created, or intent completed. No more stale worktrees accumulating
between manual /cleanup runs.
Guiding principle: .ai-dlc/worktrees/ should only contain worktrees
where agents are actively working. If nothing is in-flight, the
directory should be empty — worktrees are a live reflection of
active work, not a history of past work.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@@ -453,7 +462,16 @@ for unit_file in "$INTENT_DIR"/unit-*.md; do
453
462
done
454
463
```
455
464
456
-
**If ALL units use unit strategy** (`ALL_UNIT_STRATEGY=true`): Skip the delivery prompt. Each unit already has its own PR. Output:
465
+
**If ALL units use unit strategy** (`ALL_UNIT_STRATEGY=true`): Skip the delivery prompt. Each unit already has its own PR. Clean up the intent worktree and output:
466
+
467
+
```bash
468
+
# Clean up intent worktree — all unit PRs are on the remote
0 commit comments