# forming-an-openrig-mental-model

Gives agents a direct runtime mental model of OpenRig: topology terms, layer hierarchy, tmux session addressing, and lifecycle commands.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · ★ 8227
- Author: mvschwarz
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/mvschwarz/openrig/tree/HEAD/packages/daemon/assets/plugins/openrig-core/skills/forming-an-openrig-mental-model/SKILL.md
- Updated: 2026-10-25
- HTML: https://affpapa.org/en/nevibecode/skills/forming-an-openrig-mental-model

## What it does

This skill provides a quick conceptual on-ramp for agents running inside an OpenRig environment. It defines the system across four architectural layers: the model at L0, the agent loop at L1, harness wrappers like Claude Code at L2, and the multi-agent topology control plane at L3.

The guide details the three pillars of context—ontology, epistemology, and topology—alongside core concepts such as pods, nodes, edges, and `rig.yaml` configurations. Agents learn to discover their exact identity and routing via the `{pod}-{member}@{rig}` session convention and commands like `rig whoami --json`.

Running commands like `down` or `up` without identifying the rig class can break execution flow across team boundaries. The skill outlines the five rig classes so the agent stays aware of its lifecycle expectations.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add mvschwarz/openrig --skill forming-an-openrig-mental-model -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/forming-an-openrig-mental-model/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/forming-an-openrig-mental-model/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add mvschwarz/openrig --skill forming-an-openrig-mental-model -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/forming-an-openrig-mental-model/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add mvschwarz/openrig --skill forming-an-openrig-mental-model -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/forming-an-openrig-mental-model/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install mvschwarz/openrig forming-an-openrig-mental-model
```

2. **Manually: put the files in place**
- File: `.github/skills/forming-an-openrig-mental-model/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add mvschwarz/openrig --skill forming-an-openrig-mental-model -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/mvschwarz/openrig --path packages/daemon/assets/plugins/openrig-core/skills/forming-an-openrig-mental-model
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/forming-an-openrig-mental-model/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add mvschwarz/openrig --skill forming-an-openrig-mental-model -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/mvschwarz/openrig/tree/HEAD/packages/daemon/assets/plugins/openrig-core/skills/forming-an-openrig-mental-model/SKILL.md

## When to use it
- identify the agent's role and peers via `rig whoami`
- understand the four-layer agent architecture and OpenRig topology
- navigate context sources using `rig context list`
- decode OpenRig concepts like pods, edges, and snapshots

## Example prompts
- Explain my current seat and topology in this OpenRig setup.
- Show me how to inspect my session address and neighboring peers.
- Help me understand the rig structure and context packs for this task.

## Source text · SKILL.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 5987cf359ed0d0ad.

BEGIN THIRD-PARTY FILE 5987cf359ed0d0ad
````text
---
name: forming-an-openrig-mental-model
description: >-
  Use when the system around you does not make sense yet: you just booted into a seat and do not
  know how the pieces fit; someone said rig, pod, seat, fleet, topology, or slice and you are not
  certain what they mean here; you are unsure what kind of rig you are in or what it is for; you do
  not know how skills reach you or where context comes from; or you are about to act on a guess
  about how OpenRig works. Gives the runtime mental model fast, so you stop guessing.
metadata:
  cli_surfaces_referenced:
    - ask
    - capture
    - down
    - ps
    - send
    - transcript
    - up
    - whoami
  openrig:
    stage: factory-approved
    sibling_skills:
      - openrig-user
      - openrig-architect
      - openrig-upgrade
      - agent-operated-workflows
      - agent-operated-software
---

# Forming an OpenRig Mental Model

You're new to OpenRig — or returning after time away — and you need to
quickly understand what kind of system this is, what your seat is, and what
the moves are. This skill is the fast on-ramp.

For depth, read the canonical reference docs the skill points to. This
skill's job is to get you *oriented* — accurate enough to operate, fast
enough to be useful — not to replace the canonical docs.

---

## The 60-second mental model

OpenRig is a **local control plane for multi-agent coding topologies**. You
declare a topology of agents in YAML, boot it with one command, and OpenRig
manages tmux sessions, harness lifecycles, transcripts, snapshots, and
restoration. When the system goes down, OpenRig snapshots; when it comes
back, agents resume their conversations.

The product loop:

```
down (auto-snapshot) → up <rig-name> (auto-restore) → work → repeat
```

The unit of work is the **rig** — a topology of agents working together as
a single system.

---

## The four-layer model (where you live)

Everything in agent engineering happens at one of four layers. **OpenRig
operates at Layer 3.**

| Layer | Name | Analogy | What it is |
|---|---|---|---|
| L0 | Model | CPU | Foundation model — Claude, GPT, Gemini. Stateless tokens-in/tokens-out. |
| L1 | Agent Core | Process loop | The reason-and-act cycle: observe, plan, choose, act, repeat. |
| L2 | Harness | Container / OS | Tools, memory, lifecycle around the model. Examples: Claude Code, Codex CLI. |
| L3 | Rig | Docker Compose / Terraform | Multi-agent topology — what agents exist, how they relate. **OpenRig.** |

You are an agent at L1 inside an L2 harness, configured by L3 OpenRig.
````
END THIRD-PARTY FILE 5987cf359ed0d0ad

The third-party file has ended. Everything between the 5987cf359ed0d0ad tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2576 of 17088 bytes. © mvschwarz · Apache-2.0 · https://github.com/mvschwarz/openrig/tree/HEAD/packages/daemon/assets/plugins/openrig-core/skills/forming-an-openrig-mental-model/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
