GuidesUpdated

Why does my coding agent keep asking for permission?

Find out why a coding agent keeps asking for approval by checking the action, CLI rules, working directory and session before you change permissions.

On this page

Repeated approval prompts have several causes: the command is new, a rule was saved for one session only, the agent is in another checkout, or a deny or ask rule applies. Start with the exact action and the CLI asking. Canopy shows that a session needs you; the coding CLI enforces its own permissions.

Canopy Agents rail showing project-aware session status
Canopy Agents rail showing project-aware session status

Open the session that is waiting

In Canopy's Agents rail, note the project, checkout, branch and last prompt. Open that agent's terminal and read the requested tool, command, path, destination and scope. Reading one file is not installing a package, deleting a folder or publishing a change. If the rail's status is unclear, trust the live terminal.

Work out why this prompt appeared

Claude Code approvals last once, for a session, or as a saved repository rule. Deny beats ask, which beats allow, and no prompt wording changes that. Other CLIs use different files and modes, so check that CLI's permission screen or docs, not Canopy's settings.

Diagnose the request before changing a permission.
What you seeCheck firstNext step
Same command asks in a new sessionWhether approval was one-time, session-only or savedReview the CLI's rules and scope
Prompt appears in a second worktreeCLI version, repository root and local settings pathCompare the two sessions' effective configuration
A different shell command asksExact command and argumentsDecide whether this action is within the task
A tool is unavailable or deniedDeny/ask rule, mode, working directory and organization policyUse a narrower permitted route or request an authorized rule change
Agent asks a product questionTask brief and missing decisionAnswer the decision; leave tool permissions alone

Allow repeat safe commands in the CLI

In Claude Code, `/permissions` lists each rule and the settings file it came from. A saved Bash approval can cover the repository and its worktrees; a file-edit approval may end with the session. Read a rule before saving it, because a broad wildcard can cover commands you didn't mean. For a known build or test command, allow just that command, if project policy permits.

Keep high-impact approvals explicit

Prompts often guard credentials, external services, production, Git history or other people's work. Read the target and effect before approving. Claude Code's bypass mode is recommended only in isolated environments such as containers or VMs. Narrow repeat approvals instead of waving everything through. With Canopy Remote on, anyone with the active PIN can drive permitted agent terminals, so decide who answers prompts first.

Record a short permission diagnosis

If prompts continue, note the CLI and version, permission mode, the exact action with secrets removed, project path, branch, worktree, and rule source. Ask the agent why it needs the action and whether a narrower one exists. Check MCP tools in the owning CLI separately. After changing a rule, retry one harmless action and watch the live terminal.

Copyable resources

Permission triage request

Send this in the waiting session before granting anything wider.

Before I approve this action, explain:
1. The exact command or tool call and target path/service.
2. Why the current task needs it.
3. Its expected effect and whether it is reversible.
4. A narrower alternative, if any.
Do not retry a denied action by reshaping the command or switching tools. Wait for my decision, then report the result.

Frequently asked questions

Does Canopy decide which agent commands are allowed?

No. Canopy provides the terminal and session context; each coding CLI enforces its own tool permissions. Canopy has controls only for its own features. Check the prompt in the CLI that raised it.

Why did 'always allow' not stop every prompt?

The approval may cover only one command pattern, repository, tool or session. A different action, or a higher-priority ask or deny rule, can still prompt or block. Check the effective rules in your CLI.

Can I tell the agent in a prompt to stop asking permission?

A prompt shapes what the agent tries, but it doesn't override CLI-enforced rules. Change the rule or mode through the CLI's controls, after reviewing its scope.

Should I use a bypass mode to run several agents unattended?

Only if you understand its scope and run in an isolated environment. Try specific permissions for repeat actions first, and keep consequential operations reviewable.

More questions and answers →

Sources and further reading