session-source-fork
यह क्या करती है
यह स्किल बताती है कि fork का उपयोग करके किसी पुरानी Claude या Codex बातचीत से नई एजेंट seat कैसे शुरू करें। यह उन टीमों के लिए है जो चाहती हैं कि नया एजेंट पिछले सत्र के इतिहास से शुरू करे।
कब इस्तेमाल करें
- ✓जब आप चाहते हैं कि नई seat किसी पिछली runtime बातचीत से शुरू हो।
- ✓जब आप rig spec में ऐसा member लिखते हैं जो पिछले सत्र से fork हो।
- ✓जब नई seat के लिए fork, rebuild, resume और fresh में से चुनना हो।
Skill का लिंक
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/session-source-fork/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“पहले के Codex सत्र से fork करके नई reviewer seat शुरू कीजिए, पर उसे मूल seat से साफ़ तौर पर अलग रखिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह spec में सत्र का स्रोत घोषित करती है, नई seat को उसका अपना token देकर बनाती है, और मूल seat का token नई seat पर कभी नहीं लिखती।
तकनीकी सामग्री (मूल 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
अक्सर पूछे जाने वाले सवाल
क्या नई seat पुरानी की जगह लेती है?
नहीं, स्किल कहती है कि fork नई seat बनाता है और मूल के जारी रहने का दावा नहीं करता।
कौन से runtime समर्थित हैं?
पहले संस्करण में Claude और Codex समर्थित हैं, उनकी अपनी बातचीत IDs के साथ।
क्या यह मौजूदा seat को बहाल कर सकती है?
नहीं, बहाली मौजूदा seat को जारी रखती है, जबकि fork नई बनाता है।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
agent-operated-software
8.6kयह आपके एजेंट को ऐसे चालू ऐप को डिज़ाइन, बनाने या डीबग करने में मदद करती है जिसके लाइव बैकएंड में AI एजेंट शामिल हैं, जैसे Markdown या JSON control plane।
agent-operated-workflows
8.6kयह आपके एजेंट को तय करने में मदद करती है कि कोई सीमित प्रक्रिया AI एजेंट चलाए या साधारण कोड, और सत्यापित सबूत से उसे कैसे फिर से शुरू करे।
applying-a-permission-policy
8.6kयह आपके एजेंट को टीम सेटअप के दौरान AI coding एजेंट की कमांड अनुमतियां सेट करने में मदद करती है, ताकि रोज़ के कमांड कम मंज़ूरी प्रॉम्प्ट के साथ चलें।
claude-compaction-restore
8.6kयह Claude Code एजेंट को compact होने के बाद सहेजे restore map, उसके transcript और छुई गई फ़ाइलों से अपनी कार्य-समझ फिर बनाने में मदद करती है।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।