claude-code - 💡(How to fix) Fix Docs: bypassPermissions scoping to cwd is undocumented

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

The bypassPermissions permission mode prompts for files outside the current working directory, even when the path is not in a protected directory (.git, .claude, .vscode, etc.). This behavior is not documented.

Root Cause

The bypassPermissions permission mode prompts for files outside the current working directory, even when the path is not in a protected directory (.git, .claude, .vscode, etc.). This behavior is not documented.

Fix Action

Fix / Workaround

  • The acceptEdits mode docs do explicitly mention working directory scope and additionalDirectoriesbypassPermissions docs do not.
  • Workaround: add frequently accessed directories to additionalDirectories in settings.
RAW_BUFFERClick to expand / collapse

Summary

The bypassPermissions permission mode prompts for files outside the current working directory, even when the path is not in a protected directory (.git, .claude, .vscode, etc.). This behavior is not documented.

Expected behavior per docs

The documentation states:

bypassPermissions mode disables permission prompts and safety checks so tool calls execute immediately. Writes to protected paths are the only actions that still prompt.

This implies the only restriction is protected directories — there is no mention of working directory scope.

Actual behavior

With "defaultMode": "bypassPermissions" set in ~/.claude/settings.json, reading a file outside the cwd (e.g. ~/code/mongo-c-driver/README.rst) still produces a permission prompt, even though that path is not a protected directory.

Related

  • The acceptEdits mode docs do explicitly mention working directory scope and additionalDirectoriesbypassPermissions docs do not.
  • Workaround: add frequently accessed directories to additionalDirectories in settings.

Request

Please document whether bypassPermissions is implicitly scoped to the cwd + additionalDirectories, and if so, make that explicit in the permission modes reference.

extent analysis

TL;DR

The bypassPermissions mode may be implicitly scoped to the current working directory and additionalDirectories, causing permission prompts for files outside this scope.

Guidance

  • Review the documentation for bypassPermissions mode to understand its intended behavior and scope.
  • Check the additionalDirectories setting in ~/.claude/settings.json to ensure it includes all necessary directories.
  • Consider adding frequently accessed directories to additionalDirectories as a workaround to avoid permission prompts.
  • Verify the behavior of bypassPermissions mode with different file paths and directory settings to confirm its scope.

Example

No code snippet is provided as the issue is related to configuration and documentation.

Notes

The actual behavior of bypassPermissions mode may not be immediately clear due to the lack of explicit documentation on its scope. The workaround of adding directories to additionalDirectories may help mitigate the issue, but a clear documentation update is necessary to resolve the confusion.

Recommendation

Apply workaround: add frequently accessed directories to additionalDirectories in settings, as this provides a clear and immediate solution to avoid permission prompts, while awaiting clarification on the bypassPermissions mode's documentation.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Docs: bypassPermissions scoping to cwd is undocumented