Permissions and tools
IZ Code decides for every action an agent takes whether it runs, needs your approval, or is refused. You control this with a global Permission Policy, a per-chat approval level, and switches that give or take away whole groups of tools.
How a decision is made#
Checks are applied in this order. A stricter layer always wins over a looser one.
flowchart TD
A([Agent action]) --> T["1 · Folder trusted?"]
T -- yes --> P["2 · Permission Policy allows it?"]
P -- yes --> M["3 · Outside plan mode?"]
M -- yes --> U["4 · No untrusted content read?"]
U -- yes --> C["5 · Chat approval level"]
C -- "bypass, or allowed this session" --> Y([Allow])
C -- needs approval --> Q([Ask you])
U -- "no, and it sends data out" --> Q
T -- "no (edit or command)" --> D([Deny])
P -- "no (deny all)" --> D
M -- "no (edit or command)" --> D
Q -- "nobody watching: task or workflow" --> D| Check | Where you set it | Effect |
|---|---|---|
| Workspace Trust | The trust prompt when you open a folder | In a folder you have not trusted, agents cannot edit files or run commands, whatever else you allow. |
| Permission Policy | Settings → Agents → Permission Policy | The global ceiling. Deny all refuses everything, even in a chat set to bypass. |
| Approval level of the chat | The approvals picker in the chat input | Decides which of the agent's requests reach you. |
| Plan mode | The mode picker, or /plan | Edits, deletes, commands and outside MCP tools are refused while planning. |
| Untrusted content | Automatic | After a session reads web pages or third-party tool output, sending data out (network commands, new sites, third-party MCP tools) always asks. |
Sessions started by tasks and workflows run unattended: anything that would need your approval is refused instead of waiting.
Permission Policy#
Settings → Agents → Permission Policy (izcode.agent.permissionMode):
| Option | Value | Behavior |
|---|---|---|
| Default | default | Agent tool calls run automatically; git commits and pushes and task or workflow actions ask first. |
| Ask before changes | ask | Reading and searching run automatically; edits, shell commands and other actions ask first. |
| Auto-allow everything | autoAllow | Never asks. Agents run every action, including git pushes and workflows. |
| Deny all | deny | Refuses every action an agent asks permission for. |
Approval level of a chat#
Each chat has an approvals picker next to the agent. The choices depend on what the agent supports:
| Level | What happens |
|---|---|
| Default Approvals | The agent asks before the actions its own mode asks about, and IZ Code shows the question in the chat. |
| Auto-approve Edits | File edits go ahead; commands still ask. |
| Bypass Approvals | Nothing asks, within your Permission Policy and Workspace Trust. Also set by /yolo, /autoApprove and /autopilot. |
Agents with a planning mode also offer Plan next to Interactive.
Behind these labels are each agent's own modes, for example Claude's default, acceptEdits and bypassPermissions, or Codex's read-only, workspace-write and agent-full-access.
To make chats ignore the picker and follow only the Permission Policy, turn off Chat permission mode controls approvals (izcode.agent.chatModeControlsApprovals).
Answer an approval#
When an action needs you, the chat shows the request with three buttons:
- Allow runs it once.
- Allow for this session runs it and remembers the approval until the session ends.
- Deny refuses it. The agent is told and can try something else.
What Allow for this session covers:
| You approved | Later requests allowed without asking |
|---|---|
| A file edit | All file edits through IZ Code's tools in this session. |
A command such as cargo test --lib | The same program and subcommand, for example any cargo test …. |
A command with shell operators (;, ` | , >…) or a sensitive program (rm, sudo, curl, ssh`, shells, interpreters) |
| A build task or debugger action | That tool in this session. |
Allow for this session is not offered for database changes, for sessions that have read untrusted content, or for requests about the agent's own tools (the agent remembers those its own way). Session approvals are not saved: after a restart, IZ Code asks again.
IZ Code's tools#
Read-only tools never ask: reading files, the code index, memory, wiki, skills, specs, and Git status or diffs. Tools that change something follow the rules above:
| Group | Examples | Asks when |
|---|---|---|
| Edit | writeFile, editFile | The chat is on Default Approvals, unless already allowed for the session. |
| Execute | runCommand, runBuildTask, debugStart, debugEvaluate | Unless the chat bypasses approvals or it is already allowed for the session. |
| Git and workflow actions | gitCommit, gitPush, gitDiscard, workflowRun, task actions | Under the Default and Ask before changes policies, unless the chat is on Bypass Approvals. |
Starting a subagent never asks. The subagent asks for its own actions. See Subagents and background tasks.
Tool switches#
Some tool groups can be taken away from agents completely. When a switch is off, the agent is not told about the tools, they are not listed, and calls are refused.
| Switch | Setting | Where |
|---|---|---|
| Let agents use the browser | izcode.browser.enableChatTools | Settings → Browser & Network |
| Let agents use Git | izcode.git.enableChatTools | Settings → Git & PRs |
| Let agents use Run and Debug | izcode.debug.enableChatTools | Settings → Run and Debug |
| Let agents use Specs | izcode.specs.enableChatTools | Settings → Specs |
All are on by default. They are permissions, not performance switches. The Git switch does not stop an agent from running git in a terminal; use the Permission Policy for that. Code Intelligence and Agent Memory have their own master switches. See How IZ Code works.
You can also turn individual tools on or off for one chat with /tools.
Settings#
| Setting | Values | Default |
|---|---|---|
izcode.agent.permissionMode | default, ask, autoAllow, deny | default |
izcode.agent.chatModeControlsApprovals | true, false | true |
izcode.browser.enableChatTools | true, false | true |
izcode.git.enableChatTools | true, false | true |
izcode.debug.enableChatTools | true, false | true |
izcode.specs.enableChatTools | true, false | true |