agentic-qe 1.6.0 → 1.7.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.
Files changed (117) hide show
  1. package/.claude/skills/brutal-honesty-review/README.md +218 -0
  2. package/.claude/skills/brutal-honesty-review/SKILL.md +725 -0
  3. package/.claude/skills/brutal-honesty-review/resources/assessment-rubrics.md +295 -0
  4. package/.claude/skills/brutal-honesty-review/resources/review-template.md +102 -0
  5. package/.claude/skills/brutal-honesty-review/scripts/assess-code.sh +179 -0
  6. package/.claude/skills/brutal-honesty-review/scripts/assess-tests.sh +223 -0
  7. package/.claude/skills/cicd-pipeline-qe-orchestrator/README.md +301 -0
  8. package/.claude/skills/cicd-pipeline-qe-orchestrator/SKILL.md +510 -0
  9. package/.claude/skills/cicd-pipeline-qe-orchestrator/resources/workflows/microservice-pipeline.md +239 -0
  10. package/.claude/skills/cicd-pipeline-qe-orchestrator/resources/workflows/mobile-pipeline.md +375 -0
  11. package/.claude/skills/cicd-pipeline-qe-orchestrator/resources/workflows/monolith-pipeline.md +268 -0
  12. package/.claude/skills/six-thinking-hats/README.md +190 -0
  13. package/.claude/skills/six-thinking-hats/SKILL.md +1215 -0
  14. package/.claude/skills/six-thinking-hats/resources/examples/api-testing-example.md +345 -0
  15. package/.claude/skills/six-thinking-hats/resources/templates/solo-session-template.md +167 -0
  16. package/.claude/skills/six-thinking-hats/resources/templates/team-session-template.md +336 -0
  17. package/CHANGELOG.md +2359 -2157
  18. package/README.md +41 -7
  19. package/dist/agents/BaseAgent.d.ts +22 -0
  20. package/dist/agents/BaseAgent.d.ts.map +1 -1
  21. package/dist/agents/BaseAgent.js +74 -0
  22. package/dist/agents/BaseAgent.js.map +1 -1
  23. package/dist/agents/FleetCommanderAgent.d.ts +16 -0
  24. package/dist/agents/FleetCommanderAgent.d.ts.map +1 -1
  25. package/dist/agents/FleetCommanderAgent.js +35 -20
  26. package/dist/agents/FleetCommanderAgent.js.map +1 -1
  27. package/dist/agents/index.d.ts.map +1 -1
  28. package/dist/agents/index.js +0 -2
  29. package/dist/agents/index.js.map +1 -1
  30. package/dist/agents/lifecycle/AgentLifecycleManager.d.ts +5 -0
  31. package/dist/agents/lifecycle/AgentLifecycleManager.d.ts.map +1 -1
  32. package/dist/agents/lifecycle/AgentLifecycleManager.js +10 -0
  33. package/dist/agents/lifecycle/AgentLifecycleManager.js.map +1 -1
  34. package/dist/cli/commands/agentdb/learn.d.ts.map +1 -1
  35. package/dist/cli/commands/agentdb/learn.js +190 -71
  36. package/dist/cli/commands/agentdb/learn.js.map +1 -1
  37. package/dist/cli/commands/debug/agent.d.ts.map +1 -1
  38. package/dist/cli/commands/debug/agent.js +40 -13
  39. package/dist/cli/commands/debug/agent.js.map +1 -1
  40. package/dist/cli/commands/debug/diagnostics.js +38 -11
  41. package/dist/cli/commands/debug/diagnostics.js.map +1 -1
  42. package/dist/cli/commands/debug/health-check.js +47 -12
  43. package/dist/cli/commands/debug/health-check.js.map +1 -1
  44. package/dist/cli/commands/debug/profile.js +7 -7
  45. package/dist/cli/commands/debug/profile.js.map +1 -1
  46. package/dist/cli/commands/debug/trace.js +4 -4
  47. package/dist/cli/commands/debug/trace.js.map +1 -1
  48. package/dist/cli/commands/debug/troubleshoot.js +41 -27
  49. package/dist/cli/commands/debug/troubleshoot.js.map +1 -1
  50. package/dist/cli/commands/init-claude-md-template.d.ts +16 -0
  51. package/dist/cli/commands/init-claude-md-template.d.ts.map +1 -0
  52. package/dist/cli/commands/init-claude-md-template.js +69 -0
  53. package/dist/cli/commands/init-claude-md-template.js.map +1 -0
  54. package/dist/cli/commands/init.d.ts +1 -1
  55. package/dist/cli/commands/init.d.ts.map +1 -1
  56. package/dist/cli/commands/init.js +499 -469
  57. package/dist/cli/commands/init.js.map +1 -1
  58. package/dist/cli/commands/test/clean.d.ts.map +1 -1
  59. package/dist/cli/commands/test/clean.js +26 -9
  60. package/dist/cli/commands/test/clean.js.map +1 -1
  61. package/dist/cli/commands/test/debug.js +6 -7
  62. package/dist/cli/commands/test/debug.js.map +1 -1
  63. package/dist/cli/commands/test/diff.js +4 -37
  64. package/dist/cli/commands/test/diff.js.map +1 -1
  65. package/dist/cli/commands/test/profile.js +7 -40
  66. package/dist/cli/commands/test/profile.js.map +1 -1
  67. package/dist/cli/commands/test/trace.js +4 -37
  68. package/dist/cli/commands/test/trace.js.map +1 -1
  69. package/dist/core/ArtifactWorkflow.d.ts +4 -0
  70. package/dist/core/ArtifactWorkflow.d.ts.map +1 -1
  71. package/dist/core/ArtifactWorkflow.js +34 -13
  72. package/dist/core/ArtifactWorkflow.js.map +1 -1
  73. package/dist/core/coordination/BlackboardCoordination.d.ts +4 -0
  74. package/dist/core/coordination/BlackboardCoordination.d.ts.map +1 -1
  75. package/dist/core/coordination/BlackboardCoordination.js +28 -22
  76. package/dist/core/coordination/BlackboardCoordination.js.map +1 -1
  77. package/dist/core/coordination/ConsensusGating.d.ts +4 -0
  78. package/dist/core/coordination/ConsensusGating.d.ts.map +1 -1
  79. package/dist/core/coordination/ConsensusGating.js +25 -18
  80. package/dist/core/coordination/ConsensusGating.js.map +1 -1
  81. package/dist/core/memory/AgentDBService.d.ts.map +1 -1
  82. package/dist/core/memory/AgentDBService.js +6 -3
  83. package/dist/core/memory/AgentDBService.js.map +1 -1
  84. package/dist/learning/LearningEngine.js +1 -1
  85. package/dist/learning/LearningEngine.js.map +1 -1
  86. package/dist/learning/StateExtractor.d.ts +1 -1
  87. package/dist/learning/StateExtractor.d.ts.map +1 -1
  88. package/dist/learning/StateExtractor.js +62 -13
  89. package/dist/learning/StateExtractor.js.map +1 -1
  90. package/dist/utils/Config.d.ts.map +1 -1
  91. package/dist/utils/Config.js +14 -5
  92. package/dist/utils/Config.js.map +1 -1
  93. package/dist/utils/Database.d.ts.map +1 -1
  94. package/dist/utils/Database.js +5 -2
  95. package/dist/utils/Database.js.map +1 -1
  96. package/dist/utils/Logger.d.ts +1 -1
  97. package/dist/utils/Logger.d.ts.map +1 -1
  98. package/dist/utils/Logger.js +4 -4
  99. package/dist/utils/Logger.js.map +1 -1
  100. package/dist/utils/SecurityScanner.js +1 -1
  101. package/dist/utils/SecurityScanner.js.map +1 -1
  102. package/package.json +2 -2
  103. package/.claude/agents/.claude-flow/metrics/agent-metrics.json +0 -1
  104. package/.claude/agents/.claude-flow/metrics/performance.json +0 -87
  105. package/.claude/agents/.claude-flow/metrics/task-metrics.json +0 -10
  106. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
  107. package/.claude/commands/analysis/performance-bottlenecks.md +0 -59
  108. package/.claude/commands/flow-nexus/app-store.md +0 -124
  109. package/.claude/commands/flow-nexus/challenges.md +0 -120
  110. package/.claude/commands/flow-nexus/login-registration.md +0 -65
  111. package/.claude/commands/flow-nexus/neural-network.md +0 -134
  112. package/.claude/commands/flow-nexus/payments.md +0 -116
  113. package/.claude/commands/flow-nexus/sandbox.md +0 -83
  114. package/.claude/commands/flow-nexus/swarm.md +0 -87
  115. package/.claude/commands/flow-nexus/user-tools.md +0 -152
  116. package/.claude/commands/flow-nexus/workflow.md +0 -115
  117. package/.claude/commands/memory/usage.md +0 -46
@@ -1,87 +0,0 @@
1
- {
2
- "startTime": 1762879945127,
3
- "sessionId": "session-1762879945127",
4
- "lastActivity": 1762879945127,
5
- "sessionDuration": 0,
6
- "totalTasks": 1,
7
- "successfulTasks": 1,
8
- "failedTasks": 0,
9
- "totalAgents": 0,
10
- "activeAgents": 0,
11
- "neuralEvents": 0,
12
- "memoryMode": {
13
- "reasoningbankOperations": 0,
14
- "basicOperations": 0,
15
- "autoModeSelections": 0,
16
- "modeOverrides": 0,
17
- "currentMode": "auto"
18
- },
19
- "operations": {
20
- "store": {
21
- "count": 0,
22
- "totalDuration": 0,
23
- "errors": 0
24
- },
25
- "retrieve": {
26
- "count": 0,
27
- "totalDuration": 0,
28
- "errors": 0
29
- },
30
- "query": {
31
- "count": 0,
32
- "totalDuration": 0,
33
- "errors": 0
34
- },
35
- "list": {
36
- "count": 0,
37
- "totalDuration": 0,
38
- "errors": 0
39
- },
40
- "delete": {
41
- "count": 0,
42
- "totalDuration": 0,
43
- "errors": 0
44
- },
45
- "search": {
46
- "count": 0,
47
- "totalDuration": 0,
48
- "errors": 0
49
- },
50
- "init": {
51
- "count": 0,
52
- "totalDuration": 0,
53
- "errors": 0
54
- }
55
- },
56
- "performance": {
57
- "avgOperationDuration": 0,
58
- "minOperationDuration": null,
59
- "maxOperationDuration": null,
60
- "slowOperations": 0,
61
- "fastOperations": 0,
62
- "totalOperationTime": 0
63
- },
64
- "storage": {
65
- "totalEntries": 0,
66
- "reasoningbankEntries": 0,
67
- "basicEntries": 0,
68
- "databaseSize": 0,
69
- "lastBackup": null,
70
- "growthRate": 0
71
- },
72
- "errors": {
73
- "total": 0,
74
- "byType": {},
75
- "byOperation": {},
76
- "recent": []
77
- },
78
- "reasoningbank": {
79
- "semanticSearches": 0,
80
- "sqlFallbacks": 0,
81
- "embeddingGenerated": 0,
82
- "consolidations": 0,
83
- "avgQueryTime": 0,
84
- "cacheHits": 0,
85
- "cacheMisses": 0
86
- }
87
- }
@@ -1,10 +0,0 @@
1
- [
2
- {
3
- "id": "cmd-hooks-1762879945180",
4
- "type": "hooks",
5
- "success": true,
6
- "duration": 5.301208000000003,
7
- "timestamp": 1762879945185,
8
- "metadata": {}
9
- }
10
- ]
@@ -1,54 +0,0 @@
1
- # Analysis Commands Compliance Report
2
-
3
- ## Overview
4
- Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of:
5
- - `mcp__claude-flow__*` tools (preferred)
6
- - `npx claude-flow` commands (as fallback)
7
- - No direct implementation calls
8
-
9
- ## Files Reviewed
10
-
11
- ### 1. token-efficiency.md
12
- **Status**: ✅ Updated
13
- **Changes Made**:
14
- - Replaced `npx ruv-swarm hook session-end --export-metrics` with proper MCP tool call
15
- - Updated to: `Tool: mcp__claude-flow__token_usage` with appropriate parameters
16
- - Maintained result format and context
17
-
18
- **Before**:
19
- ```bash
20
- npx ruv-swarm hook session-end --export-metrics
21
- ```
22
-
23
- **After**:
24
- ```
25
- Tool: mcp__claude-flow__token_usage
26
- Parameters: {"operation": "session", "timeframe": "24h"}
27
- ```
28
-
29
- ### 2. performance-bottlenecks.md
30
- **Status**: ✅ Compliant (No changes needed)
31
- **Reason**: Already uses proper `mcp__claude-flow__task_results` tool format
32
-
33
- ## Summary
34
-
35
- - **Total files reviewed**: 2
36
- - **Files updated**: 1
37
- - **Files already compliant**: 1
38
- - **Compliance rate after updates**: 100%
39
-
40
- ## Compliance Patterns Enforced
41
-
42
- 1. **MCP Tool Usage**: All direct tool calls now use `mcp__claude-flow__*` format
43
- 2. **Parameter Format**: JSON parameters properly structured
44
- 3. **Command Context**: Preserved original functionality and expected results
45
- 4. **Documentation**: Maintained clarity and examples
46
-
47
- ## Recommendations
48
-
49
- 1. All analysis commands now follow the proper pattern
50
- 2. No direct bash commands or implementation calls remain
51
- 3. Token usage analysis properly integrated with MCP tools
52
- 4. Performance analysis already using correct tool format
53
-
54
- The analysis directory is now fully compliant with the Claude Flow command standards.
@@ -1,59 +0,0 @@
1
- # Performance Bottleneck Analysis
2
-
3
- ## Purpose
4
- Identify and resolve performance bottlenecks in your development workflow.
5
-
6
- ## Automated Analysis
7
-
8
- ### 1. Real-time Detection
9
- The post-task hook automatically analyzes:
10
- - Execution time vs. complexity
11
- - Agent utilization rates
12
- - Resource constraints
13
- - Operation patterns
14
-
15
- ### 2. Common Bottlenecks
16
-
17
- **Time Bottlenecks:**
18
- - Tasks taking > 5 minutes
19
- - Sequential operations that could parallelize
20
- - Redundant file operations
21
-
22
- **Coordination Bottlenecks:**
23
- - Single agent for complex tasks
24
- - Unbalanced agent workloads
25
- - Poor topology selection
26
-
27
- **Resource Bottlenecks:**
28
- - High operation count (> 100)
29
- - Memory constraints
30
- - I/O limitations
31
-
32
- ### 3. Improvement Suggestions
33
-
34
- ```
35
- Tool: mcp__claude-flow__task_results
36
- Parameters: {"taskId": "task-123", "format": "detailed"}
37
-
38
- Result includes:
39
- {
40
- "bottlenecks": [
41
- {
42
- "type": "coordination",
43
- "severity": "high",
44
- "description": "Single agent used for complex task",
45
- "recommendation": "Spawn specialized agents for parallel work"
46
- }
47
- ],
48
- "improvements": [
49
- {
50
- "area": "execution_time",
51
- "suggestion": "Use parallel task execution",
52
- "expectedImprovement": "30-50% time reduction"
53
- }
54
- ]
55
- }
56
- ```
57
-
58
- ## Continuous Optimization
59
- The system learns from each task to prevent future bottlenecks!
@@ -1,124 +0,0 @@
1
- ---
2
- name: flow-nexus-app-store
3
- description: Browse, publish, and deploy applications
4
- ---
5
-
6
- # Flow Nexus App Store
7
-
8
- Browse templates, publish apps, and deploy solutions.
9
-
10
- ## Browse Apps
11
- ```javascript
12
- // Search apps
13
- mcp__flow-nexus__app_search({
14
- search: "authentication",
15
- category: "backend",
16
- featured: true,
17
- limit: 20
18
- })
19
-
20
- // Get app details
21
- mcp__flow-nexus__app_get({ app_id: "app_id" })
22
-
23
- // List templates
24
- mcp__flow-nexus__app_store_list_templates({
25
- category: "web-api",
26
- tags: ["express", "jwt"],
27
- limit: 20
28
- })
29
- ```
30
-
31
- ## Publish App
32
- ```javascript
33
- mcp__flow-nexus__app_store_publish_app({
34
- name: "My Auth Service",
35
- description: "JWT-based authentication microservice",
36
- category: "backend",
37
- version: "1.0.0",
38
- source_code: sourceCode,
39
- tags: ["auth", "jwt", "express"],
40
- metadata: {
41
- author: "Your Name",
42
- license: "MIT",
43
- repository: "github.com/user/repo"
44
- }
45
- })
46
- ```
47
-
48
- ## Deploy Templates
49
- ```javascript
50
- // Get template details
51
- mcp__flow-nexus__template_get({
52
- template_name: "express-api-starter"
53
- })
54
-
55
- // Deploy template
56
- mcp__flow-nexus__template_deploy({
57
- template_name: "express-api-starter",
58
- deployment_name: "my-api",
59
- variables: {
60
- api_key: "your_key",
61
- database_url: "postgres://..."
62
- },
63
- env_vars: {
64
- NODE_ENV: "production"
65
- }
66
- })
67
- ```
68
-
69
- ## Analytics
70
- ```javascript
71
- // Get app analytics
72
- mcp__flow-nexus__app_analytics({
73
- app_id: "your_app_id",
74
- timeframe: "30d" // 24h, 7d, 30d, 90d
75
- })
76
-
77
- // View installed apps
78
- mcp__flow-nexus__app_installed({
79
- user_id: "your_id"
80
- })
81
- ```
82
-
83
- ## Update App
84
- ```javascript
85
- mcp__flow-nexus__app_update({
86
- app_id: "app_id",
87
- updates: {
88
- version: "1.1.0",
89
- description: "Updated description",
90
- tags: ["new", "tags"]
91
- }
92
- })
93
- ```
94
-
95
- ## Market Data
96
- ```javascript
97
- // Get market statistics
98
- mcp__flow-nexus__market_data()
99
- ```
100
-
101
- ## Template Categories
102
- - **web-api**: RESTful APIs and microservices
103
- - **frontend**: React, Vue, Angular apps
104
- - **full-stack**: Complete applications
105
- - **cli-tools**: Command-line utilities
106
- - **data-processing**: ETL and analytics
107
- - **ml-models**: Pre-trained models
108
- - **blockchain**: Web3 applications
109
- - **mobile**: React Native apps
110
-
111
- ## Publishing Best Practices
112
- 1. Include comprehensive documentation
113
- 2. Add example usage and configuration
114
- 3. Include tests and CI/CD setup
115
- 4. Use semantic versioning
116
- 5. Add clear license information
117
- 6. Include docker/deployment configs
118
- 7. Provide migration guides for updates
119
-
120
- ## Revenue Sharing
121
- - Earn rUv credits when others use your templates
122
- - Set pricing (0 for free templates)
123
- - Track usage and earnings in analytics
124
- - Withdraw credits or use for Flow Nexus services
@@ -1,120 +0,0 @@
1
- ---
2
- name: flow-nexus-challenges
3
- description: Coding challenges, achievements, and leaderboards
4
- ---
5
-
6
- # Flow Nexus Challenges
7
-
8
- Complete coding challenges to earn rUv credits and climb the leaderboard.
9
-
10
- ## List Challenges
11
- ```javascript
12
- mcp__flow-nexus__challenges_list({
13
- difficulty: "intermediate", // beginner, advanced, expert
14
- category: "algorithms",
15
- status: "active",
16
- limit: 20
17
- })
18
- ```
19
-
20
- ## Get Challenge Details
21
- ```javascript
22
- mcp__flow-nexus__challenge_get({
23
- challenge_id: "two-sum-problem"
24
- })
25
- ```
26
-
27
- ## Submit Solution
28
- ```javascript
29
- mcp__flow-nexus__challenge_submit({
30
- challenge_id: "challenge_id",
31
- user_id: "your_id",
32
- solution_code: `
33
- function solution(nums, target) {
34
- const map = new Map();
35
- for (let i = 0; i < nums.length; i++) {
36
- const complement = target - nums[i];
37
- if (map.has(complement)) {
38
- return [map.get(complement), i];
39
- }
40
- map.set(nums[i], i);
41
- }
42
- return [];
43
- }
44
- `,
45
- language: "javascript",
46
- execution_time: 45 // milliseconds
47
- })
48
- ```
49
-
50
- ## Complete Challenge
51
- ```javascript
52
- mcp__flow-nexus__app_store_complete_challenge({
53
- challenge_id: "challenge_id",
54
- user_id: "your_id",
55
- submission_data: {
56
- passed_tests: 10,
57
- total_tests: 10,
58
- execution_time: 45
59
- }
60
- })
61
- ```
62
-
63
- ## Leaderboards
64
- ```javascript
65
- // Global leaderboard
66
- mcp__flow-nexus__leaderboard_get({
67
- type: "global", // weekly, monthly, challenge
68
- limit: 10
69
- })
70
-
71
- // Challenge-specific leaderboard
72
- mcp__flow-nexus__leaderboard_get({
73
- type: "challenge",
74
- challenge_id: "specific_challenge",
75
- limit: 25
76
- })
77
- ```
78
-
79
- ## Achievements
80
- ```javascript
81
- mcp__flow-nexus__achievements_list({
82
- user_id: "your_id",
83
- category: "speed_demon" // Categories vary
84
- })
85
- ```
86
-
87
- ## rUv Credits
88
- ```javascript
89
- // Check balance
90
- mcp__flow-nexus__ruv_balance({ user_id: "your_id" })
91
-
92
- // View history
93
- mcp__flow-nexus__ruv_history({
94
- user_id: "your_id",
95
- limit: 20
96
- })
97
-
98
- // Earn credits (automatic on completion)
99
- mcp__flow-nexus__app_store_earn_ruv({
100
- user_id: "your_id",
101
- amount: 100,
102
- reason: "Completed expert challenge",
103
- source: "challenge"
104
- })
105
- ```
106
-
107
- ## Challenge Categories
108
- - **algorithms**: Classic algorithm problems
109
- - **data-structures**: DS implementation challenges
110
- - **system-design**: Architecture challenges
111
- - **optimization**: Performance challenges
112
- - **security**: Security-focused problems
113
- - **ml-basics**: Machine learning fundamentals
114
-
115
- ## Tips
116
- 1. Start with beginner challenges
117
- 2. Review other solutions after completing
118
- 3. Optimize for both correctness and speed
119
- 4. Complete daily challenges for bonus credits
120
- 5. Unlock achievements for extra rewards
@@ -1,65 +0,0 @@
1
- ---
2
- name: flow-nexus-auth
3
- description: Flow Nexus authentication and user management
4
- ---
5
-
6
- # Flow Nexus Authentication
7
-
8
- Quick commands for Flow Nexus login and registration.
9
-
10
- ## Register New Account
11
- ```javascript
12
- mcp__flow-nexus__user_register({
13
- email: "user@example.com",
14
- password: "secure_password",
15
- full_name: "Your Name" // optional
16
- })
17
- ```
18
-
19
- ## Login
20
- ```javascript
21
- mcp__flow-nexus__user_login({
22
- email: "user@example.com",
23
- password: "your_password"
24
- })
25
- ```
26
-
27
- ## Check Auth Status
28
- ```javascript
29
- mcp__flow-nexus__auth_status({ detailed: true })
30
- ```
31
-
32
- ## Logout
33
- ```javascript
34
- mcp__flow-nexus__user_logout()
35
- ```
36
-
37
- ## Password Reset
38
- ```javascript
39
- // Request reset
40
- mcp__flow-nexus__user_reset_password({ email: "user@example.com" })
41
-
42
- // Update with token
43
- mcp__flow-nexus__user_update_password({
44
- token: "reset_token",
45
- new_password: "new_secure_password"
46
- })
47
- ```
48
-
49
- ## Profile Management
50
- ```javascript
51
- // Get profile
52
- mcp__flow-nexus__user_profile({ user_id: "your_id" })
53
-
54
- // Update profile
55
- mcp__flow-nexus__user_update_profile({
56
- user_id: "your_id",
57
- updates: { full_name: "New Name" }
58
- })
59
- ```
60
-
61
- ## Quick Start
62
- 1. Register with your email
63
- 2. Check your email for verification
64
- 3. Login to access all features
65
- 4. Configure auto-refill for uninterrupted service
@@ -1,134 +0,0 @@
1
- ---
2
- name: flow-nexus-neural
3
- description: Train and deploy neural networks in distributed sandboxes
4
- ---
5
-
6
- # Flow Nexus Neural Networks
7
-
8
- Train custom neural networks with distributed computing.
9
-
10
- ## Train Model
11
- ```javascript
12
- mcp__flow-nexus__neural_train({
13
- config: {
14
- architecture: {
15
- type: "feedforward", // lstm, gan, autoencoder, transformer
16
- layers: [
17
- { type: "dense", units: 128, activation: "relu" },
18
- { type: "dropout", rate: 0.2 },
19
- { type: "dense", units: 10, activation: "softmax" }
20
- ]
21
- },
22
- training: {
23
- epochs: 100,
24
- batch_size: 32,
25
- learning_rate: 0.001,
26
- optimizer: "adam"
27
- }
28
- },
29
- tier: "small" // nano, mini, small, medium, large
30
- })
31
- ```
32
-
33
- ## Run Inference
34
- ```javascript
35
- mcp__flow-nexus__neural_predict({
36
- model_id: "model_id",
37
- input: [[0.5, 0.3, 0.2], [0.1, 0.8, 0.1]],
38
- user_id: "your_id"
39
- })
40
- ```
41
-
42
- ## Use Templates
43
- ```javascript
44
- // List templates
45
- mcp__flow-nexus__neural_list_templates({
46
- category: "classification", // regression, nlp, vision, anomaly
47
- tier: "free",
48
- limit: 20
49
- })
50
-
51
- // Deploy template
52
- mcp__flow-nexus__neural_deploy_template({
53
- template_id: "sentiment-analysis",
54
- custom_config: {
55
- training: { epochs: 50 }
56
- }
57
- })
58
- ```
59
-
60
- ## Distributed Training
61
- ```javascript
62
- // Initialize cluster
63
- mcp__flow-nexus__neural_cluster_init({
64
- name: "training-cluster",
65
- architecture: "transformer",
66
- topology: "mesh",
67
- consensus: "proof-of-learning",
68
- wasmOptimization: true
69
- })
70
-
71
- // Deploy nodes
72
- mcp__flow-nexus__neural_node_deploy({
73
- cluster_id: "cluster_id",
74
- node_type: "worker", // parameter_server, aggregator
75
- model: "large",
76
- capabilities: ["training", "inference"]
77
- })
78
-
79
- // Start training
80
- mcp__flow-nexus__neural_train_distributed({
81
- cluster_id: "cluster_id",
82
- dataset: "mnist",
83
- epochs: 100,
84
- federated: true // Enable federated learning
85
- })
86
- ```
87
-
88
- ## Model Management
89
- ```javascript
90
- // List your models
91
- mcp__flow-nexus__neural_list_models({
92
- user_id: "your_id",
93
- include_public: true
94
- })
95
-
96
- // Benchmark performance
97
- mcp__flow-nexus__neural_performance_benchmark({
98
- model_id: "model_id",
99
- benchmark_type: "comprehensive"
100
- })
101
-
102
- // Publish as template
103
- mcp__flow-nexus__neural_publish_template({
104
- model_id: "model_id",
105
- name: "My Custom Model",
106
- description: "Highly accurate classifier",
107
- category: "classification",
108
- price: 0 // Free template
109
- })
110
- ```
111
-
112
- ## Common Patterns
113
-
114
- ### Image Classification
115
- ```javascript
116
- mcp__flow-nexus__neural_train({
117
- config: {
118
- architecture: { type: "cnn" },
119
- training: { epochs: 50, batch_size: 64 }
120
- },
121
- tier: "medium"
122
- })
123
- ```
124
-
125
- ### Time Series Prediction
126
- ```javascript
127
- mcp__flow-nexus__neural_train({
128
- config: {
129
- architecture: { type: "lstm" },
130
- training: { epochs: 100, learning_rate: 0.01 }
131
- },
132
- tier: "small"
133
- })
134
- ```