# Does Your AI Coding Agent Ask Before Editing? Default Permissions Compared (December 2026)

> Source: <https://zyvop.com/does-your-ai-coding-agent-ask-before-editing-default-permissions-compared-december-2026-lu06y>
> Published: 2026-12-04 05:58:16+00:00

**Recommendation:** Check each coding agent's default permission mode before your first task and commit your work first, since Claude Code, Codex, Cline and Kilo Code edit files without asking by default.
More in the playbook "Securing agents and AI tools": <https://wpnews.pro/playbooks/agent-security>

An AI coding agent can edit your files and run commands in your project. Whether it asks you first depends on the tool, the version and sometimes the folder. Some ask for everything. Some edit your files without a word.

**The short answer:** out of the box, **Claude Code, Codex (in a Git folder), Cline and Kilo Code edit files in your project without asking**. **GitHub Copilot and Zoo Code ask first.** **Kiro's own pages disagree.** Check the mode before your first task, and commit your work first.

Checked on 4 December 2026 against vendor documentation and, for Cline and Zoo Code, source code. I did not run any of these tools, so these are documented defaults, not observed behaviour. Defaults can differ by version, plan, folder and company policy.

## Quick comparison

| Agent | Starting setting | Edits files without asking? | Runs commands without asking? | 
|---|---|---|---|
| GitHub Copilot (VS Code) | Manual permissions | No, unless a rule or saved approval covers it | Some, under built-in rules. Others ask | 
| Claude Code | Auto mode | Yes, in your working directory | Yes, after a safety check. Risky ones are blocked | 
| Codex (CLI and IDE extension) | Auto in a Git folder, read-only elsewhere | Yes, inside the workspace | Yes, inside the workspace. Network access is off | 
| Cline | Auto-approve bar | Yes | No, it asks | 
| Kilo Code | Most tools allowed | Yes (VS Code and CLI) | Yes | 
| Zoo Code | Auto-approve switched off | No | No | 
| Kiro | **Disputed** | Check the mode menu | Asks, unless an allow rule covers it | 

"Yes" here means the default setting, not a promise. You can change every one of these. The sections below say how.

## Why "auto" does not mean the same thing everywhere

Several tools skip prompts by default, but they protect you in different ways:

- **Claude Code** sends actions to a second model that blocks the ones it judges risky.
- **Codex** runs commands in a sandbox. By default the network is off and writes are limited to the workspace.
- **Cline and Kilo Code** use switches or allow, ask and deny rules. The pages and settings I read describe no sandbox or safety checker.

None of these is a guarantee. Claude's documentation says its Auto mode "reduces permission prompts but does not guarantee safety". VS Code's page says of the reviewer in Copilot's Assisted mode: "The reviewer can make mistakes."

## GitHub Copilot in VS Code

**Default:** new sessions start in **Manual permissions**. VS Code describes it as the level for when "you want to review actions that the runtime hasn't approved and that no rule or saved approval covers". Manual does not prompt for every command. Read-only or sandboxed commands can run without a prompt, and built-in rules allow some commands and require confirmation for others. The page does not list a default for each action, such as edits inside the workspace or web fetches.

**Other levels:**

- **Assisted permissions:** a model assesses each proposed action and asks you about the ones that need review. GitHub made it generally available in October 2026 in VS Code, the Copilot CLI and the Copilot app. If your organisation blocks it, new sessions fall back to manual approval.
- **Allow all:** skips ordinary confirmations, "including for destructive actions".
- **Autopilot** is a separate mode. It tells the agent to keep working. It does not change what you have approved.

**To change it:** pick a level in the permissions picker, or set `approvals` under `chat.defaultConfiguration`. VS Code's example value is `"assisted"`. Check its settings reference for the other accepted values. Your organisation can restrict the levels or set a default.

**Watch for:** VS Code warns that with global auto-approval, such as Allow all, prompt injection in files or tool results, or an agent mistake, can cause unintended changes.

## Claude Code

**Default:** **Auto mode.** On Claude Code v2.1.283 or later, the terminal and the VS Code extension both start in Auto. On earlier versions, Auto was the default only on some plans, and otherwise the start was Manual.

In Auto, a separate classifier reviews actions before they run. Claude's documentation says it allows by default:

- local file operations in your working directory
- installing dependencies declared in your lock files or manifests
- read-only HTTP requests

It says it blocks by default, for example:

- downloading and running code, such as `curl | bash`
- production deploys and migrations
- force pushes

If the classifier blocks an action 3 times in a row or 20 times in total, Auto pauses and Claude Code goes back to asking.

**Other modes:** `default` (Manual, asks before edits), `acceptEdits`, `plan`, `dontAsk` and `bypassPermissions`. The documentation recommends bypass for "isolated containers and VMs only".

**To change it:**

- Switch for one session: press `Shift+Tab` in the terminal, or click the mode indicator in VS Code.
- Set a new default in VS Code: `claudeCode.initialPermissionMode` , with`default` ,`manual` ,`acceptEdits` ,`plan` or`bypassPermissions` . It does not accept`auto` . Leave it unset to start in Auto.
- Set a new default in the terminal: `permissions.defaultMode` in`~/.claude/settings.json` .
- Administrators can switch Auto off with `permissions.disableAutoMode` in managed settings.

**Watch for:** `claude -p` and the Agent SDK start in Manual from v2.1.302, so scripts behave differently from your terminal. Also, VS Code's own page on agent permissions lists "Ask Before Edits" as the starting level for Claude sessions that VS Code hosts. I could not tell from the pages whether that is the same thing as the Claude Code extension, so look at the mode indicator rather than assuming.

## OpenAI Codex

**Default (CLI and IDE extension):** no network access, and writes limited to the active workspace. OpenAI's page describes the **Auto** preset, which is workspace-write with on-request approvals, for folders under version control. For folders that are not, Codex starts in **read-only** until you trust the directory.

In Auto, "Codex can read files, make edits, and run commands in the working directory automatically". It asks before it edits files outside the workspace or runs commands that need network access.

**To change it:**

- `/permissions` switches mode inside a session, for example to`read-only` when you only want to plan.
- `--sandbox` takes`read-only` ,`workspace-write` or`danger-full-access` .`--ask-for-approval` takes`on-request` or`never` .
- In `config.toml` , the keys are`sandbox_mode` and`approval_policy` . Network access in workspace-write mode is a separate`network_access` setting.
- **Auto-Review:** set`approvals_reviewer = "auto_review"` to send approval requests to a reviewer agent first. It uses extra model calls, which count towards your usage.

**Watch for:** `--yolo`, also written `--dangerously-bypass-approvals-and-sandbox`, turns off both the sandbox and approvals. OpenAI marks it "not recommended". VS Code's page names the Codex levels Default Permissions, Auto-Review and Full Access, so labels differ by where you run it.

## Cline

**Default (version 4.1.28, the latest release I found, and unchanged on the main branch on 1 December):**

| Action | Default | 
|---|---|
| Read files | Approved automatically | 
| Edit files | **Approved automatically** | 
| Run commands | Asks you | 
| Fetch web content | Approved automatically | 
| Use MCP servers | Approved automatically | 

**To change it:** click the **Auto-approve** bar in the Cline panel and switch off **Edit files**. For private work, also switch off **Fetch web content** and **Use MCP servers**.

**Watch for:** one switch covers all MCP tools. There is no per-tool choice.

## Kilo Code

**Default:** Kilo's documentation says "Most tools default to `"*": "allow"` for a smooth out-of-the-box experience". In the VS Code extension and the CLI that includes file edits and shell commands. Exceptions:

- Reading `.env` files prompts, and so do shell commands that print`.env` -style files.
- Directories outside your project prompt.
- In the JetBrains plugin, file edits prompt.
- When no rule matches, the default is to ask.

**To change it:** in VS Code, go to Settings, then Auto Approve, and set each tool to Allow, Ask or Deny. In the CLI, edit `kilo.jsonc`. After editing project config in `.kilo/`, reload the VS Code window or start a new CLI session.

**Watch for:** change the rules before the first real task, not after.

## Zoo Code

**Default:** the master **auto-approve switch is off** in the source code as of 3 December. While it is off, the check returns "ask", so Zoo Code asks before using tools such as reading files, editing files and running commands.

**To change it:** open Zoo Code's Auto-Approve settings. Turning the master switch on enables whichever individual options you have ticked, so review them first.

**Watch for:** if you imported settings from Roo Code, check that the approval options match what you want.

## Kiro

**Default:** unclear. Kiro's pages say different things:

- The "Using Kiro" page for the VS Code extension says "Supervised is the default".
- The extension's settings page lists `kiroExtension.agentAutonomy` with a default of`Autopilot` .
- The permissions page says Autopilot is now called **Accept file changes** , where "Kiro creates, edits, and deletes files without asking" and asks before running commands, unless an allow rule covers them. It does not state a default.

The permissions page also lists **Supervised**, where Kiro pauses after each turn that edits files so you can accept or reject changes, and **Approve for me**, where a model approves actions it judges safe and asks you when unsure. A workspace you have not trusted starts in Supervised.

**To change it:** use the permission mode menu in the chat box, or set `kiroExtension.agentAutonomy`. **Look at the menu before your first task.**

## A safe way to start with any agent

1. **Commit first** , or work on a new branch, so you can undo.
2. **Find the mode indicator** or the approval settings before you type a task.
3. **Start in a planning or read-only mode** for your first task on an unfamiliar project: Plan in Claude Code,`read-only` in Codex, Plan in Cline.
4. **Switch off what you do not need.** For most people that means web fetching and MCP tools first.
5. **Read the diff** before you commit, including files you did not expect.
6. **Keep full bypass for a sandbox.** Claude's Bypass, Codex's`--yolo` and Copilot's Allow all are meant for isolated environments, not your main laptop.
7. **On a team,** use the administrator controls where they exist. Copilot and Claude Code both have them. I did not check the others.

## FAQ

**Which tool is safest by default?**
Of the tools above, Zoo Code and Copilot's Manual permissions are the two that clearly ask first by default. Codex's Auto preset limits what it can reach with a sandbox. A tool that asks more also interrupts you more, so the best choice depends on how closely you want to watch.

**Can an agent change files outside my project?**
Codex and Kilo Code both prompt before touching locations outside the workspace, according to their documentation. I did not check the others for this.

**Does a prompt protect me from prompt injection?**
Only if you read it. Text in a file, a web page or a tool result can contain instructions an agent may follow. That is why web fetching and MCP tools are worth switching off for private work.

**Do these defaults apply to the desktop and web versions?**
Not necessarily. I checked the VS Code extensions, plus the command-line tools where a tool has one. Kilo's JetBrains plugin already differs on edits.

## Final verdict

Do not assume your agent asks before it edits. **Claude Code, Codex in a Git folder, Cline and Kilo Code all act first by default.** **Copilot and Zoo Code ask first**, and Kiro's default depends on which of its pages is right.

Pick the level of interruption you can live with, set it once, and keep Git as your safety net.

## Sources

**Vendor documentation**

- GitHub Copilot and VS Code: [Manage approvals and permissions](https://code.visualstudio.com/docs/agents/approvals) ,[assisted permissions reach general availability](https://visualstudiomagazine.com/articles/2026/10/28/github-copilot-assisted-permissions-reach-general-availability.aspx) (Visual Studio Magazine)
- Claude Code: [permission modes](https://code.claude.com/docs/en/permission-modes)
- Codex: [agent approvals and security](https://learn.chatgpt.com/docs/agent-approvals-security?site_locale=en)
- Kilo Code: [auto-approving actions](https://kilo.ai/docs/getting-started/settings/auto-approving-actions)
- Kiro: [using Kiro in VS Code](https://kiro.dev/docs/extensions/vscode/using-kiro/) ,[extension settings](https://kiro.dev/docs/extensions/vscode/settings/) ,[permissions](https://kiro.dev/docs/permissions/)

**Source code**

- Cline: [auto-approve defaults in 4.1.28](https://github.com/cline/cline/blob/v4.1.28/apps/vscode/src/shared/AutoApprovalSettings.ts) ,[approval checks](https://github.com/cline/cline/blob/v4.1.28/apps/vscode/src/sdk/sdk-tool-policies.ts)
- Zoo Code: [auto-approval check](https://github.com/Zoo-Code-Org/Zoo-Code/blob/main/src/core/auto-approval/index.ts)
