Cocobox

Guides

Git worktrees for AI coding agents.

Two agents in one checkout is two people typing in the same file. Git worktrees give each agent its own folder on its own branch, from the same repository. Here is why that matters, how to do it by hand, and what Cocobox does for you.

Also on Linux (x86_64): AppImage · .deb

Good to know

Does a worktree copy the whole repository?

No. It shares the repository's history and only checks out the files of its branch. Dependencies and build output are per folder.

Where are the worktrees kept?

In ~/.local/share/cocobox/worktrees/, one folder per repository and one inside it per tab. They are ordinary git worktrees: git worktree list shows them.

Can I work in the same branch as an agent?

Yes. Open the tab's folder, or use its Files and Terminal tabs, which work in the tab's worktree.

What happens when I close a tab?

The tab is archived with its worktree, not deleted. Find it in the Archive panel and restore it. History and archive.

A branch for every agent, without the bookkeeping.

Open a repository and press ⌘T.

Also on Linux (x86_64): AppImage · .deb