-
Notifications
You must be signed in to change notification settings - Fork 1
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