# Claude Code auto mode may still honor config file rules, says test

Digest AI · Agents & Tools · published 2026-11-30T15:06:00Z

Canonical: https://digestai.news/story/claude-code-auto-mode-may-still-honor-config-file-rules-says-test

## Summary

In this mode the tool skips the usual confirmation prompt and lets an internal classifier decide whether to block a risky operation. The feature is meant to speed up routine edits and command execution, but the official documentation warns that it does not guarantee complete safety. A rule was added to the settings file that requires confirmation before deleting a file. When the user asked the assistant to delete the file while in auto mode, a confirmation prompt appeared and the deletion was halted. The test confirmed that ‘ask’ rules in the configuration file take precedence over auto mode, while ‘deny’ rules are enforced in every mode. The author recommends writing explicit rules for any operation that must be confirmed, and suggests setting the defaultMode to ‘default’ if the user prefers to stay in manual mode. The article also notes that Bash rules do not work on Windows because Claude Code uses PowerShell for command execution.

## Key points

- Config file ‘ask’ rules still trigger confirmation prompts in auto mode on Windows, verified with Remove-Item test.
- Auto mode uses an AI classifier to block risky operations, but documentation says safety is not guaranteed.

## Why it matters

Developers using Claude Code rely on auto mode for speed, but understanding its safety limits and how config rules override it helps prevent accidental destructive actions and maintain workflow integrity.

## Sources

1. [Is Claude Code's Auto Mode Safe? | For those worried it's running "without confirmation": Testing on Windows whether config file rules take priority](https://note.com/tejun_shobo/n/nf45711117c80?hl=en) (note.com, 2026-11-30)

## Cite

Digest AI, "Claude Code auto mode may still honor config file rules, says test", 30 November 2026, https://digestai.news/story/claude-code-auto-mode-may-still-honor-config-file-rules-says-test

---

Written by Digest AI's editorial model from the linked sources; the sources are the record. Headlines, digests and key points are written by Digest AI and may be quoted with a link to the story page. Linked articles belong to their publishers. Terms: https://digestai.news/terms#reuse
JSON: https://digestai.news/story/claude-code-auto-mode-may-still-honor-config-file-rules-says-test.json
