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.

Each check can only make the answer stricter
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
CheckWhere you set itEffect
Workspace TrustThe trust prompt when you open a folderIn a folder you have not trusted, agents cannot edit files or run commands, whatever else you allow.
Permission PolicySettings → Agents → Permission PolicyThe global ceiling. Deny all refuses everything, even in a chat set to bypass.
Approval level of the chatThe approvals picker in the chat inputDecides which of the agent's requests reach you.
Plan modeThe mode picker, or /planEdits, deletes, commands and outside MCP tools are refused while planning.
Untrusted contentAutomaticAfter 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):

OptionValueBehavior
DefaultdefaultAgent tool calls run automatically; git commits and pushes and task or workflow actions ask first.
Ask before changesaskReading and searching run automatically; edits, shell commands and other actions ask first.
Auto-allow everythingautoAllowNever asks. Agents run every action, including git pushes and workflows.
Deny alldenyRefuses 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:

LevelWhat happens
Default ApprovalsThe agent asks before the actions its own mode asks about, and IZ Code shows the question in the chat.
Auto-approve EditsFile edits go ahead; commands still ask.
Bypass ApprovalsNothing 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 approvedLater requests allowed without asking
A file editAll file edits through IZ Code's tools in this session.
A command such as cargo test --libThe 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 actionThat 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:

GroupExamplesAsks when
EditwriteFile, editFileThe chat is on Default Approvals, unless already allowed for the session.
ExecuterunCommand, runBuildTask, debugStart, debugEvaluateUnless the chat bypasses approvals or it is already allowed for the session.
Git and workflow actionsgitCommit, gitPush, gitDiscard, workflowRun, task actionsUnder 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.

SwitchSettingWhere
Let agents use the browserizcode.browser.enableChatToolsSettings → Browser & Network
Let agents use Gitizcode.git.enableChatToolsSettings → Git & PRs
Let agents use Run and Debugizcode.debug.enableChatToolsSettings → Run and Debug
Let agents use Specsizcode.specs.enableChatToolsSettings → 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#

SettingValuesDefault
izcode.agent.permissionModedefault, ask, autoAllow, denydefault
izcode.agent.chatModeControlsApprovalstrue, falsetrue
izcode.browser.enableChatToolstrue, falsetrue
izcode.git.enableChatToolstrue, falsetrue
izcode.debug.enableChatToolstrue, falsetrue
izcode.specs.enableChatToolstrue, falsetrue
Last updated: December 1, 2026Was this page helpful?