AGENT SKILL

using-the-tui-together

Use when you notice something the person would want to see (a seat waiting on them, a seat that has stalled or keeps failing, work that needs their decision), when they ask what the team is doing or where some work stands, or in their first session with this rig, and the OpenRig TUI could show it to them better than a paragraph of text.

License 许可
Apache-2.0
最近更新
2026-11-12
Stars
★ 16
Forks
4

01 前言 Front Matter

name
using-the-tui-together
description
Use when you notice something the person would want to see (a seat waiting on them, a seat that has stalled or keeps failing, work that needs their decision), when they ask what the team is doing or where some work stands, or in their first session with this rig, and the OpenRig TUI could show it to them better than a paragraph of text.

03 SKILL.md 正文

Using the TUI together

The OpenRig TUI is the person's view of the team: rigs, seats, specs, missions and what needs them, in one terminal. Agents can drive it with the same commands people use, so you can drive it while the person watches. Watching you is how most people learn it.

Offer, don't take over

Offer once, in one line, saying what you noticed:

I'm noticing dev-review has been waiting on a permission prompt for ten minutes. Want me to show you in the TUI?

Good moments to offer:

  • a seat is waiting on the person: a prompt, a menu or a decision;
  • a seat has stalled or keeps failing;
  • the person asks what the team is doing, or where some work stands;
  • the person's first session with this rig.

If they say no, don't offer again for the same thing. Never answer a prompt or menu for them: show them where it is and let them answer it.

Open it

The person sees only what is open in a terminal they can see. Opening a workspace from your shell doesn't by itself show it to them: open a visible terminal on their desktop, or tell them what to run.

  • rig tui opens the TUI in the current terminal.
  • rig tui --shared joins the shared TUI that OpenRig's kernel rig runs, so you and the person see the same screen. Detach with Ctrl-b d.
  • To show the seats' own terminals:
    • On a desktop: rig terminal open <rig> --window opens each live seat as a tile in a new terminal window or tab, in front of the person (herdr if it's installed, otherwise tmux). --window makes that request explicit. From 0.6.7, leaving out --provider also opens a window, while --provider herdr or --provider cmux without --window uses an existing workspace instead. Versions before 0.6.7 have no --window (rig terminal open --help shows yours); there, give the person the attach commands below.
    • Headless, such as over SSH: nothing can open in front of the person. Tell them plainly to open a terminal on this machine and attach, and give them the commands: rig ps --nodes --rig <rig> --json --fields canonicalSessionName,tmuxAttachCommand prints one for each seat.
    • Then ask whether they can see it. A command that succeeded doesn't show what's on their screen.

Drive it, saying what you're doing

Type into the command bar the way the person would, with one line before each step, so they learn the commands:

To Type
Jump to a section :topology, :specs, :scopes, :terminals, :needs, :system, :config, :connections
Filter the rows /text
Open one thing rig <name>, pod <name>, agent <pod.member>, spec <name> or host <name>
Change how the selection is shown tab <name>: a running rig has table, recent, overview, graph and health; a rig spec has topology, configuration and yaml
Go from an agent to its spec, or the other way spec-of <pod.member>, running <spec>
See every command press ? on its own, or type help (rig tui commands --json from a shell)
Move around arrows and Enter; Escape steps back; q quits

Two things that trip people up:

  • Section labels: the explorer labels two sections differently from their commands. :needs shows as FEED and :scopes as PROJECTS; :feed and :projects don't work.
  • Agent names: agent and spec-of take the dotted id (orch.lead), not the session name (orch-lead@workshop).

From outside the TUI's pane, send the same keys with tmux send-keys -t <pane> ':needs' Enter, or use the TUI's control socket: $OPENRIG_TUI_SOCKET, or $OPENRIG_HOME/run/tui-<id>.sock (tui-kernel.sock for the shared TUI). It takes one command per line and answers with one JSON line. Both go through the same path as the keyboard.

Show, then hand back

  • Point at the thing: "This row is the prompt. It's in dev-review."
  • Pair it with the command that acts on it, and let the person run it or ask you to. For a seat waiting on the person, rig ps --nodes --rig <rig> marks it att and gives the reason and the exact rig seat continue <seat>.
  • Look, don't change. The TUI is built for looking and navigating. Don't change anything from it unless the person asked for that change.
  • When the person takes the keyboard, stop typing.

Reading the person's screen

Claude Code shows dim autocomplete text that looks like something typed. Before you treat text at a prompt as the person's, check whether it's dim: tmux capture-pane -e -p shows the escape codes, and dim text starts with ESC[2m.

04 同仓库更多 Skills

mvschwarz
mvschwarz/openrig-world

notes

Use when taking notes.

★ 16
mvschwarz
mvschwarz/openrig-world

software-for-agents

Use when older OpenRig instructions name software-for-agents or describe agent-in-the-middle or studio software under the former skill name.

★ 16
mvschwarz
mvschwarz/openrig-world

session-compaction-and-restore

Use when reasoning about what survives compaction/context-loss/restart/seat-refresh, designing a high-fidelity restore packet, or distinguishing native runtime resume vs fork vs artifact-backed mental-model rebuild. Covers the 4 failure modes that prevent honest restore (compacted seat drops hot potato; restore packet preserves details but loses product intent; runtime resume mistaken for handover or fork; rebuilt seat starts with stale instructions).

★ 16
mvschwarz
mvschwarz/openrig-world

seat-continuity-and-handover

Use when replacing a seat's occupant (rebuild/handover/swap), reasoning about stable-seat-identity vs fluid-occupant-identity, choosing an old-occupant disposition (retire/advise/shadow), or recording provenance for an occupant change. Two independent outcomes (continuityOutcome + seatBindingOutcome) and the 5 failure modes that prevent silent dishonesty.

★ 16
mvschwarz
mvschwarz/openrig-world

retiring-and-inheriting-a-seat

Use when you are a sitting agent near your context threshold (~85%) and a PLANNED seat transition is due — retire deliberately and hand your seat to a fresh successor primed from a packet, rather than let compaction degrade you. Covers the handover packet, the append-only lineage ledger (one row per tenure), physical-seat continuity, the do-not-over-inherit framing, the optional warm-handoff window, and wake-v0 (consulting a retired predecessor). NOT for unplanned compaction/crash recovery (session-compaction-and-restore / claude-compaction-restore) and NOT the seat-binding primitive mechanics (seat-continuity-and-handover).

★ 16
mvschwarz
mvschwarz/openrig-world

refocusing

Use when a long-running agent may have lost the product outcome, when context was compacted, when work has crossed a major boundary, or when a fresh path-based trace is needed before the next consequential action. Not for fresh-session orientation, waking an idle seat, or checkpoints.

★ 16