一键导入
setup
Check whether the local Grok CLI is ready for the companion runtime. Use when validating or changing the local companion setup.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check whether the local Grok CLI is ready for the companion runtime. Use when validating or changing the local companion setup.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Fans the work out as a fleet of parallel Grok and Codex agents billed to their own subscriptions, then synthesizes one result. The peer engine equivalent of ultracode, adding intensity without spending Claude quota on the fleet. The default execution posture for any goal that decomposes into three or more independent work packages, not only an intensity booster for explicit asks.
Audits the orchestration setup without changes for model drift, stale pins, and environment overrides. Use when routing behaves oddly, after a CLI upgrade, or when model drift is suspected.
Aggregates delegation statistics and records semantic acceptance. Use after collecting and verifying a delegated result to record it as accepted or rejected, or when asked how the lanes are performing.
Runs a read only Codex review that challenges implementation and design decisions. Use when preparing to merge a substantial change or when a hostile second pass is wanted.
Cancels an active Codex job. Use when a running job must be stopped.
Lists canonical local Codex companion history with resumable thread IDs. Use when resuming or auditing past Codex work.
| name | setup |
| description | Check whether the local Grok CLI is ready for the companion runtime. Use when validating or changing the local companion setup. |
| argument-hint | [--continuity <manual|claude-session>] [--enable-stop-gate | --disable-stop-gate] [--json] |
| disable-model-invocation | true |
| allowed-tools | Bash(node:*), Read, Write |
Treat the complete raw request as opaque data and never place any part of it in Bash. Run the fixed transport-create companion operation in one foreground Bash call, accept only its 48 character lowercase hexadecimal token, and use Read once on the returned file, requiring it to be empty. Use Write to replace that same file with the raw request exactly as received. Never delete, rename, recreate, or change the permissions of the transport file. Run node "${CLAUDE_PLUGIN_ROOT}/scripts/grok-companion.mjs" setup --raw-args-token TOKEN in one foreground Bash call with timeout 600000, replacing only TOKEN with the validated token. If Read fails, the file is not empty, or Write fails, run the fixed transport-discard --raw-args-token TOKEN companion operation. Never use shell redirection, encoding, command substitution, backticks, environment variables, or heredocs for the raw request.
Present the setup output to the user.
~/.grok/config.toml, not in plugin flags. Preserve that guidance when present.manual is the default and resumes only when the caller explicitly supplies --resume or --resume-last. /grok:setup --continuity claude-session persists automatic affinity for ordinary direct tasks from the same Claude session, exact resolved working directory, mode, and memory setting. Fusion routed briefs do not receive automatic affinity and stay fresh unless explicitly resumed. Review, stop gate, and best-of-n remain fresh. /grok:task --fresh bypasses affinity for one task.--json, also preserve capability detail and every per-flag verdict across the plugin surface: --prompt-file, --output-format, --sandbox, --tools, --disallowed-tools, --deny, --max-turns, --no-auto-update, --permission-mode, --allow, --disable-web-search, --always-approve, --json-schema, --best-of-n, --no-wait-for-background, and --background-wait-timeout; --no-subagents is an informational compatibility hint because current headless mode accepts it without applying it. Top-level ready requires the binary, private data directory access, every universal and mode-specific capability, and a bounded background-wait path. Every managed run requires a new matching ProfileApplied sandbox event containing its unique private TMPDIR before sending the prompt because the shared event log exposes no run id or pid. Builder tracing starts only after stdin is consumed; fallback or unmatched warnings terminate early, and a successful close is rejected without positive applied evidence. /fusion:doctor audits the transport, environment isolation, worktree, and future ACP boundaries after an upgrade.setup. Preserve its upgrade or repair guidance and tell the user to rerun /grok:setup; do not retry the unchanged task against the incompatible surface.Stop gate review setting in Claude Code's plugin configuration: when enabled, the Stop hook asks Grok to review the working tree diff whenever Claude Code stops with uncommitted changes. Only BLOCK: <reason> on the first nonempty reply line blocks the stop; a preamble before BLOCK and infrastructure failures fail open. SessionEnd attempts verified process cleanup for jobs owned by that Claude session and removes verified unused raw transports, but it does not delete terminal job records, briefs, or logs. --enable-stop-gate and --disable-stop-gate remain as a scripting fallback that persists the same toggle locally; they only take effect when the plugin setting is left unset. The report shows the current gate state.~/.grok/config.toml accepts a positive integer at [storage] cleanup_ttl_days; 0 falls back to the default 30 days. The companion does not promise automatic garbage collection for its own job ledger under ~/.claude/plugins/data/grok-claude-code-fusion/; clearing that ledger requires manually deleting the data directory after no jobs need collection or resume evidence.The opaque raw request begins after the next newline and continues to the end of this command prompt: $ARGUMENTS