agentic-qe 1.0.5 → 1.2.0
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/qe-coverage-analyzer.md +8 -0
- package/.claude/agents/qe-flaky-test-hunter.md +9 -1
- package/.claude/agents/qe-quality-analyzer.md +405 -0
- package/.claude/agents/qe-test-generator.md +7 -0
- package/.claude/agents/reasoning/agent.md +816 -0
- package/.claude/agents/reasoning/goal-planner.md +73 -0
- package/.claude/settings.json +21 -20
- package/.claude/skills/README.md +124 -0
- package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
- package/.claude/skills/agentdb-learning/SKILL.md +545 -0
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
- package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
- package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
- package/.claude/skills/agentic-quality-engineering/SKILL.md +604 -0
- package/.claude/skills/api-testing-patterns/SKILL.md +686 -0
- package/.claude/skills/bug-reporting-excellence/SKILL.md +632 -0
- package/.claude/skills/code-review-quality/SKILL.md +683 -0
- package/.claude/skills/consultancy-practices/SKILL.md +540 -0
- package/.claude/skills/context-driven-testing/SKILL.md +466 -0
- package/.claude/skills/exploratory-testing-advanced/SKILL.md +676 -0
- package/.claude/skills/flow-nexus-neural/SKILL.md +738 -0
- package/.claude/skills/flow-nexus-platform/SKILL.md +1157 -0
- package/.claude/skills/flow-nexus-swarm/SKILL.md +610 -0
- package/.claude/skills/github-code-review/SKILL.md +1140 -0
- package/.claude/skills/github-multi-repo/SKILL.md +874 -0
- package/.claude/skills/github-project-management/SKILL.md +1277 -0
- package/.claude/skills/github-release-management/SKILL.md +1081 -0
- package/.claude/skills/github-workflow-automation/SKILL.md +1065 -0
- package/.claude/skills/hive-mind-advanced/SKILL.md +712 -0
- package/.claude/skills/holistic-testing-pact/SKILL.md +225 -0
- package/.claude/skills/hooks-automation/SKILL.md +1201 -0
- package/.claude/skills/pair-programming/SKILL.md +1202 -0
- package/.claude/skills/performance-analysis/SKILL.md +563 -0
- package/.claude/skills/performance-testing/SKILL.md +662 -0
- package/.claude/skills/quality-metrics/SKILL.md +592 -0
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
- package/.claude/skills/refactoring-patterns/SKILL.md +778 -0
- package/.claude/skills/risk-based-testing/SKILL.md +721 -0
- package/.claude/skills/security-testing/SKILL.md +651 -0
- package/.claude/skills/skill-builder/SKILL.md +910 -0
- package/.claude/skills/sparc-methodology/SKILL.md +1115 -0
- package/.claude/skills/stream-chain/SKILL.md +563 -0
- package/.claude/skills/swarm-advanced/SKILL.md +973 -0
- package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
- package/.claude/skills/tdd-london-chicago/SKILL.md +567 -0
- package/.claude/skills/technical-writing/SKILL.md +235 -0
- package/.claude/skills/test-automation-strategy/SKILL.md +842 -0
- package/.claude/skills/verification-quality/SKILL.md +649 -0
- package/.claude/skills/xp-practices/SKILL.md +671 -0
- package/.claude/statusline-command.sh +176 -0
- package/CHANGELOG.md +645 -1
- package/CONTRIBUTING.md +51 -0
- package/README.md +758 -162
- package/bin/aqe +90 -938
- package/config/improvement-loop.config.ts +323 -0
- package/config/neural-agent.config.ts +197 -0
- package/dist/adapters/MemoryStoreAdapter.d.ts +16 -16
- package/dist/adapters/MemoryStoreAdapter.d.ts.map +1 -1
- package/dist/adapters/MemoryStoreAdapter.js +22 -16
- package/dist/adapters/MemoryStoreAdapter.js.map +1 -1
- package/dist/agents/BaseAgent.d.ts +69 -0
- package/dist/agents/BaseAgent.d.ts.map +1 -1
- package/dist/agents/BaseAgent.js +382 -1
- package/dist/agents/BaseAgent.js.map +1 -1
- package/dist/agents/CoverageAnalyzerAgent.d.ts +69 -3
- package/dist/agents/CoverageAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/CoverageAnalyzerAgent.js +418 -51
- package/dist/agents/CoverageAnalyzerAgent.js.map +1 -1
- package/dist/agents/DeploymentReadinessAgent.d.ts.map +1 -1
- package/dist/agents/DeploymentReadinessAgent.js +13 -13
- package/dist/agents/DeploymentReadinessAgent.js.map +1 -1
- package/dist/agents/FlakyTestHunterAgent.d.ts +76 -4
- package/dist/agents/FlakyTestHunterAgent.d.ts.map +1 -1
- package/dist/agents/FlakyTestHunterAgent.js +375 -13
- package/dist/agents/FlakyTestHunterAgent.js.map +1 -1
- package/dist/agents/FleetCommanderAgent.d.ts.map +1 -1
- package/dist/agents/FleetCommanderAgent.js +2 -2
- package/dist/agents/FleetCommanderAgent.js.map +1 -1
- package/dist/agents/LearningAgent.d.ts +84 -0
- package/dist/agents/LearningAgent.d.ts.map +1 -0
- package/dist/agents/LearningAgent.js +197 -0
- package/dist/agents/LearningAgent.js.map +1 -0
- package/dist/agents/NeuralAgentExtension.d.ts +117 -0
- package/dist/agents/NeuralAgentExtension.d.ts.map +1 -0
- package/dist/agents/NeuralAgentExtension.js +288 -0
- package/dist/agents/NeuralAgentExtension.js.map +1 -0
- package/dist/agents/PerformanceTesterAgent.d.ts.map +1 -1
- package/dist/agents/PerformanceTesterAgent.js +4 -3
- package/dist/agents/PerformanceTesterAgent.js.map +1 -1
- package/dist/agents/ProductionIntelligenceAgent.js +7 -7
- package/dist/agents/ProductionIntelligenceAgent.js.map +1 -1
- package/dist/agents/QualityAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/QualityAnalyzerAgent.js +2 -2
- package/dist/agents/QualityAnalyzerAgent.js.map +1 -1
- package/dist/agents/QualityGateAgent.js +5 -5
- package/dist/agents/QualityGateAgent.js.map +1 -1
- package/dist/agents/RegressionRiskAnalyzerAgent.js +7 -7
- package/dist/agents/RegressionRiskAnalyzerAgent.js.map +1 -1
- package/dist/agents/RequirementsValidatorAgent.d.ts.map +1 -1
- package/dist/agents/RequirementsValidatorAgent.js +1 -1
- package/dist/agents/RequirementsValidatorAgent.js.map +1 -1
- package/dist/agents/SecurityScannerAgent.js +6 -6
- package/dist/agents/SecurityScannerAgent.js.map +1 -1
- package/dist/agents/TestExecutorAgent.d.ts.map +1 -1
- package/dist/agents/TestExecutorAgent.js +1 -3
- package/dist/agents/TestExecutorAgent.js.map +1 -1
- package/dist/agents/TestGeneratorAgent.d.ts +53 -2
- package/dist/agents/TestGeneratorAgent.d.ts.map +1 -1
- package/dist/agents/TestGeneratorAgent.js +372 -31
- package/dist/agents/TestGeneratorAgent.js.map +1 -1
- package/dist/agents/mixins/NeuralCapableMixin.d.ts +130 -0
- package/dist/agents/mixins/NeuralCapableMixin.d.ts.map +1 -0
- package/dist/agents/mixins/NeuralCapableMixin.js +358 -0
- package/dist/agents/mixins/NeuralCapableMixin.js.map +1 -0
- package/dist/agents/mixins/QUICCapableMixin.d.ts +34 -0
- package/dist/agents/mixins/QUICCapableMixin.d.ts.map +1 -0
- package/dist/agents/mixins/QUICCapableMixin.js +346 -0
- package/dist/agents/mixins/QUICCapableMixin.js.map +1 -0
- package/dist/cli/commands/agent/index.d.ts +5 -0
- package/dist/cli/commands/agent/index.d.ts.map +1 -1
- package/dist/cli/commands/agent/index.js +11 -6
- package/dist/cli/commands/agent/index.js.map +1 -1
- package/dist/cli/commands/agent/kill.d.ts +13 -0
- package/dist/cli/commands/agent/kill.d.ts.map +1 -0
- package/dist/cli/commands/agent/kill.js +65 -0
- package/dist/cli/commands/agent/kill.js.map +1 -0
- package/dist/cli/commands/agent/list.d.ts +19 -0
- package/dist/cli/commands/agent/list.d.ts.map +1 -0
- package/dist/cli/commands/agent/list.js +92 -0
- package/dist/cli/commands/agent/list.js.map +1 -0
- package/dist/cli/commands/agent/logs.d.ts +14 -0
- package/dist/cli/commands/agent/logs.d.ts.map +1 -0
- package/dist/cli/commands/agent/logs.js +77 -0
- package/dist/cli/commands/agent/logs.js.map +1 -0
- package/dist/cli/commands/agent/metrics.d.ts +21 -0
- package/dist/cli/commands/agent/metrics.d.ts.map +1 -0
- package/dist/cli/commands/agent/metrics.js +87 -0
- package/dist/cli/commands/agent/metrics.js.map +1 -0
- package/dist/cli/commands/agent/spawn.d.ts +28 -0
- package/dist/cli/commands/agent/spawn.d.ts.map +1 -0
- package/dist/cli/commands/agent/spawn.js +83 -0
- package/dist/cli/commands/agent/spawn.js.map +1 -0
- package/dist/cli/commands/improve/index.d.ts +70 -0
- package/dist/cli/commands/improve/index.d.ts.map +1 -0
- package/dist/cli/commands/improve/index.js +530 -0
- package/dist/cli/commands/improve/index.js.map +1 -0
- package/dist/cli/commands/init.d.ts +57 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +1127 -42
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/learn/index.d.ts +68 -0
- package/dist/cli/commands/learn/index.d.ts.map +1 -0
- package/dist/cli/commands/learn/index.js +431 -0
- package/dist/cli/commands/learn/index.js.map +1 -0
- package/dist/cli/commands/patterns/index.d.ts +75 -0
- package/dist/cli/commands/patterns/index.d.ts.map +1 -0
- package/dist/cli/commands/patterns/index.js +502 -0
- package/dist/cli/commands/patterns/index.js.map +1 -0
- package/dist/cli/commands/skills/index.d.ts +51 -0
- package/dist/cli/commands/skills/index.d.ts.map +1 -0
- package/dist/cli/commands/skills/index.js +364 -0
- package/dist/cli/commands/skills/index.js.map +1 -0
- package/dist/cli/index.js +458 -8
- package/dist/cli/index.js.map +1 -1
- package/dist/core/EventBus.d.ts +38 -0
- package/dist/core/EventBus.d.ts.map +1 -1
- package/dist/core/EventBus.js +176 -31
- package/dist/core/EventBus.js.map +1 -1
- package/dist/core/FleetManager.d.ts +35 -1
- package/dist/core/FleetManager.d.ts.map +1 -1
- package/dist/core/FleetManager.js +121 -45
- package/dist/core/FleetManager.js.map +1 -1
- package/dist/core/MemoryManager.d.ts +19 -1
- package/dist/core/MemoryManager.d.ts.map +1 -1
- package/dist/core/MemoryManager.js +25 -1
- package/dist/core/MemoryManager.js.map +1 -1
- package/dist/core/embeddings/EmbeddingCache.d.ts +134 -0
- package/dist/core/embeddings/EmbeddingCache.d.ts.map +1 -0
- package/dist/core/embeddings/EmbeddingCache.js +239 -0
- package/dist/core/embeddings/EmbeddingCache.js.map +1 -0
- package/dist/core/embeddings/EmbeddingGenerator.d.ts +224 -0
- package/dist/core/embeddings/EmbeddingGenerator.d.ts.map +1 -0
- package/dist/core/embeddings/EmbeddingGenerator.js +459 -0
- package/dist/core/embeddings/EmbeddingGenerator.js.map +1 -0
- package/dist/core/embeddings/index.d.ts +15 -0
- package/dist/core/embeddings/index.d.ts.map +1 -0
- package/dist/core/embeddings/index.js +22 -0
- package/dist/core/embeddings/index.js.map +1 -0
- package/dist/core/memory/AgentDBIntegration.d.ts +35 -0
- package/dist/core/memory/AgentDBIntegration.d.ts.map +1 -0
- package/dist/core/memory/AgentDBIntegration.js +75 -0
- package/dist/core/memory/AgentDBIntegration.js.map +1 -0
- package/dist/core/memory/AgentDBManager.d.ts +200 -0
- package/dist/core/memory/AgentDBManager.d.ts.map +1 -0
- package/dist/core/memory/AgentDBManager.js +263 -0
- package/dist/core/memory/AgentDBManager.js.map +1 -0
- package/dist/core/memory/AgentDBService.d.ts +160 -0
- package/dist/core/memory/AgentDBService.d.ts.map +1 -0
- package/dist/core/memory/AgentDBService.js +450 -0
- package/dist/core/memory/AgentDBService.js.map +1 -0
- package/dist/core/memory/RealAgentDBAdapter.d.ts +51 -0
- package/dist/core/memory/RealAgentDBAdapter.d.ts.map +1 -0
- package/dist/core/memory/RealAgentDBAdapter.js +230 -0
- package/dist/core/memory/RealAgentDBAdapter.js.map +1 -0
- package/dist/core/memory/ReasoningBankAdapter.d.ts +58 -0
- package/dist/core/memory/ReasoningBankAdapter.d.ts.map +1 -0
- package/dist/core/memory/ReasoningBankAdapter.js +80 -0
- package/dist/core/memory/ReasoningBankAdapter.js.map +1 -0
- package/dist/core/memory/SwarmMemoryManager.d.ts +79 -2
- package/dist/core/memory/SwarmMemoryManager.d.ts.map +1 -1
- package/dist/core/memory/SwarmMemoryManager.js +243 -52
- package/dist/core/memory/SwarmMemoryManager.js.map +1 -1
- package/dist/core/memory/index.d.ts +4 -0
- package/dist/core/memory/index.d.ts.map +1 -1
- package/dist/core/memory/index.js +9 -1
- package/dist/core/memory/index.js.map +1 -1
- package/dist/core/neural/NeuralTrainer.d.ts +137 -0
- package/dist/core/neural/NeuralTrainer.d.ts.map +1 -0
- package/dist/core/neural/NeuralTrainer.js +543 -0
- package/dist/core/neural/NeuralTrainer.js.map +1 -0
- package/dist/core/neural/index.d.ts +8 -0
- package/dist/core/neural/index.d.ts.map +1 -0
- package/dist/core/neural/index.js +24 -0
- package/dist/core/neural/index.js.map +1 -0
- package/dist/core/neural/types.d.ts +216 -0
- package/dist/core/neural/types.d.ts.map +1 -0
- package/dist/core/neural/types.js +8 -0
- package/dist/core/neural/types.js.map +1 -0
- package/dist/core/security/CertificateValidator.d.ts +130 -0
- package/dist/core/security/CertificateValidator.d.ts.map +1 -0
- package/dist/core/security/CertificateValidator.js +376 -0
- package/dist/core/security/CertificateValidator.js.map +1 -0
- package/dist/core/transport/QUICTransport.d.ts +62 -0
- package/dist/core/transport/QUICTransport.d.ts.map +1 -0
- package/dist/core/transport/QUICTransport.js +381 -0
- package/dist/core/transport/QUICTransport.js.map +1 -0
- package/dist/core/transport/SecureQUICTransport.d.ts +71 -0
- package/dist/core/transport/SecureQUICTransport.d.ts.map +1 -0
- package/dist/core/transport/SecureQUICTransport.js +253 -0
- package/dist/core/transport/SecureQUICTransport.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/learning/AdvancedFeatureExtractor.d.ts +123 -0
- package/dist/learning/AdvancedFeatureExtractor.d.ts.map +1 -0
- package/dist/learning/AdvancedFeatureExtractor.js +423 -0
- package/dist/learning/AdvancedFeatureExtractor.js.map +1 -0
- package/dist/learning/FlakyFixRecommendations.d.ts +40 -0
- package/dist/learning/FlakyFixRecommendations.d.ts.map +1 -0
- package/dist/learning/FlakyFixRecommendations.js +247 -0
- package/dist/learning/FlakyFixRecommendations.js.map +1 -0
- package/dist/learning/FlakyPredictionModel.d.ts +67 -0
- package/dist/learning/FlakyPredictionModel.d.ts.map +1 -0
- package/dist/learning/FlakyPredictionModel.js +336 -0
- package/dist/learning/FlakyPredictionModel.js.map +1 -0
- package/dist/learning/FlakyTestDetector.d.ts +55 -0
- package/dist/learning/FlakyTestDetector.d.ts.map +1 -0
- package/dist/learning/FlakyTestDetector.js +237 -0
- package/dist/learning/FlakyTestDetector.js.map +1 -0
- package/dist/learning/ImprovementLoop.d.ts +133 -0
- package/dist/learning/ImprovementLoop.d.ts.map +1 -0
- package/dist/learning/ImprovementLoop.js +412 -0
- package/dist/learning/ImprovementLoop.js.map +1 -0
- package/dist/learning/ImprovementWorker.d.ts +83 -0
- package/dist/learning/ImprovementWorker.d.ts.map +1 -0
- package/dist/learning/ImprovementWorker.js +164 -0
- package/dist/learning/ImprovementWorker.js.map +1 -0
- package/dist/learning/LearningEngine.d.ts +144 -0
- package/dist/learning/LearningEngine.d.ts.map +1 -0
- package/dist/learning/LearningEngine.js +531 -0
- package/dist/learning/LearningEngine.js.map +1 -0
- package/dist/learning/NeuralPatternMatcher.d.ts +184 -0
- package/dist/learning/NeuralPatternMatcher.d.ts.map +1 -0
- package/dist/learning/NeuralPatternMatcher.js +702 -0
- package/dist/learning/NeuralPatternMatcher.js.map +1 -0
- package/dist/learning/NeuralTrainer.d.ts +209 -0
- package/dist/learning/NeuralTrainer.d.ts.map +1 -0
- package/dist/learning/NeuralTrainer.js +478 -0
- package/dist/learning/NeuralTrainer.js.map +1 -0
- package/dist/learning/PerformanceTracker.d.ts +118 -0
- package/dist/learning/PerformanceTracker.d.ts.map +1 -0
- package/dist/learning/PerformanceTracker.js +376 -0
- package/dist/learning/PerformanceTracker.js.map +1 -0
- package/dist/learning/StatisticalAnalysis.d.ts +47 -0
- package/dist/learning/StatisticalAnalysis.d.ts.map +1 -0
- package/dist/learning/StatisticalAnalysis.js +170 -0
- package/dist/learning/StatisticalAnalysis.js.map +1 -0
- package/dist/learning/SwarmIntegration.d.ts +107 -0
- package/dist/learning/SwarmIntegration.d.ts.map +1 -0
- package/dist/learning/SwarmIntegration.js +191 -0
- package/dist/learning/SwarmIntegration.js.map +1 -0
- package/dist/learning/index.d.ts +16 -0
- package/dist/learning/index.d.ts.map +1 -0
- package/dist/learning/index.js +32 -0
- package/dist/learning/index.js.map +1 -0
- package/dist/learning/types.d.ts +289 -0
- package/dist/learning/types.d.ts.map +1 -0
- package/dist/learning/types.js +25 -0
- package/dist/learning/types.js.map +1 -0
- package/dist/mcp/MCPToolRegistry.d.ts +34 -0
- package/dist/mcp/MCPToolRegistry.d.ts.map +1 -0
- package/dist/mcp/MCPToolRegistry.js +48 -0
- package/dist/mcp/MCPToolRegistry.js.map +1 -0
- package/dist/mcp/handlers/phase2/Phase2Tools.d.ts +175 -0
- package/dist/mcp/handlers/phase2/Phase2Tools.d.ts.map +1 -0
- package/dist/mcp/handlers/phase2/Phase2Tools.js +693 -0
- package/dist/mcp/handlers/phase2/Phase2Tools.js.map +1 -0
- package/dist/mcp/server.d.ts +4 -4
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +94 -0
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/services/AgentRegistry.d.ts.map +1 -1
- package/dist/mcp/services/AgentRegistry.js +7 -1
- package/dist/mcp/services/AgentRegistry.js.map +1 -1
- package/dist/mcp/tools.d.ts +15 -0
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +17 -1
- package/dist/mcp/tools.js.map +1 -1
- package/dist/reasoning/CodeSignatureGenerator.d.ts +98 -0
- package/dist/reasoning/CodeSignatureGenerator.d.ts.map +1 -0
- package/dist/reasoning/CodeSignatureGenerator.js +427 -0
- package/dist/reasoning/CodeSignatureGenerator.js.map +1 -0
- package/dist/reasoning/PatternClassifier.d.ts +98 -0
- package/dist/reasoning/PatternClassifier.d.ts.map +1 -0
- package/dist/reasoning/PatternClassifier.js +345 -0
- package/dist/reasoning/PatternClassifier.js.map +1 -0
- package/dist/reasoning/PatternExtractor.d.ts +131 -0
- package/dist/reasoning/PatternExtractor.d.ts.map +1 -0
- package/dist/reasoning/PatternExtractor.js +539 -0
- package/dist/reasoning/PatternExtractor.js.map +1 -0
- package/dist/reasoning/PatternMemoryIntegration.d.ts +102 -0
- package/dist/reasoning/PatternMemoryIntegration.d.ts.map +1 -0
- package/dist/reasoning/PatternMemoryIntegration.js +336 -0
- package/dist/reasoning/PatternMemoryIntegration.js.map +1 -0
- package/dist/reasoning/QEReasoningBank.d.ts +121 -0
- package/dist/reasoning/QEReasoningBank.d.ts.map +1 -0
- package/dist/reasoning/QEReasoningBank.js +235 -0
- package/dist/reasoning/QEReasoningBank.js.map +1 -0
- package/dist/reasoning/TestTemplateCreator.d.ts +95 -0
- package/dist/reasoning/TestTemplateCreator.d.ts.map +1 -0
- package/dist/reasoning/TestTemplateCreator.js +535 -0
- package/dist/reasoning/TestTemplateCreator.js.map +1 -0
- package/dist/reasoning/index.d.ts +10 -0
- package/dist/reasoning/index.d.ts.map +1 -0
- package/dist/reasoning/index.js +31 -0
- package/dist/reasoning/index.js.map +1 -0
- package/dist/reasoning/types.d.ts +717 -0
- package/dist/reasoning/types.d.ts.map +1 -0
- package/dist/reasoning/types.js +57 -0
- package/dist/reasoning/types.js.map +1 -0
- package/dist/transport/QUICTransport.d.ts +340 -0
- package/dist/transport/QUICTransport.d.ts.map +1 -0
- package/dist/transport/QUICTransport.js +814 -0
- package/dist/transport/QUICTransport.js.map +1 -0
- package/dist/transport/UDPTransport.d.ts +348 -0
- package/dist/transport/UDPTransport.d.ts.map +1 -0
- package/dist/transport/UDPTransport.js +820 -0
- package/dist/transport/UDPTransport.js.map +1 -0
- package/dist/types/errors.d.ts +1 -1
- package/dist/types/index.d.ts +41 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/pattern.types.d.ts +364 -0
- package/dist/types/pattern.types.d.ts.map +1 -0
- package/dist/types/pattern.types.js +60 -0
- package/dist/types/pattern.types.js.map +1 -0
- package/dist/types/quic.d.ts +339 -0
- package/dist/types/quic.d.ts.map +1 -0
- package/dist/types/quic.js +48 -0
- package/dist/types/quic.js.map +1 -0
- package/dist/utils/Config.js +1 -1
- package/dist/utils/Config.js.map +1 -1
- package/dist/utils/Database.d.ts +14 -0
- package/dist/utils/Database.d.ts.map +1 -1
- package/dist/utils/Database.js +51 -4
- package/dist/utils/Database.js.map +1 -1
- package/dist/utils/Logger.d.ts.map +1 -1
- package/dist/utils/Logger.js +111 -26
- package/dist/utils/Logger.js.map +1 -1
- package/package.json +54 -9
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: flow-nexus-swarm
|
|
3
|
+
description: Cloud-based AI swarm deployment and event-driven workflow automation with Flow Nexus platform
|
|
4
|
+
category: orchestration
|
|
5
|
+
tags: [swarm, workflow, cloud, agents, automation, message-queue]
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
requires:
|
|
8
|
+
- flow-nexus MCP server
|
|
9
|
+
- Active Flow Nexus account (register at flow-nexus.ruv.io)
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Flow Nexus Swarm & Workflow Orchestration
|
|
13
|
+
|
|
14
|
+
Deploy and manage cloud-based AI agent swarms with event-driven workflow automation, message queue processing, and intelligent agent coordination.
|
|
15
|
+
|
|
16
|
+
## 📋 Table of Contents
|
|
17
|
+
|
|
18
|
+
1. [Overview](#overview)
|
|
19
|
+
2. [Swarm Management](#swarm-management)
|
|
20
|
+
3. [Workflow Automation](#workflow-automation)
|
|
21
|
+
4. [Agent Orchestration](#agent-orchestration)
|
|
22
|
+
5. [Templates & Patterns](#templates--patterns)
|
|
23
|
+
6. [Advanced Features](#advanced-features)
|
|
24
|
+
7. [Best Practices](#best-practices)
|
|
25
|
+
|
|
26
|
+
## Overview
|
|
27
|
+
|
|
28
|
+
Flow Nexus provides cloud-based orchestration for AI agent swarms with:
|
|
29
|
+
|
|
30
|
+
- **Multi-topology Support**: Hierarchical, mesh, ring, and star architectures
|
|
31
|
+
- **Event-driven Workflows**: Message queue processing with async execution
|
|
32
|
+
- **Template Library**: Pre-built swarm configurations for common use cases
|
|
33
|
+
- **Intelligent Agent Assignment**: Vector similarity matching for optimal agent selection
|
|
34
|
+
- **Real-time Monitoring**: Comprehensive metrics and audit trails
|
|
35
|
+
- **Scalable Infrastructure**: Cloud-based execution with auto-scaling
|
|
36
|
+
|
|
37
|
+
## Swarm Management
|
|
38
|
+
|
|
39
|
+
### Initialize Swarm
|
|
40
|
+
|
|
41
|
+
Create a new swarm with specified topology and configuration:
|
|
42
|
+
|
|
43
|
+
```javascript
|
|
44
|
+
mcp__flow-nexus__swarm_init({
|
|
45
|
+
topology: "hierarchical", // Options: mesh, ring, star, hierarchical
|
|
46
|
+
maxAgents: 8,
|
|
47
|
+
strategy: "balanced" // Options: balanced, specialized, adaptive
|
|
48
|
+
})
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**Topology Guide:**
|
|
52
|
+
- **Hierarchical**: Tree structure with coordinator nodes (best for complex projects)
|
|
53
|
+
- **Mesh**: Peer-to-peer collaboration (best for research and analysis)
|
|
54
|
+
- **Ring**: Circular coordination (best for sequential workflows)
|
|
55
|
+
- **Star**: Centralized hub (best for simple delegation)
|
|
56
|
+
|
|
57
|
+
**Strategy Guide:**
|
|
58
|
+
- **Balanced**: Equal distribution of workload across agents
|
|
59
|
+
- **Specialized**: Agents focus on specific expertise areas
|
|
60
|
+
- **Adaptive**: Dynamic adjustment based on task complexity
|
|
61
|
+
|
|
62
|
+
### Spawn Agents
|
|
63
|
+
|
|
64
|
+
Add specialized agents to the swarm:
|
|
65
|
+
|
|
66
|
+
```javascript
|
|
67
|
+
mcp__flow-nexus__agent_spawn({
|
|
68
|
+
type: "researcher", // Options: researcher, coder, analyst, optimizer, coordinator
|
|
69
|
+
name: "Lead Researcher",
|
|
70
|
+
capabilities: ["web_search", "analysis", "summarization"]
|
|
71
|
+
})
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**Agent Types:**
|
|
75
|
+
- **Researcher**: Information gathering, web search, analysis
|
|
76
|
+
- **Coder**: Code generation, refactoring, implementation
|
|
77
|
+
- **Analyst**: Data analysis, pattern recognition, insights
|
|
78
|
+
- **Optimizer**: Performance tuning, resource optimization
|
|
79
|
+
- **Coordinator**: Task delegation, progress tracking, integration
|
|
80
|
+
|
|
81
|
+
### Orchestrate Tasks
|
|
82
|
+
|
|
83
|
+
Distribute tasks across the swarm:
|
|
84
|
+
|
|
85
|
+
```javascript
|
|
86
|
+
mcp__flow-nexus__task_orchestrate({
|
|
87
|
+
task: "Build a REST API with authentication and database integration",
|
|
88
|
+
strategy: "parallel", // Options: parallel, sequential, adaptive
|
|
89
|
+
maxAgents: 5,
|
|
90
|
+
priority: "high" // Options: low, medium, high, critical
|
|
91
|
+
})
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**Execution Strategies:**
|
|
95
|
+
- **Parallel**: Maximum concurrency for independent subtasks
|
|
96
|
+
- **Sequential**: Step-by-step execution with dependencies
|
|
97
|
+
- **Adaptive**: AI-powered strategy selection based on task analysis
|
|
98
|
+
|
|
99
|
+
### Monitor & Scale Swarms
|
|
100
|
+
|
|
101
|
+
```javascript
|
|
102
|
+
// Get detailed swarm status
|
|
103
|
+
mcp__flow-nexus__swarm_status({
|
|
104
|
+
swarm_id: "optional-id" // Uses active swarm if not provided
|
|
105
|
+
})
|
|
106
|
+
|
|
107
|
+
// List all active swarms
|
|
108
|
+
mcp__flow-nexus__swarm_list({
|
|
109
|
+
status: "active" // Options: active, destroyed, all
|
|
110
|
+
})
|
|
111
|
+
|
|
112
|
+
// Scale swarm up or down
|
|
113
|
+
mcp__flow-nexus__swarm_scale({
|
|
114
|
+
target_agents: 10,
|
|
115
|
+
swarm_id: "optional-id"
|
|
116
|
+
})
|
|
117
|
+
|
|
118
|
+
// Gracefully destroy swarm
|
|
119
|
+
mcp__flow-nexus__swarm_destroy({
|
|
120
|
+
swarm_id: "optional-id"
|
|
121
|
+
})
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Workflow Automation
|
|
125
|
+
|
|
126
|
+
### Create Workflow
|
|
127
|
+
|
|
128
|
+
Define event-driven workflows with message queue processing:
|
|
129
|
+
|
|
130
|
+
```javascript
|
|
131
|
+
mcp__flow-nexus__workflow_create({
|
|
132
|
+
name: "CI/CD Pipeline",
|
|
133
|
+
description: "Automated testing, building, and deployment",
|
|
134
|
+
steps: [
|
|
135
|
+
{
|
|
136
|
+
id: "test",
|
|
137
|
+
action: "run_tests",
|
|
138
|
+
agent: "tester",
|
|
139
|
+
parallel: true
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
id: "build",
|
|
143
|
+
action: "build_app",
|
|
144
|
+
agent: "builder",
|
|
145
|
+
depends_on: ["test"]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
id: "deploy",
|
|
149
|
+
action: "deploy_prod",
|
|
150
|
+
agent: "deployer",
|
|
151
|
+
depends_on: ["build"]
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
triggers: ["push_to_main", "manual_trigger"],
|
|
155
|
+
metadata: {
|
|
156
|
+
priority: 10,
|
|
157
|
+
retry_policy: "exponential_backoff"
|
|
158
|
+
}
|
|
159
|
+
})
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**Workflow Features:**
|
|
163
|
+
- **Dependency Management**: Define step dependencies with `depends_on`
|
|
164
|
+
- **Parallel Execution**: Set `parallel: true` for concurrent steps
|
|
165
|
+
- **Event Triggers**: GitHub events, schedules, manual triggers
|
|
166
|
+
- **Retry Policies**: Automatic retry on transient failures
|
|
167
|
+
- **Priority Queuing**: High-priority workflows execute first
|
|
168
|
+
|
|
169
|
+
### Execute Workflow
|
|
170
|
+
|
|
171
|
+
Run workflows synchronously or asynchronously:
|
|
172
|
+
|
|
173
|
+
```javascript
|
|
174
|
+
mcp__flow-nexus__workflow_execute({
|
|
175
|
+
workflow_id: "workflow_id",
|
|
176
|
+
input_data: {
|
|
177
|
+
branch: "main",
|
|
178
|
+
commit: "abc123",
|
|
179
|
+
environment: "production"
|
|
180
|
+
},
|
|
181
|
+
async: true // Queue-based execution for long-running workflows
|
|
182
|
+
})
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**Execution Modes:**
|
|
186
|
+
- **Sync (async: false)**: Immediate execution, wait for completion
|
|
187
|
+
- **Async (async: true)**: Message queue processing, non-blocking
|
|
188
|
+
|
|
189
|
+
### Monitor Workflows
|
|
190
|
+
|
|
191
|
+
```javascript
|
|
192
|
+
// Get workflow status and metrics
|
|
193
|
+
mcp__flow-nexus__workflow_status({
|
|
194
|
+
workflow_id: "id",
|
|
195
|
+
execution_id: "specific-run-id", // Optional
|
|
196
|
+
include_metrics: true
|
|
197
|
+
})
|
|
198
|
+
|
|
199
|
+
// List workflows with filters
|
|
200
|
+
mcp__flow-nexus__workflow_list({
|
|
201
|
+
status: "running", // Options: running, completed, failed, pending
|
|
202
|
+
limit: 10,
|
|
203
|
+
offset: 0
|
|
204
|
+
})
|
|
205
|
+
|
|
206
|
+
// Get complete audit trail
|
|
207
|
+
mcp__flow-nexus__workflow_audit_trail({
|
|
208
|
+
workflow_id: "id",
|
|
209
|
+
limit: 50,
|
|
210
|
+
start_time: "2025-01-01T00:00:00Z"
|
|
211
|
+
})
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Agent Assignment
|
|
215
|
+
|
|
216
|
+
Intelligently assign agents to workflow tasks:
|
|
217
|
+
|
|
218
|
+
```javascript
|
|
219
|
+
mcp__flow-nexus__workflow_agent_assign({
|
|
220
|
+
task_id: "task_id",
|
|
221
|
+
agent_type: "coder", // Preferred agent type
|
|
222
|
+
use_vector_similarity: true // AI-powered capability matching
|
|
223
|
+
})
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
**Vector Similarity Matching:**
|
|
227
|
+
- Analyzes task requirements and agent capabilities
|
|
228
|
+
- Finds optimal agent based on past performance
|
|
229
|
+
- Considers workload and availability
|
|
230
|
+
|
|
231
|
+
### Queue Management
|
|
232
|
+
|
|
233
|
+
Monitor and manage message queues:
|
|
234
|
+
|
|
235
|
+
```javascript
|
|
236
|
+
mcp__flow-nexus__workflow_queue_status({
|
|
237
|
+
queue_name: "optional-specific-queue",
|
|
238
|
+
include_messages: true // Show pending messages
|
|
239
|
+
})
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
## Agent Orchestration
|
|
243
|
+
|
|
244
|
+
### Full-Stack Development Pattern
|
|
245
|
+
|
|
246
|
+
```javascript
|
|
247
|
+
// 1. Initialize swarm with hierarchical topology
|
|
248
|
+
mcp__flow-nexus__swarm_init({
|
|
249
|
+
topology: "hierarchical",
|
|
250
|
+
maxAgents: 8,
|
|
251
|
+
strategy: "specialized"
|
|
252
|
+
})
|
|
253
|
+
|
|
254
|
+
// 2. Spawn specialized agents
|
|
255
|
+
mcp__flow-nexus__agent_spawn({ type: "coordinator", name: "Project Manager" })
|
|
256
|
+
mcp__flow-nexus__agent_spawn({ type: "coder", name: "Backend Developer" })
|
|
257
|
+
mcp__flow-nexus__agent_spawn({ type: "coder", name: "Frontend Developer" })
|
|
258
|
+
mcp__flow-nexus__agent_spawn({ type: "coder", name: "Database Architect" })
|
|
259
|
+
mcp__flow-nexus__agent_spawn({ type: "analyst", name: "QA Engineer" })
|
|
260
|
+
|
|
261
|
+
// 3. Create development workflow
|
|
262
|
+
mcp__flow-nexus__workflow_create({
|
|
263
|
+
name: "Full-Stack Development",
|
|
264
|
+
steps: [
|
|
265
|
+
{ id: "requirements", action: "analyze_requirements", agent: "coordinator" },
|
|
266
|
+
{ id: "db_design", action: "design_schema", agent: "Database Architect" },
|
|
267
|
+
{ id: "backend", action: "build_api", agent: "Backend Developer", depends_on: ["db_design"] },
|
|
268
|
+
{ id: "frontend", action: "build_ui", agent: "Frontend Developer", depends_on: ["requirements"] },
|
|
269
|
+
{ id: "integration", action: "integrate", agent: "Backend Developer", depends_on: ["backend", "frontend"] },
|
|
270
|
+
{ id: "testing", action: "qa_testing", agent: "QA Engineer", depends_on: ["integration"] }
|
|
271
|
+
]
|
|
272
|
+
})
|
|
273
|
+
|
|
274
|
+
// 4. Execute workflow
|
|
275
|
+
mcp__flow-nexus__workflow_execute({
|
|
276
|
+
workflow_id: "workflow_id",
|
|
277
|
+
input_data: {
|
|
278
|
+
project: "E-commerce Platform",
|
|
279
|
+
tech_stack: ["Node.js", "React", "PostgreSQL"]
|
|
280
|
+
}
|
|
281
|
+
})
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### Research & Analysis Pattern
|
|
285
|
+
|
|
286
|
+
```javascript
|
|
287
|
+
// 1. Initialize mesh topology for collaborative research
|
|
288
|
+
mcp__flow-nexus__swarm_init({
|
|
289
|
+
topology: "mesh",
|
|
290
|
+
maxAgents: 5,
|
|
291
|
+
strategy: "balanced"
|
|
292
|
+
})
|
|
293
|
+
|
|
294
|
+
// 2. Spawn research agents
|
|
295
|
+
mcp__flow-nexus__agent_spawn({ type: "researcher", name: "Primary Researcher" })
|
|
296
|
+
mcp__flow-nexus__agent_spawn({ type: "researcher", name: "Secondary Researcher" })
|
|
297
|
+
mcp__flow-nexus__agent_spawn({ type: "analyst", name: "Data Analyst" })
|
|
298
|
+
mcp__flow-nexus__agent_spawn({ type: "analyst", name: "Insights Analyst" })
|
|
299
|
+
|
|
300
|
+
// 3. Orchestrate research task
|
|
301
|
+
mcp__flow-nexus__task_orchestrate({
|
|
302
|
+
task: "Research machine learning trends for 2025 and analyze market opportunities",
|
|
303
|
+
strategy: "parallel",
|
|
304
|
+
maxAgents: 4,
|
|
305
|
+
priority: "high"
|
|
306
|
+
})
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
### CI/CD Pipeline Pattern
|
|
310
|
+
|
|
311
|
+
```javascript
|
|
312
|
+
mcp__flow-nexus__workflow_create({
|
|
313
|
+
name: "Deployment Pipeline",
|
|
314
|
+
description: "Automated testing, building, and multi-environment deployment",
|
|
315
|
+
steps: [
|
|
316
|
+
{ id: "lint", action: "lint_code", agent: "code_quality", parallel: true },
|
|
317
|
+
{ id: "unit_test", action: "unit_tests", agent: "test_runner", parallel: true },
|
|
318
|
+
{ id: "integration_test", action: "integration_tests", agent: "test_runner", parallel: true },
|
|
319
|
+
{ id: "build", action: "build_artifacts", agent: "builder", depends_on: ["lint", "unit_test", "integration_test"] },
|
|
320
|
+
{ id: "security_scan", action: "security_scan", agent: "security", depends_on: ["build"] },
|
|
321
|
+
{ id: "deploy_staging", action: "deploy", agent: "deployer", depends_on: ["security_scan"] },
|
|
322
|
+
{ id: "smoke_test", action: "smoke_tests", agent: "test_runner", depends_on: ["deploy_staging"] },
|
|
323
|
+
{ id: "deploy_prod", action: "deploy", agent: "deployer", depends_on: ["smoke_test"] }
|
|
324
|
+
],
|
|
325
|
+
triggers: ["github_push", "github_pr_merged"],
|
|
326
|
+
metadata: {
|
|
327
|
+
priority: 10,
|
|
328
|
+
auto_rollback: true
|
|
329
|
+
}
|
|
330
|
+
})
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
### Data Processing Pipeline Pattern
|
|
334
|
+
|
|
335
|
+
```javascript
|
|
336
|
+
mcp__flow-nexus__workflow_create({
|
|
337
|
+
name: "ETL Pipeline",
|
|
338
|
+
description: "Extract, Transform, Load data processing",
|
|
339
|
+
steps: [
|
|
340
|
+
{ id: "extract", action: "extract_data", agent: "data_extractor" },
|
|
341
|
+
{ id: "validate_raw", action: "validate_data", agent: "validator", depends_on: ["extract"] },
|
|
342
|
+
{ id: "transform", action: "transform_data", agent: "transformer", depends_on: ["validate_raw"] },
|
|
343
|
+
{ id: "enrich", action: "enrich_data", agent: "enricher", depends_on: ["transform"] },
|
|
344
|
+
{ id: "load", action: "load_data", agent: "loader", depends_on: ["enrich"] },
|
|
345
|
+
{ id: "validate_final", action: "validate_data", agent: "validator", depends_on: ["load"] }
|
|
346
|
+
],
|
|
347
|
+
triggers: ["schedule:0 2 * * *"], // Daily at 2 AM
|
|
348
|
+
metadata: {
|
|
349
|
+
retry_policy: "exponential_backoff",
|
|
350
|
+
max_retries: 3
|
|
351
|
+
}
|
|
352
|
+
})
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
## Templates & Patterns
|
|
356
|
+
|
|
357
|
+
### Use Pre-built Templates
|
|
358
|
+
|
|
359
|
+
```javascript
|
|
360
|
+
// Create swarm from template
|
|
361
|
+
mcp__flow-nexus__swarm_create_from_template({
|
|
362
|
+
template_name: "full-stack-dev",
|
|
363
|
+
overrides: {
|
|
364
|
+
maxAgents: 6,
|
|
365
|
+
strategy: "specialized"
|
|
366
|
+
}
|
|
367
|
+
})
|
|
368
|
+
|
|
369
|
+
// List available templates
|
|
370
|
+
mcp__flow-nexus__swarm_templates_list({
|
|
371
|
+
category: "quickstart", // Options: quickstart, specialized, enterprise, custom, all
|
|
372
|
+
includeStore: true
|
|
373
|
+
})
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
**Available Template Categories:**
|
|
377
|
+
|
|
378
|
+
**Quickstart Templates:**
|
|
379
|
+
- `full-stack-dev`: Complete web development swarm
|
|
380
|
+
- `research-team`: Research and analysis swarm
|
|
381
|
+
- `code-review`: Automated code review swarm
|
|
382
|
+
- `data-pipeline`: ETL and data processing
|
|
383
|
+
|
|
384
|
+
**Specialized Templates:**
|
|
385
|
+
- `ml-development`: Machine learning project swarm
|
|
386
|
+
- `mobile-dev`: Mobile app development
|
|
387
|
+
- `devops-automation`: Infrastructure and deployment
|
|
388
|
+
- `security-audit`: Security analysis and testing
|
|
389
|
+
|
|
390
|
+
**Enterprise Templates:**
|
|
391
|
+
- `enterprise-migration`: Large-scale system migration
|
|
392
|
+
- `multi-repo-sync`: Multi-repository coordination
|
|
393
|
+
- `compliance-review`: Regulatory compliance workflows
|
|
394
|
+
- `incident-response`: Automated incident management
|
|
395
|
+
|
|
396
|
+
### Custom Template Creation
|
|
397
|
+
|
|
398
|
+
Save successful swarm configurations as reusable templates for future projects.
|
|
399
|
+
|
|
400
|
+
## Advanced Features
|
|
401
|
+
|
|
402
|
+
### Real-time Monitoring
|
|
403
|
+
|
|
404
|
+
```javascript
|
|
405
|
+
// Subscribe to execution streams
|
|
406
|
+
mcp__flow-nexus__execution_stream_subscribe({
|
|
407
|
+
stream_type: "claude-flow-swarm",
|
|
408
|
+
deployment_id: "deployment_id"
|
|
409
|
+
})
|
|
410
|
+
|
|
411
|
+
// Get execution status
|
|
412
|
+
mcp__flow-nexus__execution_stream_status({
|
|
413
|
+
stream_id: "stream_id"
|
|
414
|
+
})
|
|
415
|
+
|
|
416
|
+
// List files created during execution
|
|
417
|
+
mcp__flow-nexus__execution_files_list({
|
|
418
|
+
stream_id: "stream_id",
|
|
419
|
+
created_by: "claude-flow"
|
|
420
|
+
})
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
### Swarm Metrics & Analytics
|
|
424
|
+
|
|
425
|
+
```javascript
|
|
426
|
+
// Get swarm performance metrics
|
|
427
|
+
mcp__flow-nexus__swarm_status({
|
|
428
|
+
swarm_id: "id"
|
|
429
|
+
})
|
|
430
|
+
|
|
431
|
+
// Analyze workflow efficiency
|
|
432
|
+
mcp__flow-nexus__workflow_status({
|
|
433
|
+
workflow_id: "id",
|
|
434
|
+
include_metrics: true
|
|
435
|
+
})
|
|
436
|
+
```
|
|
437
|
+
|
|
438
|
+
### Multi-Swarm Coordination
|
|
439
|
+
|
|
440
|
+
Coordinate multiple swarms for complex, multi-phase projects:
|
|
441
|
+
|
|
442
|
+
```javascript
|
|
443
|
+
// Phase 1: Research swarm
|
|
444
|
+
const researchSwarm = await mcp__flow-nexus__swarm_init({
|
|
445
|
+
topology: "mesh",
|
|
446
|
+
maxAgents: 4
|
|
447
|
+
})
|
|
448
|
+
|
|
449
|
+
// Phase 2: Development swarm
|
|
450
|
+
const devSwarm = await mcp__flow-nexus__swarm_init({
|
|
451
|
+
topology: "hierarchical",
|
|
452
|
+
maxAgents: 8
|
|
453
|
+
})
|
|
454
|
+
|
|
455
|
+
// Phase 3: Testing swarm
|
|
456
|
+
const testSwarm = await mcp__flow-nexus__swarm_init({
|
|
457
|
+
topology: "star",
|
|
458
|
+
maxAgents: 5
|
|
459
|
+
})
|
|
460
|
+
```
|
|
461
|
+
|
|
462
|
+
## Best Practices
|
|
463
|
+
|
|
464
|
+
### 1. Choose the Right Topology
|
|
465
|
+
|
|
466
|
+
```javascript
|
|
467
|
+
// Simple projects: Star
|
|
468
|
+
mcp__flow-nexus__swarm_init({ topology: "star", maxAgents: 3 })
|
|
469
|
+
|
|
470
|
+
// Collaborative work: Mesh
|
|
471
|
+
mcp__flow-nexus__swarm_init({ topology: "mesh", maxAgents: 5 })
|
|
472
|
+
|
|
473
|
+
// Complex projects: Hierarchical
|
|
474
|
+
mcp__flow-nexus__swarm_init({ topology: "hierarchical", maxAgents: 10 })
|
|
475
|
+
|
|
476
|
+
// Sequential workflows: Ring
|
|
477
|
+
mcp__flow-nexus__swarm_init({ topology: "ring", maxAgents: 4 })
|
|
478
|
+
```
|
|
479
|
+
|
|
480
|
+
### 2. Optimize Agent Assignment
|
|
481
|
+
|
|
482
|
+
```javascript
|
|
483
|
+
// Use vector similarity for optimal matching
|
|
484
|
+
mcp__flow-nexus__workflow_agent_assign({
|
|
485
|
+
task_id: "complex-task",
|
|
486
|
+
use_vector_similarity: true
|
|
487
|
+
})
|
|
488
|
+
```
|
|
489
|
+
|
|
490
|
+
### 3. Implement Proper Error Handling
|
|
491
|
+
|
|
492
|
+
```javascript
|
|
493
|
+
mcp__flow-nexus__workflow_create({
|
|
494
|
+
name: "Resilient Workflow",
|
|
495
|
+
steps: [...],
|
|
496
|
+
metadata: {
|
|
497
|
+
retry_policy: "exponential_backoff",
|
|
498
|
+
max_retries: 3,
|
|
499
|
+
timeout: 300000, // 5 minutes
|
|
500
|
+
on_failure: "notify_and_rollback"
|
|
501
|
+
}
|
|
502
|
+
})
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
### 4. Monitor and Scale
|
|
506
|
+
|
|
507
|
+
```javascript
|
|
508
|
+
// Regular monitoring
|
|
509
|
+
const status = await mcp__flow-nexus__swarm_status()
|
|
510
|
+
|
|
511
|
+
// Scale based on workload
|
|
512
|
+
if (status.workload > 0.8) {
|
|
513
|
+
await mcp__flow-nexus__swarm_scale({ target_agents: status.agents + 2 })
|
|
514
|
+
}
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
### 5. Use Async Execution for Long-Running Workflows
|
|
518
|
+
|
|
519
|
+
```javascript
|
|
520
|
+
// Long-running workflows should use message queues
|
|
521
|
+
mcp__flow-nexus__workflow_execute({
|
|
522
|
+
workflow_id: "data-pipeline",
|
|
523
|
+
async: true // Non-blocking execution
|
|
524
|
+
})
|
|
525
|
+
|
|
526
|
+
// Monitor progress
|
|
527
|
+
mcp__flow-nexus__workflow_queue_status({ include_messages: true })
|
|
528
|
+
```
|
|
529
|
+
|
|
530
|
+
### 6. Clean Up Resources
|
|
531
|
+
|
|
532
|
+
```javascript
|
|
533
|
+
// Destroy swarm when complete
|
|
534
|
+
mcp__flow-nexus__swarm_destroy({ swarm_id: "id" })
|
|
535
|
+
```
|
|
536
|
+
|
|
537
|
+
### 7. Leverage Templates
|
|
538
|
+
|
|
539
|
+
```javascript
|
|
540
|
+
// Use proven templates instead of building from scratch
|
|
541
|
+
mcp__flow-nexus__swarm_create_from_template({
|
|
542
|
+
template_name: "code-review",
|
|
543
|
+
overrides: { maxAgents: 4 }
|
|
544
|
+
})
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
## Integration with Claude Flow
|
|
548
|
+
|
|
549
|
+
Flow Nexus swarms integrate seamlessly with Claude Flow hooks:
|
|
550
|
+
|
|
551
|
+
```bash
|
|
552
|
+
# Pre-task coordination setup
|
|
553
|
+
npx claude-flow@alpha hooks pre-task --description "Initialize swarm"
|
|
554
|
+
|
|
555
|
+
# Post-task metrics export
|
|
556
|
+
npx claude-flow@alpha hooks post-task --task-id "swarm-execution"
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
## Common Use Cases
|
|
560
|
+
|
|
561
|
+
### 1. Multi-Repo Development
|
|
562
|
+
- Coordinate development across multiple repositories
|
|
563
|
+
- Synchronized testing and deployment
|
|
564
|
+
- Cross-repo dependency management
|
|
565
|
+
|
|
566
|
+
### 2. Research Projects
|
|
567
|
+
- Distributed information gathering
|
|
568
|
+
- Parallel analysis of different data sources
|
|
569
|
+
- Collaborative synthesis and reporting
|
|
570
|
+
|
|
571
|
+
### 3. DevOps Automation
|
|
572
|
+
- Infrastructure as Code deployment
|
|
573
|
+
- Multi-environment testing
|
|
574
|
+
- Automated rollback and recovery
|
|
575
|
+
|
|
576
|
+
### 4. Code Quality Workflows
|
|
577
|
+
- Automated code review
|
|
578
|
+
- Security scanning
|
|
579
|
+
- Performance benchmarking
|
|
580
|
+
|
|
581
|
+
### 5. Data Processing
|
|
582
|
+
- Large-scale ETL pipelines
|
|
583
|
+
- Real-time data transformation
|
|
584
|
+
- Data validation and quality checks
|
|
585
|
+
|
|
586
|
+
## Authentication & Setup
|
|
587
|
+
|
|
588
|
+
```bash
|
|
589
|
+
# Install Flow Nexus
|
|
590
|
+
npm install -g flow-nexus@latest
|
|
591
|
+
|
|
592
|
+
# Register account
|
|
593
|
+
npx flow-nexus@latest register
|
|
594
|
+
|
|
595
|
+
# Login
|
|
596
|
+
npx flow-nexus@latest login
|
|
597
|
+
|
|
598
|
+
# Add MCP server to Claude Code
|
|
599
|
+
claude mcp add flow-nexus npx flow-nexus@latest mcp start
|
|
600
|
+
```
|
|
601
|
+
|
|
602
|
+
## Support & Resources
|
|
603
|
+
|
|
604
|
+
- **Platform**: https://flow-nexus.ruv.io
|
|
605
|
+
- **Documentation**: https://github.com/ruvnet/flow-nexus
|
|
606
|
+
- **Issues**: https://github.com/ruvnet/flow-nexus/issues
|
|
607
|
+
|
|
608
|
+
---
|
|
609
|
+
|
|
610
|
+
**Remember**: Flow Nexus provides cloud-based orchestration infrastructure. For local execution and coordination, use the core `claude-flow` MCP server alongside Flow Nexus for maximum flexibility.
|