Omniscio

OmniscioGuidesAuto mode setup

Auto mode setup: what the classifier trusts, and how to tell it

Auto mode asks a classifier to review actions before they run, and the classifier is only as useful as what it knows about your infrastructure. This page covers that half: the scopes it reads, the draft command that writes them, and the rule tiers that decide which one wins.

Two neighbours are worth telling apart. Permission modes covers what auto mode is, how it compares with accept-edits and bypass, and what the classifier blocks by default. Auto mode unavailable covers the messages you get when the classifier cannot answer. This page owns the configuration: trusted repos, buckets and domains, the rules, and the draft.

Sources read November 25, 2026. By the Omniscio team. Updated .

Where the classifier reads configuration

The classifier reads the same CLAUDE.md content Claude itself loads, so an instruction like "never force push" in your project's CLAUDE.md steers both Claude and the classifier at the same time. Project conventions belong there.

Rules that apply across projects, such as trusted infrastructure or organization-wide deny rules, belong in the autoMode settings block instead. The classifier reads it from three scopes:

Where an autoMode block is read
ScopeFileUse for
One developer~/.claude/settings.jsonPersonal trusted infrastructure
Organization-wideManaged settingsTrusted infrastructure distributed to every developer
--settings flag or Agent SDKInline JSONPer-invocation overrides for automation

The files it ignores, and why

The classifier does not read autoMode from .claude/settings.json or .claude/settings.local.json. Both live in the repository, so a checked-in repo or a build step could otherwise inject its own allow rules. If an autoMode block is sitting in .claude/settings.local.json, the documented fix is to move it to ~/.claude/settings.json.

Entries from each scope are combined. A developer can extend environment, allow, soft_deny and hard_deny with personal entries, but cannot remove entries managed settings provide.

There is one asymmetry worth knowing before you treat this as a policy boundary. Allow rules act as exceptions to soft block rules inside the classifier, so a developer-added allow entry can override an organization's soft_deny entry: the combination is additive, not a hard policy boundary. In practice a personal allow can still let one action through while the organization's line remains, which is why tool-pattern blocks that must hold regardless belong in permissions.deny in managed settings; that list also runs before the classifier. The managed settings guide covers that delivery path.

Defining trusted infrastructure

For most organizations, autoMode.environment is the only field you need to set. It tells the classifier which repos, buckets and domains are trusted, which is how it decides what "external" means: any destination not listed is a potential exfiltration target.

claude auto-mode defaults prints the three kinds of entry the block accepts.

  • Context slots describe your organization, stack and security posture, such as the organization itself, the primary use of Claude Code, cloud providers, repository visibility, internal sharing, org-specific CLIs, secrets management, CI/CD deploy targets, network posture, host containment, protected deployment namespaces, and data retention.
  • Trust slots name what counts as inside your boundary: trusted repo, source control, trusted internal domains, trusted cloud buckets, key internal services and internal package registry. The repo and source-control entries default to the working repository and its configured remotes, and every other slot defaults to nothing configured.
  • Sensitivity slots name what the protective rules treat as high-risk: sensitive data locations and audiences, sensitive remote targets, and protected infrastructure-as-code scopes. A host or namespace counts as a sensitive remote target when prod or production is a whole word in its name, so prod-db counts and webprod01 does not.

Write entries the way you would explain them to a person

Entries are prose, not regex or tool patterns, because the classifier reads them as natural-language rules. The documented starting point keeps the defaults and adds the organization's own infrastructure:

{
  "autoMode": {
    "environment": [
      "$defaults",
      "Source control: github.example.com/acme-corp and all repos under it",
      "Trusted cloud buckets: s3://acme-build-artifacts, gs://acme-ml-datasets",
      "Trusted internal domains: *.corp.example.com, api.internal.example.com",
      "Key internal services: Jenkins at ci.example.com, Artifactory at artifacts.example.com"
    ]
  }
}

A rollout does not have to be complete on day one. Anthropic's own suggested order is the defaults plus your source-control org and key internal services, which clears the most common false positives such as pushing to your own repositories, then trusted domains and buckets, then the rest as blocks come up.

Add the block to the ~/.claude/settings.json you already have rather than replacing the file, since the same file holds your other settings. Then run claude auto-mode defaults to print the entries Anthropic ships, and claude auto-mode config to print the effective rules, which is where you confirm yours are in the list.

Drafting it with /auto-mode-setup

Run /auto-mode-setup and Claude Code drafts autoMode.environment entries, and sometimes rule entries, from your project and your recent sessions in it. If you accept the draft, it writes them to ~/.claude/settings.json.

Availability

The command is available on Pro, Max, Ultra, Team and Enterprise plans and with a Claude Console API key. On Pro, Max, Ultra or Team it needs v2.1.228 or later, or v2.1.233 or later on native Windows; on Enterprise or with a Console API key it needs v2.1.283 or later.

What it reads

If your settings already hold autoMode entries, Claude Code first asks whether to add to your environment list or replace it, and it keeps the rules you wrote either way. It then asks how you use the project and offers two optional scans before scanning anything.

Three sources are always read: the project's CLAUDE.md, README.md, config files and git remotes; your autoMode and permissions.allow settings; and the hosts, buckets and command names from the commands Claude ran in your recent sessions in this project, never your messages.

The two optional scans add one source each: the first word of each command in your shell history, and the remote hosts and names of the repositories under your home directory.

Reviewing and saving

The scan runs in the background and then shows you a draft you accept or discard as a whole, so adjusting a single entry afterwards means editing the settings file. When you accept, Claude Code reconciles the draft with what you already have.

  • If you chose to add to the environment list, any "$defaults" entry survives. If you chose to replace that list, it does not, so add "$defaults" back to keep the default entries.
  • The draft includes "$defaults" in each of the allow, soft_deny and hard_deny lists it adds to, unless you already wrote an allow list without it, so the built-in rules you have not replaced stay in effect.
  • After saving, it offers to remove permissions.allow rules in your user settings that auto mode ignores, such as Bash(*), or that auto-approve destructive commands.

Then run claude auto-mode config to see the result.

Overriding the block and allow rules

Three more fields add to the classifier's built-in rules, and each is an array of prose descriptions: autoMode.hard_deny for actions to block even when the user asks, autoMode.soft_deny for destructive actions user intent can clear, and autoMode.allow for exceptions to soft block rules. Tool-pattern hard blocks that must run before the classifier belong in permissions.deny.

Inside the classifier, precedence works in four tiers:

  1. hard_deny rules block unconditionally, and neither user intent nor an allow exception applies.
  2. soft_deny rules block next, and user intent or an allow exception can override them.
  3. allow rules then override matching soft_deny rules as exceptions.
  4. Explicit user intent overrides the remaining soft blocks when the user's message directly and specifically describes the exact action. "Clean up the repo" does not authorize a force push; "force-push this branch" does.

Include "$defaults" in every list you set. Each section is evaluated independently, so setting environment alone leaves the default allow, soft_deny and hard_deny lists intact, while a list you write without "$defaults" replaces that list's built-in rules.

Editing the rules without a settings file

Run /permissions in the CLI and select the Auto mode tab to view and edit classifier rules and environment entries. The tab needs v2.1.246 or later and appears only when auto mode is available to the session; entries from managed settings or --settings show as read-only, and every change is saved to ~/.claude/settings.json.

The desktop app has no Auto mode tab, and in a local, WSL or SSH session you edit the autoMode block in the user settings file on the machine or WSL distribution where the session runs.

Narrow shell allow rules still run first

In auto mode, Claude Code drops broad allow rules such as Bash(*). Narrow Bash and PowerShell rules such as Bash(npm test) stay in effect and resolve before the classifier runs, unless the command carries per-command allowed domains.

That is a real gap: a narrow rule can let a destructive argument through without the classifier seeing it, for example a script path or flag the rule's prefix did not anticipate. Setting autoMode.classifyAllShell to true suspends Bash and PowerShell allow rules while auto mode is active, at the cost of a classifier decision on every command only an allow rule would have approved.

Turning the setup command off, and when it goes missing

Once auto mode has blocked several actions and you still have no autoMode.environment entries, Claude Code offers to run /auto-mode-setup for you at the end of a turn. "Don't show again" stops the offer and keeps the command.

To turn off both the command and the offer, add a skillOverrides entry to your user settings:

{
  "skillOverrides": {
    "auto-mode-setup": "off"
  }
}

The command is built in rather than bundled, so this override applies to it while disableBundledSkills does not turn it off.

"Unknown command: /auto-mode-setup"

Anthropic names three causes. It is the first session after an install or upgrade, so start a new session. The version may be below the minimum for your plan, which claude --version answers. Or the session has feature-flag fetching off, as with telemetry off, a third-party provider or the Claude apps gateway, on a build before v2.1.304.

In a cloud session the command prints that it is not available in this environment, and the documented answer is to run it in an interactive session in your terminal.

A session whose classifier cannot answer at all produces its own messages, which the auto mode unavailable guide separates one by one.

Sources

Every line on this page rests on one of these. The date beside each one is the day we read it.

  • Configure auto mode, for the scopes the classifier reads, trusted infrastructure and the three kinds of environment slot, the example block, /auto-mode-setup and what it scans, the rule tiers and precedence, the /permissions Auto mode tab, classifyAllShell, and the "Unknown command" causes. Read November 25, 2026.
  • Permission modes, for what auto mode is and what the classifier blocks by default. Read November 25, 2026.
  • Managed settings, for the delivery path for an organization-wide autoMode block and for permissions.deny. Read November 25, 2026.

This page names plan gates, version floors and a settings-block shape that Anthropic moves between releases. Read the source again before you trust a copy of this page from a few months back.

Common questions

What does /auto-mode-setup do?

It has Claude Code draft autoMode.environment entries, and sometimes rule entries, from your project and your recent sessions in it. If you accept the draft, Claude Code writes it to ~/.claude/settings.json.

Where does the auto mode classifier read its settings?

It reads the same CLAUDE.md content Claude loads, and the autoMode block from your user settings, managed settings, and the --settings flag or Agent SDK. It does not read autoMode from project settings or settings.local.json, because a checked-in repo could otherwise inject its own allow rules.

Why do I need $defaults in every autoMode list?

The literal string $defaults splices Anthropic's built-in entries in at that position. A list you set without it replaces that list's defaults, so each section you edit should carry it.

Why does /auto-mode-setup say Unknown command?

Usually one of three causes: it is the first session after an install or upgrade, the version is below the minimum for your plan, or the session has feature-flag fetching off on a build before v2.1.304. In a cloud session it prints that it is not available in this environment instead.

Do my allow rules still apply in auto mode?

Broad allow rules such as Bash(*) are dropped, while narrow Bash and PowerShell rules such as Bash(npm test) stay in effect unless you set autoMode.classifyAllShell to true. A narrow rule can still let a destructive argument through, because the classifier never sees it.

Every session, one window

Omniscio runs several agent sessions side by side in one window, each with its own context and its own diff view. Any model, any harness — Claude Code, Codex, OpenCode, Devin, Pi, and Hermes all supported.