DEV Community

DavidAI311
DavidAI311

Posted on

--dangerously-skip-permissions: The Claude Code Flag Every Vibe Coder Needs

The flag has "dangerously" right in the name.

Anthropic doesn't recommend it. The docs don't put it front and center.

But if you're a vibe coder, this might be the single most important flag you'll ever learn.


Permission Hell

Use Claude Code normally, and you'll get a constant stream of questions:

"Can I write to this file?"
"Can I run this command?"
"Can I create this directory?"

Five, ten interruptions per task.

If you have programming experience, these are meaningful safety checks. You see rm -rf and think, "Nope, let me stop that."

But what about vibe coders?

The Non-Technical User Problem

Picture someone who's never written a line of code in their life. They discovered Claude Code, and now they're building React apps and deploying to Vercel. This is happening everywhere — people with zero programming background are shipping real software through AI.

But every time a permission prompt appears, they think:

"...I have no idea what this is asking me."

They don't understand file paths. They can't judge whether a command is dangerous. But they want to keep building, so they press Yes every time.

Technically, they're "confirming." In practice, they're confirming nothing.

This isn't their fault. Asking non-programmers to answer programmer-level safety questions is a design mismatch. The safety check provides zero actual safety for people who can't evaluate what they're approving.


The Fix: One Command

claude --dangerously-skip-permissions
Enter fullscreen mode Exit fullscreen mode

Launch Claude Code with this flag, and it skips every permission check. File reads, file writes, command execution — all automatic.

Work never stops. Flow never breaks.

I launch with this flag every single time.


Is This Actually Safe?

Let's be honest.

Risks Exist

Other AI coding tools have caused real damage. There are reports of Gemini and ChatGPT Codex deleting entire hard drives. With --dangerously-skip-permissions, Claude Code could theoretically do the same.

My Experience

I use Claude Code 12+ hours a day. I've had --dangerously-skip-permissions as my default for months.

Not once has a file been incorrectly deleted.

Claude feels more cautious about destructive operations than other AIs. In my experience, it has never spontaneously tried to run something like rm -rf. It tends to err on the side of caution even when the guardrails are off.

But that's my experience, not a guarantee.


4 Safety Habits

If you're going to use --dangerously-skip-permissions, follow these four rules.

First: What Are Git, Commit, and Rollback? (For Non-Programmers)

The words "Git," "commit," and "rollback" are about to come up. If you're a vibe coder who's never touched version control, here's the simplest way to think about it.

Your code is a room.

The room has furniture — a desk, chairs, shelves. You rearrange things. When you like the layout, you take a photo with your phone. That's a commit.

It means: "Save the current state." Lock it in. Every time you take a photo, you add a note like "moved the desk by the window."

You keep rearranging. Change the curtains — take a photo. Move the bookshelf — take a photo. Your photo collection grows.

Then you think, "Actually, the layout from three changes ago was better." You pick that old photo and restore the room to that state. That's a rollback.

And Git is the album that stores all your photos.

In short:

  • commit = take a photo of your room (save current state)
  • rollback = pick an old photo and restore that state
  • Git = the photo album

Not complicated. Tell Claude Code "commit this" and it takes the photo. Tell it "go back to the previous state" and it rolls back. You don't even need to memorize commands.


Habit 1: Always Commit Before Making Changes

Before changing code, save the current state with Git:

git add .
git commit -m "before changes"
Enter fullscreen mode Exit fullscreen mode

If Claude breaks something, git checkout . restores everything instantly.

Pro tip: Add this as a rule in your CLAUDE.md file, and Claude will do it automatically:

## Rules
- Always git commit to save current state before modifying code
Enter fullscreen mode Exit fullscreen mode

Habit 2: Only Run Inside Project Folders

Never launch Claude Code from your system's root directory.

Always cd into your project folder first:

cd ~/my-project
claude --dangerously-skip-permissions
Enter fullscreen mode Exit fullscreen mode

This alone limits Claude's scope to that folder. The risk of it touching system files drops dramatically.

Habit 3: Initialize Git First

If you haven't set up Git yet, run this once:

git init
Enter fullscreen mode Exit fullscreen mode

That's it. Now Habit 1 (commit before changes) becomes your safety net.

Don't know how to use Git? Just ask Claude Code: "Set up Git for this project." It'll handle it.

Habit 4: (Advanced) Run Inside a Container

Run Claude Code inside Docker or a DevContainer, and it can't affect your host machine at all.

This is the most secure approach, but it's overkill for most vibe coders. Mention it here for completeness.


The Bottom Line

I understand why Anthropic doesn't recommend --dangerously-skip-permissions. Safety matters.

But look at the reality.

When a vibe coder who's never written code sees a permission prompt, they press Yes every time. The safety check isn't functioning as a safety check. It's just friction.

If the check doesn't provide real safety, skip it. Replace it with defenses that actually work — Git commits, project-scoped folders, and container isolation.

I'm not saying use this blindly. Understand the risks. Prepare your defenses. Then make an informed choice.

That's what vibe coder independence looks like.


Questions or feedback? Find me on X (@DavidAi311).

Top comments (1)

Collapse
 
xwero profile image
david duymelinck

Allowing everything is a bad way of working. Learn the permissions, code.claude.com/docs/en/permissions, they aren't that difficult.