一键导入
best-of-n
Runs a Grok best-of-n implementation tournament and applies the winner. Use when several independent candidates and an automatic pick are wanted.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Runs a Grok best-of-n implementation tournament and applies the winner. Use when several independent candidates and an automatic pick are wanted.
用 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 | best-of-n |
| description | Runs a Grok best-of-n implementation tournament and applies the winner. Use when several independent candidates and an automatic pick are wanted. |
| argument-hint | [--n <n>] [task text] |
| allowed-tools | Agent |
Forward the request to the Grok companion task runtime as a best-of-n tournament.
The tournament is implemented by the Grok CLI --best-of-n flag, not by orchestration inside the companion.
Execution rules:
grok:grok-rescue via the Agent tool with run_in_background: false. Tell the rescue agent this direct user selected Grok lane uses the best-of-n protected role and that the opaque raw request begins after a fixed delimiter and continues to the end of the Agent prompt. Parallel work uses multiple foreground Agent calls in one message. Without an explicit incoming user --background, the companion remains foreground and returns a terminal outcome. Never run the companion in the main loop and never ask the user how to run it.--transport-default-best-of-n companion option, which applies --best-of-n 2 only when the raw request does not already select a tournament size. The companion rejects values outside 2 to 10.--memory, --resume, and --resume-last instead of silently changing their meaning. Continuity affinity never applies to a tournament.--sandbox strict; it never downgrades to workspace. Grok builds n candidate implementations in isolated worktrees, selects a candidate, and applies that candidate's edits to the workspace. It is the only mode that adds native Agent to the fixed write tool allowlist. The list uses search_replace for both new and existing files because Grok has no write tool id. The companion gives native background tasks an explicit wait timeout shorter than its outer deadline, which is not companion detachment. That selection is not semantic acceptance; the main session verifies the combined workspace and makes the final judgment. Only run it when the user accepts edits. Strict can hide user toolchains outside its readable roots and macOS does not enforce its requested child process network restriction, so terminal commands can still reach the network there. The allowlist and deny rules reduce exposure but are not complete confinement; recommend a clean branch or a disposable worktree when the tree is dirty.bestofn-candidate-* directories, point them at git worktree list and git worktree remove <path>./grok:status and /grok:result usage hints. Preserve them./grok:setup.The opaque raw tournament request begins after the next newline and continues to the end of this command prompt: $ARGUMENTS