claude-flow-novice 1.5.2 → 1.5.4

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 (138) hide show
  1. package/.claude/agents/SPARSE_LANGUAGE_FINDINGS.md +991 -0
  2. package/.claude/agents/architecture/system-architect.md +3 -44
  3. package/.claude/agents/benchmarking-tests/test-agent-code-heavy.md +747 -0
  4. package/.claude/agents/benchmarking-tests/test-agent-metadata.md +181 -0
  5. package/.claude/agents/benchmarking-tests/test-agent-minimal.md +67 -0
  6. package/.claude/agents/data/ml/data-ml-model.md +5 -119
  7. package/.claude/agents/development/backend/dev-backend-api.md +4 -115
  8. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +4 -114
  9. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +4 -113
  10. package/.claude/agents/github/multi-repo-swarm.md +1 -28
  11. package/.claude/agents/github/pr-manager.md +1 -29
  12. package/.claude/agents/github/project-board-sync.md +1 -32
  13. package/.claude/agents/github/release-manager.md +1 -32
  14. package/.claude/agents/github/release-swarm.md +1 -33
  15. package/.claude/agents/github/repo-architect.md +1 -34
  16. package/.claude/agents/github/swarm-issue.md +1 -26
  17. package/.claude/agents/github/swarm-pr.md +1 -30
  18. package/.claude/agents/github/sync-coordinator.md +1 -30
  19. package/.claude/agents/github/workflow-automation.md +1 -31
  20. package/.claude/agents/neural/neural-pattern-agent.md +2 -50
  21. package/.claude/agents/specialized/CODER_AGENT_GUIDELINES.md +1245 -0
  22. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +6 -142
  23. package/.claude/agents/sublinear/consciousness-evolution-agent.md +2 -18
  24. package/.claude/agents/sublinear/matrix-solver-agent.md +2 -16
  25. package/.claude/agents/sublinear/nanosecond-scheduler-agent.md +2 -19
  26. package/.claude/agents/sublinear/pagerank-agent.md +2 -19
  27. package/.claude/agents/sublinear/phi-calculator-agent.md +2 -19
  28. package/.claude/agents/sublinear/psycho-symbolic-agent.md +2 -19
  29. package/.claude/agents/sublinear/sublinear.md +2 -1
  30. package/.claude/agents/sublinear/temporal-advantage-agent.md +2 -16
  31. package/.claude/agents/testing/e2e/playwright-agent.md +7 -0
  32. package/.claude-flow-novice/.claude/agents/SPARSE_LANGUAGE_FINDINGS.md +991 -0
  33. package/.claude-flow-novice/.claude/agents/architecture/system-architect.md +3 -44
  34. package/.claude-flow-novice/.claude/agents/benchmarking-tests/test-agent-code-heavy.md +747 -0
  35. package/.claude-flow-novice/.claude/agents/benchmarking-tests/test-agent-metadata.md +181 -0
  36. package/.claude-flow-novice/.claude/agents/benchmarking-tests/test-agent-minimal.md +67 -0
  37. package/.claude-flow-novice/.claude/agents/data/ml/data-ml-model.md +5 -119
  38. package/.claude-flow-novice/.claude/agents/development/backend/dev-backend-api.md +4 -115
  39. package/.claude-flow-novice/.claude/agents/devops/ci-cd/ops-cicd-github.md +4 -114
  40. package/.claude-flow-novice/.claude/agents/documentation/api-docs/docs-api-openapi.md +4 -113
  41. package/.claude-flow-novice/.claude/agents/github/multi-repo-swarm.md +1 -28
  42. package/.claude-flow-novice/.claude/agents/github/pr-manager.md +1 -29
  43. package/.claude-flow-novice/.claude/agents/github/project-board-sync.md +1 -32
  44. package/.claude-flow-novice/.claude/agents/github/release-manager.md +1 -32
  45. package/.claude-flow-novice/.claude/agents/github/release-swarm.md +1 -33
  46. package/.claude-flow-novice/.claude/agents/github/repo-architect.md +1 -34
  47. package/.claude-flow-novice/.claude/agents/github/swarm-issue.md +1 -26
  48. package/.claude-flow-novice/.claude/agents/github/swarm-pr.md +1 -30
  49. package/.claude-flow-novice/.claude/agents/github/sync-coordinator.md +1 -30
  50. package/.claude-flow-novice/.claude/agents/github/workflow-automation.md +1 -31
  51. package/.claude-flow-novice/.claude/agents/neural/neural-pattern-agent.md +2 -50
  52. package/.claude-flow-novice/.claude/agents/specialized/CODER_AGENT_GUIDELINES.md +1245 -0
  53. package/.claude-flow-novice/.claude/agents/specialized/mobile/spec-mobile-react-native.md +6 -142
  54. package/.claude-flow-novice/.claude/agents/sublinear/consciousness-evolution-agent.md +2 -18
  55. package/.claude-flow-novice/.claude/agents/sublinear/matrix-solver-agent.md +2 -16
  56. package/.claude-flow-novice/.claude/agents/sublinear/nanosecond-scheduler-agent.md +2 -19
  57. package/.claude-flow-novice/.claude/agents/sublinear/pagerank-agent.md +2 -19
  58. package/.claude-flow-novice/.claude/agents/sublinear/phi-calculator-agent.md +2 -19
  59. package/.claude-flow-novice/.claude/agents/sublinear/psycho-symbolic-agent.md +2 -19
  60. package/.claude-flow-novice/.claude/agents/sublinear/sublinear.md +2 -1
  61. package/.claude-flow-novice/.claude/agents/sublinear/temporal-advantage-agent.md +2 -16
  62. package/.claude-flow-novice/.claude/agents/testing/e2e/playwright-agent.md +7 -0
  63. package/.claude-flow-novice/dist/src/cli/simple-commands/init/CLAUDE.md +188 -0
  64. package/.claude-flow-novice/dist/src/cli/simple-commands/init/claude-flow-universal +81 -0
  65. package/.claude-flow-novice/dist/src/cli/simple-commands/init/claude-flow.bat +18 -0
  66. package/.claude-flow-novice/dist/src/cli/simple-commands/init/claude-flow.ps1 +24 -0
  67. package/.claude-flow-novice/dist/src/cli/simple-commands/init/claude-md.js +982 -0
  68. package/.claude-flow-novice/dist/src/cli/simple-commands/init/commands/analysis/bottleneck-detect.md +162 -0
  69. package/.claude-flow-novice/dist/src/cli/simple-commands/init/commands/automation/auto-agent.md +122 -0
  70. package/.claude-flow-novice/dist/src/cli/simple-commands/init/commands/coordination/swarm-init.md +85 -0
  71. package/.claude-flow-novice/dist/src/cli/simple-commands/init/commands/github/github-swarm.md +121 -0
  72. package/.claude-flow-novice/dist/src/cli/simple-commands/init/commands/helpers/standard-checkpoint-hooks.sh +179 -0
  73. package/.claude-flow-novice/dist/src/cli/simple-commands/init/commands/hooks/notification.md +113 -0
  74. package/.claude-flow-novice/dist/src/cli/simple-commands/init/commands/hooks/post-command.md +116 -0
  75. package/.claude-flow-novice/dist/src/cli/simple-commands/init/commands/hooks/post-edit.md +117 -0
  76. package/.claude-flow-novice/dist/src/cli/simple-commands/init/commands/hooks/post-task.md +112 -0
  77. package/.claude-flow-novice/dist/src/cli/simple-commands/init/commands/hooks/pre-command.md +113 -0
  78. package/.claude-flow-novice/dist/src/cli/simple-commands/init/commands/hooks/pre-edit.md +113 -0
  79. package/.claude-flow-novice/dist/src/cli/simple-commands/init/commands/hooks/pre-search.md +112 -0
  80. package/.claude-flow-novice/dist/src/cli/simple-commands/init/commands/hooks/pre-task.md +111 -0
  81. package/.claude-flow-novice/dist/src/cli/simple-commands/init/commands/hooks/session-end.md +118 -0
  82. package/.claude-flow-novice/dist/src/cli/simple-commands/init/commands/hooks/session-restore.md +118 -0
  83. package/.claude-flow-novice/dist/src/cli/simple-commands/init/commands/hooks/session-start.md +117 -0
  84. package/.claude-flow-novice/dist/src/cli/simple-commands/init/coordination-md.js +340 -0
  85. package/.claude-flow-novice/dist/src/cli/simple-commands/init/coordination.md +16 -0
  86. package/.claude-flow-novice/dist/src/cli/simple-commands/init/enhanced-templates.js +2347 -0
  87. package/.claude-flow-novice/dist/src/cli/simple-commands/init/github-safe-enhanced.js +331 -0
  88. package/.claude-flow-novice/dist/src/cli/simple-commands/init/github-safe.js +106 -0
  89. package/.claude-flow-novice/dist/src/cli/simple-commands/init/index.js +1896 -0
  90. package/.claude-flow-novice/dist/src/cli/simple-commands/init/memory-bank-md.js +259 -0
  91. package/.claude-flow-novice/dist/src/cli/simple-commands/init/memory-bank.md +16 -0
  92. package/.claude-flow-novice/dist/src/cli/simple-commands/init/readme-files.js +72 -0
  93. package/.claude-flow-novice/dist/src/cli/simple-commands/init/safe-hook-patterns.js +430 -0
  94. package/.claude-flow-novice/dist/src/cli/simple-commands/init/settings.json +109 -0
  95. package/.claude-flow-novice/dist/src/cli/simple-commands/init/settings.json.enhanced +35 -0
  96. package/.claude-flow-novice/dist/src/cli/simple-commands/init/sparc-modes.js +1401 -0
  97. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/CLAUDE.md +188 -0
  98. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/claude-flow-universal +81 -0
  99. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/claude-flow.bat +18 -0
  100. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/claude-flow.ps1 +24 -0
  101. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/claude-md.js +982 -0
  102. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/commands/analysis/bottleneck-detect.md +162 -0
  103. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/commands/automation/auto-agent.md +122 -0
  104. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/commands/coordination/swarm-init.md +85 -0
  105. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/commands/github/github-swarm.md +121 -0
  106. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/commands/helpers/standard-checkpoint-hooks.sh +179 -0
  107. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/commands/hooks/notification.md +113 -0
  108. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/commands/hooks/post-command.md +116 -0
  109. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/commands/hooks/post-edit.md +117 -0
  110. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/commands/hooks/post-task.md +112 -0
  111. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/commands/hooks/pre-command.md +113 -0
  112. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/commands/hooks/pre-edit.md +113 -0
  113. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/commands/hooks/pre-search.md +112 -0
  114. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/commands/hooks/pre-task.md +111 -0
  115. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/commands/hooks/session-end.md +118 -0
  116. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/commands/hooks/session-restore.md +118 -0
  117. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/commands/hooks/session-start.md +117 -0
  118. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/coordination-md.js +340 -0
  119. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/coordination.md +16 -0
  120. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/enhanced-templates.js +2347 -0
  121. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/github-safe-enhanced.js +331 -0
  122. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/github-safe.js +106 -0
  123. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/memory-bank-md.js +259 -0
  124. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/memory-bank.md +16 -0
  125. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/readme-files.js +72 -0
  126. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/safe-hook-patterns.js +430 -0
  127. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/settings.json +109 -0
  128. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/settings.json.enhanced +35 -0
  129. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/sparc-modes.js +1401 -0
  130. package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/verification-claude-md.js +432 -0
  131. package/.claude-flow-novice/dist/src/cli/simple-commands/init/verification-claude-md.js +432 -0
  132. package/.claude-flow-novice/dist/src/cli/simple-commands/init.js +4 -0
  133. package/.claude-flow-novice/dist/src/slash-commands/benchmark-prompts.js +281 -0
  134. package/CLAUDE.md +1927 -127
  135. package/package.json +3 -3
  136. package/src/cli/simple-commands/init/index.js +39 -4
  137. package/src/cli/simple-commands/init/templates/CLAUDE.md +8 -10
  138. package/src/slash-commands/benchmark-prompts.js +281 -0
@@ -0,0 +1,432 @@
1
+ // verification-claude-md.js - Verification and Pair Programming CLAUDE.md template
2
+
3
+ export function createVerificationClaudeMd() {
4
+ return `# Claude Code Configuration - Truth Verification & Pair Programming Environment
5
+
6
+ ## 🔍 VERIFICATION-FIRST DEVELOPMENT
7
+
8
+ This project enforces **"truth is enforced, not assumed"** with mandatory verification for all operations.
9
+
10
+ ### 🎯 Truth Verification System Active
11
+ - **Threshold**: 0.95 (95% accuracy required)
12
+ - **Mode**: Strict verification with auto-rollback
13
+ - **Pair Programming**: Real-time collaborative development
14
+ - **Background Monitoring**: Continuous validation enabled
15
+
16
+ ## 🚨 CRITICAL: VERIFICATION COMMANDS
17
+
18
+ ### Initialize Verification System
19
+ \`\`\`bash
20
+ # Set verification mode (strict/moderate/development)
21
+ ./claude-flow-novice verify init strict # 95% threshold, auto-rollback
22
+ ./claude-flow-novice verify init moderate # 85% threshold, no auto-rollback
23
+ ./claude-flow-novice verify init development # 75% threshold, for prototyping
24
+ \`\`\`
25
+
26
+ ### Run Verification
27
+ \`\`\`bash
28
+ # Verify specific tasks
29
+ ./claude-flow-novice verify verify task-123 --agent coder
30
+ ./claude-flow-novice verify verify task-456 --agent reviewer --threshold 0.90
31
+
32
+ # Check truth scores
33
+ ./claude-flow-novice truth # View current truth scores
34
+ ./claude-flow-novice truth --report # Generate detailed report
35
+ ./claude-flow-novice truth --analyze # Analyze failure patterns
36
+ \`\`\`
37
+
38
+ ### Pair Programming Mode
39
+ \`\`\`bash
40
+ # Start pair programming with real-time verification
41
+ ./claude-flow-novice pair --start # Begin collaborative session
42
+ ./claude-flow-novice pair --start --mode strict # Production-quality pairing
43
+ ./claude-flow-novice pair --verify --threshold 0.90 # Custom threshold
44
+
45
+ # Background monitoring (use run_in_background: true)
46
+ ./claude-flow-novice pair --start --monitor # Continuous monitoring dashboard
47
+ \`\`\`
48
+
49
+ ## 📊 VERIFICATION REQUIREMENTS BY AGENT TYPE
50
+
51
+ ### Coder Agents
52
+ - **Compile**: Code must compile without errors (35% weight)
53
+ - **Test**: All tests must pass (25% weight)
54
+ - **Lint**: Code quality checks (20% weight)
55
+ - **Typecheck**: Type safety verification (20% weight)
56
+
57
+ ### Reviewer Agents
58
+ - **Code Analysis**: Static code analysis
59
+ - **Security Scan**: Vulnerability detection
60
+ - **Performance Check**: Regression testing
61
+
62
+ ### Tester Agents
63
+ - **Unit Tests**: Component-level testing
64
+ - **Integration Tests**: System-wide validation
65
+ - **Coverage Check**: Minimum coverage thresholds
66
+
67
+ ### Planner Agents
68
+ - **Task Decomposition**: Valid task breakdown
69
+ - **Dependency Check**: Dependency validation
70
+ - **Feasibility**: Resource analysis
71
+
72
+ ## 🔄 BACKGROUND TASK MANAGEMENT
73
+
74
+ ### Running Verification in Background
75
+ \`\`\`javascript
76
+ // Use run_in_background parameter for continuous monitoring
77
+ {
78
+ "tool": "Bash",
79
+ "command": "./claude-flow-novice pair --start --monitor",
80
+ "run_in_background": true // Enables background execution
81
+ }
82
+ \`\`\`
83
+
84
+ ### Managing Background Tasks
85
+ \`\`\`bash
86
+ # Interactive management
87
+ /bashes # View all background tasks
88
+
89
+ # Check specific verification task
90
+ "Check status of bash_1" # Via prompt to Claude
91
+
92
+ # Monitor verification output
93
+ "Show output from bash_1" # Real-time monitoring
94
+
95
+ # Kill verification session
96
+ "Kill bash_1" # Stop background verification
97
+ \`\`\`
98
+
99
+ ## 🚨 CRITICAL: CONCURRENT VERIFICATION
100
+
101
+ **MANDATORY**: All verification operations MUST be concurrent:
102
+
103
+ ### ✅ CORRECT - Parallel Verification
104
+ \`\`\`javascript
105
+ [Single Message]:
106
+ // Initialize verification for multiple tasks
107
+ - Bash("./claude-flow-novice verify verify task-1 --agent coder")
108
+ - Bash("./claude-flow-novice verify verify task-2 --agent reviewer")
109
+ - Bash("./claude-flow-novice verify verify task-3 --agent tester")
110
+
111
+ // Check all truth scores
112
+ - Bash("./claude-flow-novice truth --json")
113
+
114
+ // Start monitoring in background
115
+ - Bash("./claude-flow-novice pair --start --monitor", run_in_background: true)
116
+ \`\`\`
117
+
118
+ ### ❌ WRONG - Sequential Verification
119
+ \`\`\`javascript
120
+ Message 1: Verify task-1
121
+ Message 2: Verify task-2
122
+ Message 3: Check truth score
123
+ // This is 3x slower!
124
+ \`\`\`
125
+
126
+ ## 📈 VERIFICATION METRICS & THRESHOLDS
127
+
128
+ ### Target Metrics
129
+ - **Truth Accuracy Rate**: >95%
130
+ - **Integration Success Rate**: >90%
131
+ - **Automated Rollback Frequency**: <5%
132
+ - **Human Intervention Rate**: <10%
133
+
134
+ ### Verification Modes
135
+ | Mode | Threshold | Auto-Rollback | Use Case |
136
+ |------|-----------|---------------|----------|
137
+ | **Strict** | 0.95 | ✅ Enabled | Production |
138
+ | **Moderate** | 0.85 | ❌ Disabled | Development |
139
+ | **Development** | 0.75 | ❌ Disabled | Prototyping |
140
+
141
+ ## 🤝 PAIR PROGRAMMING WORKFLOW
142
+
143
+ ### 1. Start Session
144
+ \`\`\`bash
145
+ # Initialize pair programming with verification
146
+ ./claude-flow-novice pair --start --mode strict
147
+ \`\`\`
148
+
149
+ ### 2. Real-time Verification Cycle
150
+ \`\`\`
151
+ Developer writes code
152
+
153
+ AI agent reviews in real-time
154
+
155
+ Verification engine checks:
156
+ - Compilation (35%)
157
+ - Tests (25%)
158
+ - Linting (20%)
159
+ - Type safety (20%)
160
+
161
+ Truth score calculated
162
+
163
+ Pass (>0.95) → Accept change
164
+ Fail (<0.95) → Suggest fixes or rollback
165
+ \`\`\`
166
+
167
+ ### 3. Continuous Monitoring
168
+ \`\`\`bash
169
+ # Monitor in background
170
+ ./claude-flow-novice pair --start --monitor &
171
+
172
+ # Check verification output
173
+ /bashes # Interactive view
174
+ "Check bash_1 output" # Via prompt
175
+ \`\`\`
176
+
177
+ ## 🔒 SECURITY & AUDIT FEATURES
178
+
179
+ ### Cryptographic Verification
180
+ - All verification results are cryptographically signed
181
+ - SHA256 checksums for integrity
182
+ - Immutable audit trail
183
+
184
+ ### Byzantine Fault Tolerance
185
+ - Protection against incorrect agents
186
+ - Consensus requirements (2/3+ majority)
187
+ - Automatic agent quarantine
188
+
189
+ ### Audit Trail
190
+ \`\`\`bash
191
+ # View verification history
192
+ cat .swarm/verification-memory.json | jq .history
193
+
194
+ # Check agent reliability
195
+ ./claude-flow-novice truth --agent coder --detailed
196
+ \`\`\`
197
+
198
+ ## 🚀 QUICK START VERIFICATION WORKFLOW
199
+
200
+ ### Step 1: Initialize Project with Verification
201
+ \`\`\`bash
202
+ # Initialize with verification-first approach
203
+ npx claude-flow@alpha init --verify --pair
204
+
205
+ # Set up strict verification
206
+ ./claude-flow-novice verify init strict
207
+ \`\`\`
208
+
209
+ ### Step 2: Start Development with Pair Programming
210
+ \`\`\`bash
211
+ # Start pair programming session
212
+ ./claude-flow-novice pair --start --mode strict --monitor &
213
+
214
+ # Monitor verification (background task)
215
+ /bashes # Check bash_1 status
216
+ \`\`\`
217
+
218
+ ### Step 3: Develop with Continuous Verification
219
+ \`\`\`bash
220
+ # All changes are automatically verified
221
+ # Truth scores maintained above 0.95
222
+ # Auto-rollback on verification failures
223
+ \`\`\`
224
+
225
+ ### Step 4: Check Truth Metrics
226
+ \`\`\`bash
227
+ # View current truth scores
228
+ ./claude-flow-novice truth
229
+
230
+ # Generate detailed report
231
+ ./claude-flow-novice truth --report --export metrics.json
232
+ \`\`\`
233
+
234
+ ## 📋 VERIFICATION CHECKLIST
235
+
236
+ Before ANY operation:
237
+ - ✅ Is verification system initialized?
238
+ - ✅ Is pair programming mode active?
239
+ - ✅ Are background monitors running?
240
+ - ✅ Is truth threshold configured correctly?
241
+ - ✅ Are all agents configured for verification?
242
+
243
+ ## 🛠️ BUILD COMMANDS WITH VERIFICATION
244
+
245
+ ### Standard Commands (with verification)
246
+ - \`npm run build\`: Build with verification checks
247
+ - \`npm run test\`: Test with truth scoring
248
+ - \`npm run lint\`: Lint with verification tracking
249
+ - \`npm run typecheck\`: Type check with validation
250
+
251
+ ### Verification Commands
252
+ - \`./claude-flow-novice verify status\`: Check system status
253
+ - \`./claude-flow-novice verify verify <task>\`: Run verification
254
+ - \`./claude-flow-novice truth\`: View truth scores
255
+ - \`./claude-flow-novice pair --start\`: Begin pair programming
256
+
257
+ ## 💾 PERSISTENT VERIFICATION MEMORY
258
+
259
+ Verification data stored in:
260
+ - \`.swarm/verification-memory.json\`: Verification history
261
+ - \`.swarm/memory.db\`: Persistent swarm memory
262
+ - \`.claude/verification-config.json\`: Custom configuration
263
+
264
+ ## 🎯 AGENT VERIFICATION PATTERNS
265
+
266
+ ### Full-Stack Development with Verification
267
+ \`\`\`javascript
268
+ // Deploy agents with verification requirements
269
+ Task("System architecture", "Design with verification", "system-architect")
270
+ Task("Backend APIs", "Implement with 95% accuracy", "backend-dev")
271
+ Task("Frontend", "Build with validation", "mobile-dev")
272
+ Task("Testing", "Comprehensive verification", "tester")
273
+ Task("Review", "Verify all changes", "reviewer")
274
+ \`\`\`
275
+
276
+ ### Verification-First TDD
277
+ \`\`\`javascript
278
+ // TDD with mandatory verification
279
+ Task("Write failing tests", "Verify test quality", "tester")
280
+ Task("Implement code", "Verify implementation", "coder")
281
+ Task("Refactor", "Verify improvements", "reviewer")
282
+ Task("Validate", "Final verification", "production-validator")
283
+ \`\`\`
284
+
285
+ ## ⚡ PERFORMANCE WITH VERIFICATION
286
+
287
+ ### Optimized Verification
288
+ - **Parallel Checks**: Run all verifications concurrently
289
+ - **Cached Results**: Skip unchanged file verification
290
+ - **Smart Batching**: Group related verifications
291
+ - **Background Execution**: Non-blocking verification
292
+
293
+ ### Expected Performance
294
+ - Verification overhead: <10% for most operations
295
+ - Truth score calculation: <500ms
296
+ - Rollback execution: <2 seconds
297
+ - Background monitoring: Minimal impact
298
+
299
+ ## 🔄 AUTOMATED WORKFLOWS
300
+
301
+ ### CI/CD Integration
302
+ \`\`\`yaml
303
+ # .github/workflows/verification.yml
304
+ - name: Run Verification
305
+ run: |
306
+ npx claude-flow-novice verify init strict
307
+ npx claude-flow-novice verify verify \${{ github.run_id }}
308
+ npx claude-flow-novice truth --threshold 0.95
309
+ \`\`\`
310
+
311
+ ### Pre-commit Hooks
312
+ \`\`\`bash
313
+ # .git/hooks/pre-commit
314
+ #!/bin/bash
315
+ npx claude-flow-novice verify verify pre-commit --agent coder
316
+ SCORE=\$(npx claude-flow-novice truth --json | jq .averageScore)
317
+ if [ "\$SCORE" -lt "0.85" ]; then
318
+ echo "❌ Commit blocked: Truth score \$SCORE below threshold"
319
+ exit 1
320
+ fi
321
+ \`\`\`
322
+
323
+ ## 📚 DOCUMENTATION
324
+
325
+ - [Truth Verification System](https://github.com/ruvnet/claude-flow/wiki/Truth-Verification-System)
326
+ - [Pair Programming Guide](https://github.com/ruvnet/claude-flow/wiki/Pair-Programming-System)
327
+ - [Background Commands](https://github.com/ruvnet/claude-flow/wiki/background-commands)
328
+ - [Agent Verification](https://github.com/ruvnet/claude-flow/wiki/Agent-Verification)
329
+
330
+ ## 🚨 IMPORTANT REMINDERS
331
+
332
+ 1. **Truth is Enforced**: Every operation requires verification
333
+ 2. **Parallel Execution**: All verifications run concurrently
334
+ 3. **Background Monitoring**: Use run_in_background for continuous checks
335
+ 4. **Persistent Memory**: All verification data is saved
336
+ 5. **Auto-Rollback**: Failed verifications trigger automatic recovery
337
+
338
+ ---
339
+
340
+ Remember: **"Truth is enforced, not assumed"** - All operations require verification!
341
+ `;
342
+ }
343
+
344
+ export function createVerificationSettingsJson() {
345
+ return JSON.stringify(
346
+ {
347
+ version: '1.0.0',
348
+ verification: {
349
+ enabled: true,
350
+ mode: 'strict',
351
+ threshold: 0.95,
352
+ autoRollback: true,
353
+ requireConsensus: true,
354
+ },
355
+ pairProgramming: {
356
+ enabled: true,
357
+ mode: 'strict',
358
+ realTimeVerification: true,
359
+ continuousMonitoring: true,
360
+ backgroundExecution: true,
361
+ },
362
+ agentVerification: {
363
+ coder: {
364
+ checks: ['compile', 'test', 'lint', 'typecheck'],
365
+ weights: {
366
+ compile: 0.35,
367
+ test: 0.25,
368
+ lint: 0.2,
369
+ typecheck: 0.2,
370
+ },
371
+ },
372
+ reviewer: {
373
+ checks: ['code-analysis', 'security-scan', 'performance-check'],
374
+ weights: {
375
+ 'code-analysis': 0.4,
376
+ 'security-scan': 0.35,
377
+ 'performance-check': 0.25,
378
+ },
379
+ },
380
+ tester: {
381
+ checks: ['unit-tests', 'integration-tests', 'coverage-check'],
382
+ weights: {
383
+ 'unit-tests': 0.35,
384
+ 'integration-tests': 0.35,
385
+ 'coverage-check': 0.3,
386
+ },
387
+ },
388
+ planner: {
389
+ checks: ['task-decomposition', 'dependency-check', 'feasibility'],
390
+ weights: {
391
+ 'task-decomposition': 0.4,
392
+ 'dependency-check': 0.3,
393
+ feasibility: 0.3,
394
+ },
395
+ },
396
+ },
397
+ backgroundTasks: {
398
+ autoBackground: {
399
+ enabled: true,
400
+ patterns: [
401
+ './claude-flow-novice pair --start',
402
+ './claude-flow-novice verify verify',
403
+ './claude-flow-novice truth --monitor',
404
+ '*--monitor*',
405
+ '*--watch*',
406
+ ],
407
+ },
408
+ },
409
+ metrics: {
410
+ targets: {
411
+ truthAccuracy: 0.95,
412
+ integrationSuccess: 0.9,
413
+ rollbackFrequency: 0.05,
414
+ humanIntervention: 0.1,
415
+ },
416
+ },
417
+ hooks: {
418
+ 'pre-commit': {
419
+ enabled: true,
420
+ commands: ['npx claude-flow-novice verify verify pre-commit --agent coder'],
421
+ threshold: 0.85,
422
+ },
423
+ 'post-task': {
424
+ enabled: true,
425
+ commands: ['npx claude-flow-novice truth --json', 'npx claude-flow-novice verify status'],
426
+ },
427
+ },
428
+ },
429
+ null,
430
+ 2,
431
+ );
432
+ }
@@ -0,0 +1,4 @@
1
+ // init.js - Initialize Claude Code integration files
2
+ // This file now re-exports from the modular init structure
3
+
4
+ export { initCommand } from './init/index.js';