Skip to content
cccskills
FreePublished on GitHub

topology-mutation-and-seat-management

Change a running OpenRig setup by adding or removing agent seats, connecting existing sessions, or attaching terminals. Guides checks for roles, startup context, permissions, and session identity so the setup reflects each change correctly.

OriginalShow the original description

Use when changing a rig while it is alive — `rig grow` / `rig expand` / `rig shrink` / `rig launch` / `rig remove` / `rig discover` / `rig bind` / `rig adopt` / `rig attach`. Covers the 4 failure modes (newly created seat lacks queue/startup/role; edges and permissions not updated; adopt/bind succeeds at tmux but not OpenRig identity; shrink/remove leaves stale topology references) and the rule that mutation must work while the rig is active, not just in clean fixtures.

See how to install

Good for

  • Add agent seats to a running rig
  • Remove seats and clean up remaining references
  • Connect an existing session to an OpenRig node
  • Verify roles and permissions after a setup change

Files included (1)

  • SKILL.md6.9 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Topology Mutation and Seat Management

The ability to change a rig while it is alive: expand, shrink, launch, remove, discover, bind, adopt, and attach seats or sessions. Seat management includes the stable identifiers, edges, roles, and startup context that make those mutations coherent.

OpenRig should be easy to reach for. A user should be able to add capacity, retire capacity, adopt an existing session, or attach a terminal without rebuilding the whole topology. If mutation is rarely tested, users avoid it and the product collapses back into static launch scripts.

Use this when

  • Adding seats to a running rig (rig grow <rig-id> <member...> for the simple case, a fragment with rig expand or rig add otherwise; see below)
  • Removing capacity (rig shrink / rig remove)
  • Launching/relaunching a node in a running rig (rig launch)
  • Binding a discovered session into an existing logical node (rig bind)
  • Adopting a topology + binding live sessions (rig adopt)
  • Attaching a shell or agent into a rig node (rig attach --self)

Adding seats: rig grow first, a fragment when you need more

rig grow <rig-id> <member...> adds one or more seats to a running rig without writing YAML. Each seat gets the default agent spec and its default profile. Check rig grow --help on your installed version; at the time of writing:

  • --pod <pod>: the target pod; inferred when the rig has one pod
  • --new-pod <pod>: create a new pod for the seats (not together with --pod)
  • --runtime <runtime>: one runtime for every named seat (default claude-code)
  • --cwd <path>: one working directory for every named seat (default: the current directory)
  • --json: output for agents

Write a fragment instead when a seat needs something rig grow does not set: an explicit model, a permission policy, a different agent spec or role profile, a per-seat runtime or working directory, or startup files. Use rig expand <rig-id> <pod-fragment-path> to add a pod, or rig add <rig> <pod-namespace> <member-fragment-path> to add one member to an existing pod (<rig> is the rig id or its exact unique name).

Don't use this when

  • The rig is being created fresh from scratch — use rig up (lifecycle, not mutation)
  • The intent is to scale specifically (add specialized capacity) — use seat-scaling-and-specialization skill
  • The intent is occupant replacement on a stable seat — use seat-continuity-and-handover skill

Failure modes (4)

  1. A newly created seat lacks the queue, startup context, or role files it needs to operate. Topology mutation creates the seat, but the seat needs more than a tmux session to be useful.
  2. Edges and permissions are not updated when a seat is added or removed. Topology references go stale; later workflows route to nonexistent seats.
  3. Adopt/bind succeeds at the tmux/session layer but not at the OpenRig identity layer. The session is attached but rig whoami doesn't know about it; downstream consumers see partial state.
  4. Shrink/remove leaves stale topology references that later workflows route into. Cleanup is part of the operation, not an afterthought.

Proof standard

Proof must cover mutation while a rig is active, not just in a clean test fixture. The useful matrix:

OperationWhat to verify
Add seatNew seat has queue, startup context, role; rig whoami resolves it
Remove seatStale references cleaned; edges/permissions updated
Adopt existing sessiontmux session bound at OpenRig identity layer; rig whoami reports correctly
Attach observer terminalExternal CLI attachment recorded
Verify topology projections after each moverig ps --nodes reflects current truth, not pre-mutation cache

A clean-fixture proof is necessary but not sufficient. Live-rig proof catches the failure modes that fixture-mode misses.

Stable roles during topology changes

Capacity changes must preserve useful roles, routing and durable work. Distinguish adding or removing a seat from replacing its occupant; use seat-continuity-and-handover for the latter.

Currently shipped surfaces

Per cli-reference.md v0.2.0:

  • rig grow <rig-id> <member...> [--pod <pod> | --new-pod <pod>] [--runtime <runtime>] [--cwd <path>] (added after v0.2.0; check rig grow --help)
  • rig expand <rig-id> <pod-fragment-path> (with optional session_source)
  • rig shrink <rigId> <podRef>
  • rig launch <rig> <nodeRef> (the rig's name or ID)
  • rig remove <rigId> <nodeRef>
  • rig discover [--draft]
  • rig bind <discoveredId> --rig <rigId> (--node <id> | --pod <ns> --member <name>)
  • rig adopt <path> --bind <logicalId=tmuxSessionOrDiscoveryId>
  • rig attach --self --rig <rigId> --node <logicalId>
  • rig unclaim <sessionRef> / rig release <rigId>

Choose the proving environment and authority

Select an isolated active rig or an explicitly authorized live target for the relevant operation. Record its running build, before/after topology, continuity and outstanding work. A passing schema check or isolated fixture does not prove an existing live rig was changed correctly. A runtime timeout is indeterminate until its durable and process effects are reconciled; do not retry blindly.

The matrix above is verification guidance, not permission to modify another rig. Name the operation's owner and scope, preserve the state needed for recovery, and retain missing or failed checks in the result. No local experiment or unfinished proof obligation is implied by loading this skill.

See also

  • openrig-user skill — CLI surface for rig grow / expand / shrink / launch / remove / bind / adopt / attach
  • seat-scaling-and-specialization skill — when to add specialized capacity vs generic
  • seat-continuity-and-handover skill — replacing an occupant on a stable seat (different shape than topology mutation)
  • cross-host-rig-commands skill — cross-host topology mutation (deferred)

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

agent-browser

FreeSummary

Automate website interactions through a command-line browser tool. Navigate pages, fill forms, extract text, save screenshots or PDFs, reuse login sessions, and compare page states to check the effects of actions or website changes.

  • Automating form entry and submission
  • Extracting page text and saving screenshots
  • Comparing page appearance before and after changes
mvschwarz/openrig8.1KUpdated Oct 23, 2026

Design and maintain applications where OpenRig agents help run the system. Organize instructions, shared state, and artifact checks, then trace unexpected behavior to the code, skill, or schema that needs repair.

  • Designing an application operated by OpenRig agents
  • Organizing instructions and shared application state
  • Tracing unexpected behavior to its source
mvschwarz/openrig8.1KUpdated Oct 23, 2026

Design and run bounded procedures in environments where current conditions are uncertain. The skill separates agent judgment from precise tool actions, verifies each effect, and records checkpoints so interrupted work can resume from observed evidence.

  • Designing procedures for environments with varying conditions
  • Resuming interrupted operations from verified evidence
  • Deciding whether an agent or ordinary code should control a procedure
mvschwarz/openrig8.1KUpdated Oct 23, 2026

agent-starters

FreeSummary

Create reusable starting configurations that combine an agent’s role, startup context, and source history. The skill guides registry entries, checks whether their sources are current, and manages their progression from initial capture to recommendation or retirement.

  • Create reusable startup context for an agent role
  • Refresh an agent workspace from an existing starter
  • Check a starter’s source history and freshness
mvschwarz/openrig8.1KUpdated Oct 23, 2026

Guides the design and review of agent startup context, including role files and links to authoritative records. It helps identify stale guidance, missing updates, overloaded startup files, and instructions that lose the purpose of the work.

  • Designing startup files for a new agent
  • Reviewing stale guidance used by running agents
  • Separating role information from reusable procedures
mvschwarz/openrig8.1KUpdated Oct 23, 2026

Configure selected OpenRig command permissions in Claude Code or Codex at the agreed project or user scope. Preserve existing restrictions, verify that settings load and behave as intended, and record additions so they can be removed later.

  • Configuring command permissions before launching an agent team
  • Reducing repeated approvals for selected rig commands
  • Adding permission rules within a chosen project scope
mvschwarz/openrig8.1KUpdated Oct 23, 2026

See all skills by mvschwarz

Report a problem with this skill