- Separated GitHub-specific features from standard init
- Standard init uses local Git checkpoints only
- GitHub init includes GitHub release creation
- Added standard-checkpoint-hooks.sh for non-GitHub checkpoints
- Updated template-copier.js to include all checkpoint scripts
- Fixed backtick escaping in shell script templates
- Updated help text to show alpha.80 version
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add unref() to system monitoring interval to allow natural process exit
- Add cleanup function to stop monitoring when needed
- Initialize metrics without monitoring for analysis commands
- Analysis commands now exit properly after displaying results
- Add comprehensive performance metrics collection system
- Track actual task execution, success rates, and timing
- Monitor agent performance by type with real data
- Implement system resource monitoring (CPU, memory)
- Add bottleneck detection with real analysis
- Create trend analysis comparing time periods
- Support HTML, JSON, and CSV export formats
- Integrate automatic performance tracking for all commands
- Store metrics in .claude-flow/metrics/ directory
BREAKING CHANGE: Performance reports and bottleneck detection now show real data instead of simulated metrics
Part of alpha.80 release
- Implement real token usage tracking that integrates with Claude Code's OpenTelemetry metrics
- Add --monitoring flag to init command for easy setup
- Track actual API token consumption with cost calculations
- Support multiple data sources (OpenTelemetry, local metrics, project tracking)
- Generate detailed CSV reports with usage breakdown by agent type
- Provide smart optimization recommendations to reduce costs
- Update all version references to 2.0.0-alpha.80
- Update CLI help text to highlight monitoring features
- Add comprehensive documentation for token tracking setup
BREAKING CHANGE: Token usage analysis now shows real data instead of simulated metrics
Closes#80
- Move headless configuration to beginning of swarmCommand function
- Fix issue where headless mode was falling back to basic executor
- Ensure stream-json format is used for Claude compatibility
- Clean up debug console.log statements
- Support CI/CD and Docker environments with proper non-interactive flags
- Replace all Deno APIs with native Node.js equivalents
- Fix all syntax errors from automated replacements
- Update imports across 40+ files
- Remove Deno export from node-compat.js
- Successfully test init command functionality
- No more 'Deno is not defined' warnings
Fixes#521
- Add github-safe.js to enhanced-templates.js as a new helper script
- Include github-safe.js in the list of helpers to be created during init
- Update both index.js and template-copier.js to include the new helper
- Users will now get github-safe.js in .claude/helpers/ when running init
This addresses the user's question about whether the fix would be available through init.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Implement github-cli-safe.js with proper handling of special characters
- Use temporary files for body content to avoid shell interpretation
- Add timeout protection and proper process cleanup
- Prevent command substitution, backtick execution, and path errors
Fixes the 2-minute timeout issues when using gh commands with:
- Backticks in code examples
- Command substitution syntax like
- Directory paths and special shell characters
All GitHub CLI operations now safely handle complex content without
triggering shell interpretation or hanging processes.
- Added npx claude-flow@alpha swarm "your objective" --claude
- Added npx claude-flow@alpha hive-mind spawn "command" --claude
- Emphasized --claude flag for best Claude Code integration
- Updated both Claude Code installed and non-installed flows
- Clear guidance for users on proper command usage
## Key Improvements
### 🧹 **Removed Legacy Deno Warnings**
- Silently skip legacy slash command creation that required Deno
- No more "⚠️ Could not create Claude Code slash commands: Deno is not defined"
- Clean initialization experience without confusing error messages
### ✨ **Enhanced SPARC Integration**
- SPARC slash commands work perfectly with Node.js only
- All 17+ SPARC modes create successfully (/sparc-architect, /sparc-tdd, etc.)
- Legacy claude-flow slash commands deemed redundant since SPARC provides full functionality
### 📦 **Version Update to Alpha.78**
- Synchronized version across all files (package.json, bin scripts, help text)
- Updated help text to reflect Deno warning removal
- Clean user experience without technical debt warnings
## Technical Changes
### **Files Modified**
- `src/cli/simple-commands/init/index.js`: Silent error handling for legacy commands
- `src/cli/simple-commands/init/claude-commands/slash-commands.js`: Remove Deno warnings
- `package.json`, `bin/claude-flow*`, `src/cli/help-text.js`: Version bump to alpha.78
### **User Experience Impact**
- ✅ Clean initialization without warning messages
- ✅ All SPARC functionality works perfectly
- ✅ No Deno installation required
- ✅ Full Node.js compatibility maintained
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Added timeout protection for ruv-swarm availability check (3s)
- Fallback to skip ruv-swarm hook if timeout occurs
- Force process exit with setTimeout to prevent hanging
- Handles npx remote execution scenarios properly
This addresses the hanging issue when running:
npx claude-flow@alpha hooks pre-task --description "task"
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Added process.exit() after task completion
- Properly close SQLite database connection to prevent hanging
- Ensures clean exit for both success and error cases
Fixes hanging process issue reported when running:
npx claude-flow@alpha hooks pre-task --description "task"
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Comprehensive Windows CLI compatibility fixes from PR #483
- Cross-platform Node.js bin script replacing Unix shell script
- Fixed path normalization for Windows path handling
- Windows PowerShell support for installations
- Native dependencies moved to optionalDependencies
- Includes all alpha.74 fixes (SQLite & async/await)
Co-authored-by: alexx-ftw <alex@example.com>
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
✅ TECHNICAL FIXES
- Fixed SQLite loading in sqlite-wrapper.js - now properly loads better-sqlite3
- Fixed async/await in hive-mind sessions command - no more forEach errors
- Fixed async/await in session-manager getActiveSessionsWithProcessInfo
- Reordered SQLite loading to try CommonJS require first (more reliable)
🔧 VERSION UPDATES
- package.json: 2.0.0-alpha.74
- bin/claude-flow: 2.0.0-alpha.74
- src/cli/help-text.js: 2.0.0-alpha.74
- Updated help text to reflect alpha.74 fixes
🐛 BUGS FIXED
- 'sessions.forEach is not a function' error resolved
- SQLite not available fallback fixed - now properly uses persistent storage
- Hive-mind sessions command now displays all active sessions correctly
🎯 Key Achievement: Hive-mind persistence and reliability improvements
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
The isMainModule function was failing on Windows due to direct
string comparison of file paths with different separators. This
commit fixes the issue by normalizing both paths using
path.normalize() before comparison.
Fixes silent CLI command failures on Windows where commands
like 'claude-flow memory stats' would run without output.
Tested on Windows 11 with Node.js v22.17.0.
✨ Major Features:
- Updated init system to create all 64 agent files during initialization
- Enhanced CLAUDE.md template with complete agent documentation
- Added PreCompact hook with agent guidance to settings.json template
- Created agent-copier.js for robust agent file distribution
🔧 Init System Improvements:
- copyAgentFiles() function copies all agents from package
- createAgentDirectories() creates proper directory structure
- validateAgentSystem() ensures agent system integrity
- Works with both 'npx claude-flow@alpha init' and '--force'
📁 Files Updated:
- package.json: Version bump to alpha.73
- src/cli/simple-cli.js: Version update
- src/cli/simple-commands/init/templates/CLAUDE.md: Complete agent system docs
- src/cli/simple-commands/init/templates/settings.json: PreCompact hook
- src/cli/simple-commands/init/index.js: Agent system integration
- NEW: src/cli/simple-commands/init/agent-copier.js: Agent file distribution
🎯 NPX Distribution Ready:
- All agent files included in package via .claude/ in files array
- Remote npx execution will create complete agent system
- Both --force and normal init modes supported
- Proper validation and error handling
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
The settings.json template had single backslashes \n that were being
interpreted as actual newlines, causing Claude CLI to report invalid
JSON. Fixed by using double backslashes \\n for proper escaping.
This ensures the hooks commands with tr '\\n' '\\0' are correctly
preserved in the generated settings.json file.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
When --memory-key is passed without a value, it's parsed as boolean true.
This caused SQLite binding errors. Now generates a default key based on
filename and timestamp when the flag is passed without a value.
Fixes: SQLite3 can only bind numbers, strings, bigints, buffers, and null
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Replace complex printf/nested quotes with reliable cat < /dev/null | jq|tr|xargs pipeline
- Use 'jq -r ".field // empty"' instead of problematic '.field // ""' syntax
- Fix both init template and current settings.json files
- Update version to 2.0.0-alpha.70
- All hook types now work without shell syntax errors
Fixes#443🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Fixed settings.json validation errors for Claude Code compatibility
- Removed unrecognized fields (checkpoints, memory, neural, github, optimization)
- Corrected hook names to match Claude Code 1.0.51+ format
- Updated version references across all files
- Created GitHub issue #440 for release tracking
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>