FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Claude Code stops to ask permission before every shell command. Here's the two-line fix.
How-ToTools

Claude Code stops to ask permission before every shell command. Here's the two-line fix.

via Dev.toZac5h ago

If you've used Claude Code for more than an hour, you've hit this: you ask it to do something, it starts, then stops to ask if it can run ls or cat or npm install . You say yes. It runs one command and stops again. This is the default behavior. It's not a bug. But it makes autonomous work basically impossible. There are two places to fix it, and you probably want both. Fix 1: settings.json In your project root (or ~/.claude/ ), add or update .claude/settings.json : { "defaultMode" : "acceptEdits" } This tells Claude Code to accept file edits without asking. For shell commands, add: { "defaultMode" : "acceptEdits" , "bash" : { "allowedCommands" : [ "*" ] } } The allowedCommands: ["*"] wildcard is the aggressive version — Claude runs any shell command without prompting. For projects where you want more control, list specific commands instead: ["npm", "git", "ls", "cat", "grep"] . Fix 2: CLAUDE.md Settings handle the permission layer, but Claude also has an instruction-following layer. If

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles

Talent gets the spotlight.
Discipline builds the legacy.
How-To

Talent gets the spotlight. Discipline builds the legacy.

Medium Programming • 35m ago

Coding in the Age of Co-Pilots: Why Developers Who Think Will Win
How-To

Coding in the Age of Co-Pilots: Why Developers Who Think Will Win

Medium Programming • 2h ago

Two more EVs for the trash heap: Volvo EX30 and Honda Prologue
How-To

Two more EVs for the trash heap: Volvo EX30 and Honda Prologue

The Verge • 2h ago

How-To

Building Your First Interactive Flutter App (Dicee)

Medium Programming • 2h ago

80% of ML Engineering is Data Cleaning. Here is How I Automated It.
How-To

80% of ML Engineering is Data Cleaning. Here is How I Automated It.

Medium Programming • 2h ago

Discover More Articles