CodePanel
always_allow

always_allow

The CodePanel MCP tool that keeps one exact command as always allowed in a repository. Needs rules:write, which no token gets by default.

On this page›

always_allow keeps one exact command as always allowed in one repository. Every run there adds it to its rules, so the command runs without asking from then on. It needs the rules:write scope, which no token gets by default.

A standing allow widens what agents do without asking, so an agent cannot give it to itself. A token with only tasks:write, the scope an agent uses to drive runs, is refused with missing_scope. A run token, which an agent CLI holds for the model proxy, never reaches the API. The owner makes rules from the desktop app's Always allow on a permission, or through a token they minted with rules:write on purpose.

When to call it

  • Only when the owner asked for it: "stop asking me about bun run gen:client in this repository".

Inputs

Input Type Required Description
runId string no With interruptId: the run whose permission to keep
interruptId string no From get_run's waiting or interrupts
repo string no owner/name, with command, when no permission is behind it
command string no With repo: the exact command to allow

It writes: the server marks it readOnlyHint: false and destructiveHint: true (it can change what is already there), so a client that asks before writes asks here.

Either runId and interruptId of a permission to run a command (from get_run's waiting): its exact command becomes the rule in that run's repository, and the permission is allowed if it still waits and the token also holds interrupts:answer. Or repo and command. A line of several commands (bun test && rm -rf dist), a command holding a *, or one that hides what it runs (eval, a subshell) is refused rather than widened; allow it once with answer_interrupt.

What it returns

{ rule, created }. The same rule again changes nothing and returns created: false. A preset's deny still wins over the rule. Undo with remove_permission_rule.

The same step without MCP

Surface Form
HTTP API POST /autopilot/permissions with the rules:write scope
CLI codepanel autopilot permissions allow <owner/name> <command…>, or --run <id> --interrupt <id>
Desktop app Always allow on a permission in the Inbox or a thread

What the server tells your agent

The description your agent reads when it lists the tools:

Use it only when the owner asked for a command to run without asking from now on. Give runId and interruptId of a waiting or answered permission to run a command (get_run's waiting): its exact command becomes a standing allow in that run's repository, and the permission is allowed if it still waits and the token also holds interrupts:answer. Or give repo (owner/name) and command. A line of several commands, one with a *, or one the judge cannot read is refused: allow it once with answer_interrupt. Needs rules:write, which no token gets by default because it widens what agents may do; a tasks:write token is refused (missing_scope). The same rule again changes nothing (created: false). Returns { rule, created }. Undo with remove_permission_rule.

Last updated