session-source-fork
Agent skill frommvschwarz/openrig
Use when authoring a rig spec member or `rig expand` payload that needs to start a new managed seat from a prior runtime conversation source — `session_source: { mode: fork, ref: { kind, value } }`. v1 supports `mode: fork` with `ref.kind: native_id` for Claude and Codex. The new seat persists a NEW post-fork token; the parent token is NEVER written onto the new seat. NOT for restoring an existing seat or for artifact-backed mental-model rebuild.
How to install session-source-fork
install session-source-fork
# install the openrig pack with the skills CLI
npx skills add mvschwarz/openrig# or add only this skill to Claude Code: copy the folder
skills/_canonical/core/session-source-fork/
# into
~/.claude/skills/session-source-fork/ (all projects)
.claude/skills/session-source-fork/ (one project)
1# session_source Fork23`session_source` is a **member-level OpenRig field** that declares how a4newly-launched managed seat should derive its initial conversation5continuity from a prior runtime conversation source.67v1 supports one mode: **`fork`** — start a *new* managed seat from a8prior native runtime conversation source without claiming the original9seat continued.1011The schema is runtime-neutral; implementation is runtime-specific (Claude12and Codex have their own native fork commands).1314## Use this when1516- Authoring a rig spec member that should fork from a prior session17- Authoring a `rig expand` payload with `session_source`18- Reasoning about whether to use `fork` vs `rebuild` vs `resume` vs `fresh` for a new seat19- Composing fork + handover (seat-handover-over-fork) — see `seat-continuity-and-handover` skill2021## Don't use this when2223- The seat is being **restored**, not created. Restore continues an existing managed seat. Fork creates a new seat.24- The continuity is **artifact-backed mental-model rebuild** (packet-derived understanding, not native runtime continuity). Use `mode: rebuild` (see `seat-continuity-and-handover` for the rebuild surface) — do NOT collapse fork into artifact-backed reentry; the distinction is load-bearing.25- The runtime is `terminal`. Terminal runtime rejects `session_source`.2627## The shape (canonical YAML)2829```yaml30members:31 - id: reviewer-232 runtime: claude-code # or "codex"; not valid on terminal33…
Excerpt shown under the repository's Apache-2.0 license.
