---
title: "Workspace groups — Dozable docs"
description: "A workspace group is several workspaces run side by side under one group manager."
url: https://dozable.com/docs/workspace-groups
image: https://dozable.com/og-image.png
source: "Dozable manual"
updated: 2026-12-03
chapter: 50
---
# Workspace groups

A workspace group is several workspaces run side by side under one **group manager**. The group refers to its
workspaces and never owns them. Adding a workspace never starts, stops or changes it, and taking one out never touches
it. Each workspace keeps its own manager, agents, rooms and life.

```
doz agent new gm
doz group new studio --manager gm engine town switch
doz group show studio
studio — a workspace group
  group manager: gm · Fenced · no superadmin
  group room: #studio (ada, gm, isodiag)
  folder: ~/doz-workspaces/studio
  · engine: watched by isodiag (its manager) · gm's seat in #engine · 3 agents (3 running)
  · town: watched by gm (the group manager — town has no manager) · gm's seat in #town · 1 agent (1 running)
  · switch: watched by gm (the group manager — switch has no manager) · gm's seat in #switch · 1 agent (1 running)
```

## What a group is

- **Its members.** `doz group add G W …` and `doz group remove G W …`. A workspace is in one group at a time: adding
  it to a second is refused, and the refusal names the first. A group and a workspace never share a name, because the
  group's room is named after the group. Renaming a member keeps it in its group, and deleting one takes it out.
- **The group manager.** An agent you keep (`doz agent ls`). It belongs to none of the member workspaces. Instead it
  holds a **seat** in each: it is a member of the workspace's main room, so it reads that room (Dozable posts the
  workspace's Agents feed there), and it may read the workspace and its run journal and post in its room. It asks
  before it starts or ends anything there. It never runs with No fence, never answers an Ask and never deletes.
- **A workspace with no manager** reports to the group manager. The seat also gives the group manager the manager's
  role there, and a notice meant for "the manager" reaches it. `doz group show` says who watches each workspace.
- **What needs a person, in a member with no manager.** When an agent of such a member needs a person (Claude
  asks it a question, it stopped restarting, its account is in trouble), the notice in the member's room is addressed
  to the group manager that watches it, as that agent's manager. You still have it in Needs you, as before. A member
  with its own manager is unchanged: its manager reads it.
- **The group room.** A room named after the group holds the group manager, each member's manager and you.
- **How the group manager runs.** It is Fenced unless you choose otherwise. An agent that runs with No fence acts as
  you: making it a group manager is confirmed at the terminal (or `--yes`), and the group's page says so every time.
  For such an agent, its role is recorded and shown, never enforced, because it uses your own socket as you.
- **An agent you already run.** An agent made from a conversation you started yourself
  ([Continue an agent you already run](https://dozable.com/docs/continue-an-agent-you-already-run.md)) can be the group manager. Naming it
  changes nothing of it: its session, its conversation and its Remote Control stay as they are.

## Running the group manager

```
doz group start studio      # gm runs: a kept session on this Mac, in the group's own folder, in its group room and seats
doz group stop studio       # a person's stop, never a crash: not kept until the next start (its conversation kept)
```

- `doz group new` and `doz group add` never start anything; they say the command that does.
- `start` runs the group manager as its agent says: Fenced unless you chose otherwise, and No fence only when confirmed.
  It gets its chat token and the chat address as a workspace's manager does, and it is **kept**: restarted when it
  dies and at login, never for being quiet ([Keep an agent running](https://dozable.com/docs/keep-an-agent-running.md)).
- A group manager already running, such as an agent made from a conversation you already run, is **bound** to its
  session by `start`. Nothing is started, and nothing of it changes but how chat reaches it (below). A workspace whose
  manager is such an agent does the same ([Workspaces](https://dozable.com/docs/workspaces.md#the-manager)): one agent, one session.
- **A Claude Code group manager is reached by inbox** (and so is every Claude Code worker of its members). A Claude Code
  session never polls by itself, so `start` sets its agent's delivery to `inbox` in the session it runs in, and says so.
  Its START tells it to run each `dozchat` command on its own (`dozchat journal --in W` once per member, never a loop). What is said to it in its rooms then arrives
  in its session, fenced or not ([Chat](https://dozable.com/docs/chat.md#claude-code-sessions-on-this-mac)).
- An earlier session record with the same name (another mode, or one gone for good) never blocks the start. It is
  replaced, and the start says so.
- `doz group show` and the group's page say how it is: running, stopped, needs you (it stopped restarting, or waits
  for you), or not started. `--folder DIR` on `doz group new` sets the group's own folder (the default is the projects
  folder's `NAME`).

## What the group manager may do in a member

Its seat lets it read: `doz workspace show W` is its view of a member (with `--as`, the hidden preview, you can see
what it sees). With its own token it reads a member's run journal, `dozchat journal --in W` (and waits on it with
`dozchat journal wait KIND --in W`); a workspace outside its group, and writing a member's journal, are refused. `doz workspace state W` stays yours, as do every change of a member's lifecycle. A refused change says
who may: you, a superadmin (a trusted agent), or an agent holding that workspace's lifecycle grant, with the command
that gives that one permission. To let it start and stop agents in a member, give it the scoped helper role:

```
doz permissions grant gm admin --in switch
```

It posts in a room with its own chat token only while it
runs: nothing posts for it.

## Permissions for every member

`doz permissions grant NAME ROLE --group G` gives a role (or one permission's answer) in every member of the group. A
grant in one workspace, or one of its rooms, overrides it there. `admin` is given this way too (`--group G` or
`--in W`): a helper that starts and stops agents and workers in those workspaces, never the trusted role. The order, narrowest first, is room, workspace,
group, then everywhere. `doz why NAME PERM --in W` shows which one decided.

Making an agent trusted (`superadmin`) stays yours. An agent with a token of its own is always refused, whatever it
holds, and the refusal says who may. An agent that runs with No fence is you as far as Dozable can tell, so Dozable
can't hold it to "by you only". When Claude Code marks the command as its own, the grant is allowed while
`trust.agents_act_as_you` is on, and it is recorded as given by that agent for you (in the grant, its log and Done for
you), never as plainly yours.

## The group's own services and schedules

```
doz service add town-web --group studio --folder ~/work/town -- npm run serve
doz schedule add check-in --group studio --to gm --every 3m --prompt "How are the members doing?"
```

- A group's **service** belongs to the group, not to any member, so it runs while members come and go. It runs from
  the group's own folder or from a member's folder. Any other folder is refused, and the refusal names the group's
  folder and its members. `--cwd SUB` starts it in a folder inside `--folder`. It is Fenced unless you say `--no-fence`, like any service ([Services](https://dozable.com/docs/services.md)).
- A group's **schedule** prompts the group manager, in its own session on this Mac, with every rule of a schedule:
  only when it is idle, sends that come due while it works collapse to one, and quiet hours apply
  ([Schedules](https://dozable.com/docs/schedules.md)).
- `doz service ls --group G` and `doz schedule ls --group G` list them, and `doz group show G` shows them too. A group
  that still owns a service or a schedule is not deleted.

## Shared defaults

```
doz group edit studio --defaults ~/notes/studio-defaults.space.yaml
```

A space defaults file kept beside the group: the lowest layer of each member's plan at its next `doz workspace up`,
shown as "the group studio's defaults". A member's own value (its space file, its `extends:` files) wins. Nothing
restarts now. `--clear-defaults` takes them away.

## A helper that directs helpers, and splitting a workspace

```
doz helper promote engine isodiag --directs isoeditor,isomotion
doz group split studio engine --lead isodiag --as engine2 --dry-run
doz group split studio engine --lead isodiag --as engine2
```

- `doz helper promote` records which helpers an agent directs ("isodiag directs 2 helpers"). Nothing restarts;
  `doz helper demote` takes it away.
- `doz group split` makes the lead and its helpers a workspace of their own in the group, which the lead manages.
  It moves their records only: the same sessions, conversations and tokens, so nothing restarts. They are invited to
  the new workspace's room and stay in the old room until you take them out. Their grants in the old workspace move
  with them. Everyone else stays where they were.
- The plan comes first, and the split acts only on the plan you saw: it asks at a terminal, or takes `--if-plan SHA`
  (or `--yes`). It writes what it is about to do before it does it, so if the daemon stops in the middle, the next
  daemon finishes the split, and nothing is done twice. A Fenced agent keeps its fence until its next start.

## The group's page

The dashboard's `#/g/NAME` shows the group: a drawing of it (the group manager above, a floor per member, the group's
services and schedules below), a row per member (who watches it, the seat, its agents and open run, what needs
looking at), the group room, and its services and schedules. The page only shows the group: you make and change one
in a terminal on this Mac. Another computer sees this Mac's sessions there only as `serve.mac_sessions` allows.

## Removing a group

`doz group rm G` deletes the group. With members, add `--release-members`: it takes the references away and leaves the
workspaces untouched. The group room stays, with its history.

Exit codes: 0 ok · 2 not found · 3 the group still has members, a service or a schedule · 4 exists (a workspace in a
second group, a group that exists) · 6 the daemon is not running · 64 usage · 65 a name that can't be a group's.
