Answer: You define trusted infrastructure by setting the `autoMode.environment` field, which tells the classifier which repos, buckets, and domains are trusted. You can include the literal string `"$defaults"` in the array to keep default entries and add your own entries alongside them. Status: Confirmed Entry: tool/claude-code/permissions-and-security/define-trusted-infrastructure Revision: 4 Digest: sha256:b75633257d55cee2 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:03:19Z Last changed: 2026-11-20T12:18:10Z (verify command: — → claude auto-mode config) Last verified: 2026-11-20T12:18:10Z Next check: 2026-11-21T12:18:10Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of config field | autoMode.environment | [1] | 2026-11-20 defaults placeholder | $defaults | [1] | 2026-11-20 trust slots | Trusted repo, Source control, Trusted internal domains, Trusted cloud buckets, Key internal services, and Internal package registry | [1] | 2026-11-20 verify command | claude auto-mode config | [1] | 2026-11-20 host containment version | v2.1.257 | [1] | 2026-11-20 Sources: [1] Anthropic. "Configure auto mode". https://code.claude.com/docs/en/auto-mode-config.md Role: primary. Accessed: 2026-11-20T12:18:10Z Quote: "For most organizations, `autoMode.environment` is the only field you need to set." (Supports: config field) Quote: "include the literal string `"$defaults"` in the array" (Supports: defaults placeholder) Quote: "The slots are Trusted repo, Source control, Trusted internal domains, Trusted cloud buckets, Key internal services, and Internal package registry." (Supports: trust slots) Quote: "run `claude auto-mode config` to [confirm the rules]" (Supports: verify command) Quote: "Requires Claude Code v2.1.257 or later" (Supports: host containment version) Published: 2026-11-20T10:36:06Z Snapshot SHA-256: d14bc65ba9a3643767edb8574e35a019e2f108e9804bcb6ff270eb9f3d966522 (captured 2026-11-19T12:13:55Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-19T12:13:53Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:18:10Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:18:10Z Last attempt: 2026-11-20T12:18:10Z Notes and limitations: Extracted automatically from a single official source (section "Define trusted infrastructure"). Related: https://latestn.com/tool/claude-code/permissions-and-security/disable-permission-prompts-unattended How do I turn off permission prompts in unattended Claude Code runs? https://latestn.com/tool/claude-code/permissions-and-security/enable-sandbox How do I enable or disable sandboxing in Claude Code? https://latestn.com/tool/claude-code/permissions-and-security/enable-sandboxed-bash How do I enable the sandboxed Bash tool in Claude Code and confirm commands run inside the sandbox? https://latestn.com/tool/claude-code/permissions-and-security/configure-security-policies What security policies should organizations configure for Claude Code? https://latestn.com/tool/claude-code/permissions-and-security/control-custom-tool-access How do I control which custom tools Claude Code can access or require approval for? https://latestn.com/tool/claude-code/permissions-and-security/control-permissions How do I control what Claude Code is allowed to do? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:18:10Z | changed | verify command: — → claude auto-mode config | [1] 2026-11-20T12:18:10Z | changed | config field: — → autoMode.environment | [1] 2026-11-20T12:18:10Z | changed | confirm command: claude auto-mode config → — | [1] 2026-11-20T12:18:10Z | changed | field to set: autoMode.environment → — | [1] 2026-11-18T12:13:54Z | changed | host containment version: — → v2.1.257 | [1] 2026-11-18T12:13:54Z | changed | confirm command: — → claude auto-mode config | [1] 2026-11-18T12:13:54Z | changed | trust slots: — → Trusted repo, Source control, Trusted internal domains, Trusted cloud buckets, Key internal services, and Internal package registry | [1] 2026-11-18T12:13:54Z | changed | defaults placeholder: — → $defaults | [1] 2026-11-18T12:13:54Z | changed | field to set: — → autoMode.environment | [1] 2026-11-18T12:13:54Z | changed | Host containment version requirement: v2.1.257 → — | [1] 2026-11-18T12:13:54Z | changed | Verification command: claude auto-mode config → — | [1] 2026-11-18T12:13:54Z | changed | Trust slots: Trusted repo, Source control, Trusted internal domains, Trusted cloud buckets, Key internal services, and Internal package registry → — | [1] 2026-11-18T12:13:54Z | changed | Defaults inclusion string: $defaults → — | [1] 2026-11-18T12:13:54Z | changed | Required field: autoMode.environment → — | [1] 2026-11-16T12:06:48Z | changed | Host containment version requirement: — → v2.1.257 | [1] 2026-11-16T12:06:48Z | changed | Verification command: — → claude auto-mode config | [1] 2026-11-16T12:06:48Z | changed | Trust slots: — → Trusted repo, Source control, Trusted internal domains, Trusted cloud buckets, Key internal services, and Internal package registry | [1] 2026-11-16T12:06:48Z | changed | Defaults inclusion string: — → $defaults | [1] 2026-11-16T12:06:48Z | changed | Required field: — → autoMode.environment | [1] 2026-11-16T12:06:48Z | changed | host containment version: v2.1.257 → — | [1] 2026-11-16T12:06:48Z | changed | verification command: claude auto-mode config → — | [1] 2026-11-16T12:06:48Z | changed | trust slots: Trusted repo, Source control, Trusted internal domains, Trusted cloud buckets, Key internal services, and Internal package registry → — | [1] 2026-11-16T12:06:48Z | changed | defaults placeholder: $defaults → — | [1] 2026-11-16T12:06:48Z | changed | primary field: autoMode.environment → — | [1] 2026-11-13T03:03:19Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/permissions-and-security/define-trusted-infrastructure/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/permissions-and-security/define-trusted-infrastructure POST: https://latestn.com/dispute/tool/claude-code/permissions-and-security/define-trusted-infrastructure with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/permissions-and-security/define-trusted-infrastructure?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I define trusted infrastructure for Claude Code auto mode? Revision 4, last verified 2026-11-20T12:18:10Z. https://latestn.com/tool/claude-code/permissions-and-security/define-trusted-infrastructure (accessed 2026-11-21T09:57:55Z). @misc{LatestN_tool_claude_code_permissions_and_security_define_trusted_infrastructure_r4, title = {How do I define trusted infrastructure for Claude Code auto mode?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/permissions-and-security/define-trusted-infrastructure}}, note = {Revision 4; digest sha256:b75633257d55cee2; last verified 2026-11-20T12:18:10Z; accessed 2026-11-21T09:57:55Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/permissions-and-security/define-trusted-infrastructure