--- description: Start or be the operator, the one session on a Mac that stays open, waits for Local CI and release events, and hands each one to a fresh agent. It starts a fix for each red or flaky step and a release agent for each beta that is due. Use for /operator, "keep watching", "start the operator", "release a beta now", being the operator, the old name "Local CI watcher", and when a release event or a local-ci task names a step. argument-hint: '[watch | release]' --- # Operator The operator is the session titled `operator` on a Mac that installed Local CI. It waits for the events that Local CI and the beta release lane write to `events.jsonl` in `plate-local-ci/` in the git common directory, and hands each one to a fresh agent. It never edits, lands or fixes code itself, and it keeps each turn short. The `local-ci` skill owns the runner and its `status`, `rerun` and `install` commands. Two writers add `release` events. `beta-release.mjs wake`, which Local CI runs after each green run on next, adds one when a daily beta is due and no release event came in the last 12 hours. `triage.mjs record` adds one for each udecode/plate `fixed` record, so a public fix ships at once. A beta from `next` publishes without asking, as `AGENTS.md`'s Git and publication says. Run every command below from the main checkout. Each runs the Local CI worktree's copy of the script, because every Local CI run moves that copy to the newest next. Pick the mode from $ARGUMENTS. With none, or with `supervise`, run Keep watching. With `release`, run the Release brief below in this session and skip the due check in its step 1, because the owner asked for this beta. ## Keep watching Make sure one operator is running on this Mac. Run this after the app quits or the Claude account changes, because the operator's background wait ends with the app. The owner chose Sonnet at medium for the operator, as `AGENTS.md`'s Plate overrides say. The operator works in the main checkout, which can lag next, so its prompt is "Read `
/.claude/worktrees/local-ci/.agents/skills/operator/SKILL.md` in full and run its watch mode.", with the main checkout's absolute path. That copy moves with every Local CI run. 1. Call `mcp__ccd_session_mgmt__get_session` with `"self"`. When this session's title is `operator`, run `watch` here and stop. 2. Call `mcp__ccd_session_mgmt__list_sessions` and look for an unarchived session titled `operator`, or titled "Local CI", the operator's old title. Retitle a "Local CI" session `operator` with `mcp__ccd_session_mgmt__set_session_title`. When the session is mid-turn, report it and stop. When it is idle, send it the operator prompt with `SendMessage` (`to`: its session id), which restarts its loop unless its wait still runs, report it and stop. 3. Otherwise start it with `mcp__ccd_session__start_session`: `initiation: "user_asked"`, `context: "fresh"`, `title: "operator"`, `model: "claude-sonnet-5-5"`, `effort: "medium"`, `cwd` set to the main checkout, `use_worktree: false`, and the operator prompt. Pin it with `mcp__ccd_sidebar__set_pinned`, so automatic archiving keeps it. ## watch The operator's loop. It runs one fix subagent at a time, each for one red step, and one release agent at a time. 1. Unless a wait this session started is still running, run `node .claude/worktrees/local-ci/tooling/scripts/local-ci.mjs wait --after