Skip to content

Feature request: Ship dsp as a bin entry for claude --dangerously-skip-permissions #1236

@DocWach

Description

@DocWach

Summary

dsp (shorthand for claude --dangerously-skip-permissions) is a common workflow shortcut but is not shipped as a bin entry in the claude-flow package. Users must manually create shell-specific wrapper scripts, which is error-prone across different terminals (CMD, PowerShell, Git Bash).

Current State

package.json only exports one binary:

"bin": {
  "claude-flow": "./v3/@claude-flow/cli/bin/cli.js"
}

No dsp command exists anywhere in the source.

Problem

On Windows, users need three separate scripts to make dsp work across all terminals:

  • .cmd for CMD
  • .ps1 for PowerShell (VS Code default)
  • extensionless bash script for Git Bash

Without these, dsp silently fails or returns "command not found."

Proposed Solution

Add dsp as a cross-platform Node.js bin entry:

"bin": {
  "claude-flow": "./v3/@claude-flow/cli/bin/cli.js",
  "dsp": "./v3/@claude-flow/cli/bin/dsp.js"
}

Where dsp.js:

#!/usr/bin/env node
const { execFileSync } = require('child_process');
try {
  execFileSync('claude', ['--dangerously-skip-permissions', ...process.argv.slice(2)], { stdio: 'inherit' });
} catch (e) {
  process.exit(e.status || 1);
}

npm automatically generates .cmd and .ps1 wrappers for Node.js bin entries on Windows, so this single file works everywhere.

Environment

  • claude-flow v3.1.0-alpha.3
  • Claude Code v2.1.61
  • Windows 11, PowerShell (VS Code terminal)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions