-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Description
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:
.cmdfor CMD.ps1for 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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels