booster-command
Run Claude Booster command protocols in Codex. Use when Dmitry invokes or asks to install/run Booster commands such as start, handover, fable, autopilot, consilium, audit, code-review, architecture, go, debt, phase, update, delegate, lead, agent-status, gantt, loop, verify-flow, verify-after-edit, audit-trace, or hackathon.
- License 许可
- MIT
- 最近更新
- 2026-09-16
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- booster-command
- description
- Run Claude Booster command protocols in Codex. Use when Dmitry invokes or asks to install/run Booster commands such as start, handover, fable, autopilot, consilium, audit, code-review, architecture, go, debt, phase, update, delegate, lead, agent-status, gantt, loop, verify-flow, verify-after-edit, audit-trace, or hackathon.
03 SKILL.md 正文
Booster Command Runner
This skill is the Codex compatibility layer for Claude Booster command specs.
Use it when the user invokes a Booster command by name, for example:
starthandoverfable <question>or natural-language "посоветуйся с Fable 5"autopilot on <North Star>,autopilot status, orautopilot offconsilium <topic>audit <topic>code-review [model] [topic] [--model <model>] [--scope <path>] [--apply]architecture [--update]go [fable] <artifact contract>debt <mode>$agent-status(or legacy/prompts:agent-status)gantt [detail]via$gantt(or legacy/prompts:gantt)$loop INTERVAL --thread UUID,$loop status, or$loop stop(or legacy/prompts:loop)$consilium <topic>or/prompts:consilium <topic>
Source Of Truth
Load the original command spec before executing. Resolve <command> from the
alias skill name, prompt name, or the first argument after $booster-command.
Search in this order:
~/.claude/commands/<command>.mdreferences/commands/<command>.mdrelative to this installed skill<repo-root>/templates/commands/<command>.md<repo-root>/.claude/commands/<command>.md
If the command spec is missing, say which paths were checked and stop.
Codex Adapters
Execute the command behavior, not the literal Claude Code tool names.
-
Read/Grep/Glob/Bashmean Codex file reads,rg, and shell tools. -
EnterPlanMode/ExitPlanModemean use Codex planning behavior orupdate_plan. -
TaskCreate/TaskUpdatemean useupdate_planand concise progress updates. -
Claude
Agent/Explore/general-purposemeans Codex subagents when the command explicitly asks for independent agents. The command invocation itself is explicit permission to use those subagents. Evidence is the spawned agent ids or names plus their final messages. If no Codex subagent tool is available, state that full independent-agent parity is unavailable and run only a local second pass; do not label that fallback as a full Booster multi-agent result. -
Pass the selected route's
reasoning_effortexplicitly: Luna useslow; Terra, Sol, and Astra usemediumby default.highrequires evidence that a medium attempt failed for lack of reasoning depth; never selectxhighautomatically. -
Exact local Codex route invariant. For every local Codex CLI delegation, invoke the routed worker below. It obtains
model_balancer.py get CATEGORY, validates non-empty stringprovider,model, andreasoning_effort, rejects caller-m/--modeland config model overrides, and forwards the exact returnedmodelandreasoning_effortonly when the provider iscodex-cli. It setsCLAUDE_BOOSTER_ROUTE_SOURCE=balancer,CLAUDE_BOOSTER_TASK_CATEGORY=CATEGORY, andCODEX_REASONING_EFFORTfor the child. Do not invent, normalize, shorten, or substitute model identifiers: in particular,gpt-5.6is a family alias, never a model pin. Preserve the command's required read-only sandbox for read-only delegation.~/.claude/scripts/codex_routed_worker.py CATEGORY --ephemeral --sandbox read-only < "$PROMPT_FILE"If lookup is unavailable, malformed, or nonzero, the worker emits one sanitized
degraded routingdiagnostic and invokesCODEX_BIN execwith no explicit model pin; it never guesses a model. A valid non-Codex provider route fails loud without launching local Codex. -
Claude model names (
haiku,sonnet,opus) are guidance only. Use Codex's available subagent defaults unless a model can be pinned safely. -
PAL/GPT external review: PAL is runtime-available only when its tool call returns a usable opinion. Tool registration alone is insufficient. Treat
429 insufficient_quota,401,403, any5xx, timeout, connection-closed, empty/error-only output, or tool exception as runtime unavailable; preserve sanitized evidence and continue Z.ai → Grok → Codex native second opinion. A successful PAL response remains primary. Use the Z.ai third-model runner whenZAI_API_KEYis present:printf '%s\n' '<review prompt>' | ZAI_API_KEY="$ZAI_API_KEY" ~/.claude/scripts/zai_cli.py review --budget 5. Label it exactly as "GLM-5.3 via Z.ai". A missing credential, non-zero exit, timeout, tool exception, or unusable response advances to Grok. Grok is available only when~/.claude/scripts/grok_cli.py statusexits 0 (127 = binary missing, 69 = not authenticated); that probe is the ONLY accepted availability test — never infer availability from env vars such asXAI_API_KEY. Then run:printf '%s\n' '<review prompt>' | ~/.claude/scripts/grok_cli.py review --model grok-4.6 --budget-turns 8.--budget-turns 8is the default for diff-only reviews; for repo-reading audits (prompts that ask Grok to read files) use--budget-turns 24, andfailure_type=max_turnsin the failure log means the budget was too small, not that Grok is unavailable — retry once with a larger budget before labeling DEGRADED. Label it exactly as "Grok-4.6 via xAI". If PAL, Z.ai, and Grok are unavailable, spawn a separate Codex review subagent when subagents are available and label it clearly as "Codex second opinion", not as PAL/GPT or Z.ai, and mark itdegraded_external_independencebecause it is same-provider. If none are available, mark the external-review step as unavailable with sanitized missing-tool/runtime evidence; never treat an error payload as an opinion. Any DEGRADED external-review label MUST name the concrete failure class per channel, e.g.PAL: 429 credit_balance_exhausted,Z.ai: 429 1113 insufficient_balance,Grok: grok_cli.py status exit 69 (not authenticated). -
Runner rule. Categories the balancer routes to a non-Codex provider (
audit_secondary,audit_tertiary, andhackathon_externalwhen the route isgrok-cliorzai-cli) MUST be executed with~/.claude/scripts/grok_cli.py reviewor~/.claude/scripts/zai_cli.py review, never withcodex_routed_worker.py. Acodex_routed_worker.pyexit 65 means "wrong runner", NOT "provider unavailable" — do not record it as a degraded external channel.codex_routed_worker.pyaccepts only balancer categories:auditandcode-revieware not categories; useaudit_external,audit_secondary,audit_tertiary, ormedium. -
Claude session JSONL paths under
~/.claude/projects/...become the newest relevant Codex session JSONL under~/.codex/sessions/...when preparing a Codex handover. If a Claude session is relevant, mention both. -
Claude hooks are not assumed to be active in Codex. Preserve the evidence discipline in assistant output even when no hook enforces it.
-
Fable usage visibility is shared across Claude CLI and Codex CLI via
python3 ~/.claude/scripts/fable_usage.py. After$fableorcode-review fable, runpython3 ~/.claude/scripts/fable_usage.py refresh-displayand include its output if non-empty. This refreshes the current UTC month from Claude/Codex transcript stores before printing. The wording is intentionally API-equivalent / credit-rate estimate language, not an actual billing ledger. -
Fable autopilot parity is executable, not prose-only: preserve project-bound state scope and use the trusted
fable_autopilot.py consult-decisionrunner for decisions and trustedcheckpoint plan_complete|first_slice|final_diffrunners. Only those runners invoke and bindfable_consult.shoutput; no caller-supplied receipt may assert Fable provenance. They validate typedON_COURSE|REFOCUS|REPLAN|ASK_USERverdicts and/go fablewatchlist reconciliation. Codex must not fall back to ambient HOME autopilot state. -
Autopilot activation is also goal activation on Codex. For
on <North Star>, callget_goalfirst; retain a matching unfinished goal, or callcreate_goalwithouttoken_budgetwhen none exists. Never replace an unrelated unfinished goal: surface the conflict.statusandoffdo not create goals. A successful activation must immediately start the first autonomous North-Star step in the same turn, not end at setup confirmation. -
Autopilot slice instrumentation is advisory. After its first artifact contract, prospectively call
slice_calibration.py bootstrap(which recordssession-start), then use paired controls around installedslice_ledger.py acquireandslice_git.py capture. Session-start failure aborts managed slice work before acquire; control-end means success only, while failure records typedcontrol-na --reason operation_failed. Bind verification/terminal/domain events only at real wrapper lifecycle points; unsupported native Codex is typed UNKNOWN, never backfill. Bootstrap prefers an explicit transcript and otherwise accepts only a unique top-levelCODEX_THREAD_IDmatch in the documented Codex session store; subagent IDs are rejected. Its machine output contains only hashes, run ID, and a protected project-relative binding reference. Root identity is leadingsession_meta.payload.session_id, whilepayload.idis the possibly distinct thread identity. Validate the root join and persist hashes only. Parse only bootstrap'sresult.binding_pathwith a JSON parser (never shell evaluation), then pass it as--bindingto telemetry status/record and calibration labels-template/record. These consumers securely derive and revalidate raw routing identities internally; never print or hand-copy them. Status reads only cachedslice_telemetry.py statusevidence and must sayClaude hooks/wrappers advisory; native Codex observational/no enforcement; it never scans transcript stores. Directional autopilot state remains separate, andoffneither deletes slice history nor fabricates closure.
Cross-provider stages (SHIP-1..4 in go and hackathon)
The go pipeline (Phase 1B Challenge, Phase 1C Prototype Gate, Phase 2 Verifier,
Phase 3B Diff-review) and the hackathon evidence harvest require each
verifying/reviewing role to run on a different provider than the Worker when
that provider channel exists. The spec is written from the Claude-CLI viewpoint,
where the native model is Claude and "the other provider" is Codex
(codex_sandbox_worker.sh / codex_worker.sh). On Codex CLI the roles
mirror — translate, do not execute literally:
- The native orchestrator follows the active GPT-5.6 route, so "the other provider" is Claude; reach it via a Claude subagent/CLI channel if one is available.
- The invariant that matters is Worker and Verifier/Challenger/Reviewer run on
DIFFERENT providers — not which provider is native. Read the spec's
WP=codex-cli → Verifier=Opus/WP=anthropic → Verifier=codextables as "Worker on the native model → the other role on the other provider," and vice versa. - The Prototype Gate is evidence-first, read-only executable proof, not coding.
Every non-trivial behavioral, data, runtime, external-system, incident-driven,
or critical-component gate requires a Prototyper notebook before spawning
Worker. The notebook is the investigation journal, not a synthetic test stand:
every evidence-bearing cell records the direct authorized read-only command/query,
source identity and environment, ISO timestamp or observation window,
filters, counts/samples, expected versus actual, invariant result, candidate
binding, and a raw-output reference. The notebook is durable only under
notebooks/orreports/prototypes/, never tempdir; large output is a repo-relative artifact with SHA-256. Notebook-only claims are not sufficient handoff evidence, but a paired probe script is not required; direct command output is enough. Notebook N/A is permitted only when the entire Prototype Gate is explicitly N/A for a pure docs/format/static-config task with no executable data/runtime hypothesis and a concrete reason. - If
ZAI_API_KEYis present, GLM-5.3 via~/.claude/scripts/zai_cli.pyis a third-model read-only channel for Challenge, external audit, edge-harvest, and diff-review. It does not replace the exit-code Judge/Verifier unless a future audited command explicitly makes it write-capable. - If
~/.claude/scripts/grok_cli.py statusexits 0 (127 = binary missing, 69 = not authenticated; never infer fromXAI_API_KEY), Grok via~/.claude/scripts/grok_cli.pyis a fourth-model read-only review channel, and~/.claude/scripts/grok_sandbox_worker.shis a write-capable code-worker channel that must run in an isolated worktree and return a diff. - If the other-provider, Z.ai, or Grok channel is unavailable on this CLI, apply the
spec's documented DEGRADATION: run a same-provider second pass and label the
result
cross-provider: DEGRADED (<reason>). NEVER claim cross-provider when it degraded. It is a quality optimization, not a safety gate — do not wedge the pipeline over it. phase.py,model_balancer.py, andkpi_rework.py(thegoPhase 4 KPIrecord/report) are plainpython3 ~/.claude/scripts/<name>.py ...and run identically on both CLIs — invoke them verbatim, including the auto-recordat the end of everygorun.
Execution Rules
Business outcome comes first: define observable acceptance and domain invariants, deliver coherent reversible slices, and reuse current evidence with compact relevant context. Stop when acceptance passes and material risks are covered; reopen affected checks only for a new change, failure, or concrete unresolved material risk. Avoid repeated broad audits and microdelegation. Apply core.md proportionality precedence: reversible prompt/docs edits preserving safety controls need targeted existing checks plus one focused review, regardless of file count. Explicit full command contracts and production/data/auth/financial/incident controls remain binding.
- Pre-Work Context Gate: before any command step that can lead to a code/config
edit, deploy, migration, or coding subagent/worker spawn, build and state a
Context Receipt:- Read
ARCHITECTURE.mdanddocs/dep_manifest.jsonif they exist; extract touched components, critical flags, callers, feeds, and downstream consumers. - Run rolling memory start context for the project via MCP
memory_start_context(scope=<repo root>)orpython ~/.claude/scripts/rolling_memory.py start-context --scope "$(git rev-parse --show-toplevel 2>/dev/null || pwd)". If it lists=== INCIDENT REGISTER ===or=== INCIDENT WARNINGS ===, read every incident source before planning and carry forward the production impact, trigger, mitigation, recurrence guard, and "do not repeat" constraints. - Read the latest handover
## Summary,## Required reading, and## First stepsections when the command is starting a work session or continuing a prior thread; read every existing Required reading file before editing. - Cross-check architecture and memory claims against current code with
rgor file reads before using them as facts. - Inject the relevant receipt lines into any subagent/worker prompt; subagents do not inherit the Lead's conversation memory automatically.
- Read
- Spawn Check: immediately before delegation, classify every brief claim as direct evidence, inference, or assumption; preserve units, versions, and source paths; name callers, consumers, and integration boundaries; state the falsifier; and check whether all delegates share one unverified premise.
- Give each role its own contract. A Worker implements the scoped artifact and is not called Lead. A Verifier is independent, actively seeks FAIL, and validates primary evidence and integration boundaries with direct read-only probes rather than confirming the Worker or creating a synthetic test stand. During implementation iterations it must not create or rewrite acceptance suites, tests, fixtures, mocks, synthetic datasets, verification stands, or harnesses. Once direct probes pass and the candidate is stable, the final deploy gate may create or update durable regression tests and then run the full existing suite; those tests preserve proven behavior and never replace the direct evidence. Evidence Receipt rows bind each PASS to artifact/tree-diff SHA-256 plus applicable process/build/deployment/version identity, classify the operation against the fail-closed read-only allowlist, and retain bounded raw output or a durable repo-relative SHA-256 reference. The final gate freezes the regression manifest and named test-file hashes before its first full-suite run.
- Always perform RECON against current code/config before reports or opinions.
- For
consilium,audit, andarchitecture, build a Verified Facts Brief before spawning subagents. - For
go, the Artifact Contract is incomplete unless it contains bothArchitecture Context:,Incident Warnings:, andRegression Loop Guard:fields.Architecture Context:andIncident Warnings:are populated from the Context Receipt;Regression Loop Guard:is populated from a fresh file-scoped preservation analysis and must name edited files, touched surfaces, consumers checked, relevant git/incident history, behaviors that must not regress, and the verification target. For broker/data/DB/financial/migration/ non-trivial behavioral/data/runtime/external-system/incident/critical-component work, the/gorun must also produce aPrototype Handoffand mandatory investigation notebook before Worker: source-of-truth inputs, current-system comparison, first divergence, counts/samples, invariants proven, Worker facts, and direct-probe requirements for the Verifier. The final deploy gate alone may add durable regression assertions. - Save generated reports to the same repo paths the original command specifies,
usually
reports/. - Do not invent top-level Codex slash commands. If bare
/consiliumis intercepted by the UI, use/prompts:consiliumor$consilium. - Keep outputs concise but include concrete evidence for verification steps.
04 同仓库更多 Skills
verify-flow
Run the Claude Booster verify-flow protocol in Codex for UI flow verification.
verify-after-edit
Run the Claude Booster verify-after-edit protocol in Codex after UI/frontend edits.
update
Run the Claude Booster update command in Codex: update Booster installation or project command/rule state according to the original update.md protocol.
start
Run the Claude Booster start protocol in Codex: README, latest handover, rolling memory start context, review-age check, canary, telemetry, and a task plan.
role
Select developer or lead mode for this conversation, or show the current mode and reusable role agents.
phase
Run the Claude Booster phase command in Codex when Dmitry asks to inspect or change RECON/PLAN/IMPLEMENT/AUDIT/VERIFY/MERGE phase state.