session-source-fork
Fungsinya
Skill ini menjelaskan cara memulai seat agent baru dari percakapan Claude atau Codex sebelumnya menggunakan fork. Skill ini untuk tim yang ingin agent baru mulai dari riwayat sesi sebelumnya.
Kapan dipakai
- βSaat Anda ingin seat baru dimulai dari percakapan runtime sebelumnya.
- βSaat Anda menulis anggota spec rig yang harus membuat fork dari sesi sebelumnya.
- βSaat Anda perlu memilih antara fork, rebuild, resume, dan fresh untuk seat baru.
Link skill
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/session-source-fork/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βMulai seat reviewer baru sebagai fork dari sesi Codex sebelumnya, tetapi pastikan tetap terpisah dari seat asli.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill ini menyatakan sumber sesi di dalam spec, membuat seat baru dengan token sendiri, dan tidak pernah menulis token induk ke seat baru.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah seat baru menggantikan yang lama?
Tidak. Skill ini menegaskan bahwa fork membuat seat baru dan tidak mengklaim seat asli dilanjutkan.
Runtime apa saja yang didukung?
Versi pertama mendukung Claude dan Codex, dengan memakai ID percakapan asli mereka.
Bisakah fork memulihkan seat yang sudah ada?
Tidak. Memulihkan melanjutkan seat yang sudah ada, sedangkan fork membuat seat yang baru.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 8.6k
- Peringkat
- #12412
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
agent-operated-software
8.6kMembantu agent Anda merancang, membangun, atau men-debug aplikasi yang sedang berjalan dengan backend live berisi agent AI, seperti bidang kontrol agent berbasis Markdown atau JSON.
agent-operated-workflows
8.6kMembantu agent Anda memutuskan apakah sebuah prosedur terbatas sebaiknya dijalankan oleh agent AI atau oleh kode biasa, dan cara melanjutkannya dari bukti yang sudah diverifikasi.
applying-a-permission-policy
8.6kMembantu agent Anda mengatur izin perintah yang dipakai agent pengodean AI selama pengaturan tim, agar perintah rutin berjalan dengan lebih sedikit permintaan persetujuan.
claude-compaction-restore
8.6kMembantu agent Claude Code membangun kembali gambaran kerjanya setelah konteksnya dipadatkan, memakai peta pemulihan yang disimpan, transkripnya, dan file yang disentuhnya.
Skill serupa
add-model-provider
394kMemungkinkan agent Anda menghubungkan penyedia model AI baru ke OpenClaw dengan perintah pengaturan yang aman, menjaga kunci API tetap di luar teks biasa, dan menjalankan uji langsung.
acp-router
394kMembantu agent Anda mengirim tugas ke asisten pemrograman seperti Claude Code atau Cursor lewat OpenClaw, sehingga pekerjaan dijalankan di alat tersebut.
browser-automation
394kMengajari agent Anda mengendalikan halaman web langkah demi langkah, termasuk login, tab, dan pemulihan saat halaman berhenti merespons.