Files
extension/packages/dev/test-swarm-demo.sh
T
Hanzo Dev a0e37986d0 feat: add swarm mode with multi-agent parallel file editing
- Add --swarm <count> capability to launch up to 100 agents in parallel
- Support multiple providers: --claude, --openai, --gemini, --grok, --local
- Implement lazy agent spawning for efficient resource usage
- Add automatic authentication for all providers
- Create parallel file processing with progress tracking
- Migrate all tests from Jest to Vitest
- Add comprehensive test coverage for swarm functionality
- Support idiomatic usage: dev --claude --swarm 5 -p 'edit files...'
- Version bump to 2.1.0
2025-07-16 01:44:17 -05:00

22 lines
623 B
Bash
Executable File

#!/bin/bash
echo "🐝 Hanzo Dev Swarm Demo"
echo "======================"
echo ""
echo "This demo will add copyright headers to 5 test files in parallel"
echo ""
echo "Files before:"
echo "-------------"
head -n 1 test-swarm/*.{js,ts,py,md,json} 2>/dev/null
echo ""
echo "Running swarm with 5 agents..."
echo ""
# Run the swarm command
node dist/cli/dev.js --claude --swarm 5 -p "Add this copyright header at the very top of each file: '// Copyright 2025 Hanzo Industries Inc.' (use # for Python, // for JS/TS/JSON)"
echo ""
echo "Files after:"
echo "------------"
head -n 2 test-swarm/*.{js,ts,py,md,json} 2>/dev/null