What
Auto mode lets Claude Code decide on its own whether a tool call is safe, using a classifier, an automatic checker. Claude Code also has a built-in check that can refuse commands that remove files. When either one refuses an action, the refusal can now say more:
toolResultRemedyis a new optional part of an auto-mode denial, of the form{kind:"allow_rule", tool}, naming a tool an allow rule would unblock. It depends onneedsClassifierToolCall,ccrSessionLimitedand the tool name, and is left out in some cases.- The remedy schema shared with host apps gains the kinds
allow_rule,check_failedandremoval_refused, after the existingadvice_to_claude. It also gains the fieldstool,check_failure,removal_riskandlong_sleep.long_sleepmarks a shell command refused for starting with a long sleep, andremoval_refusedmeans the removal check refused the command and no person approved it. - New tables sort classifier errors into
check_failedkinds and removal refusals intoremoval_refusedkinds, such astop_folder,variable_targetandunread_command. - When
needsClassifierToolCallis true, the help text the model sees after a blocked action is cut down to one sentence about continuing other tasks, without the auto-mode consent text.
The remedy is kept as toolResultRemedy in the transcript's redaction list.
Why
Apps built on the SDK can tell these refusals apart and act on them, for example by offering the allow rule that would let the tool run. The model also gets shorter wording in some auto-mode denials.