Adds a bullet to the "Subagent orchestration" section of AGENTS.md treating worktree/branch cleanup as part of closing out a merged PR, not a separately-remembered step.
Documents the two mechanical gotchas from #75: git worktree remove --force --force (double -f) is needed once a worktree has initialized submodules to run tests, and git worktree remove never deletes either the feature branch or the Agent tool's auto-generated worktree-agent-<id> isolation branch — both need explicit git branch -d.
## Summary
- Adds a bullet to the "Subagent orchestration" section of `AGENTS.md` treating worktree/branch cleanup as part of closing out a merged PR, not a separately-remembered step.
- Documents the two mechanical gotchas from #75: `git worktree remove --force --force` (double `-f`) is needed once a worktree has initialized submodules to run tests, and `git worktree remove` never deletes either the feature branch or the `Agent` tool's auto-generated `worktree-agent-<id>` isolation branch — both need explicit `git branch -d`.
Fixes #75
## Test plan
- [x] Pre-push hook test suite passed
- [x] Pre-commit hooks (secrets scan, conventional commit, etc.) passed
Adds a bullet to the Subagent orchestration section in AGENTS.md so
coordinators treat merged-PR cleanup as one atomic step: verify the
merge, force-remove the worktree (double -f, since this repo's test
runs initialize submodules), and delete both the feature branch and
any Agent-tool-generated worktree-agent-<id> isolation branch.
Fixes#75
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FNJWdVvdgvZCHi1hZGqgVQ
Defame1297
requested review from Defame1297 2026-07-05 13:37:07 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
AGENTS.mdtreating worktree/branch cleanup as part of closing out a merged PR, not a separately-remembered step.git worktree remove --force --force(double-f) is needed once a worktree has initialized submodules to run tests, andgit worktree removenever deletes either the feature branch or theAgenttool's auto-generatedworktree-agent-<id>isolation branch — both need explicitgit branch -d.Fixes #75
Test plan