Auto mode for Claude Code

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Claude Code users can now replace permission prompts with an AI classifier, but it is a non-deterministic safeguard that won't stop supply-chain attacks on unpinned dependencies.

Read this as

Anthropic has added an 'auto mode' to Claude Code, its command-line coding assistant. Instead of asking the human to approve every action, a separate safety model reviews each action before it runs and blocks ones that go beyond the requested task, touch infrastructure it doesn't recognise, or seem influenced by hostile content found in files or web pages. It still allows risky things through when intent is unclear, so it is a convenience rather than a guarantee.

Anthropic's Claude Code gains auto mode, which cuts the approval-prompt friction of agentic coding by delegating permission decisions to a Claude Sonnet 4.6 classifier with extensive default allow and block rules. The author warns it is probabilistic: it can't reliably stop prompt injection, and its default allow list would still have permitted the LiteLLM supply-chain attack via unpinned dependencies. Teams relying on --dangerously-skip-permissions gain guardrails; teams needing deterministic security should keep sandboxing.

Auto mode replaces --dangerously-skip-permissions in Claude Code: before each action, a separate classifier on Claude Sonnet 4.6 reviews the transcript and judges whether the action matches user intent. Defaults are inspectable via 'claude auto-mode defaults' (published as JSON): allow covers manifest-declared installs like pip install -r requirements.txt and in-scope local file ops; soft-deny covers git push --force, pushes to main, curl | bash, pickle/yaml.unsafe_load deserialization, and cloud storage mass deletes. Anthropic's docs concede the classifier may allow risky actions when intent is ambiguous, and Willison argues for deterministic sandboxing over probabilistic AI guardrails.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Claude Code Claude Sonnet 4.6 LiteLLM --dangerously-skip-permissions

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading