Repository navigation
fix(poteto-mode): one branch per task, worktrees only for parallel writers - #295
simplythatguy wants to merge 1 commit into
Conversation
…arallel writers A lone writer now works in the current checkout on the current branch. The delegation defaults and the feature, refactoring, bug-fix, perf-issue and hillclimb playbooks give a writer its own worktree only when another writer runs at the same time. opening-a-pr makes one branch off trunk only when the session is on trunk, one PR per task, and stacks only a diff too large to review. Agents delete the branches and worktrees they made once their work lands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge Protections🟠 1 of 2 protections blocking · waiting on 🤖 CI
🟠 Queue ready pull requestsWaiting for
Waiting checks:
|
Live test on 17a0843 (author-run, not the
|
| Assertion | Fixture on feat/math |
Fixture on main |
|---|---|---|
Only the candidate pstack loaded (pstack@inline 1.21.0, candidate path) |
pass | pass |
/pstack:poteto-mode ran; session ended success |
pass | pass |
No Agent call with isolation: "worktree" |
pass | pass |
| One worktree: the checkout itself | pass | pass |
subtract added and npm test passes |
pass | pass |
| Change committed | pass | pass |
| Branches | committed on feat/math; no new branch, no switch -c, checkout -b or worktree add |
one new branch, add-subtract, made with git checkout -b from main |
The real ~/.claude/pstack-models.md and ~/.claude/CLAUDE.md matched their SHA-256 before and after.
Not covered: neither session delegated. Both parents did the small task inline, so this run doesn't exercise a lone delegated writer.
Raw transcripts are kept privately. @ericlitman, this needs your approval to run CI on a fork PR, and the live-gate from your verifier.
Summary
poteto-mode gave every task, delegate and narrow PR its own branch or worktree, including when only one writer was running. Now a lone writer stays in the current checkout. Only writers running in parallel get worktrees.
CHANGES.mdgets an Unreleased entry. Runner, sandbox and--cwdbehaviour are unchanged:--cwdalready accepts the repository itself.Evidence
git branchshowed 25 local branches (21 already merged into main), 31 remote branches (25 merged) and 15 worktrees from the default playbooks.After: text-only change to skills. On
17a0843:bun run test: 509 pass, 0 fail (runner); 219 pass, 0 fail (statechart)bun run typecheck: cleanbun run static: cleanbun runner/registry/render.ts --check: exit 0claude plugin validate plugins/pstack: passedlive-gateyet. The draft stays a draft until a live poteto-mode feature run shows a single writer editing in place, withoutisolation: "worktree"orgit switch -c.Merge Danger
Door: two-way
Prose-only change to playbooks. Reverting it brings back the old defaults.
Blast Radius: delegation
Parallel writers keep their isolation, but a parent that misjudges "runs at the same time" could leave two writers in one checkout. These are upstream-derived files, so the next Cursor sync will conflict on these lines.
🤖 Generated with Claude Code