Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"name": "preallow",
"source": "./plugins/preallow",
"description": "Runs the steps of the task you gave that the auto-mode classifier blocks: a model judge allows what is reversible or what you explicitly asked for"
"description": "Runs the steps of the task you gave that the auto-mode classifier blocks: auto review allows what is reversible or what you explicitly asked for"
}
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Claude Code plugins published as the `entwining-mods` marketplace. The plugins u

## Let task steps run in auto mode

[preallow](plugins/preallow) asks a model judge about the calls Claude Code's auto-mode classifier blocks. Calls the judge allows run anyway. Other calls keep Claude Code's native approval flow.
[preallow](plugins/preallow) reviews the calls Claude Code's auto-mode classifier blocks with a model. Calls it allows run anyway. Other calls keep Claude Code's native approval flow.

## Install

Expand Down
16 changes: 8 additions & 8 deletions plugins/preallow/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"name": "preallow",
"version": "0.0.15",
"description": "Lets Claude Code auto mode run the steps of the task you gave when its classifier blocks them: a model judge allows what is reversible or what you explicitly asked for",
"version": "0.0.16",
"description": "Lets Claude Code auto mode run the steps of the task you gave when its classifier blocks them: auto review allows what is reversible or what you explicitly asked for",
"author": {
"name": "Entwining"
},
"license": "MIT",
"userConfig": {
"model": {
"type": "string",
"title": "Judge model",
"description": "The model the first judge runs on, for every call the auto-mode classifier blocks, passed to the model client as you write it: an alias or a full model id. Leave empty for the plugin's default pair, haiku with a second judge on opus. If you set it and leave Escalation model empty, there is no second judge."
"title": "Review model",
"description": "The model the first reviewer runs on, for every call the auto-mode classifier blocks, passed to the model client as you write it: an alias or a full model id. Leave empty for the plugin's default pair, haiku with a second reviewer on opus. If you set it and leave Escalation model empty, there is no second reviewer."
},
"effort": {
"type": "string",
"title": "Judge effort",
"description": "How hard the first judge thinks, passed to the model client as you write it. Leave empty for the plugin's default."
"title": "Review effort",
"description": "How hard the first reviewer thinks, passed to the model client as you write it. Leave empty for the plugin's default."
},
"escalation_model": {
"type": "string",
"title": "Escalation model",
"description": "The model of a second judge for every call the first judge did not allow, failures included; it judges the call again from the start, and its verdict is final. Passed as you write it. Leave empty for opus when Judge model is empty too, or for no second judge when you set Judge model."
"description": "The model of a second reviewer for every call the first reviewer did not allow, failures included; it reviews the call again from the start, and its verdict is final. Passed as you write it. Leave empty for opus when Review model is empty too, or for no second reviewer when you set Review model."
},
"escalation_effort": {
"type": "string",
"title": "Escalation effort",
"description": "How hard the second judge thinks, passed to the model client as you write it. Leave empty for the plugin's default. Setting it does not add a second judge on its own."
"description": "How hard the second reviewer thinks, passed to the model client as you write it. Leave empty for the plugin's default. Setting it does not add a second reviewer on its own."
}
}
}
26 changes: 13 additions & 13 deletions plugins/preallow/AGENTS.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions plugins/preallow/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.0.16 - 2026-12-01

- The judge is now called auto review, in the docs, the `/config` titles (Review model, Review effort), and the log: a call auto review was asked about is logged as `reviewed`, where it was `judged`. What it allows and the settings' keys are unchanged.

## 0.0.15 - 2026-11-30

- Deleting the only branch or other ref that holds some commits counts as losing them unless another ref contains them or every one of them has an equivalent patch in the branch the ref follows or a remote's default branch, so the judge no longer allows it without your explicit words. Before, the policy listed local commits as recoverable, and the judge sometimes allowed such a deletion because git keeps unreferenced commits until they are pruned and the agent had seen their hashes.
Expand Down
16 changes: 8 additions & 8 deletions plugins/preallow/README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# preallow

preallow lets Claude Code auto mode run task steps its classifier blocks when a model judge allows them. It requires Claude Code 2.1.326 or later.
preallow lets Claude Code auto mode run task steps its classifier blocks when auto review allows them. It requires Claude Code 2.1.326 or later.

## Judge what the classifier blocks
## Review what the classifier blocks

Claude Code's auto mode classifier decides each call first, and the calls it allows run as before. When it blocks a call or gives no verdict, the judge [applies one policy to every tool](docs/usage.md#what-the-judge-allows). It allows task steps that can be undone and irreversible effects you explicitly requested. Leaks, calls outside your task, and calls that violate your instructions keep the classifier's verdict.
Claude Code's auto mode classifier decides each call first, and the calls it allows run as before. When it blocks a call or gives no verdict, auto review [applies one policy to every tool](docs/usage.md#what-auto-review-allows). It allows task steps that can be undone and irreversible effects you explicitly requested. Leaks, calls outside your task, and calls that violate your instructions keep the classifier's verdict.

## Keep native approval boundaries

preallow never changes an `allow`, and it changes only a verdict the classifier gave. [Settings rules, other approval owners, and calls it cannot cover](docs/usage.md#what-it-leaves-to-native-approval) keep native approval. Disabling the plugin restores Claude Code's native flow.

## Redact credential-shaped output

For calls the judge allowed, preallow [redacts credential-shaped values or withholds output it cannot redact](docs/usage.md#output-it-redacts). The scan can miss credentials and redact text that is not a credential. It does not scan calls Claude Code or the classifier allowed.
For calls auto review allowed, preallow [redacts credential-shaped values or withholds output it cannot redact](docs/usage.md#output-it-redacts). The scan can miss credentials and redact text that is not a credential. It does not scan calls Claude Code or the classifier allowed.

## Configure the judges
## Configure auto review

You can [choose the models and effort in `/config`](docs/usage.md#settings). A second judge can review calls the first did not allow. Each judge reads [your kept messages, the call's input, and the agent's recent tool calls](docs/usage.md#what-the-judge-reads), which can show what a call acts on but never grant it.
You can [choose the models and effort in `/config`](docs/usage.md#settings). A second reviewer can review calls the first did not allow. Each reviewer reads [your kept messages, the call's input, and the agent's recent tool calls](docs/usage.md#what-auto-review-reads), which can show what a call acts on but never grant it.

## Install

Expand All @@ -28,8 +28,8 @@ Start a new session after installing or updating. Third-party marketplace plugin

## Know the limits

The judge can lose earlier instructions, take state the agent read earlier as still true, or be misled by a tool result, and output delivered later can escape the scan. The [known gaps](docs/usage.md#known-gaps) describe these limits and the scan's misses and false positives.
The reviewer can lose earlier instructions, take state the agent read earlier as still true, or be misled by a tool result, and output delivered later can escape the scan. The [known gaps](docs/usage.md#known-gaps) describe these limits and the scan's misses and false positives.

Tool inputs are logged without scanning. A credential in a command or file edit lands in the local log. The [log records the classifier's verdicts, the judge's, failures, and redaction events](docs/usage.md#reading-the-log).
Tool inputs are logged without scanning. A credential in a command or file edit lands in the local log. The [log records the classifier's verdicts, the reviewer's, failures, and redaction events](docs/usage.md#reading-the-log).

preallow is released under the [MIT License](LICENSE).
Loading