Dev & DevOpsWorks with any agent

Stale branch cleanup report

Lists merged and abandoned branches safe to delete.

RunsMonthly on the 1st at 10 AM
Cron0 10 1 * *
Works withAny agent, any stack
prompt.txt
List all remote branches. For each, report last commit date, author, and whether it is fully merged into main. Produce two lists: (1) merged branches safe to delete, (2) unmerged branches with no commits in 60+ days, with the last commit message. Do not delete anything; just output the commands I would run.

Replace anything in <ANGLE BRACKETS> with your own details. Review outputs before letting an agent send, buy or delete anything.

Share on X
How to run this

Works with any agent

Steps

  1. Copy the prompt and fill in the parts in angle brackets.
  2. Paste it into whatever agent you already use: a chat assistant, a coding agent, an automation tool, or a script that calls any model API.
  3. Schedule it (monthly on the 1st at 10 am). Use the agent's own scheduler if it has one, otherwise run it from cron with the expression below.
  4. Give it only the access it needs (inbox, calendar, repo, sheet) and keep sends, purchases and deletes behind your approval.
  5. Review the first two runs, tweak the prompt, then let it run.
Want this running for you?Done-for-you setup, $299. 5 routines wired into your stack in 48 hours.Request setup
Related

Routines that pair well.

The newsletter · The Handoff

One chore a week you never do again.

For founders and solo operators running on AI agents. Each issue hands off one recurring chore with the prompt, the schedule, what can break, and the guardrail. Any agent, any stack. Monday, Wednesday and Friday mornings.

Free. Unsubscribe any time. Browse the archive.

Want this running for you? Done-for-you setup, $299