Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

πŸš€ Alpha.73: Complete 64-Agent System Implementation

rUv404a16bd3062
diff --git a/AGENT_CONVERSION_CLEANUP_REPORT.md b/AGENT_CONVERSION_CLEANUP_REPORT.md
deleted file mode 100644
index 808c3083b5..0000000000
--- a/AGENT_CONVERSION_CLEANUP_REPORT.md
+++ /dev/null
@@ -1,64 +0,0 @@
-# Agent Conversion Cleanup Report
-
-**Date:** July 25, 2025
-**Task:** Clean up after YAML to MD agent file conversions
-**Status:** In Progress
-
-## Conversion Status Summary
-
-### βœ… Successfully Converted (1/8)
-- `/workspaces/claude-code-flow/.claude/agents/documentation/api-docs/docs-api-openapi.agent.md` βœ… **CONVERTED**
-
-### ⏳ Pending Conversion (7/8)
-1. `/workspaces/claude-code-flow/.claude/agents/analysis/code-review/analyze-code-quality.agent.yaml` ❌ **PENDING**
-2. `/workspaces/claude-code-flow/.claude/agents/architecture/system-design/arch-system-design.agent.yaml` ❌ **PENDING**
-3. `/workspaces/claude-code-flow/.claude/agents/data/ml/data-ml-model.agent.yaml` ❌ **PENDING**
-4. `/workspaces/claude-code-flow/.claude/agents/development/backend/dev-backend-api.agent.yaml` ❌ **PENDING**
-5. `/workspaces/claude-code-flow/.claude/agents/devops/ci-cd/ops-cicd-github.agent.yaml` ❌ **PENDING**
-6. `/workspaces/claude-code-flow/.claude/agents/specialized/mobile/spec-mobile-react-native.agent.yaml` ❌ **PENDING**
-7. `/workspaces/claude-code-flow/.claude/agents/testing/unit/test-unit-jest.agent.yaml` ❌ **PENDING**
-
-## Actions Taken
-
-1. **Verified File Status**: Checked all 8 target directories for conversion status
-2. **Identified Completed Conversions**: Found 1 successfully converted file
-3. **Monitored Progress**: Waited for other agents to complete their conversion tasks
-4. **Status Documentation**: Created this comprehensive status report
-
-## Files Safe to Delete (Once Conversion Complete)
-
-**Note**: These files should ONLY be deleted after their corresponding .md files exist and are verified working:
-
-- ❌ **DO NOT DELETE YET** - No .md counterpart exists
-- ❌ **DO NOT DELETE YET** - No .md counterpart exists
-- ❌ **DO NOT DELETE YET** - No .md counterpart exists
-- ❌ **DO NOT DELETE YET** - No .md counterpart exists
-- ❌ **DO NOT DELETE YET** - No .md counterpart exists
-- ❌ **DO NOT DELETE YET** - No .md counterpart exists
-- ❌ **DO NOT DELETE YET** - No .md counterpart exists
-
-## Next Steps Required
-
-1. βœ… **Wait for agent conversions to complete**
-2. ⏳ **Re-verify all .md files exist**
-3. ⏳ **Test converted agents for functionality**
-4. ⏳ **Delete .yaml files only after .md verification**
-5. ⏳ **Update final conversion summary**
-
-## Current Issues
-
-- **Conversion Delay**: Other agents may not have started their conversion tasks yet
-- **Coordination**: Need to ensure all agents complete before cleanup
-- **Verification**: Must test .md files work before deleting .yaml originals
-
-## Safety Protocol
-
-**CRITICAL**: Original .yaml files will NOT be deleted until:
-1. Corresponding .md file exists
-2. .md file has been validated
-3. Agent functionality has been tested
-4. Explicit confirmation received
-
----
-**Report Generated**: `date`
-**Next Update**: After agent conversions complete
\ No newline at end of file
diff --git a/PUBLISH_ALPHA_66.md b/PUBLISH_ALPHA_66.md
deleted file mode 100644
index cb6ae7eed6..0000000000
--- a/PUBLISH_ALPHA_66.md
+++ /dev/null
@@ -1,73 +0,0 @@
-# Alpha.66 Release Instructions
-
-## Changes Included
-
-### 1. Hooks Command Fix
-- Fixed "command.toLowerCase is not a function" error
-- Added type checking for command parameter
-- Improved boolean parameter parsing
-
-### 2. ARM64 macOS Support (#378)
-- Added automatic SQLite binding verification
-- Enhanced postinstall script with ARM64 detection
-- Graceful fallback to in-memory storage if bindings fail
-- Added node20-macos-arm64 to pkg targets
-
-## Files Modified
-1. `package.json` - Version updated to 2.0.0-alpha.66
-2. `CHANGELOG.md` - Added alpha.66 release notes
-3. `src/cli/simple-commands/hooks.js` - Fixed toLowerCase error
-4. `src/cli/help-text.js` - Updated version
-5. `src/cli/simple-cli.js` - Updated version
-6. `scripts/install-arm64.js` - Added ARM64 compatibility script
-
-## Publishing Steps
-
-```bash
-# 1. Update version in bin
-npm run update-version
-
-# 2. Commit changes
-git add -A
-git commit -m "chore: Release v2.0.0-alpha.66"
-
-# 3. Push to branch
-git push origin alpha-66
-
-# 4. Publish to npm
-npm publish --tag alpha
-
-# 5. Verify publication
-npm view claude-flow@alpha version
-# Should show: 2.0.0-alpha.66
-
-# 6. Test the fixes
-npx claude-flow@alpha hooks pre-command --command "test" --validate-safety true
-# Should work without toLowerCase error
-```
-
-## Testing
-
-### Test Hooks Fix:
-```bash
-# Test with empty command
-npx claude-flow@alpha hooks pre-command --command "" --validate-safety true
-
-# Test with valid command
-npx claude-flow@alpha hooks pre-command --command "echo test" --validate-safety true
-```
-
-### Test ARM64 Support:
-On Apple Silicon Mac:
-```bash
-npm install -g claude-flow@alpha
-# Should detect ARM64 and attempt to rebuild SQLite bindings
-```
-
-## GitHub Actions
-
-After publishing:
-1. Create GitHub release v2.0.0-alpha.66
-2. Update issue #415 (alpha.66 planning)
-3. Close PR #378 as merged
-4. Create PR for alpha-66 branch
\ No newline at end of file
diff --git a/bin/claude-flow b/bin/claude-flow
index 9b683b621b..ee567af4ed 100755
--- a/bin/claude-flow
+++ b/bin/claude-flow
@@ -1,7 +1,7 @@
#!/bin/sh
# Claude-Flow Smart Dispatcher - Detects and uses the best available runtime
-VERSION="2.0.0-alpha.72"
+VERSION="2.0.0-alpha.73"
# Determine the correct path based on how the script is invoked
if [ -L "$0" ]; then
diff --git a/src/cli/help-text.js b/src/cli/help-text.js
index 977ac675bc..d7c07fb9bc 100644
--- a/src/cli/help-text.js
+++ b/src/cli/help-text.js
@@ -5,14 +5,14 @@
import { HelpFormatter } from './help-formatter.js';
-export const VERSION = '2.0.0-alpha.70';
+export const VERSION = '2.0.0-alpha.73';
export const MAIN_HELP = `
🌊 Claude-Flow v${VERSION} - Enterprise-Grade AI Agent Orchestration Platform
🎯 ENTERPRISE FEATURES: Complete ruv-swarm integration with 87 MCP tools, neural networking, and production-ready infrastructure
🐝 NEW: Advanced Hive Mind System with Queen-led coordination, collective intelligence, and unlimited scaling
-⚑ ALPHA 64: Fixed wrapper script to use @alpha tag, ensures latest version always used
+⚑ ALPHA 73: Complete 64-agent system with swarm coordination, enhanced CLAUDE.md integration, and optimized init system
USAGE:
claude-flow <command> [options]
diff --git a/src/cli/simple-commands/init/agent-copier.js b/src/cli/simple-commands/init/agent-copier.js
index b8327e8db8..9b08e22b3a 100644
--- a/src/cli/simple-commands/init/agent-copier.js
+++ b/src/cli/simple-commands/init/agent-copier.js
@@ -12,20 +12,41 @@ const __dirname = dirname(__filename);
export async function copyAgentFiles(targetDir, options = {}) {
const { force = false, dryRun = false } = options;
- // Path to agent files in the installed package
- const sourceAgentsDir = join(__dirname, '../../../../.claude/agents');
- const targetAgentsDir = join(targetDir, '.claude/agents');
+ // Path to agent files - try multiple locations
+ const packageAgentsDir = join(__dirname, '../../../../.claude/agents'); // From npm package
+ const localAgentsDir = '/workspaces/claude-code-flow/.claude/agents'; // Local development
+ const cwdAgentsDir = join(process.cwd(), '.claude/agents'); // Current working directory
- console.log('πŸ“ Copying agent system files...');
+ let sourceAgentsDir;
+ // Try local development first, then package, then cwd
try {
- // Check if source agents directory exists
+ await fs.access(localAgentsDir);
+ sourceAgentsDir = localAgentsDir;
+ console.log(' πŸ“ Using local development agent files');
+ } catch {
try {
- await fs.access(sourceAgentsDir);
- } catch (err) {
- console.log('⚠️ Agent files not found in package, skipping agent system setup');
- return { success: false, error: 'Agent files not found in package' };
+ await fs.access(packageAgentsDir);
+ sourceAgentsDir = packageAgentsDir;
+ console.log(' πŸ“ Using packaged agent files');
+ } catch {
+ try {
+ await fs.access(cwdAgentsDir);
+ sourceAgentsDir = cwdAgentsDir;
+ console.log(' πŸ“ Using current directory agent files');
+ } catch {
+ console.log(' ⚠️ No agent files found in any location');
+ return { success: false, error: 'Agent files not found' };
+ }
}
+ }
+ const targetAgentsDir = join(targetDir, '.claude/agents');
+
+ console.log('πŸ“ Copying agent system files...');
+ console.log(` πŸ“‚ Source: ${sourceAgentsDir}`);
+ console.log(` πŸ“‚ Target: ${targetAgentsDir}`);
+
+ try {
// Create target directory
if (!dryRun) {
diff --git a/src/cli/simple-commands/init/index.js b/src/cli/simple-commands/init/index.js
index 23844644e2..b7eb3e76b7 100644
--- a/src/cli/simple-commands/init/index.js
+++ b/src/cli/simple-commands/init/index.js
@@ -223,21 +223,7 @@ export async function initCommand(subArgs, flags) {
}
}
- // Create agent directories and copy all agent files
- console.log('\nπŸ€– Setting up agent system...');
- if (!initDryRun) {
- await createAgentDirectories(workingDir, initDryRun);
- const agentResult = await copyAgentFiles(workingDir, {
- force: initForce,
- dryRun: initDryRun
- });
-
- if (agentResult.success) {
- await validateAgentSystem(workingDir);
- }
- } else {
- console.log(' [DRY RUN] Would create agent system with 64 specialized agents');
- }
+ // Agent setup moved to end of function where execution is guaranteed
// Directory structure is created by template copier
@@ -1298,6 +1284,25 @@ ${commands.map((cmd) => `- [${cmd}](./${cmd}.md)`).join('\n')}
console.log('\n πŸ’‘ MCP servers are defined in .mcp.json (project scope)');
}
+ // Create agent directories and copy all agent files
+ console.log('\nπŸ€– Setting up agent system...');
+ if (!dryRun) {
+ await createAgentDirectories(workingDir, dryRun);
+ const agentResult = await copyAgentFiles(workingDir, {
+ force: force,
+ dryRun: dryRun
+ });
+
+ if (agentResult.success) {
+ await validateAgentSystem(workingDir);
+ console.log('βœ… βœ“ Agent system setup complete with 64 specialized agents');
+ } else {
+ console.log('⚠️ Agent system setup failed:', agentResult.error);
+ }
+ } else {
+ console.log(' [DRY RUN] Would create agent system with 64 specialized agents');
+ }
+
// Final instructions
console.log('\nπŸŽ‰ Claude Flow v2.0.0 initialization complete!');
console.log('\nπŸ“š Quick Start:');