Your coding agent asks permission before every command. Here's how to allow the safe ones
Claude Code, Cursor, Codex or Windsurf stops on every shell command, and the approval prompts eat the session. Short answer: 5 steps. 1) Name the mode that is asking; 2) Allow only the commands you repeat; 3) Prefer Auto-review over turning checks off; 4) Keep bypass modes off your main machine; 5) If it still asks, a rule is forcing the prompt.
Last updated: · This page is the decision checklist; the tools list for “Stop a coding agent asking every time” is a separate URL.
How do I fix this: Your coding agent asks permission before every command?
Name the mode that is asking
In Claude Code, Manual mode (settings value default; the CLI also accepts manual) asks before Bash, file edits and web fetch. Interactive terminal and VS Code sessions on v2.1.283 or later start in auto mode instead, so a prompt means you are in Manual or an ask rule matched. Cursor asks before terminal commands unless you change Run Mode. Permission modes: https://code.claude.com/docs/en/permission-modes . Cursor Run Modes: https://cursor.com/docs/agent/security/run-modes
Allow only the commands you repeat
Claude Code: on a Bash prompt, choose Yes, and don't ask again. That saves an allow rule for that repository in .claude/settings.local.json. Or run /permissions and add a rule such as Bash(npm test) or Bash(git diff *). A * matches the rest of the command. Cursor: put those commands in terminalAllowlist in ~/.cursor/permissions.json or .cursor/permissions.json. When that key is set, it overrides the in-app terminal allowlist. https://cursor.com/docs/reference/permissions
Prefer Auto-review over turning checks off
Claude Code auto mode (Shift+Tab when the session offers it, or defaultMode set to auto) lets a classifier review shell and network actions instead of you. With v2.1.283 or later it is the starting mode for interactive terminal and VS Code sessions. Cursor's Auto-review mode runs allowlisted calls immediately, can sandbox other shell commands, and sends the rest to a classifier. Both are still guardrails, not a promise the agent is safe.
Keep bypass modes off your main machine
Claude Code's bypassPermissions mode skips prompts, including writes under .git and .claude. Anthropic's docs say to use it only in an isolated container or VM. Cursor's Run Everything mode runs every tool call with no sandbox and no classifier. Don't use either for a normal repo on your laptop.
If it still asks, a rule is forcing the prompt
Claude Code checks deny, then ask, then allow. A matching ask rule still prompts when an allow rule also matches, and a deny rule cannot be carved out by a narrower allow. Open /permissions and remove the ask or deny rule that matches the command. In Cursor, a team or admin setting replaces permissions.json for that category, so a local allowlist will not win.
Which tools are best to stop a coding agent asking every time?
Claude Code
Allow, ask and deny rules, plus /permissions. Manual mode asks; auto mode lets a classifier review shell and network actions.
Cursor
Run Modes are Auto-review, Allowlist, or Run Everything. Repeat commands go in permissions.json.
Codex
OpenAI's coding agent for the CLI, IDE and cloud. Use its approval settings instead of pasting secrets into the chat.
Windsurf
IDE with the Cascade agent. Keep approvals on for terminal and network actions you have not reviewed.
Open: 1 spot per week
One labeled sponsor for this topic each week; this week's spot is open. See open weeks →
All tools for “Stop a coding agent asking every time” →
Related fixes
- Stop a Cursor agent loopHow to fix a Cursor agent loop (same edit, or work after Stop)Fix →
- Claude Code vs Codex vs Cursor ~$20 plansClaude Code vs Codex vs Cursor $20 plan limits: how to pick without burning the weekFix →
- Scan a vibe-coded app for leaked API keysCheck a vibe-coded app for leaked API keys before you share itFix →
- Add an MCP server to Claude Code, Cursor, or CodexHow to add an MCP server to Claude Code, Cursor, or CodexFix →
See also AI tools launched today on the daily board.
NewAIToolsToday Daily
Top 3 AI launches, one model or news item that matters, and one simple fix. A 5-minute read, every weekday.