Skip to content

Source-derived protocol · AI Engineer

Auto Mode Settings Configuration

Open your settings and write in plain English which repos, buckets, and domains you trust, and what auto mode should always allow or never do.

1 action

AI Engineer's principle

If you still have to approve a lot of commands even in auto mode, the first thing to look at is settings, because you can configure auto mode in your own settings in plain English.

Your version

1 total

Configure auto mode in your settings so it always allows what you trust and never does what you forbid.

From this source · Adapted for your goal

  1. Open your settings and write in plain English which repos, buckets, and domains you trust ([which repos do you trust auto mode to work in], [which buckets do you trust auto mode to work in], [which domains do you trust auto mode to work in]), and what auto mode should always allow ([should auto mode always allow]) or never do ([should auto mode never do]).

    Setup · onceDone when: Your settings contain, in plain English, the repos, buckets, and domains you trust, and what auto mode should always allow or never do.

Why it works

What AI Engineer says this builds. Their framing, not ours — every line links to where they said it.

  • Decide what needs a rule by asking: if Claude gets this wrong once, can I take it back?

    Lydia Hallie's heuristic for deciding what needs a rule versus what the model can know comes down to: if Claude gets this wrong once, can I take it back? If Claude writes the wrong code, you can still revert that, so you can leave that to the model. But if it throws away uncommitted changes or reads a file that's now in your transcript and you don't want that, that should still be a rule. If you want to make sure Claude can never read your .env file, add a deny rule; with such a rule, commands like cat cannot open that file either.

    View in the full analysis →
  • Compromised scripts can exfiltrate secrets even under manual approval

    Lydia Hallie explains that running npm test can execute compromised dependency code that reads .env files or SSH keys and sends them to unknown servers. Even when humans were approving everything manually, they would have just clicked allow because there was nothing visible to say no to — the dangerous access is just part of the script. A deny rule only sees the top-level command (like npm test), not which files the script ends up opening, so side effects escape the rule.

    View in the full analysis →
  • Guarantees of safety can only be enforced in the harness, and deny rules are the best way to make Claude never do something

    Lydia Hallie argues that if you want a guarantee of safety, you can only enforce that in the harness. Having deny rules for specific tool calls in your project is still the best way to make sure Claude never does something: if a tool call matches a deny rule, the auto mode classifier never even sees it because Claude Code checks the rule before the classifier.

    View in the full analysis →
Source and verification

Source-derived protocol

Based on “Rethinking Claude Code Best Practices — Lydia Hallie, Anthropic” by AI Engineer.

  • Source fidelity verifiedPassed · Nov 19, 2026
  • Checked that it can be followedPassed
  • Editorially reviewedNot yet
  • Supported by independent sourcesNot evaluated

Source fidelity means each creator-worded element was checked against the exact statements it cites. It says nothing about whether the approach works.

mind