nox-review
Run an adversarial review of a code diff or a plan artifact under a second AI harness, headlessly, from an ephemeral git worktree with the repository's own…
от ocx-sh★ 20 звёзд на GitHub
Установить nox-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
nox-review — adversarial review under a second harness
What this does
nox reviews a change under an AI harness other than the one that wrote it.
It builds a pair of synthetic commits with every instruction file, hook and
agent-config file removed from the tree, checks the target out into an
ephemeral git worktree it owns, and spawns the reviewing harness there under a
minimal environment. The reviewer sees the change — not the repository's
instructions, and not its hooks.
What the minimal environment does and does not withhold. It is an
allowlist: everything outside it is dropped, credential-shaped names are
dropped on top of that, and nox forwards no credential value of its own. But
the allowlist deliberately carries HOME and each harness's own
config-directory variables, because that is the only way the reviewing harness
authenticates at all — it reaches its own credential store exactly as it does
when you run it yourself. "The reviewer cannot reach my secrets" is not a claim
this makes.
Writes and network reach are held per harness, and how strongly differs.
os is the operating system's, and is established only once nox has probed
that the sandbox really holds; harness is the harness's own primitive,
visible in the resolved argv; attested is self-declared and never probed — a
claim, not evidence. Every run stamps what it established on its containment:
line; weigh the findings against that line rather than against a level you
assumed.
nox changes nothing in the repository under review. It does append one line per
run to a local call log — calls.jsonl under $XDG_STATE_HOME/nox, by default
~/.local/state/nox/ — carrying the timestamp, the harness, the model, the
duration, the outcome, the cost and a count of warnings. Never findings, never
harness output.
Scopes
--scope code-diff reviews a branch diff against a base (--base <ref>), or
the working tree when you pass no --base.
--scope plan-artifact reviews a single file — a plan, an ADR, a spec — named
by --path <file>.
Running it
python3 <skill-dir>/scripts/nox.pyz review \
--scope <code-diff|plan-artifact> \
[--base <ref> | --path <file>] \
[--harness <name>] \
[--exclude <the harness you are running as>] \
[--authored-by <model>] \
[--repo <path>]
Bracketed arguments are optional; drop the brackets when you pass one.
--repo <path> is the repository under review. Without it, nox reviews the
current working directory — so pass it whenever you are not already there.
--authored-by <model> names the model that wrote the change. Supply it when
you know it: some writer/reviewer model pairings are measurably weak, and nox
attaches a warning to those. Leave it off when you do not know.
Finding the skill directory
<skill-dir> is the directory holding this SKILL.md, as your client
presents it — substitute that directory's absolute path. Skills install
under client-specific roots, so there is no cross-client path to hardcode, and
a relative scripts/… breaks the moment the working directory is not the
skill directory.
When your client does not present that directory, resolve it: run
grim status --format json, take the top-level items[] array, find the entry
whose name is nox-review, and use the path of that entry's outputs[]
entries. (Probed on grim 0.14.0; before install the same shape appears under
outputs_pending[].)
Before the first run
nox forwards no credential, so every harness must already be signed in through its own flow. Two prerequisites are easy to miss:
The binary has to be reachable. Most are on
PATH.opencodecommonly is not — it ships behind a package runner — and nox then reports itabsentuntil a launcher is configured for it.launcheris trust-gated, so it must live in the user-levelnox.toml; a repository's own file cannot supply one.[harness.opencode] launcher = ["ocx", "package", "exec", "ocx.sh/anomalyco/opencode:1.18.22", "--"]POSIX only. On Windows the run refuses
unsupportedbefore anything is spawned.
Choosing the harness
--harness <name> selects the reviewer and wins over everything else. Omit it
and nox falls back to [review] harness in nox.toml, of which there are two:
the user-level file ($XDG_CONFIG_HOME/nox/nox.toml, by default
~/.config/nox/nox.toml) and the first one found searching upward from the
repository, whose value wins over the user-level one.
With neither, the run refuses with an invalid-configuration error listing every harness registered in the build you have. That message is the current set — nox generates it from its own registry — so read it there rather than trusting a list written down anywhere, this file included.
There is no shipped default. The explicit cross-model choice is the whole product claim, so nox will not guess one for you.
Which harness to pick
Pick any registered harness other than the one you are run
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/nox.pyz
FAQ
Что делает скилл nox-review?
Run an adversarial review of a code diff or a plan artifact under a second AI harness, headlessly, from an ephemeral git worktree with the repository's own instruction, hook and credential files removed. Use when a change needs a reviewer that did not write it, when a cross-model second opinion is wanted before something lands, or when a plan or an ADR should be argued against by a different model.
Как установить скилл nox-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nox-review запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…