[KongchangAI]
Conceptbypass permissions模式 / 高权限运行模式

bypassPermissions

A high-privilege execution mode provided by Claude Code that allows interactive permission confirmations to be skipped in automated scripts or CI environments, enabling unattended continuous execution. This mode is intended for automated workflows but requires careful attention to associated security risks.

Timeline (last 90 days)

Nov 3

In the default mode, every file write or command execution requires per-item user confirmation; acceptEdits automatically approves file-edit-type operations, but other tools still require confirmation; bypassPermissions skips almost all confirmation steps.

Unverified50%
Nov 3

The permission mode determines "whether to ask the user" and not "whether this path can be touched"; blockWritesOutsideWorkingDirectories introduces a path-dimension constraint, forming an orthogonal relationship with permission modes.

Unverified50%
Oct 30

Claude Code uses a multi-layer permission model, with common modes including ask-each-time, acceptEdits (automatically accepting file edits), and bypassPermissions, and the handling of the boundary outside the working directory previously differed across modes.

Unverified50%
Oct 30

v2.1.314 adds the configuration permissions.blockWritesOutsideWorkingDirectories; once enabled, the three file-writing tools Write, Edit, and NotebookEdit reject paths outside the working directory under any permission mode.

Unverified50%
Oct 27

In the Claude Agent SDK, deny rules can intercept the rm command and take effect in all modes (including bypassPermissions), but deny rules match the literal command, and forms like /bin/rm can bypass them, so a pre-tool-use hook is needed to check every bash call at the front of the chain.

Unverified50%
Oct 27

Common values of the Claude Agent SDK permission mode include default (calls not pre-approved require callback confirmation, and no callback means denial), acceptEdits (automatically accept file edits), dontAsk (deny if not pre-approved), and bypassPermissions (skip all permission checks).

Unverified50%
Oct 9

Bypass permissions mode approves all operations unconditionally without prompting.

Unverified60%
Oct 2

Under bypassPermissions mode or shell allow rules, dangerous rm commands targeting the root directory or home directory inside bash -c or sh -c scripts previously ran without prompting; this has been fixed to prompt first (corresponding to issue #96300).

Unverified50%
Oct 2

bypassPermissions is a high-privilege execution mode provided by Claude Code that allows skipping interactive permission confirmations in automated scripts or CI environments to achieve unattended continuous execution.

Unverified50%

All Facts (9)

Unverified

Bypass permissions mode approves all operations unconditionally without prompting.

60%
Unverified

The permission mode determines "whether to ask the user" and not "whether this path can be touched"; blockWritesOutsideWorkingDirectories introduces a path-dimension constraint, forming an orthogonal relationship with permission modes.

50%
Unverified

In the default mode, every file write or command execution requires per-item user confirmation; acceptEdits automatically approves file-edit-type operations, but other tools still require confirmation; bypassPermissions skips almost all confirmation steps.

50%
Unverified

v2.1.314 adds the configuration permissions.blockWritesOutsideWorkingDirectories; once enabled, the three file-writing tools Write, Edit, and NotebookEdit reject paths outside the working directory under any permission mode.

50%
Unverified

Claude Code uses a multi-layer permission model, with common modes including ask-each-time, acceptEdits (automatically accepting file edits), and bypassPermissions, and the handling of the boundary outside the working directory previously differed across modes.

50%
Unverified

In the Claude Agent SDK, deny rules can intercept the rm command and take effect in all modes (including bypassPermissions), but deny rules match the literal command, and forms like /bin/rm can bypass them, so a pre-tool-use hook is needed to check every bash call at the front of the chain.

50%
Unverified

Common values of the Claude Agent SDK permission mode include default (calls not pre-approved require callback confirmation, and no callback means denial), acceptEdits (automatically accept file edits), dontAsk (deny if not pre-approved), and bypassPermissions (skip all permission checks).

50%
Unverified

Under bypassPermissions mode or shell allow rules, dangerous rm commands targeting the root directory or home directory inside bash -c or sh -c scripts previously ran without prompting; this has been fixed to prompt first (corresponding to issue #96300).

50%
Unverified

bypassPermissions is a high-privilege execution mode provided by Claude Code that allows skipping interactive permission confirmations in automated scripts or CI environments to achieve unattended continuous execution.

50%

Source Articles