moflo 4.9.21 → 4.9.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/analysis/analyze-code-quality.md +0 -121
- package/.claude/agents/analysis/code-analyzer.md +5 -26
- package/.claude/agents/architecture/system-design/arch-system-design.md +0 -119
- package/.claude/agents/base-template-generator.md +0 -1
- package/.claude/agents/core/coder.md +0 -22
- package/.claude/agents/core/planner.md +0 -16
- package/.claude/agents/core/researcher.md +0 -16
- package/.claude/agents/core/reviewer.md +0 -17
- package/.claude/agents/core/tester.md +0 -19
- package/.claude/agents/custom/test-long-runner.md +0 -2
- package/.claude/agents/development/dev-backend-api.md +0 -167
- package/.claude/agents/development/dev-database.md +43 -0
- package/.claude/agents/development/dev-frontend.md +42 -0
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +0 -112
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +0 -111
- package/.claude/agents/security/security-auditor.md +45 -0
- package/.claude/guidance/shipped/moflo-cli-reference.md +19 -16
- package/.claude/guidance/shipped/moflo-core-guidance.md +0 -2
- package/.claude/guidance/shipped/moflo-guidance-rules.md +5 -5
- package/.claude/guidance/shipped/moflo-spell-runner.md +1 -0
- package/.claude/guidance/shipped/moflo-spell-scheduling.md +225 -0
- package/.claude/guidance/shipped/moflo-spell-troubleshooting.md +1 -0
- package/.claude/helpers/gate.cjs +70 -3
- package/.claude/skills/fl/execution-modes.md +38 -15
- package/.claude/skills/fl/phases.md +67 -0
- package/.claude/skills/spell-schedule/SKILL.md +18 -5
- package/README.md +1 -1
- package/bin/gate.cjs +70 -3
- package/bin/index-guidance.mjs +32 -6
- package/bin/lib/retired-files.mjs +146 -0
- package/bin/session-start-launcher.mjs +116 -8
- package/dist/src/cli/appliance/rvfa-builder.js +1 -1
- package/dist/src/cli/commands/agent.js +3 -9
- package/dist/src/cli/commands/daemon.js +13 -17
- package/dist/src/cli/commands/hooks.js +4 -9
- package/dist/src/cli/commands/index.js +2 -0
- package/dist/src/cli/commands/retire.js +111 -0
- package/dist/src/cli/commands/spell-schedule.js +237 -49
- package/dist/src/cli/hooks/reasoningbank/index.js +7 -7
- package/dist/src/cli/init/executor.js +26 -54
- package/dist/src/cli/init/helpers-generator.js +66 -3
- package/dist/src/cli/init/settings-generator.js +17 -6
- package/dist/src/cli/mcp-tools/agent-tools.js +9 -27
- package/dist/src/cli/mcp-tools/hooks-tools.js +23 -21
- package/dist/src/cli/mcp-tools/memory-tools.js +16 -5
- package/dist/src/cli/memory/bridge-embedder.js +26 -6
- package/dist/src/cli/memory/bridge-entries.js +33 -15
- package/dist/src/cli/memory/controllers/semantic-router.js +18 -12
- package/dist/src/cli/memory/sona-optimizer.js +6 -6
- package/dist/src/cli/neural/domain/services/learning-service.js +3 -3
- package/dist/src/cli/services/agent-router.js +2 -5
- package/dist/src/cli/services/daemon-autostart-lifecycle.js +62 -0
- package/dist/src/cli/services/daemon-dashboard.js +187 -18
- package/dist/src/cli/services/daemon-readiness.js +19 -31
- package/dist/src/cli/services/ephemeral-namespace-purge.js +61 -33
- package/dist/src/cli/services/headless-worker-executor.js +7 -94
- package/dist/src/cli/services/hook-block-hash.js +4 -0
- package/dist/src/cli/services/worker-daemon.js +40 -66
- package/dist/src/cli/shared/events/example-usage.js +6 -6
- package/dist/src/cli/shared/hooks/task-hooks.js +8 -8
- package/dist/src/cli/spells/core/runner.js +12 -0
- package/dist/src/cli/spells/scheduler/scheduler.js +24 -9
- package/dist/src/cli/spells/schema/validator.js +2 -1
- package/dist/src/cli/spells/schema/validators/top-level.js +18 -0
- package/dist/src/cli/version.js +1 -1
- package/package.json +5 -2
- package/retired-files.json +1989 -0
- package/src/cli/data/model-registry.json +2 -2
- package/.claude/agents/consensus/byzantine-coordinator.md +0 -63
- package/.claude/agents/consensus/crdt-synchronizer.md +0 -997
- package/.claude/agents/consensus/gossip-coordinator.md +0 -63
- package/.claude/agents/consensus/performance-benchmarker.md +0 -851
- package/.claude/agents/consensus/quorum-manager.md +0 -823
- package/.claude/agents/consensus/raft-manager.md +0 -63
- package/.claude/agents/consensus/security-manager.md +0 -622
- package/.claude/agents/data/ml/data-ml-model.md +0 -193
- package/.claude/agents/github/code-review-swarm.md +0 -538
- package/.claude/agents/github/github-modes.md +0 -172
- package/.claude/agents/github/issue-tracker.md +0 -311
- package/.claude/agents/github/multi-repo-swarm.md +0 -551
- package/.claude/agents/github/pr-manager.md +0 -183
- package/.claude/agents/github/project-board-sync.md +0 -508
- package/.claude/agents/github/release-manager.md +0 -360
- package/.claude/agents/github/release-swarm.md +0 -580
- package/.claude/agents/github/repo-architect.md +0 -391
- package/.claude/agents/github/swarm-issue.md +0 -566
- package/.claude/agents/github/swarm-pr.md +0 -414
- package/.claude/agents/github/sync-coordinator.md +0 -426
- package/.claude/agents/github/workflow-automation.md +0 -606
- package/.claude/agents/goal/code-goal-planner.md +0 -440
- package/.claude/agents/goal/goal-planner.md +0 -168
- package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -127
- package/.claude/agents/hive-mind/queen-coordinator.md +0 -198
- package/.claude/agents/hive-mind/scout-explorer.md +0 -233
- package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -184
- package/.claude/agents/hive-mind/worker-specialist.md +0 -208
- package/.claude/agents/neural/safla-neural.md +0 -73
- package/.claude/agents/optimization/benchmark-suite.md +0 -665
- package/.claude/agents/optimization/load-balancer.md +0 -431
- package/.claude/agents/optimization/performance-monitor.md +0 -672
- package/.claude/agents/optimization/resource-allocator.md +0 -674
- package/.claude/agents/optimization/topology-optimizer.md +0 -808
- package/.claude/agents/reasoning/goal-planner.md +0 -67
- package/.claude/agents/sona/sona-learning-optimizer.md +0 -74
- package/.claude/agents/sparc/architecture.md +0 -472
- package/.claude/agents/sparc/pseudocode.md +0 -318
- package/.claude/agents/sparc/refinement.md +0 -525
- package/.claude/agents/sparc/specification.md +0 -276
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -225
- package/.claude/agents/swarm/adaptive-coordinator.md +0 -391
- package/.claude/agents/swarm/hierarchical-coordinator.md +0 -321
- package/.claude/agents/swarm/mesh-coordinator.md +0 -383
- package/.claude/agents/testing/production-validator.md +0 -395
- package/.claude/agents/testing/tdd-london-swarm.md +0 -244
- package/.claude/agents/v3/adr-architect.md +0 -184
- package/.claude/agents/v3/aidefence-guardian.md +0 -277
- package/.claude/agents/v3/claims-authorizer.md +0 -208
- package/.claude/agents/v3/collective-intelligence-coordinator.md +0 -988
- package/.claude/agents/v3/ddd-domain-expert.md +0 -220
- package/.claude/agents/v3/injection-analyst.md +0 -232
- package/.claude/agents/v3/memory-specialist.md +0 -987
- package/.claude/agents/v3/performance-engineer.md +0 -1225
- package/.claude/agents/v3/pii-detector.md +0 -146
- package/.claude/agents/v3/reasoningbank-learner.md +0 -213
- package/.claude/agents/v3/security-architect-aidefence.md +0 -405
- package/.claude/agents/v3/security-architect.md +0 -865
- package/.claude/agents/v3/security-auditor.md +0 -771
- package/.claude/agents/v3/sparc-orchestrator.md +0 -182
- package/.claude/agents/v3/swarm-memory-manager.md +0 -142
- package/.claude/agents/v3/v3-integration-architect.md +0 -205
- package/.claude/commands/claude-flow-help.md +0 -103
- package/.claude/commands/claude-flow-memory.md +0 -107
- package/.claude/commands/claude-flow-swarm.md +0 -205
- package/.claude/commands/flo-simplify.md +0 -101
- package/.claude/commands/github/README.md +0 -11
- package/.claude/commands/github/code-review-swarm.md +0 -514
- package/.claude/commands/github/code-review.md +0 -25
- package/.claude/commands/github/github-modes.md +0 -146
- package/.claude/commands/github/github-swarm.md +0 -113
- package/.claude/commands/github/issue-tracker.md +0 -284
- package/.claude/commands/github/issue-triage.md +0 -25
- package/.claude/commands/github/multi-repo-swarm.md +0 -519
- package/.claude/commands/github/pr-enhance.md +0 -26
- package/.claude/commands/github/pr-manager.md +0 -164
- package/.claude/commands/github/project-board-sync.md +0 -471
- package/.claude/commands/github/release-manager.md +0 -332
- package/.claude/commands/github/release-swarm.md +0 -544
- package/.claude/commands/github/repo-analyze.md +0 -25
- package/.claude/commands/github/repo-architect.md +0 -361
- package/.claude/commands/github/swarm-issue.md +0 -482
- package/.claude/commands/github/swarm-pr.md +0 -285
- package/.claude/commands/github/sync-coordinator.md +0 -294
- package/.claude/commands/github/workflow-automation.md +0 -442
- package/.claude/commands/hooks/README.md +0 -11
- package/.claude/commands/hooks/overview.md +0 -58
- package/.claude/commands/hooks/post-edit.md +0 -117
- package/.claude/commands/hooks/post-task.md +0 -112
- package/.claude/commands/hooks/pre-edit.md +0 -113
- package/.claude/commands/hooks/pre-task.md +0 -111
- package/.claude/commands/hooks/session-end.md +0 -118
- package/.claude/commands/hooks/setup.md +0 -103
- package/.claude/commands/sparc/analyzer.md +0 -42
- package/.claude/commands/sparc/architect.md +0 -43
- package/.claude/commands/sparc/ask.md +0 -86
- package/.claude/commands/sparc/batch-executor.md +0 -44
- package/.claude/commands/sparc/code.md +0 -78
- package/.claude/commands/sparc/coder.md +0 -44
- package/.claude/commands/sparc/debug.md +0 -72
- package/.claude/commands/sparc/debugger.md +0 -44
- package/.claude/commands/sparc/designer.md +0 -43
- package/.claude/commands/sparc/devops.md +0 -98
- package/.claude/commands/sparc/docs-writer.md +0 -69
- package/.claude/commands/sparc/documenter.md +0 -44
- package/.claude/commands/sparc/innovator.md +0 -44
- package/.claude/commands/sparc/integration.md +0 -72
- package/.claude/commands/sparc/mcp.md +0 -106
- package/.claude/commands/sparc/memory-manager.md +0 -44
- package/.claude/commands/sparc/optimizer.md +0 -44
- package/.claude/commands/sparc/orchestrator.md +0 -116
- package/.claude/commands/sparc/post-deployment-monitoring-mode.md +0 -72
- package/.claude/commands/sparc/refinement-optimization-mode.md +0 -72
- package/.claude/commands/sparc/researcher.md +0 -44
- package/.claude/commands/sparc/reviewer.md +0 -44
- package/.claude/commands/sparc/security-review.md +0 -69
- package/.claude/commands/sparc/sparc-modes.md +0 -139
- package/.claude/commands/sparc/sparc.md +0 -99
- package/.claude/commands/sparc/spec-pseudocode.md +0 -69
- package/.claude/commands/sparc/spell-manager.md +0 -44
- package/.claude/commands/sparc/supabase-admin.md +0 -337
- package/.claude/commands/sparc/swarm-coordinator.md +0 -44
- package/.claude/commands/sparc/tdd.md +0 -44
- package/.claude/commands/sparc/tester.md +0 -44
- package/.claude/commands/sparc/tutorial.md +0 -68
- package/.claude/commands/sparc.md +0 -151
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: claude-flow-memory
|
|
3
|
-
description: Interact with Claude-Flow memory system
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# 🧠 Claude-Flow Memory System
|
|
7
|
-
|
|
8
|
-
The memory system provides persistent storage for cross-session and cross-agent collaboration with CRDT-based conflict resolution.
|
|
9
|
-
|
|
10
|
-
## Store Information
|
|
11
|
-
```bash
|
|
12
|
-
# Store with default namespace
|
|
13
|
-
./claude-flow memory store "key" "value"
|
|
14
|
-
|
|
15
|
-
# Store with specific namespace
|
|
16
|
-
./claude-flow memory store "architecture_decisions" "microservices with API gateway" --namespace arch
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Query Memory
|
|
20
|
-
```bash
|
|
21
|
-
# Search across all namespaces
|
|
22
|
-
./claude-flow memory query "authentication"
|
|
23
|
-
|
|
24
|
-
# Search with filters
|
|
25
|
-
./claude-flow memory query "API design" --namespace arch --limit 10
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Memory Statistics
|
|
29
|
-
```bash
|
|
30
|
-
# Show overall statistics
|
|
31
|
-
./claude-flow memory stats
|
|
32
|
-
|
|
33
|
-
# Show namespace-specific stats
|
|
34
|
-
./claude-flow memory stats --namespace project
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## Export/Import
|
|
38
|
-
```bash
|
|
39
|
-
# Export all memory
|
|
40
|
-
./claude-flow memory export full-backup.json
|
|
41
|
-
|
|
42
|
-
# Export specific namespace
|
|
43
|
-
./claude-flow memory export project-backup.json --namespace project
|
|
44
|
-
|
|
45
|
-
# Import memory
|
|
46
|
-
./claude-flow memory import backup.json
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Cleanup Operations
|
|
50
|
-
```bash
|
|
51
|
-
# Clean entries older than 30 days
|
|
52
|
-
./claude-flow memory cleanup --days 30
|
|
53
|
-
|
|
54
|
-
# Clean specific namespace
|
|
55
|
-
./claude-flow memory cleanup --namespace temp --days 7
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## 🗂️ Namespaces
|
|
59
|
-
- **default** - General storage
|
|
60
|
-
- **agents** - Agent-specific data and state
|
|
61
|
-
- **tasks** - Task information and results
|
|
62
|
-
- **sessions** - Session history and context
|
|
63
|
-
- **swarm** - Swarm coordination and objectives
|
|
64
|
-
- **project** - Project-specific context
|
|
65
|
-
- **spec** - Requirements and specifications
|
|
66
|
-
- **arch** - Architecture decisions
|
|
67
|
-
- **impl** - Implementation notes
|
|
68
|
-
- **test** - Test results and coverage
|
|
69
|
-
- **debug** - Debug logs and fixes
|
|
70
|
-
|
|
71
|
-
## 🎯 Best Practices
|
|
72
|
-
|
|
73
|
-
### Naming Conventions
|
|
74
|
-
- Use descriptive, searchable keys
|
|
75
|
-
- Include timestamp for time-sensitive data
|
|
76
|
-
- Prefix with component name for clarity
|
|
77
|
-
|
|
78
|
-
### Organization
|
|
79
|
-
- Use namespaces to categorize data
|
|
80
|
-
- Store related data together
|
|
81
|
-
- Keep values concise but complete
|
|
82
|
-
|
|
83
|
-
### Maintenance
|
|
84
|
-
- Regular backups with export
|
|
85
|
-
- Clean old data periodically
|
|
86
|
-
- Monitor storage statistics
|
|
87
|
-
- Compress large values
|
|
88
|
-
|
|
89
|
-
## Examples
|
|
90
|
-
|
|
91
|
-
### Store SPARC context:
|
|
92
|
-
```bash
|
|
93
|
-
./claude-flow memory store "spec_auth_requirements" "OAuth2 + JWT with refresh tokens" --namespace spec
|
|
94
|
-
./claude-flow memory store "arch_api_design" "RESTful microservices with GraphQL gateway" --namespace arch
|
|
95
|
-
./claude-flow memory store "test_coverage_auth" "95% coverage, all tests passing" --namespace test
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
### Query project decisions:
|
|
99
|
-
```bash
|
|
100
|
-
./claude-flow memory query "authentication" --namespace arch --limit 5
|
|
101
|
-
./claude-flow memory query "test results" --namespace test
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
### Backup project memory:
|
|
105
|
-
```bash
|
|
106
|
-
./claude-flow memory export project-$(date +%Y%m%d).json --namespace project
|
|
107
|
-
```
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: claude-flow-swarm
|
|
3
|
-
description: Coordinate multi-agent swarms for complex tasks
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# 🐝 Claude-Flow Swarm Coordination
|
|
7
|
-
|
|
8
|
-
Advanced multi-agent coordination system with timeout-free execution, distributed memory sharing, and intelligent load balancing.
|
|
9
|
-
|
|
10
|
-
## Basic Usage
|
|
11
|
-
```bash
|
|
12
|
-
./claude-flow swarm "your complex task" --strategy <type> [options]
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## 🎯 Swarm Strategies
|
|
16
|
-
- **auto** - Automatic strategy selection based on task analysis
|
|
17
|
-
- **development** - Code implementation with review and testing
|
|
18
|
-
- **research** - Information gathering and synthesis
|
|
19
|
-
- **analysis** - Data processing and pattern identification
|
|
20
|
-
- **testing** - Comprehensive quality assurance
|
|
21
|
-
- **optimization** - Performance tuning and refactoring
|
|
22
|
-
- **maintenance** - System updates and bug fixes
|
|
23
|
-
|
|
24
|
-
## 🤖 Agent Types
|
|
25
|
-
- **coordinator** - Plans and delegates tasks to other agents
|
|
26
|
-
- **developer** - Writes code and implements solutions
|
|
27
|
-
- **researcher** - Gathers and analyzes information
|
|
28
|
-
- **analyzer** - Identifies patterns and generates insights
|
|
29
|
-
- **tester** - Creates and runs tests for quality assurance
|
|
30
|
-
- **reviewer** - Performs code and design reviews
|
|
31
|
-
- **documenter** - Creates documentation and guides
|
|
32
|
-
- **monitor** - Tracks performance and system health
|
|
33
|
-
- **specialist** - Domain-specific expert agents
|
|
34
|
-
|
|
35
|
-
## 🔄 Coordination Modes
|
|
36
|
-
- **centralized** - Single coordinator manages all agents (default)
|
|
37
|
-
- **distributed** - Multiple coordinators share management
|
|
38
|
-
- **hierarchical** - Tree structure with nested coordination
|
|
39
|
-
- **mesh** - Peer-to-peer agent collaboration
|
|
40
|
-
- **hybrid** - Mixed coordination strategies
|
|
41
|
-
|
|
42
|
-
## ⚙️ Common Options
|
|
43
|
-
- `--strategy <type>` - Execution strategy
|
|
44
|
-
- `--mode <type>` - Coordination mode
|
|
45
|
-
- `--max-agents <n>` - Maximum concurrent agents (default: 5)
|
|
46
|
-
- `--timeout <minutes>` - Timeout in minutes (default: 60)
|
|
47
|
-
- `--background` - Run in background for tasks > 30 minutes
|
|
48
|
-
- `--monitor` - Enable real-time monitoring
|
|
49
|
-
- `--ui` - Launch terminal UI interface
|
|
50
|
-
- `--parallel` - Enable parallel execution
|
|
51
|
-
- `--distributed` - Enable distributed coordination
|
|
52
|
-
- `--review` - Enable peer review process
|
|
53
|
-
- `--testing` - Include automated testing
|
|
54
|
-
- `--encryption` - Enable data encryption
|
|
55
|
-
- `--verbose` - Detailed logging output
|
|
56
|
-
- `--dry-run` - Show configuration without executing
|
|
57
|
-
|
|
58
|
-
## 🌟 Examples
|
|
59
|
-
|
|
60
|
-
### Development Swarm with Review
|
|
61
|
-
```bash
|
|
62
|
-
./claude-flow swarm "Build e-commerce REST API" \
|
|
63
|
-
--strategy development \
|
|
64
|
-
--monitor \
|
|
65
|
-
--review \
|
|
66
|
-
--testing
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### Long-Running Research Swarm
|
|
70
|
-
```bash
|
|
71
|
-
./claude-flow swarm "Analyze AI market trends 2024-2025" \
|
|
72
|
-
--strategy research \
|
|
73
|
-
--background \
|
|
74
|
-
--distributed \
|
|
75
|
-
--max-agents 8
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
### Performance Optimization Swarm
|
|
79
|
-
```bash
|
|
80
|
-
./claude-flow swarm "Optimize database queries and API performance" \
|
|
81
|
-
--strategy optimization \
|
|
82
|
-
--testing \
|
|
83
|
-
--parallel \
|
|
84
|
-
--monitor
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### Enterprise Development Swarm
|
|
88
|
-
```bash
|
|
89
|
-
./claude-flow swarm "Implement secure payment processing system" \
|
|
90
|
-
--strategy development \
|
|
91
|
-
--mode distributed \
|
|
92
|
-
--max-agents 10 \
|
|
93
|
-
--parallel \
|
|
94
|
-
--monitor \
|
|
95
|
-
--review \
|
|
96
|
-
--testing \
|
|
97
|
-
--encryption \
|
|
98
|
-
--verbose
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
### Testing and QA Swarm
|
|
102
|
-
```bash
|
|
103
|
-
./claude-flow swarm "Comprehensive security audit and testing" \
|
|
104
|
-
--strategy testing \
|
|
105
|
-
--review \
|
|
106
|
-
--verbose \
|
|
107
|
-
--max-agents 6
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
## 📊 Monitoring and Control
|
|
111
|
-
|
|
112
|
-
### Real-time monitoring:
|
|
113
|
-
```bash
|
|
114
|
-
# Monitor swarm activity
|
|
115
|
-
./claude-flow monitor
|
|
116
|
-
|
|
117
|
-
# Monitor specific component
|
|
118
|
-
./claude-flow monitor --focus swarm
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
### Check swarm status:
|
|
122
|
-
```bash
|
|
123
|
-
# Overall system status
|
|
124
|
-
./claude-flow status
|
|
125
|
-
|
|
126
|
-
# Detailed swarm status
|
|
127
|
-
./claude-flow status --verbose
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
### View agent activity:
|
|
131
|
-
```bash
|
|
132
|
-
# List all agents
|
|
133
|
-
./claude-flow agent list
|
|
134
|
-
|
|
135
|
-
# Agent details
|
|
136
|
-
./claude-flow agent info <agent-id>
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
## 💾 Memory Integration
|
|
140
|
-
|
|
141
|
-
Swarms automatically use distributed memory for collaboration:
|
|
142
|
-
|
|
143
|
-
```bash
|
|
144
|
-
# Store swarm objectives
|
|
145
|
-
./claude-flow memory store "swarm_objective" "Build scalable API" --namespace swarm
|
|
146
|
-
|
|
147
|
-
# Query swarm progress
|
|
148
|
-
./claude-flow memory query "swarm_progress" --namespace swarm
|
|
149
|
-
|
|
150
|
-
# Export swarm memory
|
|
151
|
-
./claude-flow memory export swarm-results.json --namespace swarm
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
## 🎯 Key Features
|
|
155
|
-
|
|
156
|
-
### Timeout-Free Execution
|
|
157
|
-
- Background mode for long-running tasks
|
|
158
|
-
- State persistence across sessions
|
|
159
|
-
- Automatic checkpoint recovery
|
|
160
|
-
|
|
161
|
-
### Work Stealing & Load Balancing
|
|
162
|
-
- Dynamic task redistribution
|
|
163
|
-
- Automatic agent scaling
|
|
164
|
-
- Resource-aware scheduling
|
|
165
|
-
|
|
166
|
-
### Circuit Breakers & Fault Tolerance
|
|
167
|
-
- Automatic retry with exponential backoff
|
|
168
|
-
- Graceful degradation
|
|
169
|
-
- Health monitoring and recovery
|
|
170
|
-
|
|
171
|
-
### Real-Time Collaboration
|
|
172
|
-
- Cross-agent communication
|
|
173
|
-
- Shared memory access
|
|
174
|
-
- Event-driven coordination
|
|
175
|
-
|
|
176
|
-
### Enterprise Security
|
|
177
|
-
- Role-based access control
|
|
178
|
-
- Audit logging
|
|
179
|
-
- Data encryption
|
|
180
|
-
- Input validation
|
|
181
|
-
|
|
182
|
-
## 🔧 Advanced Configuration
|
|
183
|
-
|
|
184
|
-
### Dry run to preview:
|
|
185
|
-
```bash
|
|
186
|
-
./claude-flow swarm "Test task" --dry-run --strategy development
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
### Custom quality thresholds:
|
|
190
|
-
```bash
|
|
191
|
-
./claude-flow swarm "High quality API" \
|
|
192
|
-
--strategy development \
|
|
193
|
-
--quality-threshold 0.95
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### Scheduling algorithms:
|
|
197
|
-
- FIFO (First In, First Out)
|
|
198
|
-
- Priority-based
|
|
199
|
-
- Deadline-driven
|
|
200
|
-
- Shortest Job First
|
|
201
|
-
- Critical Path
|
|
202
|
-
- Resource-aware
|
|
203
|
-
- Adaptive
|
|
204
|
-
|
|
205
|
-
For detailed documentation, see: https://github.com/ruvnet/claude-code-flow/docs/swarm-system.md
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Review changed code for reuse, quality, and efficiency, then fix any issues found. Sizes review effort to the diff and routes the cheapest model that fits.
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# /flo-simplify — Adaptive Gate-Compliant Code Review
|
|
6
|
-
|
|
7
|
-
Review changed code for reuse, quality, and efficiency. **Effort scales with diff size; model is routed for cost.** A 5-line comment trim does not get 3 Opus agents.
|
|
8
|
-
|
|
9
|
-
## Phase 0: Gate prerequisites
|
|
10
|
-
|
|
11
|
-
These satisfy the memory-first and task-create-first gates. Always do them before any Agent spawn.
|
|
12
|
-
|
|
13
|
-
1. **Memory search** — `mcp__moflo__memory_search — query: "code quality patterns", namespace: "patterns"`
|
|
14
|
-
2. **Task create** — `TaskCreate — subject: "🔍 [Reviewer] Simplify changed code"`
|
|
15
|
-
|
|
16
|
-
## Phase 1: Identify the diff
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
git diff HEAD # working tree
|
|
20
|
-
git diff main...HEAD # committed since branch base
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Treat the union as the diff. Note whether `/flo-simplify` already ran on this branch in this session — if so, you are in a **validation pass** (Phase 4 below).
|
|
24
|
-
|
|
25
|
-
## Phase 2: Classify the diff
|
|
26
|
-
|
|
27
|
-
Pick the smallest tier the diff genuinely fits.
|
|
28
|
-
|
|
29
|
-
| Tier | Trigger | Action |
|
|
30
|
-
|------|---------|--------|
|
|
31
|
-
| **TRIVIAL** | ≤10 net LOC, single file, comments/formatting/local renames only | Self-review, zero agents |
|
|
32
|
-
| **SMALL** | ≤200 net LOC, ≤2 files, no API/dependency change | **One agent** (default for most diffs, including critical surface) |
|
|
33
|
-
| **NORMAL** | ≥3 files, OR >200 LOC, OR public API change, OR new/removed dependency, OR cross-cutting refactor | Three parallel agents |
|
|
34
|
-
|
|
35
|
-
Critical-surface files (launcher, hooks, MCP wiring) raise the *care* of the agent prompt — sharper checklist, blast-radius framing — they do **not** automatically escalate to NORMAL. Risk-weighted ≠ headcount-weighted.
|
|
36
|
-
|
|
37
|
-
## Phase 3: Use the classifier's model (skip for TRIVIAL)
|
|
38
|
-
|
|
39
|
-
The classifier returns the right model for the tier — no separate router call needed:
|
|
40
|
-
|
|
41
|
-
- `sonnet` (default) — real logic edits, single agent or 3-agent fan-out.
|
|
42
|
-
- `haiku` — mostly-relocation diffs (mechanical moves; pattern-matching beats deep reasoning).
|
|
43
|
-
- `opus` — never returned. Code review is breadth-bound, not depth-bound; sonnet 3-way IS the high-effort tier.
|
|
44
|
-
|
|
45
|
-
Pass the classifier's `model` field verbatim to Agent's `model` parameter. If you fell back to prose rules in Phase 2 (no classifier), default to `sonnet`.
|
|
46
|
-
|
|
47
|
-
## Phase 4: Validation pass (re-run after fixes from a prior simplify)
|
|
48
|
-
|
|
49
|
-
If `/flo-simplify` already ran on this branch in this session AND the only edits since are fixes the prior pass surfaced, **default to TRIVIAL self-review** regardless of LOC count. The fan-out happened; the fix is small relative to the already-reviewed diff.
|
|
50
|
-
|
|
51
|
-
Escalate one tier (self-review → SMALL agent) only if the fix introduced a new file, a new exported symbol, a new dependency, or a control-flow change not covered by the original findings. Never escalate a validation pass to NORMAL.
|
|
52
|
-
|
|
53
|
-
## Phase 5: Run the appropriate review
|
|
54
|
-
|
|
55
|
-
### TRIVIAL
|
|
56
|
-
Print one confirmation line (`simplify: TRIVIAL — N LOC, 1 file — stamped`) and exit. **Do not** walk the three-category check; the classifier already concluded the diff is below the review-value threshold. Budget: <5 seconds, no Agent.
|
|
57
|
-
|
|
58
|
-
### Validation pass
|
|
59
|
-
Run the three category checks against the post-fix diff in one pass. Most are clean — confirm and exit. Budget: ~30 seconds, no Agent.
|
|
60
|
-
|
|
61
|
-
### SMALL — one agent
|
|
62
|
-
```
|
|
63
|
-
Agent — {
|
|
64
|
-
subagent_type: "reviewer",
|
|
65
|
-
model: "<sonnet (or haiku for trivial-formatting tier from router)>",
|
|
66
|
-
prompt: "FIRST ACTION: Run mcp__moflo__memory_search with query 'code review patterns' and namespace 'patterns' to satisfy the memory-first gate. THEN review this diff for reuse, quality, and efficiency. <diff inline>. Flag specific issues as file:line + 1-line description. Max 5 file reads. Under 200 words. Skip cosmetic style. Don't suggest cross-cutting refactors of code outside this diff."
|
|
67
|
-
}
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
For critical-surface files, prepend a 1-line risk note (e.g., "This is `bin/session-start-launcher.mjs` — runs in every consumer's session-start hot path; cross-platform + blast-radius matter."). One careful agent, not three.
|
|
71
|
-
|
|
72
|
-
### NORMAL — three parallel agents
|
|
73
|
-
Launch three agents in a single message, each at the routed model (typically sonnet). Each agent gets the SMALL-tier tool-budget cap.
|
|
74
|
-
|
|
75
|
-
- **Agent 1 (Reuse):** existing helpers/utilities that should be used; duplicated patterns; functions re-implementing something already in the codebase.
|
|
76
|
-
- **Agent 2 (Quality):** redundant state, parameter sprawl, copy-paste with variation, leaky abstractions, stringly-typed code, nested conditionals 3+ levels, unnecessary comments.
|
|
77
|
-
- **Agent 3 (Efficiency):** unnecessary work, missed concurrency, hot-path bloat, recurring no-op updates, TOCTOU existence checks, unbounded structures, over-broad reads.
|
|
78
|
-
|
|
79
|
-
Each agent prompt must start with `FIRST ACTION: mcp__moflo__memory_search ... namespace: "patterns"` — subagents must satisfy the memory-first gate independently before Glob/Grep/Read.
|
|
80
|
-
|
|
81
|
-
## Phase 6: Fix or skip
|
|
82
|
-
|
|
83
|
-
Aggregate findings. Fix each issue directly that's worth fixing. False positives or out-of-scope: note and skip without arguing.
|
|
84
|
-
|
|
85
|
-
If fixes were made, re-run tests to confirm nothing broke. If tests fail after a fix, revert it.
|
|
86
|
-
|
|
87
|
-
After fixes: the next `/flo-simplify` invocation is a **validation pass** (Phase 4). Bundle related fixes into one batch so a single validation pass covers them — don't re-fan-out for cosmetic micro-corrections.
|
|
88
|
-
|
|
89
|
-
## Phase 7: Optional — record routing outcome
|
|
90
|
-
|
|
91
|
-
If you spawned an agent, feed back the outcome so the router learns:
|
|
92
|
-
|
|
93
|
-
```
|
|
94
|
-
mcp__moflo__hooks_model-outcome — { task: "...", model: "<chosen>", outcome: "success" | "failure" | "escalated" }
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
`escalated` only when a real miss happened that a higher tier would have caught — never used to retroactively justify opus.
|
|
98
|
-
|
|
99
|
-
## Briefly summarize
|
|
100
|
-
|
|
101
|
-
End with one or two sentences: which tier ran, which model, what was fixed (or "clean — no changes"). No headers, no bullets.
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# Github Commands
|
|
2
|
-
|
|
3
|
-
Commands for github operations in Claude Flow.
|
|
4
|
-
|
|
5
|
-
## Available Commands
|
|
6
|
-
|
|
7
|
-
- [github-swarm](./github-swarm.md)
|
|
8
|
-
- [repo-analyze](./repo-analyze.md)
|
|
9
|
-
- [pr-enhance](./pr-enhance.md)
|
|
10
|
-
- [issue-triage](./issue-triage.md)
|
|
11
|
-
- [code-review](./code-review.md)
|