v2/benchmark/NON_INTERACTIVE_COMMANDS.md
These commands work correctly with --non-interactive flag in claude-flow alpha.83:
# Basic swarm with non-interactive mode
npx [email protected] swarm "Your task description" --non-interactive
# With additional options
npx [email protected] swarm "Build a REST API" \
--strategy development \
--mode distributed \
--max-agents 8 \
--non-interactive
# With executor (for built-in execution without Claude CLI)
npx [email protected] swarm "Analyze code patterns" \
--executor \
--non-interactive
# Basic hive-mind spawn
npx [email protected] hive-mind spawn "Design architecture" \
--count 4 \
--coordination majority \
--non-interactive
# With different coordination modes
npx [email protected] hive-mind spawn "Solve complex problem" \
--count 8 \
--coordination weighted \
--non-interactive
# Byzantine fault tolerant mode
npx [email protected] hive-mind spawn "Critical system design" \
--count 10 \
--coordination byzantine \
--non-interactive
# SPARC modes (these work without --non-interactive as they're already non-interactive)
npx [email protected] sparc spec "Define API requirements"
npx [email protected] sparc architect "Design microservices system"
npx [email protected] sparc tdd "Create authentication module"
npx [email protected] sparc integration "Integrate payment gateway"
npx [email protected] sparc refactor "Optimize database queries"
# With output format
npx [email protected] sparc tdd "Build calculator" --format markdown
npx [email protected] sparc architect "Design system" --format json
# With file output
npx [email protected] sparc tdd "Create parser" --file ./output/parser.md
# Swarm benchmark
./benchmark/bin/swarm-benchmark real swarm "Your task" --strategy auto --mode centralized
# Hive-mind benchmark
./benchmark/bin/swarm-benchmark real hive-mind "Your task" --max-workers 8 --consensus majority
# SPARC benchmark
./benchmark/bin/swarm-benchmark real sparc tdd "Your task"
[email protected] for working non-interactive modenpx claude-flow --versionnpx [email protected]# Test swarm non-interactive
npx [email protected] swarm "Hello world test" --non-interactive
# Test hive-mind non-interactive
npx [email protected] hive-mind spawn "Simple task" --count 2 --non-interactive
# Test SPARC (already non-interactive)
npx [email protected] sparc tdd "Simple function"