Worktrunk plugin: parallel AI agents in separate git worktrees
max-sixty/worktrunk
Worktrunk is a separate program (wt) for keeping several working copies of one project side by side. This plugin connects it to your AI assistant. The assistant can start a task in a fresh copy, set up wt for you, and wt shows which copies have an assistant working or waiting.
Pack description by its author: “Worktrunk is a separate program (wt) for keeping several working copies of one project side by side. This plugin connects it to your AI assistant. The assistant can start a task in a fresh copy, set up wt for you, and wt shows which copies have an assistant working or waiting.”
Software engineeringGives your assistant new abilities with scriptsCommands you run when neededKnowledge and rules for your assistant
1. Changes your files
Skills that write or edit files: worktrunk, wt-switch-create.
github.com/max-sixty/worktrunk/blob/057037a/2. Runs code on your machine
Every prompt, notification, question, permission dialog and stop; session end: bash hooks/wt.sh runs wt to set or clear the 🤖/💬 mark on the current branch (stored in the repo's git config). Failures are ignored. Claude Code PermissionRequest: If the request is EnterWorktree into a wt worktree of the same repository at its expected path, the hook answers allow; otherwise it sets the 💬 mark and the normal dialog shows.
github.com/max-sixty/worktrunk/blob/057037a/3. Sends data
The plugin runs bash hooks on every prompt and stop, and in Claude Code it auto-allows EnterWorktree into a wt worktree of the same repository and takes over worktree creation and removal. Creating a worktree runs the project's wt hooks, which are shell commands from the repository; wt runs them only after you approve them once. Do not let an agent use --yes to skip that approval. Worktrees are created outside the project folder and are kept after the session.
github.com/max-sixty/worktrunk/blob/057037a/4. Commercial use
MIT or Apache-2.0 at your choice: keep the license notice
github.com/max-sixty/worktrunk/blob/057037a/Checked against the pack's files at commit 057037a, on Nov 7, 2026. Tap a verdict to see its source.How we checkedReport an error
The pack has changed since AgentGid checked it on Nov 7, 2026. Some details may be out of date.
Good for you if
- You run several AI coding sessions on one project at the same time and want each in its own copy
- You already use Worktrunk (wt), or want to, with Claude Code, Codex or Gemini CLI
- You want help setting up wt, for example AI-written save messages or setup steps for each new copy
Probably not for you if
- You don't want to install the wt program: the plugin does nothing without it
- You work in one session on one copy of your project at a time
What its answer looks like
Activity marks in wt list
$ wt list Branch Status HEAD± main↕ @ main ^⇡ + feature-api ↑ 🤖 ↑1 + review-ui ? ↑ 💬 +1 ↑1
The skill's own example, from skills/worktrunk/reference/claude-code.md. More examples
What you'll notice
- A robot or speech-bubble mark next to each copy in wt list: the assistant is working or waiting
- /wt-switch-create makes a new copy of the project beside it and moves the session there (Claude Code only)
- Copies the assistant makes for itself go through wt, so they follow your wt layout and setup steps
- In Claude Code, entering a wt copy of the same project no longer asks you to confirm
What you need
- Claude Code, Codex, Gemini CLI
- Free, Apache-2.0 license
- Install the wt program first, then one command: wt config plugins claude install (or codex)
- Needs wt v0.81.0 or later on your PATH, plus bash (Git for Windows on Windows)
Words on this page
- Skill
- A set of written instructions your AI assistant follows. Installing one is like giving it a playbook.
- Plugin
- A package your assistant installs that can bring skills, commands and hooks together.
- Hook
- A small program the assistant runs by itself at set moments, for example when a session starts.
- CLI
- A program you run by typing commands in a terminal.
- Repository
- A project folder on GitHub with its files and history.
- Slash command
- A command you type in the assistant's chat, starting with /.
| Repository | max-sixty/worktrunk · website |
|---|---|
| GitHub stars | 12,691 |
| Skills | 5 (5 SKILL.md in the repo, 2 in skills/) · 1 with scripts |
| Category | Software engineering |
| License | Apache-2.0 |
| Last updated | Nov 22, 2026 · card checked Nov 7, 2026 at commit 057037a |
| Install counts | max-sixty/worktrunk on skills.sh, Vercel's skills directory, which shows installs and security audits per skill |
max-sixty/worktrunk popularity over time
What Worktrunk plugin does
- Activity marks: hooks set a 🤖 (working) or 💬 (waiting) mark on the branch at each prompt, question, permission dialog and stop; the mark is cleared when the session ends
- Agent worktrees through wt (Claude Code): when Claude Code creates or removes a worktree, the plugin runs wt switch --create / wt remove instead of plain git worktree
- Auto-yes for one dialog (Claude Code): entering a wt worktree of the same repository at its expected path is allowed without the confirmation dialog
- Setup guide skill: reference docs for wt config, project hooks, LLM commit messages, aliases and troubleshooting
- /wt-switch-create: creates a worktree (optionally in another repo), moves the session into it and starts the task
Never cut, per the skill: The worktrunk skill tells the agent not to approve a project's hook commands on the user's behalf and to stop and ask the user instead.
From the pack's SKILL.md files, summarised by AgentGid.
The 2 skills, explained
worktrunk
Helps you set up and fix the wt program, and answers questions about it
You give
- What you want wt to do: AI-written save messages, setup steps for new copies, a custom folder layout, shortcuts
- Your consent before it edits your personal wt settings file
You get
- A proposed change to ~/.config/worktrunk/config.toml, applied after you approve
- Project hooks in .config/wt.toml taken from your project's own scripts, with a comment on why each exists
- A test run: wt step commit --dry-run or wt switch --create test-hooks
wt-switch-create
Makes a fresh copy of the project for one task, moves the session into it and starts the task
You give
- A branch name (optional, it picks one from the task)
- Another project folder (optional)
- The task, after --
You get
- A new wt worktree beside your project, e.g. <repo>.fix-auth/
- The session moved into it and the task started there
- The worktree kept after the session; merge or remove it with wt merge / wt remove
See it in action
The skill defines what its answer looks like. Its own example:
$ wt list Branch Status HEAD± main↕ @ main ^⇡ + feature-api ↑ 🤖 ↑1 + review-ui ? ↑ 💬 +1 ↑1
The skill defines what its answer looks like. Its own example:
/wt-switch-create my-feature -- fix the parser bug /wt-switch-create -- fix the parser bug /wt-switch-create my-feature ~/workspace/other-repo -- fix the parser bug /wt-switch-create my-feature
The skill defines what its answer looks like. Its own example:
# Pipeline: install completes before migrate starts [[pre-start]] install = "npm install" [[pre-start]] migrate = "npm run db:migrate" # Concurrent: independent commands in one table [pre-start] install = "npm install" env = "cp .env.example .env"
When to reach for it
| You want | Use |
|---|---|
| Start a task in its own copy of the project without leaving Claude Code | /wt-switch-create <branch> -- <task> |
| See which copies have an assistant working or waiting | wt list (🤖 working, 💬 waiting) |
| AI-written commit messages for wt merge | Ask the worktrunk skill to set up [commit.generation] |
| Install dependencies automatically in each new copy | Ask the worktrunk skill to add a pre-start hook to .config/wt.toml |
| The agent stopped at "needs approval to execute" | Run wt config approvals add yourself and review the commands |
| Clear a stuck mark after a killed session | wt config state marker clear |
Skills in max-sixty/worktrunk
| Skill | In plain words | Changes files? | What it does (author) |
|---|---|---|---|
| worktrunk | Helps you set up and fix the wt program, and answers questions about it | Yes | Guidance for Worktrunk (the `wt` CLI) — git worktree management, hooks, and config. Load when working out which worktree a `wt` command will act on, or reaching for the global `-C <path>` to target one; editing .config/wt.toml or ~/.config/worktrunk/config.toml; adding, modifying, or debugging…npx skills add max-sixty/worktrunk --skill worktrunk |
wt-switch-create/wt-switch-create [<branch>] [<repo>] [-- <task>] |
Makes a fresh copy of the project for one task, moves the session into it and starts the task | Yes | Create a new worktrunk worktree (optionally in another repo) and switch this session's working directory into it. Use when launching a session that should work in its own worktree.npx skills add max-sixty/worktrunk --skill wt-switch-create |
| release | — | — | Worktrunk release workflow. Use when user asks to "do a release", "release a new version", "cut a release", or wants to publish a new version to crates.io and GitHub.npx skills add max-sixty/worktrunk --skill release |
| running-tend | — | — | Worktrunk-specific guidance for tend CI workflows. Adds codecov polling, Rust test commands, labels, and review criteria on top of the bundled tend-ci-runner skills. Use when operating in CI. has scriptsnpx skills add max-sixty/worktrunk --skill running-tend |
| writing-user-outputs | — | — | CLI output formatting standards for worktrunk. Load before editing any code that calls warning_message, hint_message, error_message, info_message, eprintln, or println, or that produces strings the user will see (CLI help, progress UI, snapshot text). Documents ANSI color nesting rules, message…npx skills add max-sixty/worktrunk --skill writing-user-outputs |
The author's descriptions come from each skill's SKILL.md; the plain-words column is AgentGid's.
Good to know before you install
- It needs the wt program: the plugin's hooks only call wt, and fail with a message if wt is not on your PATH.
- In Claude Code it answers one confirmation for you: entering a wt worktree of the same repository at its expected path is allowed without a dialog. Every other request still asks.
- Worktrees are created outside your project folder by default (a sibling folder such as <repo>.fix-auth/), and stay after the session.
- Creating a worktree runs your project's wt hooks (for example npm install), but only commands you approved once with wt config approvals add.
- /wt-switch-create creates the worktree first on every call, even for a read-only task, with no extra question.
- Activity marks are stored in the project's git config, not in a separate file.
Before you start
Works in
- Claude Code: plugin
- Codex: plugin
- Gemini CLI: extension
- OpenCode: plugin file written by wt (activity marks, worktree isolation; no skills)
You will need
- wt CLI v0.81.0 or later: The hooks and both skills drive wt
- bash (Git for Windows on Windows): The hooks run through hooks/wt.sh
- jq: Only for the Codex commit-message command
Steps only you can do
- Install the wt program and its shell integration (https://worktrunk.dev (README.md install section))
Then: The agent can install the plugin with wt config plugins claude install (or codex) - Approve the project's wt hook commands once with wt config approvals add, after reading them (skills/worktrunk/SKILL.md (Hook approvals in non-interactive sessions))
Then: The agent can create and merge worktrees without hitting the approval error - If /wt-switch-create reports the worktree is unreachable, add the parent folder to permissions.additionalDirectories or run /add-dir (skills/wt-switch-create/SKILL.md)
Then: The agent continues the task inside the new worktree - Approve each proposed change to ~/.config/worktrunk/config.toml (skills/worktrunk/SKILL.md (Two types of configuration))
Then: The agent applies the change and tests it, e.g. wt step commit --dry-run
Mistakes to avoid
Install the plugin and expect it to work on its own
Install the wt program (v0.81.0 or later) first, then the plugin
Every hook only calls wt, and fails with a message when wt is not on PATHLet the agent add --yes when wt stops with "needs approval to execute"
The person runs wt config approvals add and reviews each project hook command
Approving a project's hooks decides whether the repository may run arbitrary commands on the machineStart parallel Claude Code sub-agents with isolation set to worktree
Pre-create each worktree with wt switch --create <branch> --no-cd and name its path in the sub-agent prompt
The hook then creates the worktree on a throwaway agent-<id> branch, leaving odd paths and orphan branchesExpect /wt-switch-create and worktree isolation in Codex or Gemini CLI
In those agents, run wt switch --create and wt remove directly
Only Claude Code and OpenCode 2 expose the worktree-lifecycle hooksExpect worktrees made with a repo argument to clean themselves up
Merge or remove them yourself with wt merge or wt remove
Worktrees the command creates through wt are kept after the session
Which one to pick
| If you need | Pick |
|---|---|
| You want each parallel agent session in its own git worktree, with activity marks in wt list and worktree setup hooks | This pack |
| You want project management on GitHub Issues with parallel agents in git worktrees | automazeio/ccpm |
| You want a whole AGENTS.md workflow template that isolates work in worktrees and proves changes with evidence | michaelshimeles/rstack |
Works well with
- claude-code: Full support: skills, activity marks, worktree isolation hooks and /wt-switch-create
- openai-codex: Codex plugin with the configuration skill and activity marks
- gemini-cli: Gemini CLI extension with the configuration skill and activity marks
- opencode: OpenCode plugin with activity marks and worktree isolation under OpenCode 2
May I use it like this?
| Use | Answer | Condition |
|---|---|---|
| In a commercial app | Yes | MIT or Apache-2.0 at your choice: keep the license notice |
| Passing the files on | Yes | Under MIT keep the copyright and permission notice in copies |
| Work for clients | Yes | MIT allows use in work for others |
| Shipped inside your app | Yes | Dual MIT / Apache-2.0; the skill files repeat it in their frontmatter |
What leaves your machine
- The diff being committed, inside a commit-message prompt → The LLM command you set in [commit.generation] (for example claude, codex, opencode, llm or aichat) and that tool's model provider, On wt merge, wt step commit and wt step squash, and on wt list --full with summaries on, only if [commit.generation] is set. Opt out: Leave [commit.generation] unset (the plugin does not set it without your approval)
- Branch and pull request lookups for CI status → Your code forge (GitHub, GitLab, Gitea or Azure DevOps), Only with wt list --full. Opt out: Use wt list without --full
Install Worktrunk plugin
Official commands from the repository
brew install worktrunk && wt config shell install
Also cargo install worktrunk, winget install max-sixty.worktrunk (as git-wt), pacman or conda; see the README.
wt config plugins claude install
Manual equivalent: claude plugin marketplace add max-sixty/worktrunk, then claude plugin install worktrunk@worktrunk
Remove: wt config plugins claude uninstall
wt config plugins codex install
Manual equivalent: codex plugin marketplace add max-sixty/worktrunk, then codex plugin add worktrunk@worktrunk. No /wt-switch-create and no worktree isolation in Codex.
Remove: wt config plugins codex uninstall
gemini extensions install https://github.com/max-sixty/worktrunk
Remove: gemini extensions uninstall worktrunk
wt config plugins opencode install wt config plugins pi install wt config plugins omp install
Activity tracking only (and worktree isolation in OpenCode 2); writes a .ts file into that agent's global config folder, e.g. ~/.config/opencode/plugins/worktrunk.ts. No skills.
Or with the open-source skills CLI: npx skills add max-sixty/worktrunk. Skills are instructions your agent follows: read them before installing.
What it installs and runs on your machine
Read in the code at commit 057037a, Nov 7, 2026
| When | What happens |
|---|---|
| Every prompt, notification, question, permission dialog and stop; session end | bash hooks/wt.sh runs wt to set or clear the 🤖/💬 mark on the current branch (stored in the repo's git config). Failures are ignored. |
| Claude Code PermissionRequest | If the request is EnterWorktree into a wt worktree of the same repository at its expected path, the hook answers allow; otherwise it sets the 💬 mark and the normal dialog shows. |
| Claude Code WorktreeCreate / WorktreeRemove | Runs wt switch --create (or wt switch) / wt remove instead of git worktree. This creates or removes a worktree folder, by default beside the project, and runs the project's approved wt hooks. |
| Windows (Codex) | hooks/wt.cmd finds Git for Windows' bash and runs wt.sh. |
| Network | The hook scripts make no network calls. wt itself reaches the network only for things you ask for, such as CI status in wt list --full or LLM commit messages, and runs whatever your approved project hooks do. |
Settings
WORKTRUNK_BIN: Path to the wt binary the hooks use instead of wt on PATH[commit.generation] command: In ~/.config/worktrunk/config.toml: the LLM command that writes commit messagesworktree-path: Template for where new worktrees go (default: beside the repo)
Quick answers
- Is it free?
- Yes. Dual-licensed MIT or Apache-2.0.
- Does it work without the wt program?
- No. The hooks and both skills require wt; the plugin README asks for v0.81.0 or later.
- Does it send my code or usage anywhere?
- The hook scripts make no network calls, and the author says Worktrunk collects no telemetry. wt reaches the network only for features you turn on, such as CI status.
- Which features work in Codex and Gemini CLI?
- The setup skill and activity marks. Worktree isolation and /wt-switch-create are Claude Code features (isolation also in OpenCode 2).
- Will the agent approve my project's hook commands by itself?
- The worktrunk skill tells it not to: it should ask you to run wt config approvals add and review the commands.
- How do I remove it?
- wt config plugins claude uninstall (or codex), or gemini extensions uninstall worktrunk. Worktrees it made stay until you run wt remove.
Checked by AgentGid on Nov 7, 2026 against commit 057037a of the pack's own files. agent.md for AI agents · Report a mistake
More software engineering skill packs
| # | Install | |||||
|---|---|---|---|---|---|---|
| 1 |
Gets a set of working habits for building software. It interviews you about a plan before it builds, turns the talk into a spec and small tickets, builds them test-first and reviews the result. |
330K | +32.5K | 39 | ||
| 2 |
Follows one fixed way of working. Before it builds anything, it asks what you really want and writes a short design for you to approve. Then it writes a step-by-step plan, builds it with tests first, has the work checked and asks how you want to finish. |
324K | +18.8K | 15 | ||
| 3 |
Gets four rules: think before coding, keep it simple, change only what you asked for, and set a clear goal it can check. It asks before guessing and writes less extra code. The rules come from the README's reading of a public post by Andrej Karpathy; the files do not say he made or reviewed them. |
235K | +14K | 1 | ||
| 4 |
DietrichGebert/ponytail
Checked
Stops overbuilding. It does what you asked in the simplest way that works, reuses what your project already has, and ends every answer by telling you what it left out. |
197K | +27.3K | 6 | ||
| 5 |
This repo is mostly a big collection of AI apps and tutorials. Its agent_skills folder holds seven separate skills you install one at a time. They help your assistant explain why old code exists, check a change or a package list, or find your abandoned side projects. Others test a draft on simulated readers, untangle a voice ramble, or split a big job across several AI models. |
145K | +3,089 | 10 | ||
| 6 |
Works like a careful senior engineer. It writes down what to build before coding, splits the work into small steps, proves each step with a test and reviews the result before launch. Nine slash commands cover the stages, and 25 skills switch on when a task matches. |
120K | +11K | 26 |
No pack matches.