Egor Urvanov

Permissions

MCP and safety · AI agent permissions, permission modes, least privilege

Permissions — AI agent permissions define what the agent may do in your environment and connected systems: only read or write as well, and which commands to run. In Claude Code and Codex these are permission modes: from asking before every action to working without confirmations. The principle of least privilege applies: the agent gets exactly the rights the task needs, raised step by step.

readwrite a draftwritedeleteagentgranted now ← | → lateropened once the agent has coped● model, people, systems, data  ● agent and harness  ● risk, stop, boundaryPermissions are a ladder: the lower steps are granted, the next open once the agent has coped

Permissions in agents

  • Steps · first read only, then writes to a test environment; writes to a live system go only through a person.
  • Claude Code: rules · settings say what to allow, what to ask about and what to deny. A deny rule beats any mode.
  • Claude Code: modes · by default it asks before edits and commands; acceptEdits accepts edits itself; plan only reads and plans; auto decides what is safe; bypassPermissions, the same as the --dangerously-skip-permissions flag, asks nothing and suits only a sandbox.
  • Codex: modes · read only; workspace mode, with edits and commands inside the project folder without asking and everything else with approval; full access, with no sandbox and no approvals.

Frequently asked questions

What permissions should an AI agent get?

Exactly what the task needs, following the principle of least privilege, raising them step by step.

What permission modes do Claude Code and Codex have?

From asking before every action to working without confirmations; in between are modes where the agent takes safe steps on its own.

Source: Claude Code permissions docs

Where it appears · 21

More 16

Related terms

Whole glossary

© 2026 Egor Urvanov