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,259 @@
1
+ // memory-bank-md.js - Memory Bank templates
2
+
3
+ export function createMinimalMemoryBankMd() {
4
+ return `# Memory Bank
5
+
6
+ ## Quick Reference
7
+ - Project uses SQLite for memory persistence
8
+ - Memory is organized by namespaces
9
+ - Query with \`npx claude-flow-novice memory query <search>\`
10
+
11
+ ## Storage Location
12
+ - Database: \`./memory/claude-flow-data.json\`
13
+ - Sessions: \`./memory/sessions/\`
14
+ `;
15
+ }
16
+
17
+ export function createFullMemoryBankMd() {
18
+ return `# Memory Bank Configuration
19
+
20
+ ## Overview
21
+ The Claude-Flow memory system provides persistent storage and intelligent retrieval of information across agent sessions. It uses a hybrid approach combining SQL databases with semantic search capabilities.
22
+
23
+ ## Storage Backends
24
+ - **Primary**: JSON database (\`./memory/claude-flow-data.json\`)
25
+ - **Sessions**: File-based storage in \`./memory/sessions/\`
26
+ - **Cache**: In-memory cache for frequently accessed data
27
+
28
+ ## Memory Organization
29
+ - **Namespaces**: Logical groupings of related information
30
+ - **Sessions**: Time-bound conversation contexts
31
+ - **Indexing**: Automatic content indexing for fast retrieval
32
+ - **Replication**: Optional distributed storage support
33
+
34
+ ## Commands
35
+ - \`npx claude-flow-novice memory query <search>\`: Search stored information
36
+ - \`npx claude-flow-novice memory stats\`: Show memory usage statistics
37
+ - \`npx claude-flow-novice memory export <file>\`: Export memory to file
38
+ - \`npx claude-flow-novice memory import <file>\`: Import memory from file
39
+
40
+ ## Configuration
41
+ Memory settings are configured in \`claude-flow.config.json\`:
42
+ \`\`\`json
43
+ {
44
+ "memory": {
45
+ "backend": "json",
46
+ "path": "./memory/claude-flow-data.json",
47
+ "cacheSize": 1000,
48
+ "indexing": true,
49
+ "namespaces": ["default", "agents", "tasks", "sessions"],
50
+ "retentionPolicy": {
51
+ "sessions": "30d",
52
+ "tasks": "90d",
53
+ "agents": "permanent"
54
+ }
55
+ }
56
+ }
57
+ \`\`\`
58
+
59
+ ## Best Practices
60
+ - Use descriptive namespaces for different data types
61
+ - Regular memory exports for backup purposes
62
+ - Monitor memory usage with stats command
63
+ - Clean up old sessions periodically
64
+
65
+ ## Memory Types
66
+ - **Episodic**: Conversation and interaction history
67
+ - **Semantic**: Factual knowledge and relationships
68
+ - **Procedural**: Task patterns and workflows
69
+ - **Meta**: System configuration and preferences
70
+
71
+ ## Integration Notes
72
+ - Memory is automatically synchronized across agents
73
+ - Search supports both exact match and semantic similarity
74
+ - Memory contents are private to your local instance
75
+ - No data is sent to external services without explicit commands
76
+ `;
77
+ }
78
+
79
+ // Create optimized Memory Bank with batchtools support
80
+ export async function createOptimizedMemoryBankMd() {
81
+ return `# Memory Bank Configuration (Batchtools Optimized)
82
+
83
+ ## Overview
84
+ The Claude-Flow memory system provides persistent storage and intelligent retrieval of information across agent sessions. It uses a hybrid approach combining SQL databases with semantic search capabilities.
85
+
86
+ **🚀 Batchtools Enhancement**: This configuration includes parallel processing capabilities for memory operations, batch storage, and concurrent retrieval optimizations.
87
+
88
+ ## Storage Backends (Enhanced)
89
+ - **Primary**: JSON database (\`./memory/claude-flow-data.json\`) with parallel access
90
+ - **Sessions**: File-based storage in \`./memory/sessions/\` with concurrent operations
91
+ - **Cache**: In-memory cache with batch updates for frequently accessed data
92
+ - **Index**: Parallel indexing system for faster search and retrieval
93
+ - **Backup**: Concurrent backup system with automatic versioning
94
+
95
+ ## Batchtools Memory Features
96
+
97
+ ### Parallel Operations
98
+ - **Concurrent Storage**: Store multiple entries simultaneously
99
+ - **Batch Retrieval**: Query multiple namespaces in parallel
100
+ - **Parallel Indexing**: Build and update indexes concurrently
101
+ - **Concurrent Backups**: Export/import operations with parallel processing
102
+
103
+ ### Performance Optimizations
104
+ - **Smart Batching**: Group related memory operations for efficiency
105
+ - **Pipeline Processing**: Chain memory operations with parallel stages
106
+ - **Resource Management**: Efficient memory usage with parallel access patterns
107
+ - **Concurrent Validation**: Validate data integrity across multiple operations
108
+
109
+ ## Commands (Batchtools Enhanced)
110
+
111
+ ### Standard Commands
112
+ - \`npx claude-flow-novice memory query <search>\`: Search stored information
113
+ - \`npx claude-flow-novice memory stats\`: Show memory usage statistics
114
+ - \`npx claude-flow-novice memory export <file>\`: Export memory to file
115
+ - \`npx claude-flow-novice memory import <file>\`: Import memory from file
116
+
117
+ ### Batchtools Commands
118
+ - \`npx claude-flow-novice memory batch-store <entries-file>\`: Store multiple entries in parallel
119
+ - \`npx claude-flow-novice memory parallel-query <queries-file>\`: Execute multiple queries concurrently
120
+ - \`npx claude-flow-novice memory concurrent-export <namespaces>\`: Export multiple namespaces simultaneously
121
+ - \`npx claude-flow-novice memory batch-cleanup <retention-config>\`: Clean up multiple namespaces in parallel
122
+
123
+ ## Configuration (Enhanced)
124
+ Memory settings are configured in \`claude-flow.config.json\` with batchtools optimizations:
125
+ \`\`\`json
126
+ {
127
+ "memory": {
128
+ "backend": "json",
129
+ "path": "./memory/claude-flow-data.json",
130
+ "cacheSize": 5000,
131
+ "indexing": true,
132
+ "batchtools": {
133
+ "enabled": true,
134
+ "maxConcurrent": 10,
135
+ "batchSize": 100,
136
+ "parallelIndexing": true,
137
+ "concurrentBackups": true
138
+ },
139
+ "namespaces": ["default", "agents", "tasks", "sessions", "sparc", "batchtools"],
140
+ "retentionPolicy": {
141
+ "sessions": "30d",
142
+ "tasks": "90d",
143
+ "agents": "permanent",
144
+ "sparc": "180d",
145
+ "batchtools": "60d"
146
+ },
147
+ "performance": {
148
+ "enableParallelAccess": true,
149
+ "concurrentQueries": 20,
150
+ "batchWriteSize": 50,
151
+ "parallelIndexUpdate": true
152
+ }
153
+ }
154
+ }
155
+ \`\`\`
156
+
157
+ ## Batchtools Integration
158
+
159
+ ### Parallel Storage Patterns
160
+ \`\`\`bash
161
+ # Store SPARC workflow data in parallel
162
+ npx claude-flow-novice memory batch-store sparc-data.json --namespace sparc --parallel
163
+
164
+ # Concurrent query across multiple namespaces
165
+ npx claude-flow-novice memory parallel-query "authentication design" --namespaces arch,impl,test
166
+
167
+ # Batch export with parallel compression
168
+ npx claude-flow-novice memory concurrent-export project-backup --compress --parallel
169
+ \`\`\`
170
+
171
+ ### Performance Monitoring
172
+ \`\`\`bash
173
+ # Monitor concurrent operations
174
+ npx claude-flow-novice memory stats --concurrent --verbose
175
+
176
+ # Analyze batch operation performance
177
+ npx claude-flow-novice memory performance-report --batchtools
178
+
179
+ # Check parallel indexing status
180
+ npx claude-flow-novice memory index-status --parallel
181
+ \`\`\`
182
+
183
+ ## Memory Organization (Enhanced)
184
+
185
+ ### Namespace Structure
186
+ - **default**: General storage with parallel access
187
+ - **agents**: Agent data with concurrent updates
188
+ - **tasks**: Task information with batch processing
189
+ - **sessions**: Session contexts with parallel indexing
190
+ - **sparc**: SPARC methodology data with concurrent operations
191
+ - **batchtools**: Performance metrics and optimization data
192
+
193
+ ### Memory Types (Optimized)
194
+ - **Episodic**: Conversation history with parallel retrieval
195
+ - **Semantic**: Knowledge base with concurrent search
196
+ - **Procedural**: Workflow patterns with batch analysis
197
+ - **Meta**: System configuration with parallel validation
198
+ - **Performance**: Batchtools metrics and optimization data
199
+
200
+ ## Best Practices (Batchtools Enhanced)
201
+
202
+ ### Performance Optimization
203
+ - Use batch operations for multiple related memory operations
204
+ - Enable parallel processing for independent operations
205
+ - Monitor concurrent operation limits to avoid resource exhaustion
206
+ - Implement smart batching for related data storage
207
+
208
+ ### Data Management
209
+ - Use concurrent exports for regular backup schedules
210
+ - Implement parallel cleanup routines for maintenance
211
+ - Enable batch validation for data integrity checks
212
+ - Use parallel indexing for improved search performance
213
+
214
+ ### Resource Management
215
+ - Monitor memory usage with concurrent operations
216
+ - Implement throttling for batch operations under heavy load
217
+ - Use parallel processing judiciously based on system resources
218
+ - Balance concurrent operations with system stability
219
+
220
+ ## Performance Benchmarks
221
+
222
+ ### Batchtools Performance Improvements
223
+ - **Storage Operations**: Up to 400% faster with parallel writes
224
+ - **Query Performance**: 300% improvement with concurrent searches
225
+ - **Export/Import**: 250% faster with parallel processing
226
+ - **Index Updates**: 350% improvement with concurrent indexing
227
+ - **Cleanup Operations**: 200% faster with batch processing
228
+
229
+ ## Integration Notes (Enhanced)
230
+ - Memory is automatically synchronized across agents with parallel updates
231
+ - Search supports both exact match and semantic similarity with concurrent processing
232
+ - Memory contents are private to your local instance with enhanced security
233
+ - No data is sent to external services without explicit commands
234
+ - Batchtools operations are logged for performance analysis and debugging
235
+ - Concurrent operations include automatic retry and error recovery mechanisms
236
+
237
+ ## Troubleshooting Batchtools
238
+
239
+ ### Common Issues
240
+ - **Concurrent Limit Exceeded**: Reduce maxConcurrent setting in configuration
241
+ - **Batch Size Too Large**: Decrease batchSize for memory-constrained systems
242
+ - **Index Lock Conflicts**: Enable parallelIndexing with appropriate locking
243
+ - **Resource Exhaustion**: Monitor system resources during concurrent operations
244
+
245
+ ### Debug Commands
246
+ \`\`\`bash
247
+ # Check concurrent operation status
248
+ npx claude-flow-novice memory debug --concurrent
249
+
250
+ # Analyze batch operation performance
251
+ npx claude-flow-novice memory analyze --batchtools --verbose
252
+
253
+ # Validate parallel index integrity
254
+ npx claude-flow-novice memory index-validate --parallel --repair
255
+ \`\`\`
256
+
257
+ For more information about memory system optimization, see: https://github.com/ruvnet/claude-code-flow/docs/memory-batchtools.md
258
+ `;
259
+ }
@@ -0,0 +1,16 @@
1
+ # Memory Bank
2
+
3
+ ## Overview
4
+ This file serves as a persistent memory bank for important project context that should be retained across sessions.
5
+
6
+ ## Project Context
7
+ <!-- Add project-specific information here -->
8
+
9
+ ## Key Decisions
10
+ <!-- Document important decisions and their rationale -->
11
+
12
+ ## Code Patterns
13
+ <!-- Document established patterns and conventions -->
14
+
15
+ ## Session History
16
+ <!-- Track significant session outcomes -->
@@ -0,0 +1,72 @@
1
+ // readme-files.js - README templates for various directories
2
+
3
+ export function createAgentsReadme() {
4
+ return `# Agent Memory Storage
5
+
6
+ ## Purpose
7
+ This directory stores agent-specific memory data, configurations, and persistent state information for individual Claude agents in the orchestration system.
8
+
9
+ ## Structure
10
+ Each agent gets its own subdirectory for isolated memory storage:
11
+
12
+ \`\`\`
13
+ memory/agents/
14
+ ├── agent_001/
15
+ │ ├── state.json # Agent state and configuration
16
+ │ ├── knowledge.md # Agent-specific knowledge base
17
+ │ ├── tasks.json # Completed and active tasks
18
+ │ └── calibration.json # Agent-specific calibrations
19
+ ├── agent_002/
20
+ │ └── ...
21
+ └── shared/
22
+ ├── common_knowledge.md # Shared knowledge across agents
23
+ └── global_config.json # Global agent configurations
24
+ \`\`\`
25
+
26
+ ## Usage Guidelines
27
+ 1. **Agent Isolation**: Each agent should only read/write to its own directory
28
+ 2. **Shared Resources**: Use the \`shared/\` directory for cross-agent information
29
+ 3. **State Persistence**: Update state.json whenever agent status changes
30
+ 4. **Knowledge Sharing**: Document discoveries in knowledge.md files
31
+ 5. **Cleanup**: Remove directories for terminated agents periodically
32
+
33
+ ## Last Updated
34
+ ${new Date().toISOString()}
35
+ `;
36
+ }
37
+
38
+ export function createSessionsReadme() {
39
+ return `# Session Memory Storage
40
+
41
+ ## Purpose
42
+ This directory stores session-based memory data, conversation history, and contextual information for development sessions using the Claude-Flow orchestration system.
43
+
44
+ ## Structure
45
+ Sessions are organized by date and session ID for easy retrieval:
46
+
47
+ \`\`\`
48
+ memory/sessions/
49
+ ├── 2024-01-10/
50
+ │ ├── session_001/
51
+ │ │ ├── metadata.json # Session metadata and configuration
52
+ │ │ ├── conversation.md # Full conversation history
53
+ │ │ ├── decisions.md # Key decisions and rationale
54
+ │ │ ├── artifacts/ # Generated files and outputs
55
+ │ │ └── coordination_state/ # Coordination system snapshots
56
+ │ └── ...
57
+ └── shared/
58
+ ├── patterns.md # Common session patterns
59
+ └── templates/ # Session template files
60
+ \`\`\`
61
+
62
+ ## Usage Guidelines
63
+ 1. **Session Isolation**: Each session gets its own directory
64
+ 2. **Metadata Completeness**: Always fill out session metadata
65
+ 3. **Conversation Logging**: Document all significant interactions
66
+ 4. **Artifact Organization**: Structure generated files clearly
67
+ 5. **State Preservation**: Snapshot coordination state regularly
68
+
69
+ ## Last Updated
70
+ ${new Date().toISOString()}
71
+ `;
72
+ }