Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

24 pages for additionaldirectories.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

migration Claude Developer Platform · in the page managed-agents/migration …| | `cwd`, `add_dirs` (typescript: `additionalDirectories`) point at local paths | Upload or mount [files](https://platform.claude.com/docs/en/managed-… Use Claude Code features in the SDK Claude Code CLI · in the page agent-sdk/claude-code-features …and `.claude/agents/` folders of each directory you pass through the `additionalDirectories` or `add_dirs` option, which the SDK passes to Claude Code as [`--add-dir`](/docs/en/permissions#additional-… Configure your agent Claude Code CLI · in the page agent-sdk/configuration …let tools reach files outside the working directory, add paths with `additionalDirectories` (TypeScript) or `add_dirs` (Python). For the scope of that grant, see [Additional directories grant file ac… Configure permissions Claude Code CLI · in the page agent-sdk/permissions …cp`, `sed` Both apply only to paths inside the working directory or `additionalDirectories`. In `acceptEdits` mode, Claude Code doesn't auto-approve the request when Claude: * Works on a path outsid… Extend agents with skills Claude Code CLI · in the page agent-sdk/skills …so covers `<dir>/.claude/skills/` in each directory you pass through `additionalDirectories` (TypeScript) or `add_dirs` (Python), because the SDK passes those directories to Claude Code as [`--add-dir… Subagents in the SDK Claude Code CLI · in the page agent-sdk/subagents …aude/agents/` from directories added with the `add_dirs` (Python) or `additionalDirectories` (TypeScript) option, or the CLI's `--add-dir` or `/add-dir`, but doesn't watch them, so a new or edited fil… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …| `new AbortController()` | Controller for cancelling operations | | `additionalDirectories` | `string[]` | `[]` | Additional directories Claude can access. The SDK passes each entry to Claude Code as… Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry Claude Code CLI · in the page claude-apps-gateway …gedPermissionRulesOnly` still blocks parent-supplied allow rules and `additionalDirectories`. On Claude Code v2.1.273 or later, the MCP server lock also applies from a source below the winner, and whi… CLI reference Claude Code CLI · in the page cli-reference …are`. To persist these directories across sessions, set [`permissions.additionalDirectories`](/docs/en/settings-reference#permissions-additionaldirectories) in settings… Set up Claude Code in a monorepo or large codebase Claude Code CLI · in the page large-codebases …on | [`--add-dir`](#grant-access-across-packages-or-repositories) or `additionalDirectories` | | Give Claude procedures specific to one area that load only when relevant | Per-directory [skills](#add-… Deploy managed settings Claude Code CLI · in the page managed-settings …de-apps-gateway#restrict-parent-settings) permission allow rules and `additionalDirectories` as it reads them, even when a higher-priority source leaves the key unset. The key's effect on your own per… Connect Claude Code to tools via MCP Claude Code CLI · in the page mcp …ing-directories) you've granted with `--add-dir`, `/add-dir`, or the `additionalDirectories` setting. Claude Code sends `notifications/roots/list_changed` when that set changes. This variable is set… Choose a permission mode Claude Code CLI · in the page permission-modes …auto-approval applies only to paths inside your working directory or `additionalDirectories`. These still prompt: * Paths outside that scope * Writes to [protected paths](#protected-paths) * Recogni… Configure permissions Claude Code CLI · in the page permissions …kdir`, `touch`, `mv`, and `cp` for paths in the working directory or `additionalDirectories` | | `plan` | Claude reads files and runs read-only shell commands to explore but doesn't edit your source f… Configure the sandboxed Bash tool Claude Code CLI · in the page sandboxing …cess-not-configuration) with `--add-dir`, `/add-dir`, or `permissions.additionalDirectories`. The first time a command needs a new network domain, Claude Code prompts for approval; in [auto mode](/do… Deploy self-hosted environments to production Claude Code CLI · in the page self-hosted-environments-deploy …* A grant that resolves outside that session's own workspace: an `additionalDirectories` entry, an `Edit`, `Write`, or `NotebookEdit` rule in `permissions.allow`, or a `sandbox.filesystem.allowWri… Self-hosted environments reference Claude Code CLI · in the page self-hosted-environments-reference …session's repository paths so repo-committed `permissions.allow` and `additionalDirectories` are honored. Set `false` to drop repo-committed permission grants and configure allow rules in the host con… Claude Code settings Claude Code CLI · in the page settings …bFetch", "Bash(curl *)", "Read(./.env)", "Read(./secrets/**)" ]` | | `additionalDirectories` | Additional [working directories](/docs/en/permissions#working-directories) for file access. M… All settings Claude Code CLI · in the page settings-reference …rmission-modes.md) | Permission settings | Any file | | [`permissions.additionalDirectories`](#permissions-additionaldirectories) | Give Claude file access to [directories outside the current one](/do… Extend Claude with skills Claude Code CLI · in the page skills …nds/` and `.claude/agents/`. Directories the Agent SDK adds through [`additionalDirectories`](/docs/en/agent-sdk/typescript#options) in TypeScript or [`add_dirs`](/docs/en/agent-sdk/python#claudeagent… Create custom subagents Claude Code CLI · in the page sub-agents …and common filesystem commands for paths in the working directory or `additionalDirectories` | | `auto` | [Auto mode](/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode): a background class… Tools reference Claude Code CLI · in the page tools-reference …s.md#working-directories) you added with `--add-dir`, `/add-dir`, or `additionalDirectories` in settings. This includes commands Claude runs in response to your later messages. * Subagent sessions n… Code in Claude Desktop on 3P Claude Documentation · in the page third-party/claude-desktop/code …`blockReadsOutsideWorkingDirectories`. The roots are also passed as `additionalDirectories` at launch, which is always applied independent of managed-settings precedence, and the app keeps Claude's f… Configuration reference Claude Documentation · in the page third-party/claude-desktop/configuration …ude Code settings with `sandbox.filesystem.allowRead` or `permissions.additionalDirectories`; settings files tracked in a git repository cannot. The key travels on Claude Code's managed-settings chann…
Feedback