Approvals and permission modes
How the code agent asks before changing files or running commands, what Ask, Accept edits and Plan do, and how to manage always-allow rules.
In Code mode, the agent can always read files in your project. Anything that changes your computer waits for your decision, depending on the permission mode.
Permission modes#
Pick a mode with the button to the left of the message box, or press Shift+Tab to cycle through them.
- Ask: every write, edit and command needs approval. This is the default.
- Accept edits: file edits are auto-approved; commands still ask.
- Plan: read-only tools only. The agent proposes a plan without changing anything.
To change the mode new sessions start in, open Settings (Ctrl+,) › Permissions › Default permission mode. There is no mode that skips all approvals.
Answer an approval#
The approval card shows exactly what will happen: a diff for file changes, or the full PowerShell command. Choose one of:
- Allow once to run just this step.
- Always allow edits in this project, or for commands Always allow in this project with the suggested command prefix (for example
npm test). - Deny. You can add a reason, then select Deny and send so the agent knows why.
A command that chains or redirects (for example with ;, | or >) can't be allowed permanently; it always asks.
Manage always-allow rules#
Rules are saved per project. To review or remove them, open Settings › Permissions › Project allowlist. You can also add a command prefix there. Only you can change the mode and the rules; nothing the agent reads or runs can change them.
Built-in limits#
The agent only reads and writes inside the project folder. Paths that lead outside it are refused.
MCP tools#
If you connect MCP servers in Settings › MCP servers, each of their tool calls asks first unless you choose to always allow that tool in the project. Servers defined in a project's .mcp.json don't start until you review and approve them.
Was this helpful?
Related articles
- Get started with the code agentUse Code mode in the Windows app to let Skely read, edit and run commands in a project folder on your PC, with your approval.
- Fix common Windows app problemsSolutions for the most common desktop app messages, from connection errors and expired sign-ins to busy sessions and oversized conversations.