Claude Code can’t touch sibling packages. Add additionalDirectories
Claude only sees the folder you launched from. Grant sibling packages with additionalDirectories, --add-dir, or /add-dir, then accept workspace trust. Short answer: 5 steps. 1) Confirm Claude started in a subdirectory; 2) Add persistent paths with additionalDirectories; 3) Or grant access for this session with --add-dir / /add-dir; 4) Accept workspace trust when project settings grant paths; 5) Verify with a cross-package read, then keep going.
Last updated: · This page is the decision checklist; the tools list for “Fix Claude Code sibling-package access” is a separate URL.
How do I add additionalDirectories when Claude Code can’t touch sibling packages?
Confirm Claude started in a subdirectory
If you launched from `packages/api/`, Claude’s primary working directory is that folder until you `/cd` elsewhere. Sibling trees like `packages/web/` or another checkout are outside it by default, so reads/edits there prompt or fail. Monorepo guide: https://code.claude.com/docs/en/large-codebases
Add persistent paths with additionalDirectories
In `.claude/settings.json` (shared) or `.claude/settings.local.json` (personal), set `permissions.additionalDirectories` to relative or absolute paths—for example `["../shared", "../web"]`. Relative paths resolve from the directory where you start Claude. Files there follow the same permission mode as the primary working directory. Permissions: https://code.claude.com/docs/en/permissions
Or grant access for this session with --add-dir / /add-dir
One-off: `claude --add-dir ../shared` at launch, or run `/add-dir ../shared` inside the session. Flag-added directories also load skills/commands/subagents from that tree; settings-only `additionalDirectories` grant file access only and do not load that config. To also load CLAUDE.md/rules from a flag-added dir, set `CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1`.
Accept workspace trust when project settings grant paths
`permissions.allow` and `permissions.additionalDirectories` in a project’s `.claude/settings.json` apply only after you accept the workspace trust dialog for that folder. Deny/ask rules still apply without trust. If you use `blockReadsOutsideWorkingDirectories`, prefer `/add-dir` when a listed path still looks “outside” after trust.
Verify with a cross-package read, then keep going
Ask Claude to list or open a file under the sibling path. If it still can’t, check you didn’t start from a different cwd than the relative paths expect, update Claude Code (`claude update`), and confirm the path isn’t denied by a `Read(...)`/`Edit(...)` deny rule. Settings overview: https://code.claude.com/docs/en/settings
Which tools are best to fix Claude Code sibling-package access?
Configure permissions
Working directories, additionalDirectories, --add-dir / /add-dir, and workspace trust.
Large codebases / monorepos
Sibling package examples and when CLAUDE.md loads from add-dir paths.
Settings
Where settings.json vs settings.local.json live and what they control.
Claude Code
Product entry for install and updates when settings look ignored on an old build.
Open: 1 spot per week
One labeled sponsor for this topic each week; this week's spot is open. See open weeks →
All tools for “Fix Claude Code sibling-package access” →
Related fixes
- Stop a Cursor agent loopHow to fix a Cursor agent loop (same edit, or work after Stop)Fix →
- Claude Code vs Codex vs Cursor ~$20 plansClaude Code vs Codex vs Cursor $20 plan limits: how to pick without burning the weekFix →
- Scan a vibe-coded app for leaked API keysCheck a vibe-coded app for leaked API keys before you share itFix →
- Add an MCP server to Claude Code, Cursor, or CodexHow to add an MCP server to Claude Code, Cursor, or CodexFix →
See also AI tools launched today on the daily board.
NewAIToolsToday Daily
Top 3 AI launches, one model or news item that matters, and one simple fix. A 5-minute read, every weekday.