✨ feat: Auto-install statusline to home directory during init

init command now automatically installs statusline to both locations:
- Project: .claude/statusline-command.sh
- Home: ~/.claude/statusline-command.sh

This ensures the statusline works immediately after init without
manual copying, both locally and remotely.

🧠 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
rUvandClaude committed 2025-09-30 21:54:25 +00:00
1 parent 5403f31cb5
commit 8622ca4afe
13 files changed
+3779 -6775

No files matched your search

File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -109,6 +109,6 @@
"includeCoAuthoredBy": true,
"enabledMcpjsonServers": ["claude-flow", "ruv-swarm"],
"statusLine": {
"command": "/home/codespace/.claude/statusline-command.sh"
"command": "~/.claude/statusline-command.sh"
}
}
-57
View File
@@ -1,57 +0,0 @@
# Claude Flow v2.0.0-alpha.128 Release Notes
## 🚀 Major Updates
### ✅ Build System Optimization
- **Removed UI dependencies**: Eliminated 32 unnecessary UI files from `/src/ui`
- **Clean compilation**: Now compiles 533 files (down from 565)
- **Fixed build errors**: Resolved all TypeScript import issues
- **Optimized package.json**: Removed UI-specific build configurations
### 🔧 Memory Coordination Enhancements
- **Validated MCP memory tools**: All store/retrieve/search operations working
- **Namespace isolation**: Confirmed proper namespace boundaries
- **SQLite backend**: Stable persistence layer for cross-session memory
- **Coordination protocol**: 5-step mandatory pattern fully operational
### 📚 Documentation Updates
- **Updated command files**: All commands now reference correct MCP tools
- **Added hive-mind agents**: 5 new agents with proper memory coordination
- **Enhanced agent templates**: Core agents now include MCP tool integration
- **Removed README files**: Cleaned up 14+ unnecessary README.md files
### 🎯 Agent Improvements
- **Core agents updated**: coder, tester, researcher, planner, reviewer with MCP tools
- **Hive-mind agents created**: queen-coordinator, collective-intelligence, memory-manager, worker-specialist, scout-explorer
- **Memory coordination**: All agents follow mandatory write-first pattern
- **Namespace enforcement**: All operations use "coordination" namespace
### ✨ Command Validation
- **All commands tested**: swarm, memory, hive-mind, agent, SPARC, hooks, neural, GitHub
- **MCP tools working**: 100+ tools fully integrated and functional
- **Memory persistence**: Cross-session state management operational
- **Binary creation**: Successfully builds for Linux, macOS, Windows
## 📊 Statistics
- **Files removed**: 32 UI files
- **Compilation improvement**: 533 files (was 565)
- **Agents updated**: 10 core agents + 5 new hive-mind agents
- **Commands validated**: 20+ command categories
- **MCP tools tested**: memory_usage, memory_search, swarm_init, agent_spawn
## 🔄 Breaking Changes
- Removed `/src/ui` directory - UI functionality no longer included in core package
## 🛠️ Installation
```bash
npx claude-flow@alpha
# or
npm install -g claude-flow@alpha
```
## 📝 Commit Summary
- Fixed build issues by removing unneeded UI files
- Validated all MCP memory and coordination features
- Updated agents with proper MCP tool integration
- Cleaned up command documentation
- Tested all CLI commands successfully
-660
View File
@@ -1,660 +0,0 @@
# Claude Flow v2.5.0-alpha.130+ Release Notes
**Release Date**: September 30, 2025
**Version Range**: 2.5.0-alpha.130 → 2.5.0-alpha.132
**Status**: Alpha – Production Ready
**Claude Agent SDK**: Built on top of @anthropic-ai/claude-code (Released September 29, 2025)
---
## 🎯 Executive Summary
Claude Flow v2.5.0-alpha.130+ is the first release fully built on Anthropic's **Claude Agent SDK**, marking a strategic pivot from custom implementations to production-ready primitives. This release eliminates 15,234 lines of custom code while achieving 50% code reduction, 30% performance improvement, and 73.3% faster memory operations (45ms → 12ms).
**Guiding Principle**: *"Don't rebuild what already exists."*
**Strategic Positioning**: *"Claude Agent SDK handles single agents brilliantly. Claude-Flow makes them work as a swarm."*
---
## ✨ What's New
### Claude Agent SDK Integration
Claude Flow now leverages Anthropic's production infrastructure that powers Claude Code itself:
**SDK Core Features Adopted**:
- **Automatic Context Compaction**: Prevents agents from running out of context
- **Advanced Error Handling**: Production-ready retry policies with exponential backoff
- **Session Management**: Sophisticated state persistence and recovery
- **Tool Ecosystem**: File operations, code execution, web search, and MCP extensibility
- **Permissions Framework**: Fine-grained control over agent capabilities (4 levels: user, project, local, session)
- **In-Process MCP Server**: Sub-millisecond tool calls (50-100x faster)
- **Subagents**: Parallel execution with isolated context windows
### Three Revolutionary MCP Tools (Phase 4)
#### 1. `agents_spawn_parallel` - Parallel Agent Spawning
**Performance**: 10-20x faster than sequential spawning
**Before**:
```typescript
// Sequential: 750ms per agent
mcp__claude-flow__agent_spawn({ type: "researcher" }) // 750ms
mcp__claude-flow__agent_spawn({ type: "coder" }) // 750ms
mcp__claude-flow__agent_spawn({ type: "reviewer" }) // 750ms
// Total: 2250ms for 3 agents
```
**After**:
```typescript
// Parallel: 50-75ms per agent
mcp__claude-flow__agents_spawn_parallel({
agents: [
{ type: "researcher", name: "Agent1", priority: "high" },
{ type: "coder", name: "Agent2", priority: "medium" },
{ type: "reviewer", name: "Agent3", priority: "high" }
],
maxConcurrency: 3,
batchSize: 3
})
// Total: 150ms for 3 agents - 15x faster! 🚀
```
**Features**:
- Spawn 3-20 agents concurrently
- Configurable concurrency limits and batch sizes
- Priority-based execution
- Real-time performance metrics
- Automatic session management
#### 2. `query_control` - Real-Time Query Control
**Capability**: Mid-execution query management
**Six Control Actions**:
1. **Pause** - Pause a running query
```typescript
mcp__claude-flow__query_control({ action: "pause", queryId: "query_123" })
```
2. **Resume** - Resume a paused query
```typescript
mcp__claude-flow__query_control({ action: "resume", queryId: "query_123" })
```
3. **Terminate** - Gracefully terminate a query
```typescript
mcp__claude-flow__query_control({ action: "terminate", queryId: "query_123" })
```
4. **Change Model** - Switch Claude model dynamically (e.g., Sonnet → Haiku for cost optimization)
```typescript
mcp__claude-flow__query_control({
action: "change_model",
queryId: "query_123",
model: "claude-3-5-haiku-20241022"
})
```
5. **Change Permissions** - Adjust permission modes on-the-fly
```typescript
mcp__claude-flow__query_control({
action: "change_permissions",
queryId: "query_123",
permissionMode: "acceptEdits"
})
```
6. **Execute Command** - Run commands in query context
```typescript
mcp__claude-flow__query_control({
action: "execute_command",
queryId: "query_123",
command: "/status"
})
```
**Use Cases**:
- Cost optimization by switching models mid-execution
- Pausing long-running operations during off-hours
- Dynamic permission adjustments for security
- Emergency termination of runaway queries
#### 3. `query_list` - Query Status Monitoring
**Capability**: Real-time visibility into all active queries
```typescript
// List active queries
mcp__claude-flow__query_list({ includeHistory: false })
// Returns:
{
success: true,
queries: [
{
queryId: "query_123",
status: "running",
model: "claude-3-5-sonnet-20241022",
permissionMode: "default",
startTime: "2025-09-30T10:30:00Z",
duration: "5m 23s"
}
],
count: 5
}
```
### Agentic Payments Integration (alpha.132)
**New MCP Server**: `npx agentic-payments@latest mcp`
**Seven Payment Authorization Tools**:
1. **`create_active_mandate`** - Create payment authorization with spend caps, time windows, and merchant restrictions
2. **`sign_mandate`** - Ed25519 cryptographic signing for mandate proof
3. **`verify_mandate`** - Verify signatures and execution guards (time windows, revocation)
4. **`revoke_mandate`** - Revoke payment authorization by ID
5. **`list_revocations`** - Track revoked mandates with timestamps and reasons
6. **`generate_agent_identity`** - Generate Ed25519 keypairs for agent identities
7. **`create_intent_mandate`** - High-level purchase intent authorization
8. **`create_cart_mandate`** - Itemized cart approval with line items
9. **`verify_consensus`** - Multi-agent Byzantine fault-tolerant consensus verification
**Features**:
- Autonomous agent payment authorization
- Spend caps and period limits (single, daily, weekly, monthly)
- Merchant allow/block lists
- Ed25519 digital signatures
- Byzantine fault-tolerant consensus for multi-agent approval
- Intent-based and cart-based mandates
**Real-World Testing Results**:
Agentic payments in Claude Flow aren't theory—they're working right now, and they make financial autonomy practical. Live testing revealed just how fast this is. Agents get their own cryptographic identity in milliseconds using Ed25519 keypairs, the same primitives that secure SSH and cryptocurrencies. One function call and the agent is financially authorized. No ceremony, no setup overhead.
Mandates are just as simple. Creating a $500/week procurement limit takes a single call and returns with automatic expiration, unique ID, and enforced limits. Think of it as a signed payment capsule—machine-readable, cryptographically bound, and instantly auditable.
For bigger decisions, the model scales. Testing a $50K vendor contract with 20 agents across procurement, finance, compliance, legal, and risk, with threshold set at 13 approvals. Byzantine consensus means even if 7 agents were compromised, no fraudulent payment could get through. Thirteen honest signatures are mathematically required. The consensus verification completed in 1ms with full audit trails showing individual agent votes, timestamps, and security margins.
**Two Authorization Patterns**:
- **Intent-based**: Describe the goal ("Buy ML training infra, $75K max") and the agent executes autonomously
- **Cart-based**: Line items explicit down to pennies (5 EC2 instances + 10TB storage = $59.60 total)
**The Claude Flow Multiplier**: Pair this with `agents_spawn_parallel`. Twenty agents spun up in under a second, each with identity, authority, and expertise. They verified, debated, and signed off with cryptographic proof trails. If something goes wrong, revocation is instant—one call and the mandate is dead.
**Example - Daily Shopping Budget**:
```typescript
mcp__agentic-payments__create_active_mandate({
agent: "shopping-bot@agentics",
holder: "user@example.com",
amount: 12000, // $120.00 in minor units
currency: "USD",
period: "daily",
kind: "intent",
merchant_allow: ["amazon.com", "walmart.com"],
expires_at: "2025-12-31T23:59:59Z"
})
```
**Example - $50K Vendor Contract with Byzantine Consensus**:
```typescript
// Step 1: Create high-value mandate
mcp__agentic-payments__create_active_mandate({
agent: "procurement-agent@claude-flow",
holder: "enterprise@example.com",
amount: 5000000, // $50,000.00
currency: "USD",
period: "single",
kind: "intent"
})
// Step 2: Verify Byzantine consensus with 20 specialized agents
mcp__agentic-payments__verify_consensus({
message: "approve_vendor_contract_50k_aws_infrastructure",
signature: "ed25519_signature_data",
public_key: "agent_public_key",
agent_public_keys: [/* 20 agent public keys */],
consensus_threshold: 0.65 // 13 of 20 required (65%)
})
// Result: 1ms consensus verification with full audit trail
{
consensus_reached: true,
votes_for: 13,
votes_against: 7,
required_votes: 13,
agent_count: 20,
total_latency_ms: 1,
byzantine_fault_tolerance: {
max_compromised_agents: 6,
is_byzantine_secure: true
}
}
```
That's distributed financial cognition—fast, accountable, and resistant to attack.
---
## 📊 Performance Improvements
### Code Reduction
- **Custom Retry Logic**: 15,234 lines eliminated (replaced with SDK)
- **Overall Code**: 50% reduction in retry/checkpoint code
- **Client Refactor**: 757 lines → 328 lines (56% reduction)
### Speed Improvements
| Operation | Before | After | Improvement |
|-----------|--------|-------|-------------|
| Retry Operations | - | - | **30% faster** |
| Memory Operations | 45ms | 12ms | **73.3% faster** |
| Agent Spawning | 750ms | 50-75ms | **10-15x faster** |
| MCP Tool Calls | 50-100ms | <1ms | **50-100x faster** |
| Multi-Agent Operations | - | - | **500-2000x potential** |
### Memory Performance
- **Batch Operations**: 5-10x faster
- **Session Persistence**: Delegated to SDK artifacts
- **Cross-Session State**: Automatic with SDK checkpoints
---
## 🔄 Architecture Changes
### SDK Integration Phases
**Phase 1: Foundation Setup** ✅ COMPLETE
- Installed Claude Agent SDK (@anthropic-ai/sdk@0.65.0)
- Created SDK configuration adapter (120 lines)
- Built compatibility layer (180 lines)
- Set up SDK wrapper classes
**Phase 2: Retry Mechanism Migration** ✅ COMPLETE
- Refactored Claude client v2.5 (328 lines, 56% reduction)
- Removed 200+ lines of custom retry logic
- Created SDK-based task executor
- Implemented SDK error handling
**Phase 3: Memory System → Session Persistence** ⏳ IN PROGRESS
- Migrating custom memory manager to SDK session persistence
- Using `SDKMessage[]` history format
- Implementing `resumeSessionAt` for recovery
**Phase 4: Session Forking & Query Control** ✅ COMPLETE
- Parallel agent spawning (10-20x faster)
- Real-time query control (pause/resume/terminate)
- Dynamic model switching
- Query status monitoring
**Phase 5: Hook Matchers & Permissions** ✅ COMPLETE
- Pattern-based selective hook execution (2-3x faster)
- Hierarchical permission fallback chain (4x faster)
- Cached permission lookups
- Intelligent hook caching
**Phase 6: In-Process MCP Server** ✅ COMPLETE
- Sub-millisecond tool call latency
- No IPC overhead
- 50-100x faster than external MCP servers
- Direct method invocation
**Phase 7-8: Network + DevTools, Migration & Docs** 📋 PLANNED
### New Architecture Files
**SDK Integration**:
- `src/sdk/sdk-config.ts` - SDK adapter and configuration
- `src/sdk/compatibility-layer.ts` - Backward compatibility layer
- `src/api/claude-client-v2.5.ts` - SDK-based client
- `src/swarm/executor-sdk.ts` - SDK-based task executor
- `src/swarm/memory-manager-sdk.ts` - SDK session persistence
**Phase 4 (MCP Tools)**:
- `src/mcp/in-process-server.ts` - In-process MCP server
- `src/mcp/claude-flow-tools.ts` - 90 MCP tools (was 87)
- Line 1318-1405: `agents_spawn_parallel`
- Line 1411-1502: `query_control`
- Line 1508-1547: `query_list`
**Orchestrator Enhancements**:
- `src/core/orchestrator.ts:1384` - `getParallelExecutor()`
- `src/core/orchestrator.ts:1391` - `getQueryController()`
---
## 🧩 Backward Compatibility
### 100% Backward Compatible
All legacy APIs remain supported via the **compatibility layer**:
**Deprecated Methods** (still functional with warnings):
```typescript
// Old API (deprecated)
client.executeWithRetry(request)
memory.persistToDisk()
checkpoints.executeValidations()
// New API (recommended)
client.makeRequest(request) // SDK handles retry automatically
memory.store(key, value) // SDK artifacts
checkpoints.create() // SDK checkpoints
```
**Migration Script**:
```bash
npm run migrate:v3
```
**Zero Regressions**: All legacy APIs work through compatibility layer
---
## 📦 Installation & Setup
### Install Claude Flow
```bash
# NPM
npm install -g claude-flow@alpha
# Direct execution
npx claude-flow@alpha
# Version
claude-flow --version # v2.5.0-alpha.132
```
### Install MCP Servers
```bash
# Core (Required)
claude mcp add claude-flow npx claude-flow@alpha mcp start
# Enhanced Coordination (Optional)
claude mcp add ruv-swarm npx ruv-swarm mcp start
# Cloud Features (Optional, requires registration)
claude mcp add flow-nexus npx flow-nexus@latest mcp start
# Agentic Payments (Optional - NEW in alpha.132)
claude mcp add agentic-payments npx agentic-payments@latest mcp
```
### Configuration Changes
**Before (v2.x)**:
```typescript
{
retryAttempts: 3,
retryDelay: 1000
}
```
**After (v2.5)**:
```typescript
{
retryPolicy: {
maxAttempts: 3,
initialDelay: 1000,
backoffMultiplier: 2,
maxDelay: 30000
}
}
```
---
## 🧪 Testing & Validation
### Test Coverage
- **Regression Tests**: 80+ tests across integration, performance, and backward compatibility
- **Benchmarks**: Validated 10-100x speedups in agent spawning and tool calls
- **Zero Regressions**: All legacy APIs work through compatibility layer
- **Build Status**: ✅ Successfully compiled 568 files with swc
### Performance Benchmarks
**Parallel Agent Spawning**:
```
Sequential (old): 3 agents in 2250ms (750ms each)
Parallel (new): 3 agents in 150ms (50ms each)
Speedup: 15x faster
```
**In-Process MCP Server**:
```
External MCP: 50-100ms per tool call
In-Process: <1ms per tool call
Speedup: 50-100x faster
```
**Memory Operations**:
```
Before: 45ms average
After: 12ms average
Speedup: 73.3% faster
```
---
## 📚 Documentation
### New Documentation Files
**SDK Integration**:
- `/docs/CLAUDE-CODE-SDK-DEEP-ANALYSIS.md` - Comprehensive SDK analysis
- `/docs/SDK-ADVANCED-FEATURES-INTEGRATION.md` - Advanced features guide
- `/docs/SDK-ALL-FEATURES-INTEGRATION-MATRIX.md` - Complete feature matrix
- `/docs/SDK-INTEGRATION-PHASES-V2.5.md` - Phase-by-phase implementation plan
- `/docs/epic-sdk-integration.md` - 1269-line epic with complete strategy
**Phase 4 MCP Tools**:
- `/.research/PHASE4-MCP-INTEGRATION-COMPLETE.md` - Phase 4 implementation details
### Updated Documentation
- `CLAUDE.md` - Updated with SDK integration patterns
- `README.md` - Added SDK positioning and new features
- API documentation - Updated with new MCP tools
- Migration guides - Added v2.x → v2.5 migration instructions
---
## 🔧 Breaking Changes
### None (100% Backward Compatible)
All changes maintain backward compatibility through the compatibility layer. Deprecated methods log warnings but continue to function.
### Deprecated APIs
The following APIs are deprecated but still functional:
```typescript
// ⚠️ Deprecated (still works with warnings)
executeWithRetry()
persistToDisk()
executeValidations()
calculateBackoff()
// ✅ Recommended (SDK-based)
makeRequest() // SDK handles retry automatically
store() // SDK artifacts
create() // SDK checkpoints
```
---
## 🎯 Strategic Positioning
### Claude Flow's Role in the Ecosystem
**Claude Agent SDK**:
- Handles single-agent execution brilliantly
- Provides production-ready primitives (retry, context, permissions, checkpoints)
- Powers Claude Code with battle-tested infrastructure
- Supports subagents for parallel execution
**Claude Flow**:
- Orchestrates multi-agent swarms at scale
- Provides advanced topology patterns (mesh, hierarchical, ring, star)
- Enables distributed consensus (Byzantine, Raft, Gossip)
- Offers real-time query control and monitoring
- Manages autonomous agent coordination with DAA
### Value Proposition
> *"Claude Agent SDK handles single agents brilliantly. Claude-Flow makes them work as a swarm."*
By delegating single-agent concerns to the SDK, Claude Flow becomes:
- **Leaner**: 50% code reduction
- **Faster**: 500-2000x multi-agent speedups
- **More Maintainable**: SDK handles primitives
- **Production-Ready**: Built on Anthropic's battle-tested infrastructure
- **Specialized**: Focused purely on multi-agent orchestration
---
## 📈 Success Metrics
All epic success metrics achieved:
- ✅ **50% reduction** in custom retry/checkpoint code
- ✅ **Zero regression** in existing functionality
- ✅ **30% performance improvement** through SDK optimizations
- ✅ **100% backward compatibility** with existing swarm APIs
- ✅ **Full test coverage** for all migrated components
**Additional Achievements**:
- ✅ 73.3% faster memory operations
- ✅ 10-20x faster agent spawning
- ✅ 50-100x faster tool calls (in-process MCP)
- ✅ 90 MCP tools (was 87)
- ✅ 100% test pass rate
- ✅ Zero compilation errors
- ✅ Agentic payments integration
---
## 🚀 What Users Get
### Before v2.5.0-alpha.130
- Custom retry logic with manual exponential backoff
- Sequential agent spawning (slow)
- No query control capabilities
- External MCP servers with IPC overhead
- Custom memory persistence implementation
- Manual checkpoint management
### After v2.5.0-alpha.130+
- ⚡ **10-20x faster** parallel agent spawning
- 🎮 Full real-time query control (pause/resume/terminate/model switching)
- 🚀 **50-100x faster** tool calls with in-process MCP
- 💾 **73.3% faster** memory operations (45ms → 12ms)
- 🔄 Automatic retry with SDK's battle-tested policies
- 📊 Query status monitoring and visibility
- 🎯 SDK-managed checkpoints and sessions
- 💰 Autonomous agent payment authorization (alpha.132)
- 🔐 Byzantine fault-tolerant consensus for multi-agent decisions
**Combined Performance**: 50-100x from in-process MCP + 10-20x from parallel spawning = **500-2000x potential speedup** for multi-agent operations!
---
## 🔮 Future Roadmap
### Phase 3: Memory → Sessions (In Progress)
- Migrate memory manager to SDK session persistence
- Use `SDKMessage[]` format for swarm state
- Implement `resumeSessionAt` for checkpoint recovery
### Phase 7: Network + DevTools (Planned)
- Network request control and monitoring
- DevTools integration for debugging
- Security enhancements
### Phase 8: Migration & Documentation (Planned)
- Automated migration scripts
- Comprehensive SDK integration guide
- Performance optimization tutorials
- Best practices documentation
### Beyond v2.5
- Enhanced DAA (Decentralized Autonomous Agents) capabilities
- Advanced consensus mechanisms
- Multi-cloud deployment support
- Enterprise features and hardening
---
## 🤝 Acknowledgments
### Anthropic's Claude Agent SDK
This release would not be possible without Anthropic's Claude Agent SDK, released September 29, 2025 alongside Claude Sonnet 4.5. The SDK provides production-ready infrastructure that powers Claude Code and now forms the foundation of Claude Flow's multi-agent orchestration.
### Key SDK Features Leveraged
- Automatic context compaction
- Production-ready retry policies
- Advanced permissions framework
- Session management and checkpoints
- In-process MCP server infrastructure
- Rich tool ecosystem
---
## 📝 Version History
### v2.5.0-alpha.132 (September 30, 2025)
- ✨ Added agentic-payments MCP integration
- 🔧 Fixed MCP server entry point
- 📦 Published to npm
### v2.5.0-alpha.131 (September 30, 2025)
- 🔧 MCP server fixes
- 📦 Version bump
### v2.5.0-alpha.130 (September 30, 2025)
- 🚀 Phase 4 SDK Integration Complete
- ✨ Added 3 new MCP tools (parallel spawning, query control, query list)
- 🔧 SDK migration for retry logic and memory operations
- 📊 50% code reduction
- ⚡ Performance improvements (30% retry, 73.3% memory, 10-20x spawning)
- 📚 Comprehensive documentation
- ✅ 100% backward compatibility
### v2.0.0-alpha.128 (September 26, 2025)
- ✅ Build system optimization
- 🔧 Memory coordination enhancements
- 📚 Documentation updates
- 🎯 Agent improvements
---
## 🆘 Support & Resources
### Documentation
- **Main Repository**: https://github.com/ruvnet/claude-flow
- **SDK Documentation**: https://docs.anthropic.com/en/api/agent-sdk/overview
- **Issue Tracker**: https://github.com/ruvnet/claude-flow/issues
- **Flow-Nexus Platform**: https://flow-nexus.ruv.io (cloud features)
### Community
- Submit issues on GitHub
- Review epic documentation in `/docs/epic-sdk-integration.md`
- Check Phase 4 implementation in `/.research/PHASE4-MCP-INTEGRATION-COMPLETE.md`
### Migration Assistance
- Run `npm run migrate:v3` for automated migration
- Review compatibility layer for deprecated API usage
- Check SDK integration documentation for best practices
---
## 📄 License
MIT License - See LICENSE file for details
---
**Remember**: *Claude Flow coordinates, Claude Code creates. Claude Agent SDK handles single agents brilliantly, Claude-Flow makes them work as a swarm.*
🚀 **Built with Claude Agent SDK** | ⚡ **Production Ready** | 🎯 **Multi-Agent Orchestration**
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/sh
# Claude-Flow Smart Dispatcher - Detects and uses the best available runtime
VERSION="2.5.0-alpha.134"
VERSION="2.5.0-alpha.135"
# Determine the correct path based on how the script is invoked
if [ -L "$0" ]; then
+5
View File
@@ -85,4 +85,9 @@ export class HelpFormatter {
}
}
//# sourceMappingURL=help-formatter.js.map/\s+/g, ' ');
return text;
}
}
//# sourceMappingURL=help-formatter.js.map
-128
View File
@@ -2962,132 +2962,4 @@ if (import.meta.url === `file://${process.argv[1]}`) {
await main();
}
//# sourceMappingURL=simple-cli.js.mapsign choices"
# Store test results and coverage
npx claude-flow memory store test_coverage "Authentication module: 95% coverage, all tests passing"
# Query previous work
npx claude-flow memory query auth_implementation
# Export project memory
npx claude-flow memory export project_backup.json
\`\`\`
### Memory Namespaces
- **\`spec\`**: Requirements and specifications
- **\`arch\`**: Architecture and design decisions
- **\`impl\`**: Implementation notes and code patterns
- **\`test\`**: Test results and coverage reports
- **\`debug\`**: Bug reports and resolution notes
## Workflow Examples
### Feature Development Workflow
\`\`\`bash
# 1. Start with specification
npx claude-flow sparc run spec-pseudocode "User profile management feature"
# 2. Design architecture
npx claude-flow sparc run architect "Profile service architecture with data validation"
# 3. Implement with TDD
npx claude-flow sparc tdd "user profile CRUD operations"
# 4. Security review
npx claude-flow sparc run security-review "profile data access and validation"
# 5. Integration testing
npx claude-flow sparc run integration "profile service with authentication system"
# 6. Documentation
npx claude-flow sparc run docs-writer "profile service API documentation"
\`\`\`
### Bug Fix Workflow
\`\`\`bash
# 1. Debug and analyze
npx claude-flow sparc run debug "authentication token expiration issue"
# 2. Write regression tests
npx claude-flow sparc run tdd "token refresh mechanism tests"
# 3. Implement fix
npx claude-flow sparc run code "fix token refresh in authentication service"
# 4. Security review
npx claude-flow sparc run security-review "token handling security implications"
\`\`\`
## Configuration Files
### SPARC Configuration
- **\`.roomodes\`**: SPARC mode definitions and configurations
- **\`.roo/\`**: Templates, workflows, and mode-specific rules
### Claude-Flow Configuration
- **\`memory/\`**: Persistent memory and session data
- **\`coordination/\`**: Multi-agent coordination settings
## Git Workflow Integration
### Commit Strategy with SPARC
- **Specification commits**: After completing requirements analysis
- **Architecture commits**: After design phase completion
- **TDD commits**: After each Red-Green-Refactor cycle
- **Integration commits**: After successful component integration
- **Documentation commits**: After completing documentation updates
### Branch Strategy
- **\`feature/sparc-<feature-name>\`**: Feature development with SPARC methodology
- **\`hotfix/sparc-<issue>\`**: Bug fixes using SPARC debugging workflow
- **\`refactor/sparc-<component>\`**: Refactoring using optimization mode
## Troubleshooting
### Common SPARC Issues
- **Mode not found**: Check \`.roomodes\` file exists and is valid JSON
- **Memory persistence**: Ensure \`memory/\` directory has write permissions
- **Tool access**: Verify required tools are available for the selected mode
- **Namespace conflicts**: Use unique memory namespaces for different features
### Debug Commands
\`\`\`bash
# Check SPARC configuration
npx claude-flow sparc modes
# Verify memory system
npx claude-flow memory stats
# Check system status
npx claude-flow status
# View detailed mode information
npx claude-flow sparc info <mode-name>
\`\`\`
## Project Architecture
This SPARC-enabled project follows a systematic development approach:
- **Clear separation of concerns** through modular design
- **Test-driven development** ensuring reliability and maintainability
- **Iterative refinement** for continuous improvement
- **Comprehensive documentation** for team collaboration
- **AI-assisted development** through specialized SPARC modes
## Important Notes
- Always run tests before committing (\`npm run test\`)
- Use SPARC memory system to maintain context across sessions
- Follow the Red-Green-Refactor cycle during TDD phases
- Document architectural decisions in memory for future reference
- Regular security reviews for any authentication or data handling code
For more information about SPARC methodology, see: https://github.com/ruvnet/claude-code-flow/docs/sparc.md
`;
}
if (isMainModule(import.meta.url)) {
await main();
}
//# sourceMappingURL=simple-cli.js.map
+1 -1
View File
@@ -1 +1 @@
{"version":3,"sources":["../../../src/cli/simple-cli.ts"],"sourcesContent":["#!/usr/bin/env -S deno run --allow-all\n/**\n * Simple CLI wrapper for Claude-Flow (JavaScript version)\n * This version avoids TypeScript issues in node_modules\n */\n\nimport { promises as fs } from 'node:fs';\nimport {\n executeCommand,\n hasCommand,\n showCommandHelp,\n showAllCommands,\n listCommands,\n} from './command-registry.js';\nimport { parseFlags } from './utils.js';\nimport { VERSION } from '../core/version.js';\n\nfunction printHelp() {\n console.log(`\n🌊 Claude-Flow v${VERSION} - Enterprise-Grade AI Agent Orchestration Platform\n\n🎯 ENTERPRISE FEATURES: Complete ruv-swarm integration with 27 MCP tools, neural networking, and production-ready infrastructure\n\nUSAGE:\n claude-flow <command> [options]\n\n🚀 INSTALLATION & ENTERPRISE SETUP:\n npx claude-flow@2.0.0 init --sparc # Enterprise SPARC + ruv-swarm integration\n \n The --sparc flag creates:\n • Complete ruv-swarm integration with 27 MCP tools\n • Neural network processing with WASM optimization\n • Multi-agent coordination (hierarchical, mesh, ring, star topologies)\n • Cross-session memory and persistent learning\n • GitHub workflow automation (6 specialized modes)\n • Production-ready Docker infrastructure\n • Enterprise security and compliance features\n\n🧠 SWARM INTELLIGENCE COMMANDS (v2.0.0):\n swarm \"objective\" [--strategy] [--mode] [--max-agents N] [--parallel] [--monitor]\n --strategy: research, development, analysis, testing, optimization, maintenance\n --mode: centralized, distributed, hierarchical, mesh, hybrid\n --parallel: Enable parallel execution (2.8-4.4x speed improvement)\n --monitor: Real-time swarm monitoring and performance tracking\n\n🐙 GITHUB WORKFLOW AUTOMATION (v2.0.0):\n github gh-coordinator # GitHub workflow orchestration and coordination\n github pr-manager # Pull request management with multi-reviewer coordination\n github issue-tracker # Issue management and project coordination\n github release-manager # Release coordination and deployment pipelines\n github repo-architect # Repository structure optimization\n github sync-coordinator # Multi-package synchronization and version alignment\n\n🏗️ CORE ENTERPRISE COMMANDS:\n init [--sparc] # Initialize with enterprise environment + ruv-swarm\n start [--ui] [--swarm] # Start orchestration with swarm intelligence\n spawn <type> [--name] # Create AI agent with swarm coordination\n agent <subcommand> # Advanced agent management with neural patterns\n sparc <subcommand> # 17 SPARC modes with neural enhancement\n memory <subcommand> # Cross-session persistent memory with neural learning\n status # Comprehensive system status with performance metrics\n\n🤖 NEURAL AGENT TYPES (ruv-swarm Integration):\n researcher # Research with web access and data analysis\n coder # Code development with neural patterns\n analyst # Performance analysis and optimization\n architect # System design with enterprise patterns\n tester # Comprehensive testing with automation\n coordinator # Multi-agent orchestration and workflow management\n reviewer # Code review with security and quality checks\n optimizer # Performance optimization and bottleneck analysis\n\n🎮 ENTERPRISE QUICK START:\n # Initialize enterprise environment\n npx claude-flow@2.0.0 init --sparc\n \n # Start enterprise orchestration with swarm intelligence\n ./claude-flow start --ui --swarm\n \n # Deploy intelligent multi-agent development workflow\n ./claude-flow swarm \"build enterprise API\" --strategy development --parallel --monitor\n \n # GitHub workflow automation\n ./claude-flow github pr-manager \"coordinate release with automated testing\"\n \n # Neural memory management\n ./claude-flow memory store \"architecture\" \"microservices with API gateway pattern\"\n \n # Real-time system monitoring\n ./claude-flow status --verbose\n\n🏢 ENTERPRISE COMMAND CATEGORIES:\n Core Intelligence: swarm, agent, sparc, memory, neural\n GitHub Automation: github (6 specialized modes)\n Development: init, start, status, config, workflow\n Infrastructure: mcp, terminal, session, docker\n Enterprise: project, deploy, cloud, security, analytics, audit\n\n🧠 NEURAL NETWORK FEATURES (v2.0.0):\n • WASM-powered cognitive patterns with SIMD optimization\n • 27 MCP tools for comprehensive workflow automation\n • Cross-session learning and adaptation\n • Real-time performance monitoring (sub-10ms response times)\n • 32.3% token usage reduction through intelligent coordination\n • Self-healing workflows with automatic error recovery\n\n📊 ENTERPRISE PERFORMANCE METRICS:\n • 84.8% SWE-Bench solve rate through coordinated intelligence\n • 2.8-Line truncated
{"version":3,"sources":["../../../src/cli/simple-cli.ts"],"sourcesContent":["#!/usr/bin/env -S deno run --allow-all\n/**\n * Simple CLI wrapper for Claude-Flow (JavaScript version)\n * This version avoids TypeScript issues in node_modules\n */\n\nimport { promises as fs } from 'node:fs';\nimport {\n executeCommand,\n hasCommand,\n showCommandHelp,\n showAllCommands,\n listCommands,\n} from './command-registry.js';\nimport { parseFlags } from './utils.js';\nimport { VERSION } from '../core/version.js';\n\nfunction printHelp() {\n console.log(`\n🌊 Claude-Flow v${VERSION} - Enterprise-Grade AI Agent Orchestration Platform\n\n🎯 ENTERPRISE FEATURES: Complete ruv-swarm integration with 27 MCP tools, neural networking, and production-ready infrastructure\n\nUSAGE:\n claude-flow <command> [options]\n\n🚀 INSTALLATION & ENTERPRISE SETUP:\n npx claude-flow@2.0.0 init --sparc # Enterprise SPARC + ruv-swarm integration\n \n The --sparc flag creates:\n • Complete ruv-swarm integration with 27 MCP tools\n • Neural network processing with WASM optimization\n • Multi-agent coordination (hierarchical, mesh, ring, star topologies)\n • Cross-session memory and persistent learning\n • GitHub workflow automation (6 specialized modes)\n • Production-ready Docker infrastructure\n • Enterprise security and compliance features\n\n🧠 SWARM INTELLIGENCE COMMANDS (v2.0.0):\n swarm \"objective\" [--strategy] [--mode] [--max-agents N] [--parallel] [--monitor]\n --strategy: research, development, analysis, testing, optimization, maintenance\n --mode: centralized, distributed, hierarchical, mesh, hybrid\n --parallel: Enable parallel execution (2.8-4.4x speed improvement)\n --monitor: Real-time swarm monitoring and performance tracking\n\n🐙 GITHUB WORKFLOW AUTOMATION (v2.0.0):\n github gh-coordinator # GitHub workflow orchestration and coordination\n github pr-manager # Pull request management with multi-reviewer coordination\n github issue-tracker # Issue management and project coordination\n github release-manager # Release coordination and deployment pipelines\n github repo-architect # Repository structure optimization\n github sync-coordinator # Multi-package synchronization and version alignment\n\n🏗️ CORE ENTERPRISE COMMANDS:\n init [--sparc] # Initialize with enterprise environment + ruv-swarm\n start [--ui] [--swarm] # Start orchestration with swarm intelligence\n spawn <type> [--name] # Create AI agent with swarm coordination\n agent <subcommand> # Advanced agent management with neural patterns\n sparc <subcommand> # 17 SPARC modes with neural enhancement\n memory <subcommand> # Cross-session persistent memory with neural learning\n status # Comprehensive system status with performance metrics\n\n🤖 NEURAL AGENT TYPES (ruv-swarm Integration):\n researcher # Research with web access and data analysis\n coder # Code development with neural patterns\n analyst # Performance analysis and optimization\n architect # System design with enterprise patterns\n tester # Comprehensive testing with automation\n coordinator # Multi-agent orchestration and workflow management\n reviewer # Code review with security and quality checks\n optimizer # Performance optimization and bottleneck analysis\n\n🎮 ENTERPRISE QUICK START:\n # Initialize enterprise environment\n npx claude-flow@2.0.0 init --sparc\n \n # Start enterprise orchestration with swarm intelligence\n ./claude-flow start --ui --swarm\n \n # Deploy intelligent multi-agent development workflow\n ./claude-flow swarm \"build enterprise API\" --strategy development --parallel --monitor\n \n # GitHub workflow automation\n ./claude-flow github pr-manager \"coordinate release with automated testing\"\n \n # Neural memory management\n ./claude-flow memory store \"architecture\" \"microservices with API gateway pattern\"\n \n # Real-time system monitoring\n ./claude-flow status --verbose\n\n🏢 ENTERPRISE COMMAND CATEGORIES:\n Core Intelligence: swarm, agent, sparc, memory, neural\n GitHub Automation: github (6 specialized modes)\n Development: init, start, status, config, workflow\n Infrastructure: mcp, terminal, session, docker\n Enterprise: project, deploy, cloud, security, analytics, audit\n\n🧠 NEURAL NETWORK FEATURES (v2.0.0):\n • WASM-powered cognitive patterns with SIMD optimization\n • 27 MCP tools for comprehensive workflow automation\n • Cross-session learning and adaptation\n • Real-time performance monitoring (sub-10ms response times)\n • 32.3% token usage reduction through intelligent coordination\n • Self-healing workflows with automatic error recovery\n\n📊 ENTERPRISE PERFORMANCE METRICS:\n • 84.8% SWE-Bench solve rate through coordinated intelligence\n • 2.8-Line truncated
@@ -1,6 +1,7 @@
import { printSuccess, printError, printWarning } from '../../utils.js';
import { existsSync } from 'fs';
import process from 'process';
import os from 'os';
import { spawn, execSync } from 'child_process';
function runCommand(command, args, options = {}) {
return new Promise((resolve, reject)=>{
@@ -1049,9 +1050,15 @@ async function enhancedClaudeFlowInit(flags, subArgs = []) {
if (!dryRun1) {
await fs.writeFile(`${claudeDir}/statusline-command.sh`, statuslineTemplate, 'utf8');
await fs.chmod(`${claudeDir}/statusline-command.sh`, 0o755);
printSuccess('✓ Created .claude/statusline-command.sh for enhanced Claude Code statusline');
const homeClaudeDir = path.join(os.homedir(), '.claude');
await fs.mkdir(homeClaudeDir, {
recursive: true
});
await fs.writeFile(path.join(homeClaudeDir, 'statusline-command.sh'), statuslineTemplate, 'utf8');
await fs.chmod(path.join(homeClaudeDir, 'statusline-command.sh'), 0o755);
printSuccess('✓ Created statusline-command.sh in both .claude/ and ~/.claude/');
} else {
console.log('[DRY RUN] Would create .claude/statusline-command.sh');
console.log('[DRY RUN] Would create .claude/statusline-command.sh and ~/.claude/statusline-command.sh');
}
} catch (err) {
if (!dryRun1) {
@@ -1 +1 @@
{"version":3,"sources":["../../../../../src/cli/simple-commands/init/index.js"],"sourcesContent":["// init/index.js - Initialize Claude Code integration files\nimport { printSuccess, printError, printWarning, exit } from '../../utils.js';\nimport { existsSync } from 'fs';\nimport process from 'process';\nimport { spawn, execSync } from 'child_process';\nimport { promisify } from 'util';\n\n// Helper to replace Deno.Command\nfunction runCommand(command, args, options = {}) {\n return new Promise((resolve, reject) => {\n const child = spawn(command, args, {\n cwd: options.cwd,\n env: { ...process.env, ...options.env },\n stdio: options.stdout === 'inherit' ? 'inherit' : 'pipe'\n });\n \n let stdout = '';\n let stderr = '';\n \n if (options.stdout !== 'inherit') {\n child.stdout.on('data', (data) => { stdout += data; });\n child.stderr.on('data', (data) => { stderr += data; });\n }\n \n child.on('close', (code) => {\n if (code === 0) {\n resolve({ success: true, code, stdout, stderr });\n } else {\n reject(new Error(`Command failed with exit code ${code}`));\n }\n });\n \n child.on('error', reject);\n });\n}\nimport { createLocalExecutable } from './executable-wrapper.js';\nimport { createSparcStructureManually } from './sparc-structure.js';\nimport { createClaudeSlashCommands } from './claude-commands/slash-commands.js';\nimport { createOptimizedClaudeSlashCommands } from './claude-commands/optimized-slash-commands.js';\n// execSync imported above as execSyncOriginal\\nconst execSync = execSyncOriginal;\nimport { promises as fs } from 'fs';\nimport { copyTemplates } from './template-copier.js';\nimport { copyRevisedTemplates, validateTemplatesExist } from './copy-revised-templates.js';\nimport { copyAgentFiles, createAgentDirectories, validateAgentSystem, copyCommandFiles } from './agent-copier.js';\nimport { showInitHelp } from './help.js';\nimport { batchInitCommand, batchInitFromConfig, validateBatchOptions } from './batch-init.js';\nimport { ValidationSystem, runFullValidation } from './validation/index.js';\nimport { RollbackSystem, createAtomicOperation } from './rollback/index.js';\nimport {\n createEnhancedClaudeMd,\n createEnhancedSettingsJson,\n createWrapperScript,\n createCommandDoc,\n createHelperScript,\n COMMAND_STRUCTURE,\n} from './templates/enhanced-templates.js';\nimport { createOptimizedSparcClaudeMd } from './templates/claude-md.js';\nimport { getIsolatedNpxEnv } from '../../../utils/npx-isolated-cache.js';\nimport { updateGitignore, needsGitignoreUpdate } from './gitignore-updater.js';\nimport {\n createFullClaudeMd,\n createSparcClaudeMd,\n createMinimalClaudeMd,\n} from './templates/claude-md.js';\nimport {\n createVerificationClaudeMd,\n createVerificationSettingsJson,\n} from './templates/verification-claude-md.js';\nimport {\n createFullMemoryBankMd,\n createMinimalMemoryBankMd,\n} from './templates/memory-bank-md.js';\nimport {\n createFullCoordinationMd,\n createMinimalCoordinationMd,\n} from './templates/coordination-md.js';\nimport { createAgentsReadme, createSessionsReadme } from './templates/readme-files.js';\nimport { \n initializeHiveMind, \n getHiveMindStatus,\n rollbackHiveMindInit\n} from './hive-mind-init.js';\n\n/**\n * Check if Claude Code CLI is installed\n */\nfunction isClaudeCodeInstalled() {\n try {\n execSync('which claude', { stdio: 'ignore' });\n return true;\n } catch {\n return false;\n }\n}\n\n/**\n * Set up MCP servers in Claude Code\n */\nasync function setupMcpServers(dryRun = false) {\n console.log('\\n🔌 Setting up MCP servers for Claude Code...');\n\n const servers = [\n {\n name: 'claude-flow',\n command: 'npx claude-flow@alpha mcp start',\n description: 'Claude Flow MCP server with swarm orchestration (alpha)',\n },\n {\n name: 'ruv-swarm',\n command: 'npx ruv-swarm mcp start',\n description: 'ruv-swarm MCP server for enhanced coordination',\n },\n {\n name: 'flow-nexus',\n command: 'npx flow-nexus@latest mcp start',\n description: 'Flow Nexus Complete MCP server for advanced AI orchestration',\n },\n {\n name: 'agentic-payments',\n command: 'npx agentic-payments@latest mcp',\n description: 'Agentic Payments MCP server for autonomous agent payment authorization',\n },\n ];\n\n for (const server of servers) {\n try {\n if (!dryRun) {\n console.log(` 🔄 Adding ${server.name}...`);\n execSync(`claude mcp add ${server.name} ${server.command}`, { stdio: 'inherit' });\n console.log(` ✅ Added ${server.name} - ${server.description}`);\n } else {\n console.log(` [DRY RUN] Would add ${server.name} - ${server.description}`);\n }\n } catch (err) {\n console.log(` ⚠️ Failed to add ${server.name}: ${err.message}`);\n console.log(\n ` You can add it manually with: claude Line truncated
{"version":3,"sources":["../../../../../src/cli/simple-commands/init/index.js"],"sourcesContent":["// init/index.js - Initialize Claude Code integration files\nimport { printSuccess, printError, printWarning, exit } from '../../utils.js';\nimport { existsSync } from 'fs';\nimport process from 'process';\nimport os from 'os';\nimport { spawn, execSync } from 'child_process';\nimport { promisify } from 'util';\n\n// Helper to replace Deno.Command\nfunction runCommand(command, args, options = {}) {\n return new Promise((resolve, reject) => {\n const child = spawn(command, args, {\n cwd: options.cwd,\n env: { ...process.env, ...options.env },\n stdio: options.stdout === 'inherit' ? 'inherit' : 'pipe'\n });\n \n let stdout = '';\n let stderr = '';\n \n if (options.stdout !== 'inherit') {\n child.stdout.on('data', (data) => { stdout += data; });\n child.stderr.on('data', (data) => { stderr += data; });\n }\n \n child.on('close', (code) => {\n if (code === 0) {\n resolve({ success: true, code, stdout, stderr });\n } else {\n reject(new Error(`Command failed with exit code ${code}`));\n }\n });\n \n child.on('error', reject);\n });\n}\nimport { createLocalExecutable } from './executable-wrapper.js';\nimport { createSparcStructureManually } from './sparc-structure.js';\nimport { createClaudeSlashCommands } from './claude-commands/slash-commands.js';\nimport { createOptimizedClaudeSlashCommands } from './claude-commands/optimized-slash-commands.js';\n// execSync imported above as execSyncOriginal\\nconst execSync = execSyncOriginal;\nimport { promises as fs } from 'fs';\nimport { copyTemplates } from './template-copier.js';\nimport { copyRevisedTemplates, validateTemplatesExist } from './copy-revised-templates.js';\nimport { copyAgentFiles, createAgentDirectories, validateAgentSystem, copyCommandFiles } from './agent-copier.js';\nimport { showInitHelp } from './help.js';\nimport { batchInitCommand, batchInitFromConfig, validateBatchOptions } from './batch-init.js';\nimport { ValidationSystem, runFullValidation } from './validation/index.js';\nimport { RollbackSystem, createAtomicOperation } from './rollback/index.js';\nimport {\n createEnhancedClaudeMd,\n createEnhancedSettingsJson,\n createWrapperScript,\n createCommandDoc,\n createHelperScript,\n COMMAND_STRUCTURE,\n} from './templates/enhanced-templates.js';\nimport { createOptimizedSparcClaudeMd } from './templates/claude-md.js';\nimport { getIsolatedNpxEnv } from '../../../utils/npx-isolated-cache.js';\nimport { updateGitignore, needsGitignoreUpdate } from './gitignore-updater.js';\nimport {\n createFullClaudeMd,\n createSparcClaudeMd,\n createMinimalClaudeMd,\n} from './templates/claude-md.js';\nimport {\n createVerificationClaudeMd,\n createVerificationSettingsJson,\n} from './templates/verification-claude-md.js';\nimport {\n createFullMemoryBankMd,\n createMinimalMemoryBankMd,\n} from './templates/memory-bank-md.js';\nimport {\n createFullCoordinationMd,\n createMinimalCoordinationMd,\n} from './templates/coordination-md.js';\nimport { createAgentsReadme, createSessionsReadme } from './templates/readme-files.js';\nimport { \n initializeHiveMind, \n getHiveMindStatus,\n rollbackHiveMindInit\n} from './hive-mind-init.js';\n\n/**\n * Check if Claude Code CLI is installed\n */\nfunction isClaudeCodeInstalled() {\n try {\n execSync('which claude', { stdio: 'ignore' });\n return true;\n } catch {\n return false;\n }\n}\n\n/**\n * Set up MCP servers in Claude Code\n */\nasync function setupMcpServers(dryRun = false) {\n console.log('\\n🔌 Setting up MCP servers for Claude Code...');\n\n const servers = [\n {\n name: 'claude-flow',\n command: 'npx claude-flow@alpha mcp start',\n description: 'Claude Flow MCP server with swarm orchestration (alpha)',\n },\n {\n name: 'ruv-swarm',\n command: 'npx ruv-swarm mcp start',\n description: 'ruv-swarm MCP server for enhanced coordination',\n },\n {\n name: 'flow-nexus',\n command: 'npx flow-nexus@latest mcp start',\n description: 'Flow Nexus Complete MCP server for advanced AI orchestration',\n },\n {\n name: 'agentic-payments',\n command: 'npx agentic-payments@latest mcp',\n description: 'Agentic Payments MCP server for autonomous agent payment authorization',\n },\n ];\n\n for (const server of servers) {\n try {\n if (!dryRun) {\n console.log(` 🔄 Adding ${server.name}...`);\n execSync(`claude mcp add ${server.name} ${server.command}`, { stdio: 'inherit' });\n console.log(` ✅ Added ${server.name} - ${server.description}`);\n } else {\n console.log(` [DRY RUN] Would add ${server.name} - ${server.description}`);\n }\n } catch (err) {\n console.log(` ⚠️ Failed to add ${server.name}: ${err.message}`);\n console.log(\n ` You can add it Line truncated
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "claude-flow",
"version": "2.5.0-alpha.135",
"version": "2.5.0-alpha.136",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "claude-flow",
"version": "2.5.0-alpha.135",
"version": "2.5.0-alpha.136",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "claude-flow",
"version": "2.5.0-alpha.135",
"version": "2.5.0-alpha.136",
"description": "Enterprise-grade AI agent orchestration with ruv-swarm integration",
"mcpName": "io.github.ruvnet/claude-flow",
"main": "cli.mjs",
+11 -2
View File
@@ -2,6 +2,7 @@
import { printSuccess, printError, printWarning, exit } from '../../utils.js';
import { existsSync } from 'fs';
import process from 'process';
import os from 'os';
import { spawn, execSync } from 'child_process';
import { promisify } from 'util';
@@ -1328,11 +1329,19 @@ async function enhancedClaudeFlowInit(flags, subArgs = []) {
}
if (!dryRun) {
// Write to project .claude directory
await fs.writeFile(`${claudeDir}/statusline-command.sh`, statuslineTemplate, 'utf8');
await fs.chmod(`${claudeDir}/statusline-command.sh`, 0o755);
printSuccess('✓ Created .claude/statusline-command.sh for enhanced Claude Code statusline');
// Also write to home ~/.claude directory for global use
const homeClaudeDir = path.join(os.homedir(), '.claude');
await fs.mkdir(homeClaudeDir, { recursive: true });
await fs.writeFile(path.join(homeClaudeDir, 'statusline-command.sh'), statuslineTemplate, 'utf8');
await fs.chmod(path.join(homeClaudeDir, 'statusline-command.sh'), 0o755);
printSuccess('✓ Created statusline-command.sh in both .claude/ and ~/.claude/');
} else {
console.log('[DRY RUN] Would create .claude/statusline-command.sh');
console.log('[DRY RUN] Would create .claude/statusline-command.sh and ~/.claude/statusline-command.sh');
}
} catch (err) {
// Not critical, just skip