Skip to content

[FEATURE] Enhance worktree workflow and autonomous agent integration #103

@gerchowl

Description

@gerchowl

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:

  1. Configuration scattered across recipes - Agent model selections were hardcoded in justfile recipes rather than being centrally configured
  2. Branch resolution bugs - gh issue develop --list now returns tab-separated output (branch\tURL), breaking the grep -oE '[^ ]+$' pattern that expects space-separated output
  3. 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:

  1. Config as SSoT - Extract agent model assignments to .cursor/agent-models.toml with task tiers (lightweight, autonomous)
  2. Fix branch resolution - Update the parsing logic to handle tab-separated gh output correctly
  3. Optional PR reviewer param - Thread an optional reviewer parameter through worktree-start so 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:

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-start for parallel development

Changelog Category

Changed

Metadata

Metadata

Assignees

Labels

area:workflowDeveloper workflow, commands, rules, skillseffort:largeMore than 4 hours or multi-sessionfeatureNew feature or requestsemver:minorNew feature, backward-compatible

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions