Spaces and worktrees
A space is a project: a folder, usually a git repository, that agents work in. Every agent tab in a space gets its own git worktree, a separate folder on its own branch, so two agents never edit the same checkout and one branch switch never moves another tab.
Read the Spaces panel
The Spaces section sits at the top of the left sidebar (⌃⌘1 jumps to it). Each space is a card.

Space cards. The open space has its spend cap row underneath. A card shows the space’s name, its folder, the branch, ↑2 for commits not pushed yet, and a status: clean, N uncommitted, N folders when its tabs work in several worktrees, or shared checkout when another space works in the same folder. On the right, an icon per kind of agent inside and how many agents.
When an agent waits on you the card says N waiting; when there are answers you have not read, N unread. Click a card to switch to that space: the tab strip shows its tabs.
The open space has a Spend cap $ … / day row that sets a daily cap for each of its tabs (see Spend caps), and, when it has a database, a switch for a copy of it per agent (see SQL and connections).
Make a space
Click New space under the cards. Type a name, then press Enter to open the current folder, or click Folder… to pick another. Any folder works: a repository, or a plain folder of repositories, opened as it is.
To clone instead, click Clone. Cocobox lists the repositories your connected account can reach; type to filter, click one, then pick the folder to clone it into. It opens as a space with its first agent tab. If a private repository is missing, grant Cocobox access from your account’s app settings.

Select a repository to clone.
Work in a folder on another machine
Click New space, then ssh….
Type the host as ssh knows it (an alias from
~/.ssh/configworks). Leave the password empty for key login, or type it once: it is kept in your keychain, for that host only. Click connect.
An SSH space: connect first, then pick the folder. Click browse to walk the host’s folders and use this folder, or type the absolute path, then click open. Files and commands run on the host; the agents run on your Mac, with your own logins.
A worktree and branch per tab
Each new tab in a space (⌘T, the + in the tab strip, or the + beside a space’s name in the Agents list) gets its own worktree in
~/.local/share/cocobox/worktrees/<repo>/<name>, on a new branch of its own. If a worktree cannot be made, the tab is not opened.
The Agents list, grouped by space. Each row: task, agent name, provider, branch. New branches start from the default branch, freshly fetched, not from whatever another tab has checked out. To start from another branch, run
git config cocobox.base <branch>in the repository.To give the new agent a branch name yourself, use New agent from the Agents new menu: type a branch (blank picks one for you) and press Enter, or click folder… to start it in another folder.
Switch, create or rename a branch
Click the branch button in the tab’s header. The list shows local branches, then remote ones; fetch refreshes them.

The branch picker. Type to filter. Pick a branch to switch to it: the agent moves into that branch’s own worktree and picks up there with your next message. Type a name no branch has and choose Create to make it. Enter picks the exact match, the only match, or creates.
Rename at the bottom renames the current branch. Branch names keep their slashes:
fix/loginstaysfix/login.
Free disk space from build output
Click the disk icon beside Clone. Cocobox measures the build output (Rust’s
target/folders) in every worktree it made.
Folders in use are listed but never freed. Click Free … to delete the ones no tab or build is using. Cocobox also frees a tab’s build output when you close it; turn that off in Settings › Workspace › Free build output when a tab closes.
Close a space
Point at a card and click its × (or select it and press Backspace).
The card asks Close web? and says how many agents stop. Click × again to close it. Each tab in a Cocobox worktree is archived, not lost: find it in the Archive panel (see History, archive and side questions).

The first click only asks.