Auto-Approving Actions

🚨Danger

Security Warning: Auto-approve settings bypass confirmation prompts, giving Kilo Code direct access to your system. This can result in data loss, file corruption, or worse. Command line access is particularly dangerous, as it can potentially execute harmful operations that could damage your system or compromise security. Only enable auto-approval for actions you fully trust.

Auto-approve settings speed up your workflow by eliminating repetitive confirmation prompts, but they significantly increase security risks. The VS Code extension, JetBrains plugin, and CLI share the same permission model; choose the tab that matches how you configure Kilo Code. In the JetBrains plugin, the same rules are configured under Settings → Tools → Kilo Code → Auto-Approve.

📝Note

Editing project config while a session is running: Kilo caches project-level kilo.jsonc / kilo.json (in .kilo/) when it first loads a workspace, and does not re-read it on every prompt. If you add, change, or remove a project permission rule while the backend is already running, reload the VS Code window (or start a fresh CLI session) for the change to take effect. Until then, Kilo keeps using the previously loaded rules — so an auto-approved call may still cite a project rule you just edited. Global config (~/.config/kilo/) is reloaded automatically.

Overview

The extension uses a granular, per-tool permission system. You can configure permissions through the Settings → Auto Approve tab, which provides a UI with per-tool Allow / Ask / Deny dropdowns.

The UI reads and writes to the same kilo.jsonc config files used by the CLI, so changes made in either place are reflected in both.

Permission Levels

Each tool permission can be set to one of three values:

ValueBehavior
"allow"The tool runs automatically without prompting
"ask"Kilo pauses and asks for approval before running the tool
"deny"The tool is blocked entirely

When no rule matches a permission check, the default action is ask.

Available Tool Permissions

The Auto Approve tab lists the following tool-specific permissions. Some tools are grouped together in the UI and share a single permission level:

PermissionControls
external_directoryAccessing files outside the project directory
bashExecuting shell commands
readReading file contents
editEditing existing files
globFile pattern matching / searching by name
grepSearching file contents by regex
taskLaunching sub-agents
agent_managerStarting Agent Manager sessions, inspecting managed sessions, and prompting an existing managed session
skillLoading specialized skills
lspLanguage server protocol operations
todoread / todowriteReading and updating the todo list
websearchPerforming web searches
webfetchFetching content from URLs
doom_loopAllowing the agent to continue after repeated failures

Runtime Permission Requests

When a tool is set to "ask", Kilo pauses and displays a permission prompt:

OptionBehavior
RunAllow this specific invocation
DenyReveal an optional feedback field
RejectBlock this specific invocation and send any feedback to the agent

In the feedback field, describe what the agent should change before it retries. Press Enter to post the rejection, Shift+Enter to add a newline, or Escape to cancel.

Use the shield button in the prompt controls to toggle runtime auto-approve for permission prompts without opening Settings. When enabled, the shield is highlighted and pending permission prompts are approved automatically. The runtime state stays synced across the sidebar, open Kilo tabs, and Agent Manager session views.

Expand Manage Auto-Approve Rules to add commands or patterns to your allowed or denied lists. These rules are then appended to the bottom of the approval rules in settings and the config file. Selecting a saved rule's check or cross control again removes it from the global config, so the pattern asks again. A row shows a state indicator instead of controls when this prompt cannot change it: a workspace config file supplies it, a broader entry in the merged global config already supplies the same action for the pattern, the saved action comes from a bare tool-wide value that another config file holds, or a home-relative entry (~/… or $HOME/…) in the merged global config or a workspace config file may decide the pattern after its home prefix is resolved. The indicator's accessible name states the saved action before the config-managed wording.

For the agent_manager tool, runtime approvals use the requested capability as the pattern: worktree, local, overview, prompt, stop, move, or answer. Prompting, stopping, moving, or answering a managed session requires its own explicit capability approval the first time, even when a broad Agent Manager allow rule already exists.

MCP Tool Permissions

MCP tools use the same allow / ask / deny permission system as built-in tools. Each MCP tool's permission key is its namespaced name: {server}_{tool} (e.g. github_create_pull_request). You can use glob patterns like github_* for broad rules.

For full details and examples, see MCP Tool Permissions.

Defaults

Most tools default to "*": "allow" for a smooth out-of-the-box experience. Notable exceptions that prompt by default:

  • .env files — reading .env files prompts for approval. Files matching *.env.* (e.g., .env.local, .env.production) also trigger an ask, while *.env.example is explicitly allowed. Shell commands that print a file's lines ask as well when they read one of these files. A file reader such as cat, head, or less is covered in any argument position, including a glob, a quoted name, or a path inside a directory; a search command such as grep or rg is covered when the name is an argument after its search term: in any argument position when the name is .env, .env.*, or matches *.env.*, and as the last argument when it matches *.env. A last argument that only ends in .env, such as a search term, gets the same level. A stream filter such as tr asks when its input is redirected from one of these files. The sample file stays allowed on its own.
  • external_directory — accessing files outside the project prompts for approval
  • doom_loop — prompts when the agent enters a repeated failure cycle
  • edit (JetBrains plugin only) — file edits prompt for approval. This is a plugin default, not an environment override: set permission.edit in your global or project kilo.jsonc, or use Settings → Tools → Kilo Code → Auto-Approve, to change it.