Skip to content

Git Worktrees for Task Isolation #27

Closed

Description

@vybe

Each execution (Tasks tab) gets its own git worktree/branch. Enables parallel executions without interference. Human decides: merge to main or discard.

Activity

  1. added
    priority-p1
    type-feature
    on Feb 24, 2026
  2. vybe commented on Mar 30, 2026

    @vybe
    ContributorAuthor

    Actualization (2026-03-30)

    Current state: Not implemented at the platform level.

    What exists:

    • Claude Code itself now supports git worktrees natively (the --worktree flag / isolation: "worktree" for subagents)
    • Parallel headless execution (req 16.4) enables concurrent tasks via POST /task
    • Each execution gets a unique session_id for isolation

    Gap: Trinity doesn't create worktrees per execution. Agents share a single working directory, so parallel executions can conflict if they modify the same files. Claude Code's native worktree support could be leveraged but isn't wired into the platform.

    Recommendation: Keep open. The value is real for parallel execution safety. Implementation could leverage Claude Code's native worktree support by passing --worktree to headless executions, but would need merge/discard UX in the Tasks tab.

  3. added
    complexity-medium
    theme-devex
    on Jun 3, 2026
  4. vybe commented on Jun 12, 2026

    @vybe
    ContributorAuthor

    Closing per the aged-P1 convention: filed 2026-02-24 and never started in 3.5 months despite P1 — the priority signal hasn't matched real demand. Worktree-style isolation also overlaps with the pull-coordination direction (Epic #1045 / #1081) that now owns the execution-isolation story. Re-file against that epic if task isolation becomes concrete. — backlog grooming 2026-06-12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity-mediumpriority-p1theme-devextype-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions