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

chore: Release v2.0.0-alpha.67 - Hive Mind Enhancement & Claude Code Compatibility

rUvd3303eea1a9b
diff --git a/.claude/settings.json b/.claude/settings.json
index 2ff79aca18..5aa4895fce 100644
--- a/.claude/settings.json
+++ b/.claude/settings.json
@@ -11,44 +11,6 @@
"CLAUDE_FLOW_NEURAL_OPTIMIZATION": "true",
"CLAUDE_FLOW_AUTO_LEARNING": "true"
},
- "checkpoints": {
- "enabled": true,
- "interval": 300,
- "auto_commit": true,
- "commit_message_prefix": "πŸ”„ Checkpoint:",
- "include_metrics": true,
- "branch_strategy": "checkpoint/{timestamp}",
- "max_checkpoints": 20
- },
- "memory": {
- "auto_persist": true,
- "compression": true,
- "sync_interval": 60,
- "namespaces": ["swarm", "tasks", "patterns", "errors", "optimizations"],
- "retention_days": 30,
- "backup_to_github": true
- },
- "neural": {
- "auto_optimize": true,
- "optimization_triggers": ["error", "success", "pattern", "performance"],
- "models": {
- "task_predictor": {
- "enabled": true,
- "learning_rate": 0.001,
- "update_frequency": 100
- },
- "error_preventer": {
- "enabled": true,
- "threshold": 0.85,
- "block_risky_operations": true
- },
- "performance_optimizer": {
- "enabled": true,
- "target_metrics": ["speed", "accuracy", "efficiency"],
- "auto_tune": true
- }
- }
- },
"permissions": {
"allow": [
"Bash(npx claude-flow *)",
@@ -204,7 +166,7 @@
]
}
],
- "user-prompt-submit": [
+ "UserPromptSubmit": [
{
"hooks": [
{
@@ -217,62 +179,8 @@
}
]
}
- ],
- "checkpoint": [
- {
- "interval": 300,
- "hooks": [
- {
- "type": "command",
- "command": "npx claude-flow@alpha checkpoint create --message \"Auto-checkpoint: $CLAUDE_OPERATIONS_COUNT operations\" --include-memory true"
- },
- {
- "type": "command",
- "command": "git add -A && git commit -m \"πŸ”„ Auto-checkpoint: $(date +%Y%m%d-%H%M%S)\" || true"
- },
- {
- "type": "command",
- "command": "npx claude-flow@alpha memory sync --remote true --compress true"
- }
- ]
- }
- ],
- "error": [
- {
- "hooks": [
- {
- "type": "command",
- "command": "npx claude-flow@alpha memory store --key \"error/$CLAUDE_ERROR_ID\" --value \"{\\\"error\\\": \\\"$CLAUDE_ERROR\\\", \\\"context\\\": \\\"$CLAUDE_ERROR_CONTEXT\\\"}\" --namespace \"errors\""
- },
- {
- "type": "command",
- "command": "npx claude-flow@alpha neural train --model \"error_preventer\" --data \"{\\\"error_type\\\": \\\"$CLAUDE_ERROR_TYPE\\\", \\\"operation\\\": \\\"$CLAUDE_OPERATION\\\", \\\"prevent\\\": true}\""
- },
- {
- "type": "command",
- "command": "npx claude-flow@alpha analysis error-pattern --error \"$CLAUDE_ERROR\" --suggest-fix true --store-pattern true"
- }
- ]
- }
]
},
- "github": {
- "checkpoint_branch": "checkpoints",
- "memory_backup_gists": true,
- "auto_issue_on_error": true,
- "pr_on_major_improvement": true,
- "sync_learnings": true
- },
- "optimization": {
- "continuous_improvement": true,
- "performance_targets": {
- "command_execution": "< 500ms overhead",
- "memory_operations": "< 100ms",
- "neural_predictions": "< 50ms"
- },
- "auto_tune_parameters": true,
- "share_anonymized_patterns": true
- },
"includeCoAuthoredBy": true,
"enabledMcpjsonServers": ["claude-flow", "ruv-swarm"]
}
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 54e0240a45..3a0dfdf7ee 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [2.0.0-alpha.67] - 2025-01-21
+
+### 🐝 Hive Mind Enhancement
+- **Hive Mind Integration**: Fixed settings.json validation errors for Claude Code compatibility
+- **Configuration Fix**: Removed unrecognized fields (checkpoints, memory, neural, github, optimization)
+- **Hook Names**: Corrected invalid hook names to match Claude Code 1.0.51+ format
+ - `user-prompt-submit` β†’ `UserPromptSubmit`
+ - Removed invalid `checkpoint` and `error` hooks
+
+### πŸ”§ Infrastructure
+- **Settings Validation**: Now passes `/doctor` command validation
+- **Claude Code Compatibility**: Full compatibility with Claude Code 1.0.51+ settings format
+- **Version Update**: Bumped to alpha.67 across all version references
+
+### πŸ“š Documentation
+- Updated version references in help text and CLI commands
+- Enhanced hive-mind documentation with corrected hook configurations
+
## [2.0.0-alpha.66] - 2025-01-20
### πŸ”§ Bug Fixes
diff --git a/HOOK_TEST_RESULTS.md b/HOOK_TEST_RESULTS.md
deleted file mode 100644
index acc8f05f71..0000000000
--- a/HOOK_TEST_RESULTS.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# Hook System Test Results
-
-## Test Date: 2025-07-20
-
-### βœ… Hook Functionality Tests
-
-#### 1. Pre-Command Hook
-- **Status**: βœ… Working
-- **Test**: `npx claude-flow@alpha hooks pre-command --command "echo test"`
-- **Result**: Successfully validated safety and prepared resources
-- **Memory**: Command logged to `.swarm/memory.db`
-
-#### 2. Memory Persistence
-- **Status**: βœ… Working
-- **Stats**: 4 entries stored in default namespace
-- **Database**: SQLite at `.swarm/memory.db`
-
-#### 3. Neural Training
-- **Status**: βœ… Working with WASM acceleration
-- **Test**: Trained task-predictor model with 10 epochs
-- **Results**:
- - Final accuracy: 89.4%
- - Training time: 1.0s
- - WASM acceleration: Enabled
- - Model saved to: `.ruv-swarm/neural/training-task-predictor-*.json`
-
-#### 4. Session-End Hook
-- **Status**: βœ… Working
-- **Metrics Captured**:
- - Tasks: 52
- - Edits: 61
- - Commands: 976
- - Success Rate: 100%
- - Session persisted to memory.db
-
-### 🎯 Hook Integration Success
-
-The enhanced `settings.json` successfully integrates:
-1. **Memory persistence** for all operations
-2. **Neural training** with real WASM acceleration
-3. **Session tracking** with comprehensive metrics
-4. **Safety validation** before command execution
-
-### πŸ“Š Performance Metrics
-
-- Hook overhead: < 100ms per operation
-- Memory operations: < 50ms
-- Neural predictions: Would be < 50ms when integrated
-- WASM training: ~100ms per epoch
-
-### πŸ”„ Next Steps
-
-1. The hooks are ready for production use
-2. Neural models will improve with usage
-3. Memory persistence enables cross-session learning
-4. GitHub checkpoint integration ready for testing
-
-### πŸ’‘ Recommendations
-
-1. Monitor memory database size over time
-2. Periodically backup neural models
-3. Review training accuracy trends
-4. Consider implementing the checkpoint hooks for auto-commits
-
-All systems are operational and ready for self-improving workflow!
\ No newline at end of file
diff --git a/NPM_PUBLISH_ALPHA_66.sh b/NPM_PUBLISH_ALPHA_66.sh
deleted file mode 100644
index 188cf9a4bc..0000000000
--- a/NPM_PUBLISH_ALPHA_66.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-# Script to publish alpha.66 to npm
-
-echo "Publishing claude-flow v2.0.0-alpha.66 to npm..."
-
-# Ensure we're in the right directory
-cd /workspaces/claude-code-flow
-
-# Update npm version
-npm version 2.0.0-alpha.66 --allow-same-version
-
-# Run prepublishOnly script
-npm run update-version
-
-# Publish with alpha tag
-npm publish --tag alpha --access public
-
-# Verify publication
-echo "Verifying publication..."
-npm view claude-flow@alpha version
-
-echo "Done! Alpha.66 should now be available."
\ No newline at end of file
diff --git a/OPTIMIZATION_REPORT.md b/OPTIMIZATION_REPORT.md
deleted file mode 100644
index 4b7ca0574d..0000000000
--- a/OPTIMIZATION_REPORT.md
+++ /dev/null
@@ -1,98 +0,0 @@
-# Claude Flow Performance Optimization Report
-
-Generated: 2025-07-20T19:59:26.356Z
-
-## πŸš€ Optimization Summary
-
-### Overall Expected Performance Improvement: **10-20x**
-
-## πŸ“Š Optimization Details
-
-### 1. Hook Execution Pipeline
-**Status**: optimized
-**Expected Speedup**: 3-5x
-
-Improvements:
-- Batch processing enabled
-- Parallel execution implemented
-- Result caching active
-- Deduplication enabled
-
-### 2. Memory Operations
-**Status**: optimized
-**Expected Speedup**: 2-3x
-
-Improvements:
-- Connection pooling active
-- Write batching enabled
-- Read caching implemented
-- Compression enabled
-
-### 3. Neural Predictions
-**Status**: optimized
-**Expected Speedup**: 5-10x
-
-Improvements:
-- Prediction caching active
-- Model preloading enabled
-- Batch predictions implemented
-- WASM optimization active
-
-### 4. Agent Management
-**Status**: optimized
-**Expected Speedup**: 10-20x spawn time
-
-Improvements:
-- Agent pool created
-- Pre-spawning enabled
-- Resource limits set
-- Health checks active
-
-### 5. Parallel Processing
-**Status**: optimized
-**Expected Speedup**: 4-8x
-
-Improvements:
-- Task parallelization enabled
-- Worker threads active
-- Pipeline processing enabled
-- Priority queue implemented
-
-## πŸ’‘ Recommendations
-
-1. Monitor memory usage with agent pool
-1. Adjust cache sizes based on usage patterns
-1. Consider GPU acceleration for neural operations
-1. Enable distributed processing for large tasks
-
-## 🎯 Next Steps
-
-1. Apply optimizations to production
-1. Monitor performance metrics
-1. Fine-tune parameters based on usage
-1. Implement A/B testing for configurations
-
-## πŸ“ˆ Performance Targets
-
-| Operation | Before | After | Improvement |
-|-----------|--------|-------|-------------|
-| Hook Execution | 100ms | 20ms | 5x |
-| Memory Read | 50ms | 10ms | 5x |
-| Memory Write | 30ms | 5ms | 6x |
-| Neural Prediction | 50ms | 5ms | 10x |
-| Agent Spawn | 2000ms | 100ms | 20x |
-| Task Processing | 500ms | 62ms | 8x |
-
-## πŸ”§ Configuration Files
-
-All optimization configurations have been saved to:
-- `.claude/cache/optimized-hooks.json`
-- `.claude/cache/memory-optimization.json`
-- `.claude/cache/neural-optimization.json`
-- `.claude/cache/agent-pool.json`
-- `.claude/cache/parallel-processing.json`
-
-To apply these optimizations, run:
-```bash
-npx claude-flow@alpha apply-optimizations
-```
diff --git a/bin/claude-flow b/bin/claude-flow
index 32b6962e24..40d456afc2 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.66"
+VERSION="2.0.0-alpha.67"
# Determine the correct path based on how the script is invoked
if [ -L "$0" ]; then
diff --git a/package.json b/package.json
index bc5087c3a4..d1136b78ba 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "claude-flow",
- "version": "2.0.0-alpha.66",
+ "version": "2.0.0-alpha.67",
"description": "Enterprise-grade AI agent orchestration with ruv-swarm integration (Alpha Release)",
"main": "cli.mjs",
"bin": {
diff --git a/src/cli/help-text.js b/src/cli/help-text.js
index 4f6bcb6ac7..44c93a6ff4 100644
--- a/src/cli/help-text.js
+++ b/src/cli/help-text.js
@@ -5,7 +5,7 @@
import { HelpFormatter } from './help-formatter.js';
-export const VERSION = '2.0.0-alpha.66';
+export const VERSION = '2.0.0-alpha.67';
export const MAIN_HELP = `
🌊 Claude-Flow v${VERSION} - Enterprise-Grade AI Agent Orchestration Platform
diff --git a/src/cli/simple-cli.js b/src/cli/simple-cli.js
index 009fc83d0b..3bd1825fa1 100644
--- a/src/cli/simple-cli.js
+++ b/src/cli/simple-cli.js
@@ -27,7 +27,7 @@ import process from 'process';
import readline from 'readline';
import { getMainHelp, getCommandHelp, getStandardizedCommandHelp } from './help-text.js';
-const VERSION = '2.0.0-alpha.66';
+const VERSION = '2.0.0-alpha.67';
function printHelp(plain = false) {
console.log(getMainHelp(plain));
diff --git a/src/cli/simple-commands/hive-mind.js b/src/cli/simple-commands/hive-mind.js
index 284cca7d18..de33ee8d9c 100644
--- a/src/cli/simple-commands/hive-mind.js
+++ b/src/cli/simple-commands/hive-mind.js
@@ -1869,7 +1869,7 @@ async function exportMemoryBackup() {
async function getActiveSessionId(swarmId) {
const sessionManager = new HiveMindSessionManager();
try {
- const sessions = sessionManager.getActiveSessions();
+ const sessions = await sessionManager.getActiveSessions();
const activeSession = sessions.find(s => s.swarm_id === swarmId && s.status === 'active');
return activeSession ? activeSession.id : null;
} finally {