Skip to content

[FEATURE] Add optional reviewer parameter to worktree-start for autonomous PR creation #102

Closed

Description

@gerchowl

Description

Add an optional reviewer parameter to the worktree-start just recipe so the autonomous pipeline (worktree:solve-and-pr) can optionally assign a PR reviewer at creation time.

Problem Statement

The autonomous worktree:pr skill creates PRs with --assignee @me but has no way to request a reviewer. The interactive pr:create skill asks the user, but the autonomous variant runs unattended. Currently there is no mechanism to control whether a reviewer gets tagged on the resulting PR.

Proposed Solution

Thread an optional reviewer parameter through the justfile and tmux environment:

  1. justfile.worktree — add reviewer="" parameter to worktree-start. Assign to REVIEWER variable and pass into the tmux session via -e "PR_REVIEWER=$REVIEWER".
  2. worktree:pr/SKILL.md — in step 6 (Create PR), if $PR_REVIEWER is set and non-empty, append --reviewer "$PR_REVIEWER" to the gh pr create command.
  3. assets/workspace/ copies — mirror the same changes.

Usage:

just worktree-start 99 "/worktree-solve-and-pr" "@c-vigo"   # with reviewer
just worktree-start 99 "/worktree-solve-and-pr"              # no reviewer

Alternatives Considered

  • Agent-assessed reviewer at PR time: Agent decides based on diff size/labels. Rejected — too subjective, and late in context window.
  • Capture PR context upfront to a JSON file: worktree:solve-and-pr writes .github/pr-context-<issue>.json at start when context is fresh. More elegant but heavier — overkill for a single setting right now. Could revisit if more PR preferences emerge.
  • Prompt-based convention: User includes "reviewer: @handle" in the prompt text. Less explicit, depends on agent parsing natural language reliably.

Impact

  • Backward compatible — reviewer defaults to empty string, existing invocations unchanged.
  • Benefits anyone using the autonomous worktree pipeline who wants PR review assignment.

Changelog Category

Added

Activity

  1. added
    feature
    area:workflow
    effort:small
    semver:minor
    on Feb 20, 2026
  2. self-assigned this
    on Feb 20, 2026
  3. gerchowl commented on Feb 20, 2026

    @gerchowl
    ContributorAuthor

    Parent issue: #103

  4. gerchowl commented on Feb 20, 2026

    @gerchowl
    ContributorAuthor

    Completed via PR #106 (merged 2026-02-20).

  5. added a commit that references this issue on Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:workfloweffort:smallfeaturesemver:minor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions