Permissions
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.
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-permissionsflag, 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
- Claude Code not available in your country · Harness
- Codex CLI not available in your country · Harness
- Claude Code · Harness
- Escalation to a human in AI agents · Harness
- What are quality gates for AI agents · Harness
More 16
- How to find a race condition in code · Specs and context
- TLA+ vs Quint vs Alloy, which formal verification language to choose · Specs and context
- Jira and an AI agent · Harness
- AI agent = LLM + harness · Harness
- MCP server and AI agent for 1C · Harness
- Analytical reports with an AI agent · Harness
- Claude in Chrome · Harness
- The agent’s data plane and control plane · Harness
- Incident investigation with an AI agent · Harness
- MCP scopes in Claude Code · Harness
- QA work after support with an AI agent · Harness
- MCP for an AI agent · Harness
- Harness engineering in practice · Harness
- A reconcile loop for specs · Specs and context
- Specs by aggregate · Specs and context
- Prompts for work tasks · Prompts and review