Langsung ke konten
Skillpedia
Agen8.6k Β· #12414

topology-mutation-and-seat-management

Fungsinya

Skill ini membahas perubahan pada tim agent AI yang sedang berjalan, seperti menambah seat, menghapus, menjalankan ulang, atau melampirkan sesi. Skill ini untuk orang yang menjalankan OpenRig dan ingin mengubah pengaturan yang sedang aktif.

Kapan dipakai

  • βœ“Saat Anda perlu menambah agent ke tim yang sudah berjalan.
  • βœ“Saat Anda perlu menghapus seat agent yang sudah tidak diperlukan dari tim yang sedang berjalan.
  • βœ“Saat Anda ingin melampirkan sesi terminal atau agent yang sudah ada ke tim tanpa memulai dari awal.

Link skill

https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/topology-mutation-and-seat-management/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/topology-mutation-and-seat-management/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œTambahkan dua agent lagi ke tim saya yang sedang berjalan tanpa membangun ulang seluruh pengaturan.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent memakai perintah OpenRig untuk mengubah tim yang sedang aktif langkah demi langkah. Peran, tautan, dan detail startup tetap konsisten agar perubahan tidak merusak bagian tim lainnya.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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:

Operation What to verify
Add seat New seat has queue, startup context, role; rig whoami resolves it
Remove seat Stale references cleaned; edges/permissions updated
Adopt existing session tmux session bound at OpenRig identity layer; rig whoami reports correctly
Attach observer terminal External CLI attachment recorded
Verify topology projections after each move rig 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
Pertanyaan umum

Bisakah saya mengubah tim saat sedang berjalan?

Bisa. Skill ini mencakup perintah untuk menambah, menghapus, atau menjalankan ulang bagian dari tim yang aktif.

Bagaimana jika saya salah menghapus agent?

Skill ini berfokus pada penghapusan seat secara bersih agar tidak ada referensi lama yang tertinggal. Periksa kembali tim setelah setiap penghapusan.

Apakah saya perlu mengetahui nama perintahnya?

Tidak. Agent Anda akan mencari opsi untuk versi yang terpasang dan menjelaskan setiap langkah.

Detail

Deskripsi asli dari pembuat

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.

repo: mvschwarz/openrig

Popularitas

Bintang GitHub
8.6k
Peringkat
#12414
Lisensi
Apache-2.0
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa