بنقرة واحدة
handoff
Read a verified implementation handoff for a completed Grok code run (runId only; no apply)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Read a verified implementation handoff for a completed Grok code run (runId only; no apply)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when the user says to use Grok, wants a Grok review, wants a second opinion from Grok, or asks to delegate a task to Grok. Also use for getting an independent code review from Grok, having Grok reason about an architecture or debugging question, having Grok implement code (live tree by default, or opt-in isolated worktree), or having Grok independently verify someone else's implementation. Trigger phrases include "use grok", "grok review", "second opinion from grok", and "delegate to grok".
Check Grok readiness and optionally toggle stop gate / run mode / Codex agents scope (Codex agents auto-install on SessionStart)
Have Grok implement code (default: live tree; opt-in isolated worktree). Nothing is committed or pushed
One-call delegate: Grok code then auto-handoff verification (verify-only; mode-aware integrate elsewhere)
ACP multi-turn peer channel (start/prompt/stop). Default peer path; opt out with GROK_DISABLE_ACP=1
Report (dry-run) or remove a Grok run's owned session state and worktree by run id
| name | handoff |
| description | Read a verified implementation handoff for a completed Grok code run (runId only; no apply) |
| argument-hint | --run-id <id> |
| allowed-tools | Bash(node:*) |
SKILL_BASE to that path.SKILL_BASE='<Base directory for this skill - absolute path from Skill tool>'
node "$SKILL_BASE/run.mjs" handoff --run-id '<run-id>'
Return companion stdout verbatim.
/grok:handoff --run-id <id> is the integration API for multi-agent loops
(Claude Code + Codex as parents, Grok as peer implementer). It returns a
read-only envelope describing whether the code run produced an
integration-ready immutable patch + manifest.
| Command | Transfers | Key |
|---|---|---|
/grok:transfer | Conversation context | session |
/grok:result | Companion job output | job id |
/grok:handoff | Implementation output | runId only |
Completion notifications (1.5.0 toast/webhook) only mean a terminal attempt
finished. They are not permission to integrate. Always call /grok:handoff --run-id and require dual-condition ready before applying anything.
Observed integration.ready is true only when all hold (wrapper authority;
do not reimplement a weaker check):
implementation-handoff.json with integration.ready === true
(also requires non-empty changedFiles, empty blockers, validation flags
true, and patch.bytes > 0)runId with mode: "code"baseRevision is non-empty and equals the manifest basepatch.bytes (> 0), and
sha256 re-hashes to the manifestchangedFiles matches paths in the patch headers (and envelope
changedFiles destinations when that list is present)Missing/wrong-mode envelope → terminal-envelope-incomplete. Null base,
size/hash mismatch, or path-set mismatch → integrity failure. No artifacts →
handoff-unavailable.
Durable handoff artifacts exist only after a hardened code run. Direct
run-mode does not write verified handoff state; use setup --run-mode hardened
(or the companion's hardened default) before expecting /grok:handoff ready.
This skill is read-only - it never applies. How results land is mode-aware
(canonical: plugin/references/integration-modes.md):
Auto/peer apply is companion-owned via the shared apply spine (exclusive lock + durable marker; already-applied restop) in integration-modes.md; handoff remains read-only and code-mode only.
This plugin never auto-commits, merges, cherry-picks, or pushes in any mode.
This flow is code-mode only: /grok:handoff refuses peer runIds. A peer run
is finalized by peer stop itself (use its response as the ready signal); it
never routes through /grok:handoff.
Canonical parent-apply checklist (do not fork the algorithm): implementation-handoff.md Parent apply checklist. Operator summary:
/grok:handoff --run-id success + response.integration.readygit status --porcelain -z inventory)git apply --check --binary <patch>git apply --binary <patch> only with operator intentrunId + patch sha256Raw arguments: $ARGUMENTS