session-source-fork
하는 일
이 스킬은 이전 Claude 또는 Codex 대화를 바탕으로 새 에이전트 좌석을 시작하는 방법을 설명합니다. 이전 세션의 기록에서 새 에이전트가 시작되기를 원하는 팀을 위한 것입니다.
사용하는 경우
- ✓새 좌석이 이전 런타임 대화에서 시작되어야 할 때.
- ✓리그 명세의 멤버가 이전 세션에서 포크되어야 할 때.
- ✓새 좌석에 대해 포크, 재구축, 재개, 새로 시작 중 무엇을 쓸지 골라야 할 때.
스킬 링크
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/session-source-fork/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이전 Codex 세션에서 포크된 새 리뷰어 좌석을 시작하되, 원래 좌석과 분명히 구분되게 해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
명세에 세션 출처를 선언하고, 자체 토큰을 가진 새 좌석을 만들며, 부모의 토큰을 새 좌석에 절대 기록하지 않습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
session_source Fork
session_source is a member-level OpenRig field that declares how a
newly-launched managed seat should derive its initial conversation
continuity from a prior runtime conversation source.
v1 supports one mode: fork — start a new managed seat from a
prior native runtime conversation source without claiming the original
seat continued.
The schema is runtime-neutral; implementation is runtime-specific (Claude and Codex have their own native fork commands).
Use this when
- Authoring a rig spec member that should fork from a prior session
- Authoring a
rig expandpayload withsession_source - Reasoning about whether to use
forkvsrebuildvsresumevsfreshfor a new seat - Composing fork + handover (seat-handover-over-fork) — see
seat-continuity-and-handoverskill
Don't use this when
- The seat is being restored, not created. Restore continues an existing managed seat. Fork creates a new seat.
- The continuity is artifact-backed mental-model rebuild (packet-derived understanding, not native runtime continuity). Use
mode: rebuild(seeseat-continuity-and-handoverfor the rebuild surface) — do NOT collapse fork into artifact-backed reentry; the distinction is load-bearing. - The runtime is
terminal. Terminal runtime rejectssession_source.
The shape (canonical YAML)
members:
- id: reviewer-2
runtime: claude-code # or "codex"; not valid on terminal
agent_ref: specs/agents/reviewer.yaml
profile: reviewer
cwd: .
session_source:
mode: fork
ref:
kind: native_id # v1 fork mode supports native_id only
value: "0b0165d7-cb4d-4650-90de-15c0a1ede9e6"
Rules:
modev1 only valid value:fork.ref.kindv1 supportsnative_idonly. Schema rejectsartifact_path,name,last, andartifact_setpre-launch with explicit deferred/weaker/wrong-mode error messages (seepackages/daemon/src/domain/rigspec-schema.tsvalidateSessionSourceFork). Adapter-level refusal exists as defensive handling but should not be reachable in v1 because schema rejects first.valuerequired forref.kind: native_idin v1 (the only schema-accepted kind). Future-state value semantics forartifact_path/name/lastare not active in v1 because schema rejects those kinds pre-launch.rig expandaccepts the same shape so dynamically-added members can carry session-source attribution.
The primitive does NOT introduce a new top-level command. It flows through existing rig spec and expansion pathways.
State model
session_source is a launch-time input, not a long-lived stateful field:
- Declared — present in member config or expansion payload
- Resolved — at launch time, OpenRig resolves the
refagainst the runtime - Realized — runtime fork succeeds; new managed seat receives a NEW native continuity token (Claude session id or Codex thread id). OpenRig persists that NEW token. Parent token is NEVER written onto the new seat.
- Failed — resolution or fork failed; seat not launched as a fork; clear error names the resolution step that failed
Once realized, session_source is essentially history. Restoring the
seat later is restore of the new seat, not re-fork-from-parent.
Failure modes (5)
- Source session id not found — runtime cannot resolve
native_id. Action: emit error naming runtime + missing id; do NOT silently launch fresh. (Future-state note: whenartifact_pathis supported in a follow-up slice, it could become a candidate fallback for Claude; in v1 schema rejectsartifact_pathpre-launch so no fallback path exists.) - Source artifact path missing (out of v1 scope) — would apply once
ref.kind: artifact_pathbecomes schema-accepted. v1 schema rejects this kind pre-launch. - Unsupported runtime/kind combination (largely pre-empted in v1 by schema rejection) — schema rejects all non-
native_idkinds upfront. Adapter-level refusal exists as defensive handling but is not reached in v1. - Fork launch failed after source resolution — runtime command (
claude --resume <parent> --fork-sessionorcodex fork <id>) returned non-zero or hung. Preserve runtime stderr; do not record new seat as launched; do not write parent token onto seat. - Persistence inconsistency — fork succeeded but seat-token persistence cannot record new continuity token. Internal failure: seat is not considered launched
자주 묻는 질문
새 좌석이 기존 좌석을 대체하나요?
아닙니다. 스킬은 포크가 새 좌석을 만들 뿐이며, 원래 좌석이 이어졌다고 주장하지 않는다고 설명합니다.
어떤 런타임을 지원하나요?
1단계 버전은 Claude와 Codex를 지원하며, 각 런타임의 고유 대화 ID를 사용합니다.
기존 좌석을 복원할 수 있나요?
아닙니다. 복원은 기존 좌석을 이어 가고, 포크는 새 좌석을 만듭니다.
상세 정보
작성자의 원본 설명
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.
repo: mvschwarz/openrig
인기도
- GitHub 스타
- 8.6k
- 순위
- #12412
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agent-operated-software
8.6k백엔드에 AI 에이전트가 포함된 앱을 설계하고 만들고 디버깅하도록 돕습니다.
agent-operated-workflows
8.6k범위가 정해진 절차를 AI 에이전트가 실행할지 일반 코드가 실행할지 정하고, 검증된 근거로 안전하게 재개하도록 돕습니다.
applying-a-permission-policy
8.6k에이전트가 팀 설정 중 쓰는 명령 권한을 맞춰, 일상적인 명령이 승인 요청을 덜 거치도록 돕습니다.
claude-compaction-restore
8.6kClaude Code 에이전트가 컨텍스트 압축 후 저장된 복구 지도, 대화 기록, 수정한 파일을 써서 작업 그림을 다시 세우도록 돕습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.