✅ Critical Fix:
• Fixed "initSparc is not defined" error in enhancedClaudeFlowInit function
• Added initSparc variable definition to enhanced init function scope
• Ensures both regular and enhanced init paths work correctly
🔧 Technical Changes:
• Added initSparc definition at line 1099 in enhancedClaudeFlowInit
• Maintains consistency with --roo flag behavior across all init modes
• Variable now properly scoped for all function paths
🧪 Testing Results:
• Regular init: ✅ No SPARC initialization (no .roo folders)
• Init --roo: ✅ SPARC initialization works correctly
• Dry-run: ✅ No more "initSparc is not defined" errors
• Hive-mind spawn: ✅ Database schema working properly
🎯 Root Cause:
• Early return in initCommand() at line 156 bypassed initSparc definition
• enhancedClaudeFlowInit() was called without initSparc in scope
• Variable was referenced at line 1403 but never defined in that function
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
🚀 Major improvements for Claude Code Task tool integration:
### Claude Code Task Tool Integration
- Enhanced CLAUDE.md templates with clear guidance for Task tool usage
- MCP tools clearly marked as coordination-only, not for execution
- Step-by-step workflow: Optional MCP setup → Required Task tool execution
- Comprehensive examples of concurrent agent spawning patterns
### Documentation Improvements
- Fixed init command to create ALL 91 command documentation files
- 10 swarm command files in .claude/commands/swarm/
- 12 hive-mind command files in .claude/commands/hive-mind/
- 5 agents documentation files in .claude/commands/agents/
- Enhanced template structure with complete COMMAND_STRUCTURE
- Proper emphasis on Task tool usage in all agent-related docs
### Batch Operation Emphasis
- Strong emphasis on batching 5-10+ todos in ONE call
- Comprehensive examples of parallel agent execution (6-8 agents)
- Single message pattern for 300% performance improvement
### File Organization Rules
- Never save to root folder - all files properly organized
- Clear directory structure guidance in CLAUDE.md
- Proper organization for /src, /tests, /docs, /config directories
### Technical Updates
- Updated generateHiveMindPrompt() function with Task tool emphasis
- Enhanced swarm prompt generation with visual separation
- Version bump to 2.0.0-alpha.91 across all files
- Comprehensive CHANGELOG.md updates
This release ensures clear distinction between:
- MCP tools: Coordinate and plan (the brain)
- Claude Code Task tool: Execute and implement (the hands)
Fixes#686🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>