ZeroLog
Private preview

Parallel workspaces for agents

Parallel workspaces let several agents work at the same time on one repository in one container. Each gets its own git worktree, its own branch, a block of ten dev ports and so its own preview address. ZeroLog measures which files each workspace changes, warns about overlaps and merges only after a check.

This differs from /goal --parallel, where several forked containers race and the winner stays. Here the agents share one container and work on different tasks whose results should all come together.

Create a workspace

  • Needs the sandbox permission and the Agents page. On Agents, tab All, the card Parallel workspaces asks for the container, a repository (searched under /work), a name, and optionally a base branch and a check command. The container must be running.
  • ZeroLog creates the branch zl/ws/<name> and a worktree under /work/.zl-workspaces. In it you find .zl-workspace.env (the ports) and .zl-workspace.md (a note for the agent). Neither shows up in diffs.
  • Use copy terminal command to enter the worktree with its ports set, then start your agent there. An agent start does not move into the worktree by itself yet.
  • The ports run from 4400 in blocks of ten, the smallest free block first; at most 12 active workspaces per container. The preview is the normal preview link on the base port. The dev server must listen on 0.0.0.0:$PORT.

Overlaps, check and merge

  • The card shows per workspace the commits ahead of and behind the base, uncommitted files and changed files. Files changed in two or more workspaces of the same repository appear as an overlap, on the card and in each .zl-workspace.md. Overlap is measured per file, not per line.
  • Check needs a clean worktree with at least one commit. It runs a trial merge against the base without changing the repository and lists conflicting files. Without conflicts it runs your check command in the worktree (600 seconds at most, last 40 lines of output). The command runs in the worktree, not on the merge result.
  • Merge works only after a passed check of the same head. The main checkout must be clean and on the base branch. The merge is a local git merge --no-ff inside the container; nothing is pushed. The worktree is removed afterwards, the branch stays.

Clean-up

  • Worktrees that are merged and clean, or clean and idle for seven days, are removed. Uncommitted changes are never removed automatically, only through remove and discard changes with a confirmation. Branches always stay.
  • Clean-up runs on a button and every six hours for running containers.

Related: Containers, Ports, /goal.

Something missing or wrong here? Say so. The documentation is part of the product, not an afterthought. All topics · Pricing · AI agents · FAQ · Security · Status · X · Legal & privacy · Home