Task Cleanup · ivory-code bundle Safely closes completed change-bearing tasks by clearing local test residue and removing agent-created Git worktrees, their task directories, and local and remote task branches after delivery is preserved. Use before declaring any task complete when local verification created temporary routes, proxies, preview pages, run configs, screenshots, or fixtures, and at the end of a task that created a dedicated worktree or branch, after a PR is merged or an unmerged task is explicitly abandoned, after direct delivery to a durable branch, or when the user asks to clean up completed work. Do not remove targets while dirty state, an open PR, required CI or monitoring, an unpreserved commit, or a protected or current branch still depends on them.