After a PR merges, end its idle worker and finish the cleanup instead of skipping it
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 53/100
Research direction
Start by tracing the board pass and the merged PR worker cleanup flow, including how the swarm MCP sends commands and checks whether a Claude worker is busy. Find the cleanup tests and add coverage for an idle worker, a busy worker retried on a later pass, and a dirty worktree reported once. Done when these cases pass across the supported repositories and boards.
Written by the indexing model from the issue text.
Description
Approved by Michal, 2026-11-17 11:17 AM ET: "file the cleanup fix as an approved ticket."
What happened
Methodology PR #111, the one-flow proposal, merged at 9:07 AM ET. Its worker reported done at 9:08 AM ET but never exited. The cleanup after the merge refused to remove the worktree because a live Claude was still running in it (pane %268). Nothing ever retried, so the window sat idle for about two hours until Michal noticed.
Rule (already in the methodology)
After a PR merges, clean up its worker: close the tmux window, remove the worktree if it's clean, and delete the local branch. Do this on every merge.
What to build
- When a PR has merged and its worker has reported done, or is idle at its prompt, the cleanup ends that Claude cleanly (an /exit sent through the swarm MCP), then closes the window, removes the worktree if it's clean, and deletes the local branch.
- If the Claude is still busy, the cleanup doesn't kill it. It retries later, for example on the next board pass, until the cleanup is done.
- If the worktree has uncommitted changes, keep the worktree and report that once. Don't retry forever silently.
- Works the same for every repo and board (platform, methodology, tangentswarm).
Done when
- A test shows a merged PR whose worker is idle gets fully cleaned up without anyone asking.
- A test shows a busy worker is left alone and cleaned up on a later pass.
- Dominant language
- Python
- Stars
- 3
- Forks
- 0
- Avg merge
- 5h 57m
- Merged PRs (30d)
- 60
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tangentcode/tangentswarm
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
tangentcode/tangentswarm#167 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
tangentcode/tangentswarm#161 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
tangentcode/tangentswarm#158 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
tangentcode/tangentswarm#168 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
tangentcode/tangentswarm#165 ·
Maintainers usually reply within 1 day
All issues in tangentcode/tangentswarm
Similar issues
-
Container fails to start when GitHub Releases is unavailable: uv run re-downloads the tvl wheelOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
trezor/trezor-user-env#421 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 91/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"Possibly taken @cestercian claimed this today. Opencomp/cli P2 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
NousResearch/hermes-agent#162259 · 1 comment ·
Maintainers usually reply within 1 day