Complete isolated-worktree helpers (worktree-review, worktree-clean, tests) #39
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
LLMs should not do implementation or review work in the main repository checkout. Dirty work from one issue can block unrelated work and risks overwriting/contaminating another LLM's changes.
Goal
All issue work happens in isolated branch worktrees under an ignored
branches/directory, so multiple LLMs can work/review concurrently without blocking each other.Required behavior
branches/.branches/to.gitignore.branches/<branch-name>/; review work in a separate review worktree; no LLM edits another issue's branch folder unless assigned; branch folders removed only after PR merge/close + explicit cleanup.scripts/worktree-start,scripts/worktree-review,scripts/worktree-clean.branches/; branch from latest remotemaster; refuse to overwrite an existing worktree; print the created path; delete nothing unless cleanup is explicitly requested.Example
Cleanup after merge:
Acceptance criteria
branches/ignored by git.bash -non new scripts, full pytest,git diff --checkpass.Non-goals
No change to MCP runtime, Gitea API operations, credential storage, or the canonical profile model.
Duplicate of #38 (same task, already in-progress with a pushed branch
docs/issue-38-worktree-standard). Closing; completing the work under #38.Standardize isolated branch worktrees for LLM workto Complete isolated-worktree helpers (worktree-review, worktree-clean, tests)Reopened + repurposed. #38 merged only the partial standard (
branches/gitignore + runbook +scripts/worktree-start) into master (7e8256c). This issue tracks the remainder of the acceptance criteria:scripts/worktree-review,scripts/worktree-clean, and tests. Branch:feat/issue-39-worktree-helpersfrom master.Note: the #38 branch worktree under
branches/was removed by external cleanup mid-task; completing on a normal branch in the main checkout.jcwalker3 referenced this issue2026-07-02 02:21:15 -05:00
jcwalker3 referenced this issue2026-07-02 02:26:51 -05:00