Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Claude Approvals classifiers changedapprovals-classifiers

Nearest release: v2.1.335, published under an hour before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 2 Dec 2026 22:51 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 2 Dec 2026 23:07 UTC.

Upstream edited
Recorded here
Lines+7added
Lines−7removed
From line 2 where the diff opens
First seen 23 Nov 2026 this site's first read of the page
Recorded edits2to this page, all time

The whole hunk

from line 2, old and new numbered
/
lines
from line 2
22 
33> Let a Claude Approvals rule depend on Code Review's answer or on a question you define. Add a classifier, read its answer, and limit what a run costs.
44 
5In [Claude Approvals](https://code.claude.com/docs/en/approvals.md), the rules in your [policy file](https://code.claude.com/docs/en/approvals-policy.md) decide who has to approve a pull request. A classifier lets a rule depend on a judgment about the change, such as whether Code Review passed or how risky the change is. For example, a rule can ask for two people, and for only one when a classifier rates the change as low risk.
5In [Claude Approvals](https://code.claude.com/docs/en/approvals.md), you decide who has to approve a pull request by writing rules in your [policy file](https://code.claude.com/docs/en/approvals-policy.md). A classifier answers a question about the change, such as whether Code Review passed or how risky the change is, and you can make a rule depend on its answer. For example, you can require two people, or only one when a classifier rates the change as low risk.
66 
77A rule can decide from paths, facts, and classifiers:
88 
from line 58
5858 
5959A classifier takes its name from its folder. The example is saved at `.claude/classifiers/change_risk/def.yml`, so you write `repo/change_risk` in your policy file's rules.
6060 
61To use the rating, compare it with a value in a rule's condition. For example, `if: "repo/change_risk = low"` is true when the model answered `low`. For a rule that asks for fewer people under that condition, see [Read a classifier's answer from a rule](#read-a-classifier’s-answer-from-a-rule).
61To use the rating, compare it with a value in a rule's condition. For example, `if: "repo/change_risk = low"` is true when the model answered `low`. To require fewer people under that condition, see [Read a classifier's answer from a rule](#read-a-classifier’s-answer-from-a-rule).
6262 
6363## Classifiers Anthropic provides
6464 
from line 98
9898 
9999### When a classifier's answer appears
100100 
101After you merge a classifier's definition and the rule that names it, wait five minutes. Then open a pull request that isn't a draft and that changes a file that rule's `paths` match. Look for the classifier's line in one of these places:
101After you merge a classifier's definition and the rule that names it, wait five minutes. Then open a non-draft pull request that changes a file matching the rule's `paths` patterns. Look for the classifier's line in one of these places:
102102 
103103* **Claude's comment**: under **Classifier results**
104104* **The Claude Approvals check's summary**: under **Advisory classifiers (not counted toward this verdict)**
from line 116
116116 
117117Keep the strict verdict on the rule itself, because the rule's verdict applies [when a run gives no answer](#what-a-rule-sees-when-a-classifier-run-gives-no-answer).
118118 
119This rule asks for two people, and for one while `repo/change_risk` answers `low`:
119To require two people, or one when the `repo/change_risk` classifier answers `low`, write a rule like this one:
120120 
121121```yaml theme={null}
122122# .claude/approvals.yml
from line 223
223223 
224224## How a classifier run behaves
225225 
226A rule's result can turn on when its classifier runs, what the run can read, and what happens when it gives no answer.
226Your rule's result can depend on when its classifier runs, what the run can read, and whether it answers.
227227 
228228### When a classifier runs
229229 
from line 253
253253 
254254| A condition reads | When |
255255| :- | :- |
256| `incomplete` | The run began and ended with no answer |
257| `error` | The run couldn't start, was broken off, or outlasted the check's wait |
256| `incomplete` | The run ended by itself without a usable answer, such as at its [time or cost limit](#budget) |
257| `error` | The run failed to start, was broken off, or ran longer than the check waits |
258258 
259259In both cases, an override that needs the answer leaves the rule's own `verdict` in place. A rule's own `if` that needs the answer fails the **Claude Approvals** check, with the title **A classifier had no result**.
260260 
Feedback