Table of Contents

Enum PermissionMode

Namespace
JD.AI.Core.Agents
Assembly
JD.AI.Core.dll

Controls the permission model for tool invocations within a session.

public enum PermissionMode

Fields

AcceptEdits = 2

Auto-approve file edits — ConfirmOnce tools (file writes, git ops) are auto-approved, but AlwaysConfirm tools (shell, web search) still require confirmation.

BypassAll = 3

Auto-approve everything — equivalent to --dangerously-skip-permissions.

Normal = 0

Default interactive mode — prompts for confirmation based on safety tiers.

Plan = 1

Read-only mode — only AutoApprove-tier tools (read/explore) are allowed; all write and shell tools are blocked at the filter level.