Worktrunk

Git worktree management for parallel AI agent workflows

Visit website

Overview

Run several AI agents in parallel on one repository and they trip over each other in the same working tree. Git worktrees solve the isolation problem, but managing them by hand is friction nobody wants.

Worktrunk makes worktrees feel as easy to use as branches, so parallel agent workflows stop fighting over one checkout.

What it does

  • Switch, list, merge and remove worktrees with dedicated commands
  • Hooks for wiring worktree events into your workflow
  • LLM-generated commit messages when you land work
  • Shared build caches, so parallel worktrees are not all rebuilding from scratch

How it runs

Worktrunk is a Rust CLI for managing Git worktrees, aimed squarely at workflows where AI agents work in parallel, each in its own tree.

Who it's for

Developers who run multiple agents — or multiple tasks — against the same repository at once, and want the isolation of worktrees without the bookkeeping.

  • Script your Mac: powerful desktop automation in JavaScript

    Workflow Automation
  • A self-hosted web command center for OpenCode

    Workflow Automation
  • A lightweight automation hub that dispatches events to CLI agents

    Workflow Automation