AI NewsDev toolsAnnouncement

work3 makes a git worktree and a Claude Code session in one command

A new MIT tool turns one command into a fresh git worktree with Claude Code already running. It installs dependencies and copies env files at the same time.

AI News

Editorial2 min read

LinkedInX
GitHub repository card for svaraborut/work3

Image: GitHub

Why it mattersA developer who wants to try three Claude Code agents in parallel must set each worktree up by hand today. work3 removes the four-step ritual and only allows fast-forward merges back to main.

Running three Claude Code agents in parallel on one repository means three git worktrees. Each one needs dependencies installed. Each one needs the right env files copied in. Each one needs a Claude Code session started inside it. Today that is four steps, by hand, every time.

Borut Svara put a small CLI called work3 on GitHub on 18 November. It bundles the four steps behind two commands. The repo has 113 stars on an MIT licence. The README calls out one thing that is unusual for a Claude Code tool: it only allows fast-forward merges, so the main branch stays linear.

What it does

work3 init sets up the repository once. A short config file says which env files to copy and which install command to run. It also lists the post-setup hooks to fire.

work3 open feat/login then does four things. It creates a git worktree for the branch next to the main checkout. It copies the env files in. It runs the setup command. It starts Claude Code in the new folder.

work3 fold feat/login closes the loop. The branch merges back into main, and only as a fast-forward. The worktree folder gets cleaned up.

Why fast-forward only

A team running three agents on three branches does not want merge commits for each one in the main log. It also does not want a rebase race when two agents finish close together. Linear history fixes both. If a branch has fallen behind main, fold refuses it and the developer rebases first.

The tool also refuses to close a worktree with uncommitted work in it. That matters when an agent leaves something half done. A plain shell script cannot see the difference between a clean branch and a dirty one.

Who this is for this week

Any developer running more than one coding agent at the same time will recognise the setup ritual work3 removes. The tool does not depend on Claude Code either. It can start any command in the new folder.

The tool fits teams that have already standardised on worktrees. A shop that still runs a single checkout and switches branches will not feel the pain yet.

What is in the box

The whole thing is one Go binary. The install is one line from the releases page or Homebrew. The config lives in the repo, so every developer on the team uses the same setup. The MIT licence lets a team fork it. A fork can change the merge policy if the no-rebases rule does not fit.

The README names the author, Borut Svara, and the npm package is published from his own user account. The repo has one dependency: git itself. It does not call out to any model or API.

Source

SourceGitHub

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project