Aider
AI pair programming in your terminal that edits files and commits to git.
Instead of Copying code between a chat window and your editor
Git worktrees made as easy as branches, so you can run several coding agents in parallel.
100% recommend it · 1 vote
One vote per person. No account needed.
Worktrunk is a CLI that gives each branch its own worktree, addressed by branch name, so several agents such as Claude Code or Codex can work at once without overwriting each other's changes. `wt switch -c -x claude feat` creates the branch and worktree and starts the agent in it; `wt list` shows every worktree's status, and `wt remove` cleans up. Hooks, LLM commit messages, a merge command and shared build caches cover the rest of the loop.
wt switch feat creates or jumps to a branch's worktree; paths come from a configurable template.
wt switch -c -x claude feat creates the branch and worktree, then runs the command inside it.
wt list shows every worktree's changes, commits ahead and behind, and unpushed work; --full adds CI status and AI summaries.
One command squashes, rebases or merges a branch and removes its worktree.
Run commands on create, before and after merge, and at other points, such as installing dependencies or starting a dev server.
Copy node_modules/, target/ and similar folders into new worktrees using copy-on-write, on APFS, btrfs and XFS.
Agents such as Claude Code and Codex can work unsupervised for long stretches, so running several at once is practical. If they share one checkout they overwrite each other's files. Git worktrees give each branch its own directory backed by the same repository, but the raw commands are tedious:
git worktree add -b feat ../repo.feat && cd ../repo.feat && claude
# later
cd ../repo && git worktree remove ../repo.feat && git branch -d featWith Worktrunk the same steps are:
wt switch -c -x claude feat
wt removebrew install worktrunk && wt config shell install
wt switch -c -x claude auth-refactor -- 'Refactor the session handling'
wt switch -c -x codex fix-flaky-tests
wt list # see what each agent has changed
wt switch auth-refactor # jump in to review
wt merge # squash, rebase onto main and clean uphash_port template filter in hooks to give each worktree's dev server its own port.wt step copy-ignored shares build caches between worktrees on copy-on-write filesystems.uv tool install worktrunk).wt switch pr:123) while keeping your own work untouched.wt clashes with Windows Terminal's command; winget installs it as git-wt instead.wt config shell install) is needed for wt switch to change your directory.brew install worktrunk && wt config shell install # or: cargo install worktrunk
wt switch -c -x claude feature-auth
wt list Built in, but you type the branch name several times and clean up by hand.
Simple and fully isolated, but slow to create and easy to lose track of.
Wrap worktrees in a GUI, at the cost of leaving your terminal workflow.
Other tools that share topics with Worktrunk.
AI pair programming in your terminal that edits files and commits to git.
Instead of Copying code between a chat window and your editor
A Git-compatible version control system where your working copy is always a commit and every operation can be undone.
Instead of The git CLI, interactive rebase and git stash
A diff tool that compares code by its syntax, not line by line.
Instead of The line-based output of git diff