Branch cleaner Goal Safely identify stale branches and provide explicit delete/prune commands. Inputs to confirm (ask if missing) - Default branch (main/master/develop). - Remote name (origin) and whether remote deletion is desired. - Safety rules: keep patterns (release/ , hotfix/ ), minimum age, merged-only. Workflow 1) Sync and inspect - Run . - Check and note uncommitted changes. 2) Build candidate lists - Local merged into default: - Local not merged (list only): - Remote merged: - Stale by date: 3) Exclude protected branches - Always keep , current branch, and user-provided patterns. 4)…