Skip to content
Back to skills

Splice Peer

ASecurity

Coordinate, message, inspect, launch, stop, and resume multi-agent peer sessions through Splice (`splice-peers` MCP tools, `splice launch claude`, `splice peer`, and `splice session`). Make sure to use this skill whenever listing peers or Claude Desktop pipe seats, sending agent-to-agent messages over Splice UDS sockets (`send_peer_message`, `splice peer send`), checking delivery receipts (`peer_status`), reading a peer's screen or scrollback (`read_peer_session`, `splice session screen`), la...

  • 20 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgoshellbashapi

Works with

  • claude code
  • claude desktop
  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add torad-labs/splice --skill splice-peer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Splice Peer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Splice Peer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/torad-labs-splice-peer/badge)](https://www.skillsdirectory.com/skills/torad-labs-splice-peer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: splice-peer
description: >-
  Coordinate, message, inspect, launch, stop, and resume multi-agent peer sessions
  through Splice (`splice-peers` MCP tools, `splice launch claude`, `splice peer`,
  and `splice session`). Make sure to use this skill whenever listing peers or
  Claude Desktop pipe seats, sending agent-to-agent messages over Splice UDS
  sockets (`send_peer_message`, `splice peer send`), checking delivery receipts
  (`peer_status`), reading a peer's screen or scrollback (`read_peer_session`,
  `splice session screen`), launching detached worker sessions
  (`splice launch claude --detach`), stopping or resuming peer seats, pruning
  stale peers (`splice peer prune`), enforcing anti-spoofing rules, or
  troubleshooting peer auth and delivery. Always consult this skill before
  messaging another agent session so agent traffic stays on Splice UDS sockets
  instead of human `seatd` channels.
---
<!-- splice-managed: splice-plugin -->

# Peer Coordination & Session Control on Splice

Splice keeps three concerns strictly separated: **agent-to-agent messaging** (authenticated Splice Unix domain sockets), **session lifecycle & inspection** (`splice launch` / `splice session` / `splice-peers` MCP backed by `seatd` seats), and **human/app/voice input** (`seatd` seated messaging).

For general gateway operations, config, or daemon troubleshooting, use the `splice` skill.

---

## 1. Strict Channel Order

Follow this channel hierarchy in order so messages always carry truthful provenance:

1. **Claude Desktop (CCD) native session tools first:** When running inside Claude Desktop with native CCD session tools available (`list_sessions`, `send_message`, etc.) and targeting another Claude Desktop session, use those native tools directly.
2. **Agent-to-agent messaging -> Splice Peer over Splice UDS sockets:**
   - **MCP (`splice-peers`):** `list_peers`, `send_peer_message`, `peer_status`
   - **CLI:** `splice peer list`, `splice peer send`, `splice peer inbox`, `splice peer status`
   - Messages travel over Splice's Unix domain sockets (`$XDG_RUNTIME_DIR/cc-socks/<pid>.sock`) with authenticated `<cross-session-message>` envelopes and delivery receipts.
   - **Why not `seatd`?** `seatd send-message` / `seatd inbox send` injects input as the human operator ("me"), breaking agent provenance and auditability. Never use `seatd` messaging for agent-to-agent traffic.
3. **Session launch, inspection, stop, and resume -> Splice session controls (`seatd`-backed):**
   - **CLI:** `splice launch claude`, `splice session list|read|screen|stop|resume`
   - **MCP (`splice-peers`):** `read_peer_session`, `stop_peer_session`, `resume_peer_session`
   - Drop down to raw `seatd` CLI (`seatd doctor`) only when diagnosing `seatd` daemon health.
4. **Human / app / GPT Live input ONLY -> `seatd` seated messaging:**
   - Reserve `seatd send-message` and `seatd inbox send` strictly for input originating from a human user, a desktop/mobile app, or a live voice assistant (e.g., GPT Live) so it arrives in the target session as the user.

---

## 2. Pre-Launch Availability Check & Launching Detached Workers

Before launching a worker seat, check live provider and model availability so you do not spawn a worker onto a held, signed-out, or quota-exhausted model:

```bash
splice accounts --available
```

Then launch a named detached worker seat with automatic peer registration and an initial brief:

```bash
splice launch claude \
  --name worker-api \
  --cwd /path/to/repo \
  --model claude-opus-4-6 \
  --detach \
  --brief "Implement and test the pagination fix, then report back."
```

Give every worker a short, readable `--name` (`worker-api`, `verifier-auth`, etc.) so both you and the user can recognize it immediately in `list_peers` and `splice session list`.

---

## 3. Naming & Addressing Map

Every live peer carries both a human-readable label (including its `seatd` seat name when seated) and stable machine IDs. Splice accepts **any** of these as `to`:

| Identifier | Example | Source |
| --- | --- | --- |
| Readable seat / display name | `worker-api`, `repo-claude-pipe` | `seatd` seat name or `--name` / `--display-name` / `--seat` |
| Stable peer ID | `cc-12345`, `codex-<thread>` | Auto-subscribed harness PID or registered peer name |
| Session ID | `local_<uuid>` or `<uuid>` | Desktop `hostSession` or harness session UUID |

`list_peers` and `splice peer list` format all three together, for example:
`worker-api (seat: worker-api · id: cc-12345 · session: local_<uuid> · transport: native-pipe)`.

Live `seatd` seats — including Claude Desktop pipe seats — surface automatically in `list_peers` and `splice peer list` mapped to their Splice UDS peer sockets. Dead, zombie, orphaned helper (`cat`, `sleep`, `tail`, `tee`) owners, and gone-seat peers are retired automatically.

---

## 4. Messaging, Delivery Receipts & Session Control

### Discover peers

- **MCP:** `list_peers({})` — returns `self`, optional `selfSeat`, and reachable `peers` (with `name`, `peerId`, `displayName`, `seat`, `sessionId`, `transport`, and formatted `label`).
- **CLI:** `splice peer list [--json]`

### Send an agent-to-agent message & check receipts

- **MCP:** `send_peer_message({ "to": "worker-api", "text": "Please run the test suite", "id": "req-1" })`
- **CLI:** `splice peer send [--id req-1] [--json] worker-api "Please run the test suite"`
- **Check receipt:**
  - **MCP:** `peer_status({ "msgId": "req-1" })`
  - **CLI:** `splice peer status req-1 [--json]`
- **Read inbox (helper-backed/shell peers):**
  - **CLI:** `splice peer inbox [--after N] [--ack] [--follow] [--json]`

Native-inbox harnesses (Claude Code and Antigravity) receive replies on their own UDS socket while journaling outbound send receipts through an unlisted Splice return socket so `peer_status` settles to `delivered` without creating duplicate peer entries.

| Status | Meaning |
| --- | --- |
| `delivered` | Target peer's UDS socket acknowledged receipt |
| `queued` / `accepted` | Frame written to socket or queued; poll `peer_status` with the returned `msgId` |
| `unconfirmed` | Target accepted the frame but could not confirm delivery; inspect before resending |
| `unavailable` | Refused, dropped, expired, or target offline |

Pass a caller `id` (`--id`) whenever retrying so duplicate sends remain idempotent.

### Inspect, stop, and resume peer sessions

All session controls enforce the caller's `sendTo` scope and operate through `seatd` under the hood:

- **Read status + screen:** `read_peer_session({ "to": "worker-api" })`
  - Pass `"since": "<hash>"` for incremental screen diffs, or `"capture": true` (with optional `"lines": 200`) for scrollback + screen.
- **Stop & retire:** `stop_peer_session({ "to": "worker-api" })` — stops the `seatd` seat and retires its peer registration (self-stop is refused).
- **Resume:** `resume_peer_session({ "to": "worker-api", "session": "<optional-id>" })` — resumes a stopped seat in its recorded or specified session.
- **CLI equivalents:**
  ```bash
  splice session list
  splice session read <name>
  splice session screen <name>
  splice session stop <name>
  splice session resume <name>
  ```

---

## 5. Anti-Spoofing, Pruning & Troubleshooting

- **Anti-spoofing (`--as` refused inside a bound session):** Inside any bound session (`SPLICE_PEER_NAME`, `SPLICE_PEER_KEY_FILE`, kernel-owned harness ancestor, or `CODEX_THREAD_ID`), passing `--as <other-peer>` is refused so one agent cannot impersonate another. Omit `--as` so Splice uses your bound identity automatically. Outside a bound session, `--as` requires a readable management key (authorized operator shell).
- **Outside `sendTo` (`403`):** The target is outside this peer's `sendTo` scope. Check `splice peer list` to confirm allowed targets (`*` or explicit names/IDs).
- **No peer socket (`409`):** A `session-only` seat is visible to `read_peer_session` / `stop_peer_session` / `resume_peer_session` but has no registered UDS peer socket in `~/.claude/sessions/`. Ensure the target session runs with Splice peer messaging enabled rather than falling back to `seatd send-message`.
- **Prune stale peers:** `GET /api/peers` and `list_peers` automatically retire dead, zombie, orphaned-helper owners, and gone seats. To explicitly clean old persistent registrations, run:
  ```bash
  splice peer prune [--stale-days N] [--dry-run] [--purge]
  ```
- **Diagnose `seatd`:** If launching or reading seats fails across all peers, run `seatd doctor` and `splice doctor`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.