DashboardcraftAlways clean up merged branches and scr…

Always clean up merged branches and scratch directories after completing a task

Category: preference
Confidence: 0.80
ID: 019f03c1-de8c-7b8f-9860-db79caf70d07
Project ID: e16af391-c497-4837-b681-c849a5514499
Cross-project: No
Recalled in other projects: 2
Source session: 1BlOrjKSHFnf58tXj
Created: 2026-06-26 11:47:44
Updated: 2026-06-26 11:47:44

Cross-Project Recalls

ProjectHitsLast recalled
cli 1 8d ago
opencode-lore 1 12d ago

Content

After merging PRs and completing a work cycle, the user consistently performs cleanup: deletes local branches (using -D for squash merges), confirms remote branches are gone, and removes temporary scratch directories (e.g., temp_*/ dirs). The user approves deletion of large scratch dirs when prompted but intentionally retains certain directories (e.g., .opencode/). The assistant should proactively identify stale local branches and temp directories at end-of-task, present a summary of what would be deleted with sizes, and wait for explicit user approval before deleting anything.

Move to: