Repository navigation
Description
Description
Improve the worktree-based autonomous development workflow by addressing configuration management, bug fixes, and PR automation enhancements. This is a parent issue tracking multiple related improvements to the just worktree-* recipes and autonomous agent integration.
Problem Statement
The worktree workflow has evolved organically and now has several areas that need systematic improvement:
- Configuration scattered across recipes - Agent model selections were hardcoded in justfile recipes rather than being centrally configured
- Branch resolution bugs -
gh issue develop --listnow returns tab-separated output (branch\tURL), breaking thegrep -oE '[^ ]+$'pattern that expects space-separated output - Limited PR automation - The autonomous PR creation cannot specify reviewers, requiring manual follow-up
These issues affect the reliability and maintainability of the autonomous agent workflow that powers parallel development via worktrees.
Proposed Solution
Address these issues through focused sub-issues:
- Config as SSoT - Extract agent model assignments to
.cursor/agent-models.tomlwith task tiers (lightweight, autonomous) - Fix branch resolution - Update the parsing logic to handle tab-separated
ghoutput correctly - Optional PR reviewer param - Thread an optional
reviewerparameter throughworktree-startso autonomous PRs can assign reviewers
Each improvement maintains backward compatibility and follows the repo's Single Source of Truth principle.
Alternatives Considered
- Monolithic refactor - Rejected in favor of incremental, traceable improvements via sub-issues
- Wait for native Cursor worktree support in devcontainers - Still broken as of Feb 2026, CLI workflow remains necessary
Additional Context
The worktree workflow enables true parallel autonomous development where multiple agents can work on different issues simultaneously in isolated environments. Reliability and configuration management are critical for this workflow.
Related:
- Cursor forum issue: https://forum.cursor.com/t/cursor-parallel-agents-in-wsl-devcontainers-misresolve-worktree-paths-and-context/145711
Impact
- Improves reliability and maintainability of autonomous agent workflows
- Makes configuration explicit and centralized (SSoT)
- Backward compatible - all changes are additive or fix existing bugs
- Benefits anyone using
just worktree-startfor parallel development
Changelog Category
Changed
Activity
gerchowl commentedon Feb 20, 2026
Sub-issues
chore: extract agent model config to SSoT
docs: fix ASCII diagram alignment in skill pipeline
feat(skills): add subagent delegation and worktree reviewer support
docs: link TDD and execute commit steps to git:commit skill and commi…
gerchowl commentedon Feb 20, 2026
Implementation Plan
Issue: #103
Branch:
feature/103-worktree-workflow-enhancementsScope: Goal 2 — Fix branch resolution for tab-separated
gh issue develop --listoutput. (Goals 1 and 3 are already done.)Bug:
gh issue develop --listreturnsbranch<TAB>URL. The current parsinggrep -oE '[^ ]+$'treats tab as non-space, capturing the entire line instead of just the branch name.Approach: Extract the parsing into
scripts/resolve-branch.sh(SSoT). Both justfile call sites pipe through it. BATS tests exercise the actual script.Tasks (TDD)
scripts/resolve-branch.sh—tests/bats/worktree.bats— verify:bats tests/bats/worktree.batsfailsscripts/resolve-branch.shand update both call sites injustfile.worktreeto use it —scripts/resolve-branch.sh,justfile.worktree— verify:bats tests/bats/worktree.batspasses## Unreleased>Fixed—CHANGELOG.md— verify: visual checkCommit sequence
test: add BATS tests for resolve-branch script(RED) ✓fix: extract branch resolution to script and fix tab-separated parsing(GREEN) ✓docs: update CHANGELOG for branch resolution fix✓docs: make commit-after-RED a separate TDD step
test: add BATS test for tab-separated branch resolution parsing
test: add BATS tests for resolve-branch script
fix: extract branch resolution to script and fix tab-separated parsing
docs: update CHANGELOG for branch resolution fix
feat: enhance worktree workflow — config SSoT, branch resolution fix,…
fix(gh-issues): detect Refs: #N in PR bodies for cross-refs (#121) (#150
chore: release 0.3.0 (#270)