Rooms (alpha)
A lead, workers on this computer or paired instances, playbooks, runs and the rooms CLI.
Alpha. Rooms are off by default and may change in any release. Turning them off hides rooms and deletes nothing.
A room is a shared workspace for one goal. It has:
- a lead agent that plans with you, reads the repository and proposes work;
- workers that run the tasks you approve, each in its own Git worktree, on this computer or on a paired instance over A2A;
- optional consultants the lead asks for a second opinion;
- an optional playbook that makes the room repeatable: who takes part, which tools it reads with, what it may write, what wakes the lead and which stages it moves through.
The lead cannot edit files or run shell commands. Code changes come from tasks: you approve a task, a worker does it, and you integrate the result into the project. A playbook's tools and safe outputs are separate: they run the commands its author wrote, in the project folder. See Trust and limits.
Turn rooms on#
Open Settings → Rooms and switch on Rooms (preview). Each pi-kit instance has its own switch; a paired instance takes room work only when rooms are on there too.
On a server without the desktop app:
pi-kit rooms on
| Setting | Effect |
|---|---|
| Rooms (preview) | Shows rooms in the sidebar and enables the room routes. Off, triggers stop and nothing is deleted. |
| Run room agents in the sandbox | New leads and workers start in the sandbox where it is available. Off (default), the lead runs on this computer with the same read-only tools. Each room can switch its lead. |
| Machines | This computer and paired instances, whether each can take rooms, and what its A2A agent card reports. |
| A2A agents | Agents outside pi-kit that speak A2A. Add one by its address or agent-card.json, with a bearer token if it needs one. Rooms can hand them tasks like a paired instance. |
Start a room#
From a thread
- In the sidebar, open the thread's ⋯ menu and choose Start a room from this thread…. The + next to the selected thread does the same.
- Name the room and choose the Host: this computer or a paired instance with a clone of the repository at the same commit.
- Choose a Playbook, or None: plan with the lead.
- Write the Summary for the lead and choose Create room.
Only the summary is shared. The thread itself stays private, and uncommitted files are not shared: commit first, or continue from the last commit.
From a folder
On a server, start a room in a Git repository on that machine:
pi-kit rooms start ~/src/reporting --title "Release notes" --playbook release-notes \
--summary "Prepare the release notes for the reporting module."
The folder becomes a project if it is not one yet.
Work in the room#
The room view has a conversation, a composer and a side panel. Switch between threads and rooms with the Rooms / Threads switch at the top of the sidebar; a badge shows how many rooms wait for you.
| Control | What it does |
|---|---|
| Lead / Just post | Lead prompts the lead with your message and attached images. Just post adds the message without prompting anyone. |
| Supervised / Assisted | Supervised: worker questions and results come to you. Assisted: the lead answers workers and reviews results first; you still approve and integrate. Rooms started with a playbook start Assisted. |
| Pause agents / Resume agents | While paused, nothing wakes the lead: no schedule, no poll, no worker result. |
| Read-only · sandboxed / this computer | Shows where the lead runs. Click it to move the lead into or out of the sandbox. |
| Model picker | The lead's model and thinking effort. A playbook's setting replaces it when the playbook is briefed again. |
Live text
What the lead, a consultant or a worker writes appears while it is written, with the tool it is using. Workers and consultants on a paired instance stream their text over A2A. A client that connects later sees what each participant has written so far. Live text is not stored; the final answer arrives as a room message or a task report.
Tasks
The lead proposes tasks with a title, what to do and when it is done. A task moves through these states:
| State | Your action |
|---|---|
| Proposed | Choose where it runs (Run on), then Approve or Decline. |
| Running | A worker is on it in its own worktree. Stop ends it. Questions from the worker show under The worker needs you. |
| Ready for review | Read the report and diff, then Integrate. In Assisted mode the lead reviews first and can send it back. |
| Integrated | The task's commits are merged into the project folder's current branch. |
Integrate runs
git merge --no-ff in the project folder. It refuses when that folder has uncommitted changes to tracked files. On a conflict the merge is aborted and nothing changes. A worker on a paired instance sends its commits back as a Git bundle.The side panel
| Section | Contents |
|---|---|
| Playbook | The attached playbook, its stages, Rehearsal and Details. Without one: Ask the lead to write one. |
| Tasks | Grouped into Needs you, Running and Done. |
| Runs | The last runs; All runs opens the list. |
| Scheduled | The next schedule and poll times. |
| Files | The room's own folder and the project. |
| Notebook | Notes the lead keeps for this room or for the playbook. |
Playbooks#
A playbook is an ordinary skill with a
room.yaml beside its SKILL.md. SKILL.md holds the lead's instructions; room.yaml holds the room settings. Any skill folder with a room.yaml is a playbook.<project>/.pi/skills/release-notes/SKILL.md
<project>/.pi/skills/release-notes/room.yaml
<project>/.pi/skills/release-notes/scripts/… # optional helpers
.agents/skills/<name>/ works too. A playbook in the project is versioned with the code and reaches every clone.A playbook written for one room lives in that room's folder instead,
<data folder>/rooms/<room id>/playbooks/<name>/, so it stays out of the repository. The room's folder is searched first, then the project's skill folders. Archiving a room keeps its folder.SKILL.md
---
name: release-notes
description: Collect the week's commits, ask a reviewer, and draft release notes for the owner to approve.
metadata:
pi-kit-room: room.yaml
---
1. Read the recent commits with recent_commits.
2. Ask the reviewer which changes users will notice.
3. Draft the notes and move to the draft stage.
4. Leave the notes as a draft with save_notes; never publish them yourself.
The folder name and
name: match, in kebab-case.room.yaml
lead: { model: llama-swap/qwen3.6-35b, thinking: high }
workers: { model: llama-swap/qwen3.6-35b, thinking: medium }
participants:
- role: reviewer
instructions: Point out which changes users will notice and which are internal.
- role: security
agent: { machine: Build box }
instructions: Look for injection, secrets and unsafe defaults.
tools:
recent_commits:
run: [git, log, --oneline, -n, '10']
description: The last ten commits, one per line.
open_prs:
run: [gh, pr, list, --json, 'number,headRefOid,title']
description: Open pull requests as JSON.
safe-outputs:
save_notes:
run: [node, scripts/save-notes.mjs, '{text}']
description: Write the release notes to RELEASE_NOTES.md.
max: 3
vars: {}
on:
schedule:
- id: weekly
cron: '0 9 * * 1'
say: Draft the release notes for last week.
poll:
- id: new-prs
tool: open_prs
every: 10m
key: [number, headRefOid]
say: Review each new pull request.
stages: [collect, draft, publish]
gates:
publish: owner
| Key | Meaning |
|---|---|
lead, workers | model (provider/id) and thinking for the lead and for workers on the room's host. |
participants | Whom the lead consults. role in kebab-case, instructions, and optional model and thinking. agent: { machine: <name> } asks a paired instance; agent: { agent: <name> } asks an A2A agent added in Settings. Without agent, the participant runs on this computer. |
tools | Sources the lead reads from. Each has exactly one of run, mcp, mail or calendar. They run without approval; pi-kit does not check that a command only reads. |
safe-outputs | Actions that write. Same sources as tools, plus mode (draft by default, or auto) and max calls per day. |
vars | Fixed values for {placeholders}. |
on.schedule | Wake the lead every interval (30m, 1h) or at a five-field cron time in the host's time zone, with the message in say. |
on.poll | Run a tool (never a safe output) every interval, at most once every 30 s. Its output is a JSON array, or one JSON value taken as one item. An item is new when its key was not seen before. New items wake the lead, at most five per firing. |
stages, gates | The stages the lead moves through. A stage gated owner needs your approval to enter. |
Tool sources:
| Source | Runs |
|---|---|
run: [argv…] | A command in the room's project folder, with your tools and logins. No shell: put pipes and && in a script under scripts/. A value filled into a {placeholder} may not start with -. |
mcp: { server, tool, args } | A tool of a server in your ~/.pi/agent/mcp.json. OAuth servers work once you signed in under Settings → MCP servers. |
mail: { mailbox, unread, limit } | Mail on the Mac pi-kit runs on. macOS asks once. |
calendar: { days } or { ics, days } | The Mac's calendars, or an iCalendar URL or file on any system. |
{name} is filled from the lead's parameters, then vars, then {repository} and {room}. ${NAME} in calendar.ics and in mcp.json comes from the environment, so secret URLs stay out of the repository. Output over 48 KB reaches the lead a page at a time.Models and thinking effort
Without settings, every participant uses the host's default model and thinking effort.
thinking is one of off, minimal, low, medium, high, xhigh or max.- The lead's settings apply when the playbook is first briefed and again when it changes. A model chosen in the room's picker holds until then.
- A consultant's and a worker's settings apply when their thread starts a turn.
- A model that is not available leaves the thread on the default and shows as an error under Checks. An effort on a model that does not think is a warning.
- Settings apply only on the room's host. Participants on another instance and outside agents keep their own.
Attach and inspect a playbook
Choose a playbook when you start the room, or later from Playbook in the side panel. Details opens the playbook:
| Tab | Contents |
|---|---|
| Overview | A graph from what wakes the lead, through the lead, to the stages and their state. |
| Runs | The latest 50 runs with their steps. |
| Tools | Tools and safe outputs, their kind, mode and use today. Try runs a tool; Preview shows what a safe output would run. |
| Participants | Roles, where they run, and their model and effort. |
| Checks | Parse errors and model problems. |
| Files | SKILL.md and room.yaml. |
Under Wakes the lead, Run now fires a trigger and Dry run shows what a poll would bring. Switch on Rehearsal to try a playbook's safe outputs: they do not run, even those marked
auto, and the room notes what they would have done. Tools still run, approved tasks still start workers, and an applied playbook change is still written.Write a playbook with the lead
Without a playbook, choose Ask the lead to write one. The lead reads the bundled
pi-room-playbook guide, asks what it needs, and proposes both files. pi-kit checks them and shows you the diff as a New playbook or Playbook change; Apply writes them. A new playbook goes into the room's folder; a playbook of the project is changed in the project, as uncommitted changes. The lead follows it from its next turn.Approvals#
Safe outputs, gated stages and playbook changes wait for you. A safe output with
mode: auto runs without asking.| Action | Buttons |
|---|---|
| Draft (a safe output) | Run it / Discard |
| Next stage (a gated stage) | Move on / Discard |
| Playbook change, New playbook | Apply / Discard |
The result goes back to the lead. A draft waits also after its run ended.
Runs#
Every turn of the lead is a run. A run records what woke the lead, the room's stage when it ended, how it ended and the lead's answer. Each tool call, consultation, safe output and stage change in it is a step with its state, input, output and timing. Answers and step output are kept up to 6,000 characters; the room keeps its latest 50 runs.
| Woken by | When |
|---|---|
| You asked | You prompted the lead. |
| Schedule | An on.schedule trigger fired. |
| New items | An on.poll trigger found new items. |
| Your decision | You approved or discarded an action. |
| Stage change | The room moved to another stage. |
| Agent | A worker or consultant reported back. |
A run is Running, Waiting for you, Done, Failed or Stopped. A step can also be Discarded. Runs still open when pi-kit restarts are marked stopped. Open a run to read each step's output.
Rename and archive#
Open the room's ⋯ menu:
- Rename room edits the title in place.
- Archive room… removes the room from the list; nothing wakes its lead again. If tasks are running, choose Stop them or Leave them running. Repositories, worktrees, sessions and the room's folder are kept.
Headless servers#
Rooms run in the backend, so they work on a server with no desktop app and no browser: triggers tick, the lead and consultants run, and runs are recorded.
pi-kit rooms does there what the room view does. See Server and CLI for installing the server.| Command | What it does |
|---|---|
pi-kit rooms | Whether rooms are on, and the rooms here with what waits for you. |
pi-kit rooms on, off | Turn rooms on or off on this computer. |
pi-kit rooms start <folder> --title <t> | Start a room in a Git repository here. --playbook <name>, --summary <text>. |
pi-kit rooms show <room> | Playbook, stage, triggers, what waits for you, last runs. |
pi-kit rooms runs <room> [<number>] | The runs, or one run with every step and its output. |
pi-kit rooms say <room> <text> | Message the lead. --post only posts. |
pi-kit rooms approve <room> <id> | Approve a draft, a stage, a playbook change or a task; integrate a result. |
pi-kit rooms discard <room> <id> | Discard it. A proposed task is declined, a running one stopped. |
pi-kit rooms answer <room> <id> <answer> | Answer the lead or a worker: yes, no or text. |
pi-kit rooms fire <room> <trigger> | Run a trigger now. --dry only shows what it would bring. |
pi-kit rooms pause, resume <room> | Stop or resume everything that wakes the lead. |
pi-kit rooms playbook <room> <name|none> | Attach, switch or remove the playbook. |
pi-kit rooms rename <room> <title> | Rename the room. |
pi-kit rooms watch <room> | Follow the room until Ctrl+C. |
pi-kit rooms archive <room> | Archive it. --stop also stops running tasks. |
<room> is the room's id, the start of its id, or its title. --json on the list, show and runs prints JSON.pi-kit rooms show release
pi-kit rooms fire release weekly --dry
pi-kit rooms approve release 3f2a
Signing in to an MCP server with OAuth the first time, and the Mac mail and calendar sources, still need someone at the screen.
Trust and limits#
- Tools and safe outputs run commands from the playbook in the project folder, with your tools and logins, and can read your mail and calendars on the host. pi-kit does not sandbox them or check that a tool only reads. They run only in rooms that use that playbook, so read a playbook before you attach it.
- The lead's and consultants' own tools cannot edit files or run shell commands. Workers change code only in tasks you approve, and their commits reach the project only when you integrate them.
- Not available yet: mail beyond macOS, writing mail or calendar events, repeating iCalendar events (they appear on their first date only), MCP servers that sign in through a model provider, a project's own
.pi/mcp.jsonas a tool source, and editing the notebook by hand.