/shared:model-reviewfrom shared
Runs a read-only review of a repository using a model from a different provider (OpenAI, Anthropic, Google) for second opinions, dissent, or independent review of shared agent instructions, safety rules, and contracts.
Ships in shared. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
For repositories with DIRECTION.md, follow the shared
executing loop when reviewing execution work.
Apply task scope and authorization when using this workflow.
A review of the change by at least one model from a different provider than the author, with each finding acted on, declined with a reason, or left open, and a short record of who reviewed and what was done. Read reviews by another model first: it owns when a review is worth asking for and how to weigh findings. This skill owns running one.
Read standing review decisions before the first run or when the Director changes provider/model decisions. Keep the recorded decision in its one private shared file. Supply the author's actual provider; let the helper follow the standing order and Context Panel capacity. An explicit provider cannot bypass that policy. Finish the primary review before running any allowed supplementary review, serially with its recorded budget, and put both results in the PR's review note.
Commit the change and leave the worktree clean. Write a prompt file
under the task-evidence path printed by worktree creation. Keep review
results and redirected logs there too. The prompt names the change, the
paths to read, and what the change is for. If --out points inside a
worktree or its configured root, the helper redirects it to task evidence
and returns the actual path as response_file. When output_error is
present, the completed review is returned inline as response. For a
pending decision, there
is no change: describe the saved issue instead. Never ask
the reviewer to run a command or tests, and do not forbid commands either:
the OpenAI reviewer reads files through its read-only shell. Say, for example,
"Your access is read-only; read whatever files you need, and do not modify anything."
The helper names a temporary diff file in
its preamble when the branch has committed changes;
ask the reviewer to read it directly. Do not paste file contents, your
argument that the change is right, or the answer you expect. Ask for a
realistic trigger and a severity for each finding, and allow the answer
"none". For each defect, ask for every sibling path with the same cause, not
just one counterexample, so the whole kind is fixed at once. On a rereview,
name what changed since the last review and ask the reviewer to cover that
plus what it touches.
Run each reviewer from this skill's base directory:
uv run scripts/review_with_model.py run --author-provider openai --repo <repo> --prompt-file <file> --out <task-evidence>/review.md
Providers are openai, anthropic, and google. Each is started so that
it reads the repository with its own tools and has no way to write to it.
That includes dropping MCP servers, which the harnesses do not sandbox, and
the reviewed repository's own tool settings, which could start hooks. The
openai reviewer also ignores ~/.codex/config.toml, so settings there,
such as its default model, do not apply.
Reviewers have no network and are told to read only the checkout and files
the helper names. Pass each
file outside the repository that the review needs, such as a saved issue
or the overall DIRECTION.md, with a repeated --input FILE. The helper
copies it next to the diff, names it in the preamble and removes it after
the run. Links in the prompt stay unopened: the helper tells the reviewer
so and lists them in the result's unreachable_links. Before weighing the
review, pass any linked content it needed with --input and run it again.
Use the shared account-selection path,
where Context Panel is optional. The selected home applies only to the reviewer
child. Configured account selections remove inherited token and cloud-routing
overrides so they cannot bypass that home; the unconfigured CLI-login path
preserves the CLI's existing authentication environment. Neither reads or
changes credentials. JSON reports the selected account and, only for the
configured Context Panel integration, its count-only launch receipt. Add --details for
the account capacity report. Receipt
failures stop a configured launch. See account configuration
for existing-account mapping, storage recovery and Google's login binding.
Read model and effort in the JSON result and report the provider and
confirmed model. When model_source says the CLI did not report it, say so
instead of stating it as fact. A provider's default may be the author's own model; pass
--provider NAME --model MODEL to pick a permitted different one, and do not call a same-model run
independent.
Weigh the findings under the shared reference, then record in the pull request or owning issue: reviewers, what was acted on, what was declined and why, and what was reproduced.
Exit 0 means a completed review came back. Exit 1 means the run failed, and exit 2 means that provider's CLI is not installed. A reviewer that could not read files, or returned nothing, is reported as a failure, never as "no findings"; do not paper over it by pasting files into the prompt.
The helper requests a provider-neutral JSON completion result internally and
returns just its report as response or the output file. Only status: completed
with a nonempty review succeeds; a completed no-findings report may say none.
The review field is a string; requests for structured findings are encoded as
JSON text inside it, so callers still receive that text as their report.
Each provider's CLI enforces that result's JSON schema, and the helper reads
the CLI's validated object rather than the model's final text, which may carry
narration around the JSON. Anthropic and Google results say whether that object
was present in structured_output; Codex writes the constrained answer itself.
An explicit refused or incomplete status fails with that bounded outcome.
Missing or malformed completion evidence is unavailable, even after file reads;
its completion_shape says why (for example, text before the JSON object)
without quoting the response.
These failures retain model/account provenance but omit partial or withheld text;
they do not produce an output file or consume a planted finding. No refusal is
retried to obtain a different answer. This confirms the reviewer's declared
completion, not the correctness or coverage of its report; weigh those yourself.
OpenAI runs must show a successful shell command in their JSONL tool evidence;
an answer without one fails even when the CLI exits 0. This proves tool activity,
not that the reviewer read every relevant file; check the review's coverage too.
Failures distinguish no command attempts from attempts without a successful command.
Nonzero exits retain the JSON provider error and distinct stderr cause as bounded,
credential-redacted diagnostics; OpenAI's malformed stdout is never excerpted.
OpenAI's execution also reports elapsed seconds, the CLI exit code (null on
timeout), last and terminal event types, JSONL validity, whether an answer file
was produced, and failed command count. completion_shape distinguishes a
reviewer-declared incomplete or refused from malformed completion evidence.
command_diagnostics recognizes GitHub connection failures even when a later
command made the shell exit 0. These are observed execution signals, not proof
of the reviewer's reason; absent signals leave the cause unknown. No command,
source output, narration or partial report is quoted. A completed Codex turn
can still contain an incomplete review; it remains a failure without a retry.
uv run scripts/review_with_model.py check --author-provider openai --repo <repo> to see which
providers can read the repository from this machine before spending a review.denied_targets with the read tool and
a bounded path when the CLI supplies one; search
patterns and other tool inputs are omitted. A denied read remains a failure.read_file (view_file) for file reads, including
successive line ranges for large files. If a shell command is refused, the
helper reads only that run's saved conversation to name the command and
retries once with file tools only when the stopped run returned no response.
A nonempty response alongside a command denial remains unavailable without a retry.
recovery records the first refusal;
a second refusal remains a failure. The timeout applies to each attempt.
When the conversation is unavailable or
unreadable, command_diagnostic says why the exact command could not be found.
A command-only refusal does not call for broader permission grants.google failure that names denied file actions carries a hint with the exact
allow rules the user's own agy settings need. Show the user that hint. Apply
it with the configure subcommand only when the user asks: it edits their
personal tool configuration, and the rule applies to every agy session.google failure that lists rules outside the read-only set means the
user's own settings would let the reviewer do more than read. When every
listed rule is in stale_command_grants, they are the plain command(find)
and command(rg) grants this helper itself once told users to add and now
refuses. Run repair: it backs up the settings file beside itself, removes
only those grants, keeps every other setting, and prints the backup path.
During an executing-loop run, repair needs no Director step; it only takes
back what the helper asked for and would now refuse to start with. The helper
cannot tell whether the user later granted those two commands for their own
sessions, so the backup and the record are the safeguard: record the removed
grants and the backup path in the pull request, so the Director can put them
back with one copy if they want them. A write_file rule,
a command grant with arguments, a grant for a program the user allowed for
their own sessions such as command(git), or anything else the helper calls
ambiguous is the Director's to change: repair refuses it and changes
nothing, so show the result and ask, or use another provider. Do not edit
the settings file by any other route.agents/openai.yaml (opens in a new tab)references/provider-selection.md (opens in a new tab)scripts/fixtures/openai-incomplete-2166.json (opens in a new tab)scripts/review_policy.py (opens in a new tab)scripts/review_with_model.py (opens in a new tab)scripts/test_review_with_model.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
model-review, second-opinion, cross-provider, code-review, safety-review
27 skills in this plugin
/babysit-prBabysit a GitHub pull request by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks to monitor a PR, watch CI, handle review comments, keep an eye on failures/feedback, or when PR diagnosis, update/rebase/rerun work, safe-to-exit checks, or merge confirmation turns into ongoing CI/review/merge follow-through./directionUse when the Director starts a direction session, asks for a north star, dead reckoning, a daily or weekly direction check, a direction audit, or milestone proposals; when a repository's DIRECTION.md must be created or changed; or when an executing agent holds a reviewer finding that would change an agreed outcome, in either direction, and must escalate it instead of acting. The Director decides, the direction agent drafts and argues with evidence. Not for planning work inside a milestone (github-plan) or for running a reviewer (model-review)./docs-lookupUse when the answer depends on external docs, environment-specific operational context, or facts about the user's own setup, including devices, radios, networks, accounts, or what is installed where. Look up setup facts in the user's docs or reachable systems before asking the user. Includes discovering source-of-truth docs and access paths for private operations such as DNS or Cloudflare records, and finding where a credential, API token, or secret is stored, but not performing infrastructure actions or mutations.Other plugins' skills for the same job
Generated from the plugin's indexed repository (cbusillo/codex-skills) — no native marketplace selected
npx claudepluginhub p/cbusillo-shared