Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Claude Code YOLO ToggleNew to Visual Studio Code? Get it now.
Claude Code YOLO Toggle

Claude Code YOLO Toggle

Manuel Camargo

|
70 installs
| (0) | Free
Status bar badge + click-to-toggle for Claude Code's permission mode, with per-workspace badge opt-in.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

claude-code-yolo-toggle

A tiny VSCode extension that adds a status bar badge reflecting Claude Code's permission mode, with a click-to-toggle action.

Click the badge → flips claudeCode.allowDangerouslySkipPermissions and claudeCode.initialPermissionMode in user settings. Badge text/color update reactively.

  • Safe state → 🛡️ Claude: Safe

    Safe state

  • YOLO state → ⚡ Claude: YOLO

    YOLO state

Only renders when the workspace opts in via "claudeYolo.enabled": true in its settings (or .code-workspace file).


Files in this repo

.
├── README.md            ← this file
├── package.json         ← extension manifest
├── extension.js         ← all the logic (~60 lines, plain JS, no build step)
└── .vscodeignore        ← packaging exclusions

No TypeScript, no bundler — just plain CommonJS. vsce package produces a .vsix you install once and forget.


Build & install (one-time)

cd ~/src/vscode/claude-code-yolo-toggle

# 1. Install vsce (VSCode extension packager) globally if missing
npm install -g @vscode/vsce

# 2. Install runtime deps (none right now, but creates package-lock)
npm install

# 3. Package
vsce package
# → produces claude-code-yolo-toggle-x.y.z.vsix

# 4. Install into VSCode
code --install-extension claude-code-yolo-toggle-x.y.z.vsix

On WSL, run code --install-extension ... from inside WSL — it installs into the Windows host VSCode automatically via the Remote-WSL bridge.

After install, reload the window: Ctrl+Shift+P → Developer: Reload Window.


Use in a workspace

Add to the workspace file (*.code-workspace) or .vscode/settings.json:

{
  "settings": {
    "claudeYolo.enabled": true
  }
}

The badge will appear on the left side of the status bar. Click to flip.

Other workspaces (without claudeYolo.enabled: true) won't see the badge, keeping the indicator scoped to projects that opt in — but remember the permission mode itself is machine-wide, so a flip here changes Claude Code everywhere.

Toggling also removes any stale workspace-level copies of the two claudeCode.* settings that older versions of this extension wrote, so they cannot shadow the user-level value. On Claude Code 2.1.231+ VSCode refuses that cleanup write too — harmless, since machine-scoped settings in .vscode/settings.json are ignored when the value is resolved. Delete them by hand if you want the file tidy.


Removing

code --uninstall-extension sirlouen.claude-code-yolo-toggle
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft