---
description: "Open the office: a local browser page that shows runs and agents live and drives the ecosystem (new runs, jobs, PRs, keys, memory, system, cleanup). Use when you want to watch or drive runs from a browser."
description-tr: "Ofisi açar: koşuları ve ajanları canlı gösteren, ekosistemi yöneten yerel web sayfası (yeni koşu, işler, PR'lar, anahtarlar, hafıza, sistem, temizlik). Yerel sözleşme sunucusunu gerektiğinde başlatır; sunucu /multi-agent:office-off ile durdurulana kadar çalışır."
argument-hint: "(no arguments)"
parameters: []
gui: button
destructive: false
confirm: none
allowed-tools: Bash
---

# multi-agent office-on  -  open the panel

The panel is a page (`$HOME/.claude/office/index.html`) served by the
pipeline's local contract server (`contract-server.mjs`, 127.0.0.1 only, a
fresh bearer token per start). This command and `office-off` /
`office-status` share one script, `office-control.mjs`.

## Steps

1. **Start or reuse the server and open the browser:**

   ```bash
   node "$HOME/.claude/scripts/office-control.mjs" on --json
   ```

   It starts `contract-server.mjs` in the background with the panel page, or
   reuses the one it started earlier, then opens the browser at `/office` with
   a one-time code in the URL fragment (valid 10 seconds, one use, handed over
   through a 0600 launcher file, never on a command line), which the
   page trades for the token. The token is never printed; do not read the
   token file or pass `--print-token` yourself, since anything printed lands
   in this transcript.

2. **Report** (in `outputLanguage`): the page URL (`url`, without a code),
   whether a server was started or reused (`restarted` true means the running
   one was older than the installed pipeline and was replaced), that it keeps
   running until `/multi-agent:office-off` stops it. If `opened` is false, tell the user
   to run the command again from a desktop session; a link works once, so a
   reload of the page needs a new `office-on`.

## What it does not do

- No daemon or file watcher beside the one server, which runs until
  `office-off`, and no hook of its own: the task lists come from the
  `task-mirror` hook that install registers for every run.
- The panel's writes call the same scripts the terminal commands call; it adds
  no behaviour of its own.
- The server listens on 127.0.0.1 only. Nothing pairs a phone, relays to a
  site or opens a port: the office is local to this machine.
