Search the documentation
20 pages for additionaldirectories.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
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 permissions
Claude Code CLI · in the page
agent-sdk/permissions
…cp`, `sed` Both apply only to paths inside the working directory or `additionalDirectories`. Paths outside that scope, writes to protected paths, and `rm` and `rmdir` removals targeting a [critical p…
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
…| | `additionalDirectories` | `string[]`…
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`. The hooks and MCP server locks, and `allowManagedPermissionRulesOnly`'s effect on the developer's own rule…
CLI reference
Claude Code CLI · in the page
cli-reference
…tory. 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
…| [`--add-dir`](#grant-access-across-packages-or-repositories) or `additionalDirectories` | | Give Claude procedures specific to one area that load only when relevant…
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. Before v2.1.203, `root…
Choose a permission mode
Claude Code CLI · in the page
permission-modes
…auto-approval applies only to paths inside your working directory or `additionalDirectories`. Paths outside that scope, writes to [protected paths](#protected-paths), `rm` and `rmdir` removals targeti…
Configure permissions
Claude Code CLI · in the page
permissions
…kdir`, `touch`, `mv`, and `cp` for paths in the working directory or `additionalDirectories`…
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…
Claude Code settings reference
Claude Code CLI · in the page
settings-reference
…n settings | Any file | | [`permissions.additionalDirectories`](#permissions-additionaldirectories) | Give Claude file access to [directories outsid…
Extend Claude with skills
Claude Code CLI · in the page
skills
…`--add-dir`, `/add-dir`, and 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`…
Tools reference
Claude Code CLI · in the page
tools-reference
…ions#working-directories) you added with `--add-dir`, `/add-dir`, or `additionalDirectories` in settings. Subagent sessions never carry over working directory changes. * If `cd` lands outside those…
Code in Claude Desktop on 3P
Claude Documentation · in the page
third-party/claude-desktop/code
…thsOnly`) scoped to your allowed roots. The roots are also passed as `additionalDirectories` at launch, which is always applied independent of managed-settings precedence. The app also refuses to star…