agentic-qe 1.1.0 → 1.3.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-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 +64 -25
- package/.claude/skills/README.md +124 -0
- package/.claude/skills/accessibility-testing/SKILL.md +777 -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/chaos-engineering-resilience/SKILL.md +109 -0
- package/.claude/skills/code-review-quality/SKILL.md +683 -0
- package/.claude/skills/compatibility-testing/SKILL.md +101 -0
- package/.claude/skills/compliance-testing/SKILL.md +162 -0
- package/.claude/skills/consultancy-practices/SKILL.md +540 -0
- package/.claude/skills/context-driven-testing/SKILL.md +466 -0
- package/.claude/skills/contract-testing/SKILL.md +193 -0
- package/.claude/skills/database-testing/SKILL.md +243 -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/localization-testing/SKILL.md +115 -0
- package/.claude/skills/mobile-testing/SKILL.md +548 -0
- package/.claude/skills/mutation-testing/SKILL.md +129 -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/regression-testing/SKILL.md +1045 -0
- package/.claude/skills/risk-based-testing/SKILL.md +721 -0
- package/.claude/skills/security-testing/SKILL.md +651 -0
- package/.claude/skills/shift-left-testing/SKILL.md +535 -0
- package/.claude/skills/shift-right-testing/SKILL.md +591 -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/test-data-management/SKILL.md +1067 -0
- package/.claude/skills/test-design-techniques/SKILL.md +160 -0
- package/.claude/skills/test-environment-management/SKILL.md +204 -0
- package/.claude/skills/test-reporting-analytics/SKILL.md +143 -0
- package/.claude/skills/verification-quality/SKILL.md +649 -0
- package/.claude/skills/visual-testing-advanced/SKILL.md +148 -0
- package/.claude/skills/xp-practices/SKILL.md +671 -0
- package/.claude/statusline-command.sh +176 -0
- package/CHANGELOG.md +623 -6
- package/README.md +101 -5
- 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 +16 -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 +387 -5
- package/dist/agents/BaseAgent.js.map +1 -1
- package/dist/agents/CoverageAnalyzerAgent.d.ts +13 -2
- package/dist/agents/CoverageAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/CoverageAnalyzerAgent.js +112 -12
- 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 +28 -0
- package/dist/agents/FlakyTestHunterAgent.d.ts.map +1 -1
- package/dist/agents/FlakyTestHunterAgent.js +160 -4
- package/dist/agents/FlakyTestHunterAgent.js.map +1 -1
- package/dist/agents/FleetCommanderAgent.d.ts.map +1 -1
- package/dist/agents/FleetCommanderAgent.js +4 -3
- package/dist/agents/FleetCommanderAgent.js.map +1 -1
- package/dist/agents/LearningAgent.d.ts +14 -5
- package/dist/agents/LearningAgent.d.ts.map +1 -1
- package/dist/agents/LearningAgent.js +36 -16
- package/dist/agents/LearningAgent.js.map +1 -1
- 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 +11 -9
- package/dist/agents/PerformanceTesterAgent.js.map +1 -1
- package/dist/agents/ProductionIntelligenceAgent.d.ts.map +1 -1
- package/dist/agents/ProductionIntelligenceAgent.js +14 -13
- package/dist/agents/ProductionIntelligenceAgent.js.map +1 -1
- package/dist/agents/QualityAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/QualityAnalyzerAgent.js +39 -38
- package/dist/agents/QualityAnalyzerAgent.js.map +1 -1
- package/dist/agents/QualityGateAgent.d.ts.map +1 -1
- package/dist/agents/QualityGateAgent.js +7 -6
- package/dist/agents/QualityGateAgent.js.map +1 -1
- package/dist/agents/RegressionRiskAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/RegressionRiskAnalyzerAgent.js +22 -21
- 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.d.ts.map +1 -1
- package/dist/agents/SecurityScannerAgent.js +8 -7
- package/dist/agents/SecurityScannerAgent.js.map +1 -1
- package/dist/agents/TestDataArchitectAgent.d.ts.map +1 -1
- package/dist/agents/TestDataArchitectAgent.js +12 -11
- package/dist/agents/TestDataArchitectAgent.js.map +1 -1
- package/dist/agents/TestExecutorAgent.d.ts.map +1 -1
- package/dist/agents/TestExecutorAgent.js +18 -19
- package/dist/agents/TestExecutorAgent.js.map +1 -1
- package/dist/agents/TestGeneratorAgent.d.ts +15 -4
- package/dist/agents/TestGeneratorAgent.d.ts.map +1 -1
- package/dist/agents/TestGeneratorAgent.js +172 -49
- package/dist/agents/TestGeneratorAgent.js.map +1 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +2 -1
- package/dist/agents/index.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/benchmark.d.ts.map +1 -1
- package/dist/cli/commands/agent/benchmark.js +2 -1
- package/dist/cli/commands/agent/benchmark.js.map +1 -1
- 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 +84 -0
- package/dist/cli/commands/agent/spawn.js.map +1 -0
- package/dist/cli/commands/analyze.d.ts.map +1 -1
- package/dist/cli/commands/analyze.js +2 -1
- package/dist/cli/commands/analyze.js.map +1 -1
- package/dist/cli/commands/config/list.d.ts.map +1 -1
- package/dist/cli/commands/config/list.js +2 -1
- package/dist/cli/commands/config/list.js.map +1 -1
- package/dist/cli/commands/config/set.d.ts +7 -0
- package/dist/cli/commands/config/set.d.ts.map +1 -1
- package/dist/cli/commands/config/set.js +35 -4
- package/dist/cli/commands/config/set.js.map +1 -1
- package/dist/cli/commands/fleet/logs.d.ts.map +1 -1
- package/dist/cli/commands/fleet/logs.js +2 -1
- package/dist/cli/commands/fleet/logs.js.map +1 -1
- package/dist/cli/commands/fleet/metrics.d.ts.map +1 -1
- package/dist/cli/commands/fleet/metrics.js +2 -1
- package/dist/cli/commands/fleet/metrics.js.map +1 -1
- package/dist/cli/commands/fleet/monitor.d.ts.map +1 -1
- package/dist/cli/commands/fleet/monitor.js +7 -5
- package/dist/cli/commands/fleet/monitor.js.map +1 -1
- package/dist/cli/commands/fleet.d.ts.map +1 -1
- package/dist/cli/commands/fleet.js +2 -1
- package/dist/cli/commands/fleet.js.map +1 -1
- package/dist/cli/commands/generate.d.ts.map +1 -1
- package/dist/cli/commands/generate.js +2 -1
- package/dist/cli/commands/generate.js.map +1 -1
- package/dist/cli/commands/improve/index.d.ts.map +1 -1
- package/dist/cli/commands/improve/index.js +12 -11
- package/dist/cli/commands/improve/index.js.map +1 -1
- package/dist/cli/commands/init.d.ts +24 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +503 -11
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/learn/index.d.ts.map +1 -1
- package/dist/cli/commands/learn/index.js +13 -12
- package/dist/cli/commands/learn/index.js.map +1 -1
- package/dist/cli/commands/monitor/alerts.d.ts.map +1 -1
- package/dist/cli/commands/monitor/alerts.js +2 -1
- package/dist/cli/commands/monitor/alerts.js.map +1 -1
- package/dist/cli/commands/patterns/index.d.ts.map +1 -1
- package/dist/cli/commands/patterns/index.js +20 -19
- package/dist/cli/commands/patterns/index.js.map +1 -1
- package/dist/cli/commands/quality/decision.d.ts.map +1 -1
- package/dist/cli/commands/quality/decision.js +9 -7
- package/dist/cli/commands/quality/decision.js.map +1 -1
- package/dist/cli/commands/quality/gate.d.ts.map +1 -1
- package/dist/cli/commands/quality/gate.js +10 -8
- package/dist/cli/commands/quality/gate.js.map +1 -1
- package/dist/cli/commands/quality/policy.d.ts.map +1 -1
- package/dist/cli/commands/quality/policy.js +10 -8
- package/dist/cli/commands/quality/policy.js.map +1 -1
- package/dist/cli/commands/quality/risk.d.ts.map +1 -1
- package/dist/cli/commands/quality/risk.js +5 -3
- package/dist/cli/commands/quality/risk.js.map +1 -1
- package/dist/cli/commands/quality/validate.d.ts.map +1 -1
- package/dist/cli/commands/quality/validate.js +10 -8
- package/dist/cli/commands/quality/validate.js.map +1 -1
- package/dist/cli/commands/quantization.d.ts +6 -0
- package/dist/cli/commands/quantization.d.ts.map +1 -0
- package/dist/cli/commands/quantization.js +188 -0
- package/dist/cli/commands/quantization.js.map +1 -0
- package/dist/cli/commands/routing/index.d.ts +0 -6
- package/dist/cli/commands/routing/index.d.ts.map +1 -1
- package/dist/cli/commands/routing/index.js +17 -16
- package/dist/cli/commands/routing/index.js.map +1 -1
- package/dist/cli/commands/run.d.ts.map +1 -1
- package/dist/cli/commands/run.js +2 -1
- package/dist/cli/commands/run.js.map +1 -1
- 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 +365 -0
- package/dist/cli/commands/skills/index.js.map +1 -0
- package/dist/cli/commands/test/debug.d.ts.map +1 -1
- package/dist/cli/commands/test/debug.js +2 -1
- package/dist/cli/commands/test/debug.js.map +1 -1
- package/dist/cli/commands/test/mutate.d.ts.map +1 -1
- package/dist/cli/commands/test/mutate.js +2 -1
- package/dist/cli/commands/test/mutate.js.map +1 -1
- package/dist/cli/commands/test/parallel.d.ts.map +1 -1
- package/dist/cli/commands/test/parallel.js +6 -4
- package/dist/cli/commands/test/parallel.js.map +1 -1
- package/dist/cli/commands/test/profile.d.ts.map +1 -1
- package/dist/cli/commands/test/profile.js +3 -2
- package/dist/cli/commands/test/profile.js.map +1 -1
- package/dist/cli/commands/test/queue.d.ts.map +1 -1
- package/dist/cli/commands/test/queue.js +2 -1
- package/dist/cli/commands/test/queue.js.map +1 -1
- package/dist/cli/commands/test/retry.d.ts.map +1 -1
- package/dist/cli/commands/test/retry.js +6 -4
- package/dist/cli/commands/test/retry.js.map +1 -1
- package/dist/cli/commands/test/trace.d.ts.map +1 -1
- package/dist/cli/commands/test/trace.js +2 -1
- package/dist/cli/commands/test/trace.js.map +1 -1
- package/dist/cli/commands/test/watch.d.ts.map +1 -1
- package/dist/cli/commands/test/watch.js +3 -2
- package/dist/cli/commands/test/watch.js.map +1 -1
- package/dist/cli/commands/workflow/cancel.d.ts.map +1 -1
- package/dist/cli/commands/workflow/cancel.js +2 -1
- package/dist/cli/commands/workflow/cancel.js.map +1 -1
- package/dist/cli/index-working.js +9 -8
- package/dist/cli/index-working.js.map +1 -1
- package/dist/cli/index.js +97 -1
- 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/coordination/OODACoordination.d.ts.map +1 -1
- package/dist/core/coordination/OODACoordination.js +2 -1
- package/dist/core/coordination/OODACoordination.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 +246 -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 +231 -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 +77 -0
- package/dist/core/memory/ReasoningBankAdapter.js.map +1 -0
- package/dist/core/memory/SwarmMemoryManager.d.ts +75 -3
- package/dist/core/memory/SwarmMemoryManager.d.ts.map +1 -1
- package/dist/core/memory/SwarmMemoryManager.js +240 -55
- 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 +544 -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/quantization/QuantizationManager.d.ts +83 -0
- package/dist/core/quantization/QuantizationManager.d.ts.map +1 -0
- package/dist/core/quantization/QuantizationManager.js +264 -0
- package/dist/core/quantization/QuantizationManager.js.map +1 -0
- package/dist/core/quantization/index.d.ts +5 -0
- package/dist/core/quantization/index.d.ts.map +1 -0
- package/dist/core/quantization/index.js +9 -0
- package/dist/core/quantization/index.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/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/FlakyPredictionModel.d.ts +11 -1
- package/dist/learning/FlakyPredictionModel.d.ts.map +1 -1
- package/dist/learning/FlakyPredictionModel.js +82 -35
- package/dist/learning/FlakyPredictionModel.js.map +1 -1
- package/dist/learning/FlakyTestDetector.d.ts +9 -0
- package/dist/learning/FlakyTestDetector.d.ts.map +1 -1
- package/dist/learning/FlakyTestDetector.js +28 -6
- package/dist/learning/FlakyTestDetector.js.map +1 -1
- package/dist/learning/ImprovementLoop.d.ts +16 -2
- package/dist/learning/ImprovementLoop.d.ts.map +1 -1
- package/dist/learning/ImprovementLoop.js +67 -8
- package/dist/learning/ImprovementLoop.js.map +1 -1
- 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/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/index.d.ts +13 -7
- package/dist/learning/index.d.ts.map +1 -1
- package/dist/learning/index.js +27 -11
- package/dist/learning/index.js.map +1 -1
- package/dist/learning/types.d.ts +1 -0
- package/dist/learning/types.d.ts.map +1 -1
- package/dist/learning/types.js +16 -0
- package/dist/learning/types.js.map +1 -1
- 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/advanced/mutation-test-execute.d.ts +3 -3
- package/dist/mcp/handlers/advanced/mutation-test-execute.d.ts.map +1 -1
- package/dist/mcp/handlers/advanced/mutation-test-execute.js +5 -4
- package/dist/mcp/handlers/advanced/mutation-test-execute.js.map +1 -1
- package/dist/mcp/handlers/agent-spawn.d.ts.map +1 -1
- package/dist/mcp/handlers/agent-spawn.js +2 -1
- package/dist/mcp/handlers/agent-spawn.js.map +1 -1
- package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.d.ts.map +1 -1
- package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.js +9 -8
- package/dist/mcp/handlers/analysis/coverageAnalyzeSublinear.js.map +1 -1
- package/dist/mcp/handlers/analysis/coverageGapsDetect.d.ts.map +1 -1
- package/dist/mcp/handlers/analysis/coverageGapsDetect.js +6 -5
- package/dist/mcp/handlers/analysis/coverageGapsDetect.js.map +1 -1
- package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.d.ts.map +1 -1
- package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.js +5 -4
- package/dist/mcp/handlers/analysis/performance-monitor-realtime-handler.js.map +1 -1
- package/dist/mcp/handlers/analysis/performanceBenchmarkRun.d.ts.map +1 -1
- package/dist/mcp/handlers/analysis/performanceBenchmarkRun.js +8 -7
- package/dist/mcp/handlers/analysis/performanceBenchmarkRun.js.map +1 -1
- package/dist/mcp/handlers/analysis/performanceMonitorRealtime.d.ts.map +1 -1
- package/dist/mcp/handlers/analysis/performanceMonitorRealtime.js +7 -6
- package/dist/mcp/handlers/analysis/performanceMonitorRealtime.js.map +1 -1
- package/dist/mcp/handlers/analysis/securityScanComprehensive.d.ts.map +1 -1
- package/dist/mcp/handlers/analysis/securityScanComprehensive.js +18 -21
- package/dist/mcp/handlers/analysis/securityScanComprehensive.js.map +1 -1
- package/dist/mcp/handlers/base-handler.d.ts.map +1 -1
- package/dist/mcp/handlers/base-handler.js +2 -9
- package/dist/mcp/handlers/base-handler.js.map +1 -1
- package/dist/mcp/handlers/chaos/chaos-inject-failure.d.ts.map +1 -1
- package/dist/mcp/handlers/chaos/chaos-inject-failure.js +4 -3
- package/dist/mcp/handlers/chaos/chaos-inject-failure.js.map +1 -1
- package/dist/mcp/handlers/chaos/chaos-inject-latency.d.ts.map +1 -1
- package/dist/mcp/handlers/chaos/chaos-inject-latency.js +6 -5
- package/dist/mcp/handlers/chaos/chaos-inject-latency.js.map +1 -1
- package/dist/mcp/handlers/coordination/event-emit.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/event-emit.js +2 -1
- package/dist/mcp/handlers/coordination/event-emit.js.map +1 -1
- package/dist/mcp/handlers/coordination/event-subscribe.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/event-subscribe.js +2 -1
- package/dist/mcp/handlers/coordination/event-subscribe.js.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-checkpoint.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-checkpoint.js +2 -1
- package/dist/mcp/handlers/coordination/workflow-checkpoint.js.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-create.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-create.js +2 -1
- package/dist/mcp/handlers/coordination/workflow-create.js.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-execute.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-execute.js +2 -1
- package/dist/mcp/handlers/coordination/workflow-execute.js.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-resume.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-resume.js +2 -1
- package/dist/mcp/handlers/coordination/workflow-resume.js.map +1 -1
- package/dist/mcp/handlers/fleet-init.d.ts.map +1 -1
- package/dist/mcp/handlers/fleet-init.js +2 -1
- package/dist/mcp/handlers/fleet-init.js.map +1 -1
- package/dist/mcp/handlers/fleet-status.d.ts.map +1 -1
- package/dist/mcp/handlers/fleet-status.js +31 -30
- package/dist/mcp/handlers/fleet-status.js.map +1 -1
- package/dist/mcp/handlers/integration/dependency-check.d.ts.map +1 -1
- package/dist/mcp/handlers/integration/dependency-check.js +3 -2
- package/dist/mcp/handlers/integration/dependency-check.js.map +1 -1
- package/dist/mcp/handlers/integration/integration-test-orchestrate.d.ts.map +1 -1
- package/dist/mcp/handlers/integration/integration-test-orchestrate.js +2 -1
- package/dist/mcp/handlers/integration/integration-test-orchestrate.js.map +1 -1
- package/dist/mcp/handlers/optimize-tests.d.ts.map +1 -1
- package/dist/mcp/handlers/optimize-tests.js +33 -32
- package/dist/mcp/handlers/optimize-tests.js.map +1 -1
- package/dist/mcp/handlers/predict-defects.d.ts.map +1 -1
- package/dist/mcp/handlers/predict-defects.js +46 -45
- package/dist/mcp/handlers/predict-defects.js.map +1 -1
- package/dist/mcp/handlers/prediction/deployment-readiness-check.d.ts.map +1 -1
- package/dist/mcp/handlers/prediction/deployment-readiness-check.js +24 -23
- package/dist/mcp/handlers/prediction/deployment-readiness-check.js.map +1 -1
- package/dist/mcp/handlers/prediction/predict-defects-ai.d.ts.map +1 -1
- package/dist/mcp/handlers/prediction/predict-defects-ai.js +10 -9
- package/dist/mcp/handlers/prediction/predict-defects-ai.js.map +1 -1
- package/dist/mcp/handlers/prediction/regression-risk-analyze.d.ts.map +1 -1
- package/dist/mcp/handlers/prediction/regression-risk-analyze.js +10 -9
- package/dist/mcp/handlers/prediction/regression-risk-analyze.js.map +1 -1
- package/dist/mcp/handlers/prediction/visual-test-regression.d.ts.map +1 -1
- package/dist/mcp/handlers/prediction/visual-test-regression.js +7 -6
- package/dist/mcp/handlers/prediction/visual-test-regression.js.map +1 -1
- package/dist/mcp/handlers/quality-analyze.d.ts.map +1 -1
- package/dist/mcp/handlers/quality-analyze.js +53 -52
- package/dist/mcp/handlers/quality-analyze.js.map +1 -1
- package/dist/mcp/handlers/task-orchestrate.d.ts.map +1 -1
- package/dist/mcp/handlers/task-orchestrate.js +19 -18
- package/dist/mcp/handlers/task-orchestrate.js.map +1 -1
- package/dist/mcp/handlers/test/test-execute-parallel.d.ts.map +1 -1
- package/dist/mcp/handlers/test/test-execute-parallel.js +7 -6
- package/dist/mcp/handlers/test/test-execute-parallel.js.map +1 -1
- package/dist/mcp/handlers/test/test-generate-enhanced.d.ts.map +1 -1
- package/dist/mcp/handlers/test/test-generate-enhanced.js +2 -1
- package/dist/mcp/handlers/test/test-generate-enhanced.js.map +1 -1
- package/dist/mcp/handlers/test/test-optimize-sublinear.d.ts.map +1 -1
- package/dist/mcp/handlers/test/test-optimize-sublinear.js +3 -2
- package/dist/mcp/handlers/test/test-optimize-sublinear.js.map +1 -1
- package/dist/mcp/handlers/test-execute.d.ts.map +1 -1
- package/dist/mcp/handlers/test-execute.js +11 -10
- package/dist/mcp/handlers/test-execute.js.map +1 -1
- package/dist/mcp/handlers/test-generate.d.ts.map +1 -1
- package/dist/mcp/handlers/test-generate.js +4 -3
- package/dist/mcp/handlers/test-generate.js.map +1 -1
- package/dist/mcp/server.d.ts +4 -4
- package/dist/mcp/services/AgentRegistry.d.ts.map +1 -1
- package/dist/mcp/services/AgentRegistry.js +9 -2
- package/dist/mcp/services/AgentRegistry.js.map +1 -1
- package/dist/mcp/streaming/CoverageAnalyzeStreamHandler.d.ts.map +1 -1
- package/dist/mcp/streaming/CoverageAnalyzeStreamHandler.js +10 -9
- package/dist/mcp/streaming/CoverageAnalyzeStreamHandler.js.map +1 -1
- package/dist/mcp/streaming/StreamingMCPTool.d.ts.map +1 -1
- package/dist/mcp/streaming/StreamingMCPTool.js +2 -1
- package/dist/mcp/streaming/StreamingMCPTool.js.map +1 -1
- package/dist/mcp/streaming/TestExecuteStreamHandler.d.ts.map +1 -1
- package/dist/mcp/streaming/TestExecuteStreamHandler.js +6 -5
- package/dist/mcp/streaming/TestExecuteStreamHandler.js.map +1 -1
- package/dist/reasoning/TestTemplateCreator.d.ts +10 -2
- package/dist/reasoning/TestTemplateCreator.d.ts.map +1 -1
- package/dist/reasoning/TestTemplateCreator.js +81 -21
- package/dist/reasoning/TestTemplateCreator.js.map +1 -1
- 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 +37 -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 +39 -3
- package/dist/types/pattern.types.d.ts.map +1 -1
- 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 +3 -3
- 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/dist/utils/ProcessExit.d.ts +23 -0
- package/dist/utils/ProcessExit.d.ts.map +1 -0
- package/dist/utils/ProcessExit.js +40 -0
- package/dist/utils/ProcessExit.js.map +1 -0
- package/dist/utils/SecureRandom.d.ts +171 -0
- package/dist/utils/SecureRandom.d.ts.map +1 -0
- package/dist/utils/SecureRandom.js +229 -0
- package/dist/utils/SecureRandom.js.map +1 -0
- package/dist/utils/SecureUrlValidator.d.ts +167 -0
- package/dist/utils/SecureUrlValidator.d.ts.map +1 -0
- package/dist/utils/SecureUrlValidator.js +306 -0
- package/dist/utils/SecureUrlValidator.js.map +1 -0
- package/dist/utils/SecureValidation.d.ts +131 -0
- package/dist/utils/SecureValidation.d.ts.map +1 -0
- package/dist/utils/SecureValidation.js +265 -0
- package/dist/utils/SecureValidation.js.map +1 -0
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +5 -4
- package/dist/utils/validation.js.map +1 -1
- package/package.json +31 -8
|
@@ -0,0 +1,545 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "AgentDB Learning Plugins"
|
|
3
|
+
description: "Create and train AI learning plugins with AgentDB's 9 reinforcement learning algorithms. Includes Decision Transformer, Q-Learning, SARSA, Actor-Critic, and more. Use when building self-learning agents, implementing RL, or optimizing agent behavior through experience."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# AgentDB Learning Plugins
|
|
7
|
+
|
|
8
|
+
## What This Skill Does
|
|
9
|
+
|
|
10
|
+
Provides access to 9 reinforcement learning algorithms via AgentDB's plugin system. Create, train, and deploy learning plugins for autonomous agents that improve through experience. Includes offline RL (Decision Transformer), value-based learning (Q-Learning), policy gradients (Actor-Critic), and advanced techniques.
|
|
11
|
+
|
|
12
|
+
**Performance**: Train models 10-100x faster with WASM-accelerated neural inference.
|
|
13
|
+
|
|
14
|
+
## Prerequisites
|
|
15
|
+
|
|
16
|
+
- Node.js 18+
|
|
17
|
+
- AgentDB v1.0.7+ (via agentic-flow)
|
|
18
|
+
- Basic understanding of reinforcement learning (recommended)
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Quick Start with CLI
|
|
23
|
+
|
|
24
|
+
### Create Learning Plugin
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# Interactive wizard
|
|
28
|
+
npx agentdb@latest create-plugin
|
|
29
|
+
|
|
30
|
+
# Use specific template
|
|
31
|
+
npx agentdb@latest create-plugin -t decision-transformer -n my-agent
|
|
32
|
+
|
|
33
|
+
# Preview without creating
|
|
34
|
+
npx agentdb@latest create-plugin -t q-learning --dry-run
|
|
35
|
+
|
|
36
|
+
# Custom output directory
|
|
37
|
+
npx agentdb@latest create-plugin -t actor-critic -o ./plugins
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### List Available Templates
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# Show all plugin templates
|
|
44
|
+
npx agentdb@latest list-templates
|
|
45
|
+
|
|
46
|
+
# Available templates:
|
|
47
|
+
# - decision-transformer (sequence modeling RL - recommended)
|
|
48
|
+
# - q-learning (value-based learning)
|
|
49
|
+
# - sarsa (on-policy TD learning)
|
|
50
|
+
# - actor-critic (policy gradient with baseline)
|
|
51
|
+
# - curiosity-driven (exploration-based)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Manage Plugins
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# List installed plugins
|
|
58
|
+
npx agentdb@latest list-plugins
|
|
59
|
+
|
|
60
|
+
# Get plugin information
|
|
61
|
+
npx agentdb@latest plugin-info my-agent
|
|
62
|
+
|
|
63
|
+
# Shows: algorithm, configuration, training status
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Quick Start with API
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
import { createAgentDBAdapter } from 'agentic-flow/reasoningbank';
|
|
72
|
+
|
|
73
|
+
// Initialize with learning enabled
|
|
74
|
+
const adapter = await createAgentDBAdapter({
|
|
75
|
+
dbPath: '.agentdb/learning.db',
|
|
76
|
+
enableLearning: true, // Enable learning plugins
|
|
77
|
+
enableReasoning: true,
|
|
78
|
+
cacheSize: 1000,
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
// Store training experience
|
|
82
|
+
await adapter.insertPattern({
|
|
83
|
+
id: '',
|
|
84
|
+
type: 'experience',
|
|
85
|
+
domain: 'game-playing',
|
|
86
|
+
pattern_data: JSON.stringify({
|
|
87
|
+
embedding: await computeEmbedding('state-action-reward'),
|
|
88
|
+
pattern: {
|
|
89
|
+
state: [0.1, 0.2, 0.3],
|
|
90
|
+
action: 2,
|
|
91
|
+
reward: 1.0,
|
|
92
|
+
next_state: [0.15, 0.25, 0.35],
|
|
93
|
+
done: false
|
|
94
|
+
}
|
|
95
|
+
}),
|
|
96
|
+
confidence: 0.9,
|
|
97
|
+
usage_count: 1,
|
|
98
|
+
success_count: 1,
|
|
99
|
+
created_at: Date.now(),
|
|
100
|
+
last_used: Date.now(),
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
// Train learning model
|
|
104
|
+
const metrics = await adapter.train({
|
|
105
|
+
epochs: 50,
|
|
106
|
+
batchSize: 32,
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
console.log('Training Loss:', metrics.loss);
|
|
110
|
+
console.log('Duration:', metrics.duration, 'ms');
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Available Learning Algorithms (9 Total)
|
|
116
|
+
|
|
117
|
+
### 1. Decision Transformer (Recommended)
|
|
118
|
+
|
|
119
|
+
**Type**: Offline Reinforcement Learning
|
|
120
|
+
**Best For**: Learning from logged experiences, imitation learning
|
|
121
|
+
**Strengths**: No online interaction needed, stable training
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
npx agentdb@latest create-plugin -t decision-transformer -n dt-agent
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
**Use Cases**:
|
|
128
|
+
- Learn from historical data
|
|
129
|
+
- Imitation learning from expert demonstrations
|
|
130
|
+
- Safe learning without environment interaction
|
|
131
|
+
- Sequence modeling tasks
|
|
132
|
+
|
|
133
|
+
**Configuration**:
|
|
134
|
+
```json
|
|
135
|
+
{
|
|
136
|
+
"algorithm": "decision-transformer",
|
|
137
|
+
"model_size": "base",
|
|
138
|
+
"context_length": 20,
|
|
139
|
+
"embed_dim": 128,
|
|
140
|
+
"n_heads": 8,
|
|
141
|
+
"n_layers": 6
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### 2. Q-Learning
|
|
146
|
+
|
|
147
|
+
**Type**: Value-Based RL (Off-Policy)
|
|
148
|
+
**Best For**: Discrete action spaces, sample efficiency
|
|
149
|
+
**Strengths**: Proven, simple, works well for small/medium problems
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
npx agentdb@latest create-plugin -t q-learning -n q-agent
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
**Use Cases**:
|
|
156
|
+
- Grid worlds, board games
|
|
157
|
+
- Navigation tasks
|
|
158
|
+
- Resource allocation
|
|
159
|
+
- Discrete decision-making
|
|
160
|
+
|
|
161
|
+
**Configuration**:
|
|
162
|
+
```json
|
|
163
|
+
{
|
|
164
|
+
"algorithm": "q-learning",
|
|
165
|
+
"learning_rate": 0.001,
|
|
166
|
+
"gamma": 0.99,
|
|
167
|
+
"epsilon": 0.1,
|
|
168
|
+
"epsilon_decay": 0.995
|
|
169
|
+
}
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### 3. SARSA
|
|
173
|
+
|
|
174
|
+
**Type**: Value-Based RL (On-Policy)
|
|
175
|
+
**Best For**: Safe exploration, risk-sensitive tasks
|
|
176
|
+
**Strengths**: More conservative than Q-Learning, better for safety
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
npx agentdb@latest create-plugin -t sarsa -n sarsa-agent
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**Use Cases**:
|
|
183
|
+
- Safety-critical applications
|
|
184
|
+
- Risk-sensitive decision-making
|
|
185
|
+
- Online learning with exploration
|
|
186
|
+
|
|
187
|
+
**Configuration**:
|
|
188
|
+
```json
|
|
189
|
+
{
|
|
190
|
+
"algorithm": "sarsa",
|
|
191
|
+
"learning_rate": 0.001,
|
|
192
|
+
"gamma": 0.99,
|
|
193
|
+
"epsilon": 0.1
|
|
194
|
+
}
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### 4. Actor-Critic
|
|
198
|
+
|
|
199
|
+
**Type**: Policy Gradient with Value Baseline
|
|
200
|
+
**Best For**: Continuous actions, variance reduction
|
|
201
|
+
**Strengths**: Stable, works for continuous/discrete actions
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
npx agentdb@latest create-plugin -t actor-critic -n ac-agent
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
**Use Cases**:
|
|
208
|
+
- Continuous control (robotics, simulations)
|
|
209
|
+
- Complex action spaces
|
|
210
|
+
- Multi-agent coordination
|
|
211
|
+
|
|
212
|
+
**Configuration**:
|
|
213
|
+
```json
|
|
214
|
+
{
|
|
215
|
+
"algorithm": "actor-critic",
|
|
216
|
+
"actor_lr": 0.001,
|
|
217
|
+
"critic_lr": 0.002,
|
|
218
|
+
"gamma": 0.99,
|
|
219
|
+
"entropy_coef": 0.01
|
|
220
|
+
}
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### 5. Active Learning
|
|
224
|
+
|
|
225
|
+
**Type**: Query-Based Learning
|
|
226
|
+
**Best For**: Label-efficient learning, human-in-the-loop
|
|
227
|
+
**Strengths**: Minimizes labeling cost, focuses on uncertain samples
|
|
228
|
+
|
|
229
|
+
**Use Cases**:
|
|
230
|
+
- Human feedback incorporation
|
|
231
|
+
- Label-efficient training
|
|
232
|
+
- Uncertainty sampling
|
|
233
|
+
- Annotation cost reduction
|
|
234
|
+
|
|
235
|
+
### 6. Adversarial Training
|
|
236
|
+
|
|
237
|
+
**Type**: Robustness Enhancement
|
|
238
|
+
**Best For**: Safety, robustness to perturbations
|
|
239
|
+
**Strengths**: Improves model robustness, adversarial defense
|
|
240
|
+
|
|
241
|
+
**Use Cases**:
|
|
242
|
+
- Security applications
|
|
243
|
+
- Robust decision-making
|
|
244
|
+
- Adversarial defense
|
|
245
|
+
- Safety testing
|
|
246
|
+
|
|
247
|
+
### 7. Curriculum Learning
|
|
248
|
+
|
|
249
|
+
**Type**: Progressive Difficulty Training
|
|
250
|
+
**Best For**: Complex tasks, faster convergence
|
|
251
|
+
**Strengths**: Stable learning, faster convergence on hard tasks
|
|
252
|
+
|
|
253
|
+
**Use Cases**:
|
|
254
|
+
- Complex multi-stage tasks
|
|
255
|
+
- Hard exploration problems
|
|
256
|
+
- Skill composition
|
|
257
|
+
- Transfer learning
|
|
258
|
+
|
|
259
|
+
### 8. Federated Learning
|
|
260
|
+
|
|
261
|
+
**Type**: Distributed Learning
|
|
262
|
+
**Best For**: Privacy, distributed data
|
|
263
|
+
**Strengths**: Privacy-preserving, scalable
|
|
264
|
+
|
|
265
|
+
**Use Cases**:
|
|
266
|
+
- Multi-agent systems
|
|
267
|
+
- Privacy-sensitive data
|
|
268
|
+
- Distributed training
|
|
269
|
+
- Collaborative learning
|
|
270
|
+
|
|
271
|
+
### 9. Multi-Task Learning
|
|
272
|
+
|
|
273
|
+
**Type**: Transfer Learning
|
|
274
|
+
**Best For**: Related tasks, knowledge sharing
|
|
275
|
+
**Strengths**: Faster learning on new tasks, better generalization
|
|
276
|
+
|
|
277
|
+
**Use Cases**:
|
|
278
|
+
- Task families
|
|
279
|
+
- Transfer learning
|
|
280
|
+
- Domain adaptation
|
|
281
|
+
- Meta-learning
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
## Training Workflow
|
|
286
|
+
|
|
287
|
+
### 1. Collect Experiences
|
|
288
|
+
|
|
289
|
+
```typescript
|
|
290
|
+
// Store experiences during agent execution
|
|
291
|
+
for (let i = 0; i < numEpisodes; i++) {
|
|
292
|
+
const episode = runEpisode();
|
|
293
|
+
|
|
294
|
+
for (const step of episode.steps) {
|
|
295
|
+
await adapter.insertPattern({
|
|
296
|
+
id: '',
|
|
297
|
+
type: 'experience',
|
|
298
|
+
domain: 'task-domain',
|
|
299
|
+
pattern_data: JSON.stringify({
|
|
300
|
+
embedding: await computeEmbedding(JSON.stringify(step)),
|
|
301
|
+
pattern: {
|
|
302
|
+
state: step.state,
|
|
303
|
+
action: step.action,
|
|
304
|
+
reward: step.reward,
|
|
305
|
+
next_state: step.next_state,
|
|
306
|
+
done: step.done
|
|
307
|
+
}
|
|
308
|
+
}),
|
|
309
|
+
confidence: step.reward > 0 ? 0.9 : 0.5,
|
|
310
|
+
usage_count: 1,
|
|
311
|
+
success_count: step.reward > 0 ? 1 : 0,
|
|
312
|
+
created_at: Date.now(),
|
|
313
|
+
last_used: Date.now(),
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
### 2. Train Model
|
|
320
|
+
|
|
321
|
+
```typescript
|
|
322
|
+
// Train on collected experiences
|
|
323
|
+
const trainingMetrics = await adapter.train({
|
|
324
|
+
epochs: 100,
|
|
325
|
+
batchSize: 64,
|
|
326
|
+
learningRate: 0.001,
|
|
327
|
+
validationSplit: 0.2,
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
console.log('Training Metrics:', trainingMetrics);
|
|
331
|
+
// {
|
|
332
|
+
// loss: 0.023,
|
|
333
|
+
// valLoss: 0.028,
|
|
334
|
+
// duration: 1523,
|
|
335
|
+
// epochs: 100
|
|
336
|
+
// }
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
### 3. Evaluate Performance
|
|
340
|
+
|
|
341
|
+
```typescript
|
|
342
|
+
// Retrieve similar successful experiences
|
|
343
|
+
const testQuery = await computeEmbedding(JSON.stringify(testState));
|
|
344
|
+
const result = await adapter.retrieveWithReasoning(testQuery, {
|
|
345
|
+
domain: 'task-domain',
|
|
346
|
+
k: 10,
|
|
347
|
+
synthesizeContext: true,
|
|
348
|
+
});
|
|
349
|
+
|
|
350
|
+
// Evaluate action quality
|
|
351
|
+
const suggestedAction = result.memories[0].pattern.action;
|
|
352
|
+
const confidence = result.memories[0].similarity;
|
|
353
|
+
|
|
354
|
+
console.log('Suggested Action:', suggestedAction);
|
|
355
|
+
console.log('Confidence:', confidence);
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
## Advanced Training Techniques
|
|
361
|
+
|
|
362
|
+
### Experience Replay
|
|
363
|
+
|
|
364
|
+
```typescript
|
|
365
|
+
// Store experiences in buffer
|
|
366
|
+
const replayBuffer = [];
|
|
367
|
+
|
|
368
|
+
// Sample random batch for training
|
|
369
|
+
const batch = sampleRandomBatch(replayBuffer, batchSize: 32);
|
|
370
|
+
|
|
371
|
+
// Train on batch
|
|
372
|
+
await adapter.train({
|
|
373
|
+
data: batch,
|
|
374
|
+
epochs: 1,
|
|
375
|
+
batchSize: 32,
|
|
376
|
+
});
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
### Prioritized Experience Replay
|
|
380
|
+
|
|
381
|
+
```typescript
|
|
382
|
+
// Store experiences with priority (TD error)
|
|
383
|
+
await adapter.insertPattern({
|
|
384
|
+
// ... standard fields
|
|
385
|
+
confidence: tdError, // Use TD error as confidence/priority
|
|
386
|
+
// ...
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
// Retrieve high-priority experiences
|
|
390
|
+
const highPriority = await adapter.retrieveWithReasoning(queryEmbedding, {
|
|
391
|
+
domain: 'task-domain',
|
|
392
|
+
k: 32,
|
|
393
|
+
minConfidence: 0.7, // Only high TD-error experiences
|
|
394
|
+
});
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
### Multi-Agent Training
|
|
398
|
+
|
|
399
|
+
```typescript
|
|
400
|
+
// Collect experiences from multiple agents
|
|
401
|
+
for (const agent of agents) {
|
|
402
|
+
const experience = await agent.step();
|
|
403
|
+
|
|
404
|
+
await adapter.insertPattern({
|
|
405
|
+
// ... store experience with agent ID
|
|
406
|
+
domain: `multi-agent/${agent.id}`,
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
// Train shared model
|
|
411
|
+
await adapter.train({
|
|
412
|
+
epochs: 50,
|
|
413
|
+
batchSize: 64,
|
|
414
|
+
});
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
---
|
|
418
|
+
|
|
419
|
+
## Performance Optimization
|
|
420
|
+
|
|
421
|
+
### Batch Training
|
|
422
|
+
|
|
423
|
+
```typescript
|
|
424
|
+
// Collect batch of experiences
|
|
425
|
+
const experiences = collectBatch(size: 1000);
|
|
426
|
+
|
|
427
|
+
// Batch insert (500x faster)
|
|
428
|
+
for (const exp of experiences) {
|
|
429
|
+
await adapter.insertPattern({ /* ... */ });
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
// Train on batch
|
|
433
|
+
await adapter.train({
|
|
434
|
+
epochs: 10,
|
|
435
|
+
batchSize: 128, // Larger batch for efficiency
|
|
436
|
+
});
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
### Incremental Learning
|
|
440
|
+
|
|
441
|
+
```typescript
|
|
442
|
+
// Train incrementally as new data arrives
|
|
443
|
+
setInterval(async () => {
|
|
444
|
+
const newExperiences = getNewExperiences();
|
|
445
|
+
|
|
446
|
+
if (newExperiences.length > 100) {
|
|
447
|
+
await adapter.train({
|
|
448
|
+
epochs: 5,
|
|
449
|
+
batchSize: 32,
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
}, 60000); // Every minute
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
---
|
|
456
|
+
|
|
457
|
+
## Integration with Reasoning Agents
|
|
458
|
+
|
|
459
|
+
Combine learning with reasoning for better performance:
|
|
460
|
+
|
|
461
|
+
```typescript
|
|
462
|
+
// Train learning model
|
|
463
|
+
await adapter.train({ epochs: 50, batchSize: 32 });
|
|
464
|
+
|
|
465
|
+
// Use reasoning agents for inference
|
|
466
|
+
const result = await adapter.retrieveWithReasoning(queryEmbedding, {
|
|
467
|
+
domain: 'decision-making',
|
|
468
|
+
k: 10,
|
|
469
|
+
useMMR: true, // Diverse experiences
|
|
470
|
+
synthesizeContext: true, // Rich context
|
|
471
|
+
optimizeMemory: true, // Consolidate patterns
|
|
472
|
+
});
|
|
473
|
+
|
|
474
|
+
// Make decision based on learned experiences + reasoning
|
|
475
|
+
const decision = result.context.suggestedAction;
|
|
476
|
+
const confidence = result.memories[0].similarity;
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
---
|
|
480
|
+
|
|
481
|
+
## CLI Operations
|
|
482
|
+
|
|
483
|
+
```bash
|
|
484
|
+
# Create plugin
|
|
485
|
+
npx agentdb@latest create-plugin -t decision-transformer -n my-plugin
|
|
486
|
+
|
|
487
|
+
# List plugins
|
|
488
|
+
npx agentdb@latest list-plugins
|
|
489
|
+
|
|
490
|
+
# Get plugin info
|
|
491
|
+
npx agentdb@latest plugin-info my-plugin
|
|
492
|
+
|
|
493
|
+
# List templates
|
|
494
|
+
npx agentdb@latest list-templates
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
---
|
|
498
|
+
|
|
499
|
+
## Troubleshooting
|
|
500
|
+
|
|
501
|
+
### Issue: Training not converging
|
|
502
|
+
```typescript
|
|
503
|
+
// Reduce learning rate
|
|
504
|
+
await adapter.train({
|
|
505
|
+
epochs: 100,
|
|
506
|
+
batchSize: 32,
|
|
507
|
+
learningRate: 0.0001, // Lower learning rate
|
|
508
|
+
});
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
### Issue: Overfitting
|
|
512
|
+
```typescript
|
|
513
|
+
// Use validation split
|
|
514
|
+
await adapter.train({
|
|
515
|
+
epochs: 50,
|
|
516
|
+
batchSize: 64,
|
|
517
|
+
validationSplit: 0.2, // 20% validation
|
|
518
|
+
});
|
|
519
|
+
|
|
520
|
+
// Enable memory optimization
|
|
521
|
+
await adapter.retrieveWithReasoning(queryEmbedding, {
|
|
522
|
+
optimizeMemory: true, // Consolidate, reduce overfitting
|
|
523
|
+
});
|
|
524
|
+
```
|
|
525
|
+
|
|
526
|
+
### Issue: Slow training
|
|
527
|
+
```bash
|
|
528
|
+
# Enable quantization for faster inference
|
|
529
|
+
# Use binary quantization (32x faster)
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
---
|
|
533
|
+
|
|
534
|
+
## Learn More
|
|
535
|
+
|
|
536
|
+
- **Algorithm Papers**: See docs/algorithms/ for detailed papers
|
|
537
|
+
- **GitHub**: https://github.com/ruvnet/agentic-flow/tree/main/packages/agentdb
|
|
538
|
+
- **MCP Integration**: `npx agentdb@latest mcp`
|
|
539
|
+
- **Website**: https://agentdb.ruv.io
|
|
540
|
+
|
|
541
|
+
---
|
|
542
|
+
|
|
543
|
+
**Category**: Machine Learning / Reinforcement Learning
|
|
544
|
+
**Difficulty**: Intermediate to Advanced
|
|
545
|
+
**Estimated Time**: 30-60 minutes
|