@monoes/monomindcli 1.10.57 → 1.11.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 (554) hide show
  1. package/.claude/agents/core/coordinator.md +71 -0
  2. package/.claude/agents/generated/case-analyst.md +50 -0
  3. package/.claude/agents/generated/copy-editor.md +45 -0
  4. package/.claude/agents/generated/court-reporter.md +50 -0
  5. package/.claude/agents/generated/defender.md +51 -0
  6. package/.claude/agents/generated/editor-in-chief.md +45 -0
  7. package/.claude/agents/generated/fact-checker.md +45 -0
  8. package/.claude/agents/generated/judge.md +51 -0
  9. package/.claude/agents/generated/prosecutor.md +51 -0
  10. package/.claude/agents/generated/reporter.md +45 -0
  11. package/.claude/commands/hooks/README.md +1 -1
  12. package/.claude/commands/hooks/overview.md +1 -1
  13. package/.claude/commands/mastermind/_repeat.md +1 -1
  14. package/.claude/commands/mastermind/do.md +3 -1
  15. package/.claude/commands/mastermind/help.md +2 -2
  16. package/.claude/commands/mastermind/master.md +39 -6
  17. package/.claude/commands/mastermind/memory.md +1 -1
  18. package/.claude/commands/memory/memory-search.md +2 -2
  19. package/.claude/commands/monitoring/status.md +1 -1
  20. package/.claude/commands/{browse.md → monobrowse.md} +2 -2
  21. package/.claude/commands/sparc.md +1 -1
  22. package/.claude/helpers/handlers/graph-status-handler.cjs +1 -1
  23. package/.claude/helpers/loop-tracker.cjs +1 -1
  24. package/.claude/skills/agent-browser-testing/SKILL.md +1 -1
  25. package/.claude/skills/hooks-automation/SKILL.md +0 -3
  26. package/.claude/skills/mastermind/build.md +1 -1
  27. package/.claude/skills/mastermind/code-quality-reviewer-prompt.md +60 -0
  28. package/.claude/skills/mastermind/content.md +1 -1
  29. package/.claude/skills/mastermind/createorg.md +79 -2
  30. package/.claude/skills/mastermind/design.md +3 -1
  31. package/.claude/skills/mastermind/finance.md +1 -1
  32. package/.claude/skills/mastermind/implementer-prompt.md +109 -0
  33. package/.claude/skills/mastermind/marketing.md +1 -1
  34. package/.claude/skills/mastermind/ops.md +1 -1
  35. package/.claude/skills/mastermind/plan.md +20 -2
  36. package/.claude/skills/mastermind/release.md +1 -1
  37. package/.claude/skills/mastermind/research.md +1 -1
  38. package/.claude/skills/mastermind/review.md +1 -1
  39. package/.claude/skills/mastermind/sales.md +1 -1
  40. package/.claude/skills/mastermind/spec-reviewer-prompt.md +63 -0
  41. package/.claude/skills/sparc-methodology/SKILL.md +3 -3
  42. package/.claude/skills/swarm-advanced/SKILL.md +1 -4
  43. package/README.md +18 -32
  44. package/dist/src/agents/registry-builder.d.ts +1 -7
  45. package/dist/src/agents/registry-builder.d.ts.map +1 -1
  46. package/dist/src/agents/registry-builder.js +10 -6
  47. package/dist/src/agents/registry-builder.js.map +1 -1
  48. package/dist/src/benchmarks/benchmark-runner.d.ts +59 -12
  49. package/dist/src/benchmarks/benchmark-runner.d.ts.map +1 -1
  50. package/dist/src/benchmarks/benchmark-runner.js +67 -13
  51. package/dist/src/benchmarks/benchmark-runner.js.map +1 -1
  52. package/dist/src/benchmarks/metric-evaluators.d.ts.map +1 -1
  53. package/dist/src/benchmarks/metric-evaluators.js.map +1 -1
  54. package/dist/src/benchmarks/pretrain/index.d.ts +0 -13
  55. package/dist/src/benchmarks/pretrain/index.d.ts.map +1 -1
  56. package/dist/src/benchmarks/pretrain/index.js.map +1 -1
  57. package/dist/src/commands/agent-wasm.d.ts +2 -2
  58. package/dist/src/commands/agent-wasm.js +5 -5
  59. package/dist/src/commands/agent.d.ts.map +1 -1
  60. package/dist/src/commands/agent.js +1 -6
  61. package/dist/src/commands/agent.js.map +1 -1
  62. package/dist/src/commands/analyze.d.ts +1 -1
  63. package/dist/src/commands/analyze.d.ts.map +1 -1
  64. package/dist/src/commands/analyze.js +8 -18
  65. package/dist/src/commands/analyze.js.map +1 -1
  66. package/dist/src/commands/doctor.d.ts.map +1 -1
  67. package/dist/src/commands/doctor.js +53 -3
  68. package/dist/src/commands/doctor.js.map +1 -1
  69. package/dist/src/commands/embeddings.d.ts.map +1 -1
  70. package/dist/src/commands/embeddings.js +9 -33
  71. package/dist/src/commands/embeddings.js.map +1 -1
  72. package/dist/src/commands/hooks.d.ts.map +1 -1
  73. package/dist/src/commands/hooks.js +24 -76
  74. package/dist/src/commands/hooks.js.map +1 -1
  75. package/dist/src/commands/index.d.ts +4 -6
  76. package/dist/src/commands/index.d.ts.map +1 -1
  77. package/dist/src/commands/index.js +8 -15
  78. package/dist/src/commands/index.js.map +1 -1
  79. package/dist/src/commands/init.js +2 -2
  80. package/dist/src/commands/init.js.map +1 -1
  81. package/dist/src/commands/issues.d.ts.map +1 -1
  82. package/dist/src/commands/issues.js +16 -11
  83. package/dist/src/commands/issues.js.map +1 -1
  84. package/dist/src/commands/memory.js +6 -6
  85. package/dist/src/commands/memory.js.map +1 -1
  86. package/dist/src/commands/migrate.d.ts.map +1 -1
  87. package/dist/src/commands/migrate.js +1 -2
  88. package/dist/src/commands/migrate.js.map +1 -1
  89. package/dist/src/commands/monograph.d.ts.map +1 -1
  90. package/dist/src/commands/monograph.js +18 -11
  91. package/dist/src/commands/monograph.js.map +1 -1
  92. package/dist/src/commands/monovector/backup.d.ts +11 -0
  93. package/dist/src/commands/monovector/backup.d.ts.map +1 -0
  94. package/dist/src/commands/{ruvector → monovector}/backup.js +25 -25
  95. package/dist/src/commands/monovector/backup.js.map +1 -0
  96. package/dist/src/commands/monovector/benchmark.d.ts +11 -0
  97. package/dist/src/commands/monovector/benchmark.d.ts.map +1 -0
  98. package/dist/src/commands/{ruvector → monovector}/benchmark.js +14 -14
  99. package/dist/src/commands/monovector/benchmark.js.map +1 -0
  100. package/dist/src/commands/monovector/import.d.ts +18 -0
  101. package/dist/src/commands/monovector/import.d.ts.map +1 -0
  102. package/dist/src/commands/{ruvector → monovector}/import.js +21 -21
  103. package/dist/src/commands/monovector/import.js.map +1 -0
  104. package/dist/src/commands/{ruvector → monovector}/index.d.ts +6 -6
  105. package/dist/src/commands/monovector/index.d.ts.map +1 -0
  106. package/dist/src/commands/{ruvector → monovector}/index.js +22 -22
  107. package/dist/src/commands/monovector/index.js.map +1 -0
  108. package/dist/src/commands/monovector/init.d.ts +11 -0
  109. package/dist/src/commands/monovector/init.d.ts.map +1 -0
  110. package/dist/src/commands/{ruvector → monovector}/init.js +36 -36
  111. package/dist/src/commands/monovector/init.js.map +1 -0
  112. package/dist/src/commands/monovector/migrate.d.ts +11 -0
  113. package/dist/src/commands/monovector/migrate.d.ts.map +1 -0
  114. package/dist/src/commands/{ruvector → monovector}/migrate.js +16 -16
  115. package/dist/src/commands/monovector/migrate.js.map +1 -0
  116. package/dist/src/commands/{ruvector → monovector}/optimize.d.ts +2 -2
  117. package/dist/src/commands/monovector/optimize.d.ts.map +1 -0
  118. package/dist/src/commands/{ruvector → monovector}/optimize.js +10 -10
  119. package/dist/src/commands/monovector/optimize.js.map +1 -0
  120. package/dist/src/commands/monovector/setup.d.ts +18 -0
  121. package/dist/src/commands/monovector/setup.d.ts.map +1 -0
  122. package/dist/src/commands/{ruvector → monovector}/setup.js +77 -77
  123. package/dist/src/commands/monovector/setup.js.map +1 -0
  124. package/dist/src/commands/{ruvector → monovector}/status.d.ts +2 -2
  125. package/dist/src/commands/monovector/status.d.ts.map +1 -0
  126. package/dist/src/commands/{ruvector → monovector}/status.js +34 -34
  127. package/dist/src/commands/monovector/status.js.map +1 -0
  128. package/dist/src/commands/neural.d.ts +1 -1
  129. package/dist/src/commands/neural.d.ts.map +1 -1
  130. package/dist/src/commands/neural.js +31 -608
  131. package/dist/src/commands/neural.js.map +1 -1
  132. package/dist/src/commands/performance.d.ts.map +1 -1
  133. package/dist/src/commands/performance.js +7 -10
  134. package/dist/src/commands/performance.js.map +1 -1
  135. package/dist/src/commands/plugins.d.ts.map +1 -1
  136. package/dist/src/commands/plugins.js +3 -4
  137. package/dist/src/commands/plugins.js.map +1 -1
  138. package/dist/src/commands/process.d.ts.map +1 -1
  139. package/dist/src/commands/process.js +5 -12
  140. package/dist/src/commands/process.js.map +1 -1
  141. package/dist/src/commands/progress.d.ts.map +1 -1
  142. package/dist/src/commands/progress.js +16 -16
  143. package/dist/src/commands/progress.js.map +1 -1
  144. package/dist/src/commands/replay.d.ts.map +1 -1
  145. package/dist/src/commands/replay.js.map +1 -1
  146. package/dist/src/commands/route.d.ts +2 -2
  147. package/dist/src/commands/route.js +23 -23
  148. package/dist/src/commands/route.js.map +1 -1
  149. package/dist/src/commands/status.d.ts.map +1 -1
  150. package/dist/src/commands/status.js +0 -3
  151. package/dist/src/commands/status.js.map +1 -1
  152. package/dist/src/commands/swarm.d.ts.map +1 -1
  153. package/dist/src/commands/swarm.js +2 -3
  154. package/dist/src/commands/swarm.js.map +1 -1
  155. package/dist/src/config-adapter.d.ts.map +1 -1
  156. package/dist/src/config-adapter.js +27 -0
  157. package/dist/src/config-adapter.js.map +1 -1
  158. package/dist/src/consensus/audit-writer.d.ts +44 -17
  159. package/dist/src/consensus/audit-writer.d.ts.map +1 -1
  160. package/dist/src/consensus/audit-writer.js.map +1 -1
  161. package/dist/src/dlq/dlq-replayer.d.ts +1 -1
  162. package/dist/src/dlq/dlq-replayer.d.ts.map +1 -1
  163. package/dist/src/index.js +5 -5
  164. package/dist/src/index.js.map +1 -1
  165. package/dist/src/init/claudemd-generator.d.ts.map +1 -1
  166. package/dist/src/init/claudemd-generator.js +10 -14
  167. package/dist/src/init/claudemd-generator.js.map +1 -1
  168. package/dist/src/init/executor.d.ts.map +1 -1
  169. package/dist/src/init/executor.js +17 -27
  170. package/dist/src/init/executor.js.map +1 -1
  171. package/dist/src/init/helpers-generator.js +2 -2
  172. package/dist/src/init/types.d.ts +1 -1
  173. package/dist/src/init/types.d.ts.map +1 -1
  174. package/dist/src/mcp-client.d.ts.map +1 -1
  175. package/dist/src/mcp-client.js +1 -7
  176. package/dist/src/mcp-client.js.map +1 -1
  177. package/dist/src/mcp-server.d.ts.map +1 -1
  178. package/dist/src/mcp-server.js +9 -1
  179. package/dist/src/mcp-server.js.map +1 -1
  180. package/dist/src/mcp-tools/agent-tools.d.ts.map +1 -1
  181. package/dist/src/mcp-tools/agent-tools.js +1 -52
  182. package/dist/src/mcp-tools/agent-tools.js.map +1 -1
  183. package/dist/src/mcp-tools/analyze-tools.js +5 -5
  184. package/dist/src/mcp-tools/analyze-tools.js.map +1 -1
  185. package/dist/src/mcp-tools/browser-tools.d.ts +1 -1
  186. package/dist/src/mcp-tools/browser-tools.d.ts.map +1 -1
  187. package/dist/src/mcp-tools/browser-tools.js +6 -5
  188. package/dist/src/mcp-tools/browser-tools.js.map +1 -1
  189. package/dist/src/mcp-tools/coordination-tools.d.ts +1 -1
  190. package/dist/src/mcp-tools/coordination-tools.d.ts.map +1 -1
  191. package/dist/src/mcp-tools/coordination-tools.js +51 -54
  192. package/dist/src/mcp-tools/coordination-tools.js.map +1 -1
  193. package/dist/src/mcp-tools/daa-tools.d.ts +1 -1
  194. package/dist/src/mcp-tools/daa-tools.d.ts.map +1 -1
  195. package/dist/src/mcp-tools/daa-tools.js.map +1 -1
  196. package/dist/src/mcp-tools/embeddings-tools.js +10 -10
  197. package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
  198. package/dist/src/mcp-tools/guidance-tools.d.ts.map +1 -1
  199. package/dist/src/mcp-tools/guidance-tools.js +0 -24
  200. package/dist/src/mcp-tools/guidance-tools.js.map +1 -1
  201. package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
  202. package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
  203. package/dist/src/mcp-tools/hooks-tools.js +189 -480
  204. package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
  205. package/dist/src/mcp-tools/index.d.ts +0 -2
  206. package/dist/src/mcp-tools/index.d.ts.map +1 -1
  207. package/dist/src/mcp-tools/index.js +0 -2
  208. package/dist/src/mcp-tools/index.js.map +1 -1
  209. package/dist/src/mcp-tools/monograph-compat.d.ts +334 -0
  210. package/dist/src/mcp-tools/monograph-compat.d.ts.map +1 -0
  211. package/dist/src/mcp-tools/monograph-compat.js +1108 -0
  212. package/dist/src/mcp-tools/monograph-compat.js.map +1 -0
  213. package/dist/src/mcp-tools/monograph-tools.d.ts.map +1 -1
  214. package/dist/src/mcp-tools/monograph-tools.js +76 -34
  215. package/dist/src/mcp-tools/monograph-tools.js.map +1 -1
  216. package/dist/src/mcp-tools/neural-tools.d.ts +1 -1
  217. package/dist/src/mcp-tools/neural-tools.js +2 -2
  218. package/dist/src/mcp-tools/neural-tools.js.map +1 -1
  219. package/dist/src/mcp-tools/ruvllm-tools.d.ts +2 -2
  220. package/dist/src/mcp-tools/ruvllm-tools.js +3 -3
  221. package/dist/src/mcp-tools/terminal-tools.d.ts +1 -1
  222. package/dist/src/mcp-tools/terminal-tools.d.ts.map +1 -1
  223. package/dist/src/mcp-tools/terminal-tools.js +29 -19
  224. package/dist/src/mcp-tools/terminal-tools.js.map +1 -1
  225. package/dist/src/mcp-tools/wasm-agent-tools.d.ts +1 -1
  226. package/dist/src/mcp-tools/wasm-agent-tools.js +2 -2
  227. package/dist/src/memory/intelligence.d.ts.map +1 -1
  228. package/dist/src/memory/intelligence.js +14 -8
  229. package/dist/src/memory/intelligence.js.map +1 -1
  230. package/dist/src/memory/memory-bridge.d.ts +17 -2
  231. package/dist/src/memory/memory-bridge.d.ts.map +1 -1
  232. package/dist/src/memory/memory-bridge.js +76 -23
  233. package/dist/src/memory/memory-bridge.js.map +1 -1
  234. package/dist/src/memory/memory-initializer.d.ts +2 -2
  235. package/dist/src/memory/memory-initializer.d.ts.map +1 -1
  236. package/dist/src/memory/memory-initializer.js +37 -39
  237. package/dist/src/memory/memory-initializer.js.map +1 -1
  238. package/dist/src/monovector/capabilities.d.ts +34 -0
  239. package/dist/src/monovector/capabilities.d.ts.map +1 -0
  240. package/dist/src/monovector/capabilities.js +37 -0
  241. package/dist/src/monovector/capabilities.js.map +1 -0
  242. package/dist/src/monovector/command-outcomes.d.ts +37 -0
  243. package/dist/src/monovector/command-outcomes.d.ts.map +1 -0
  244. package/dist/src/monovector/command-outcomes.js +87 -0
  245. package/dist/src/monovector/command-outcomes.js.map +1 -0
  246. package/dist/src/monovector/coverage-router.d.ts +103 -0
  247. package/dist/src/monovector/coverage-router.d.ts.map +1 -0
  248. package/dist/src/monovector/coverage-router.js +337 -0
  249. package/dist/src/monovector/coverage-router.js.map +1 -0
  250. package/dist/src/monovector/coverage-tools.d.ts +14 -0
  251. package/dist/src/monovector/coverage-tools.d.ts.map +1 -0
  252. package/dist/src/monovector/coverage-tools.js +112 -0
  253. package/dist/src/monovector/coverage-tools.js.map +1 -0
  254. package/dist/src/{ruvector → monovector}/diff-classifier.d.ts +2 -2
  255. package/dist/src/monovector/diff-classifier.d.ts.map +1 -0
  256. package/dist/src/monovector/diff-classifier.js.map +1 -0
  257. package/dist/src/monovector/index.d.ts +61 -0
  258. package/dist/src/monovector/index.d.ts.map +1 -0
  259. package/dist/src/monovector/index.js +67 -0
  260. package/dist/src/monovector/index.js.map +1 -0
  261. package/dist/src/monovector/init-state.d.ts +35 -0
  262. package/dist/src/monovector/init-state.d.ts.map +1 -0
  263. package/dist/src/monovector/init-state.js +36 -0
  264. package/dist/src/monovector/init-state.js.map +1 -0
  265. package/dist/src/monovector/route-outcomes.d.ts +55 -0
  266. package/dist/src/monovector/route-outcomes.d.ts.map +1 -0
  267. package/dist/src/monovector/route-outcomes.js +137 -0
  268. package/dist/src/monovector/route-outcomes.js.map +1 -0
  269. package/dist/src/parser.js +3 -3
  270. package/dist/src/parser.js.map +1 -1
  271. package/dist/src/plugins/store/discovery.d.ts.map +1 -1
  272. package/dist/src/plugins/store/discovery.js +0 -31
  273. package/dist/src/plugins/store/discovery.js.map +1 -1
  274. package/dist/src/production/circuit-breaker.d.ts +26 -6
  275. package/dist/src/production/circuit-breaker.d.ts.map +1 -1
  276. package/dist/src/production/circuit-breaker.js.map +1 -1
  277. package/dist/src/production/error-handler.d.ts +55 -30
  278. package/dist/src/production/error-handler.d.ts.map +1 -1
  279. package/dist/src/production/error-handler.js.map +1 -1
  280. package/dist/src/production/index.d.ts +3 -20
  281. package/dist/src/production/index.d.ts.map +1 -1
  282. package/dist/src/production/index.js +3 -15
  283. package/dist/src/production/index.js.map +1 -1
  284. package/dist/src/production/monitoring.d.ts +54 -34
  285. package/dist/src/production/monitoring.d.ts.map +1 -1
  286. package/dist/src/production/monitoring.js +12 -14
  287. package/dist/src/production/monitoring.js.map +1 -1
  288. package/dist/src/production/rate-limiter.d.ts +64 -19
  289. package/dist/src/production/rate-limiter.d.ts.map +1 -1
  290. package/dist/src/production/rate-limiter.js +5 -5
  291. package/dist/src/production/rate-limiter.js.map +1 -1
  292. package/dist/src/production/retry.d.ts.map +1 -1
  293. package/dist/src/production/retry.js +4 -2
  294. package/dist/src/production/retry.js.map +1 -1
  295. package/dist/src/services/claim-service.d.ts +50 -59
  296. package/dist/src/services/claim-service.d.ts.map +1 -1
  297. package/dist/src/services/claim-service.js +83 -50
  298. package/dist/src/services/claim-service.js.map +1 -1
  299. package/dist/src/services/config-file-manager.d.ts.map +1 -1
  300. package/dist/src/services/config-file-manager.js +8 -1
  301. package/dist/src/services/config-file-manager.js.map +1 -1
  302. package/dist/src/services/worker-daemon.d.ts.map +1 -1
  303. package/dist/src/services/worker-daemon.js +4 -0
  304. package/dist/src/services/worker-daemon.js.map +1 -1
  305. package/dist/src/types.d.ts +13 -0
  306. package/dist/src/types.d.ts.map +1 -1
  307. package/dist/src/types.js.map +1 -1
  308. package/dist/src/ui/collector.mjs +51 -11
  309. package/dist/src/ui/dashboard.html +313 -88
  310. package/dist/src/ui/server.mjs +163 -8
  311. package/dist/tsconfig.tsbuildinfo +1 -1
  312. package/package.json +13 -13
  313. package/scripts/publish-registry.ts +0 -1
  314. package/.claude/commands/monomind/adr.md +0 -11
  315. package/.claude/commands/monomind/budget.md +0 -7
  316. package/.claude/commands/monomind/createtask.md +0 -277
  317. package/.claude/commands/monomind/do.md +0 -498
  318. package/.claude/commands/monomind/graph-status.md +0 -7
  319. package/.claude/commands/monomind/help.md +0 -118
  320. package/.claude/commands/monomind/idea.md +0 -273
  321. package/.claude/commands/monomind/improve.md +0 -352
  322. package/.claude/commands/monomind/loops.md +0 -7
  323. package/.claude/commands/monomind/memory.md +0 -230
  324. package/.claude/commands/monomind/repeat.md +0 -257
  325. package/.claude/commands/monomind/review.md +0 -317
  326. package/.claude/commands/monomind/specialagents.md +0 -125
  327. package/.claude/commands/monomind/swarm.md +0 -161
  328. package/.claude/commands/monomind/understand.md +0 -139
  329. package/.claude/commands/training/README.md +0 -39
  330. package/.claude/commands/training/neural-patterns.md +0 -73
  331. package/.claude/commands/training/neural-train.md +0 -79
  332. package/dist/src/commands/appliance-advanced.d.ts +0 -9
  333. package/dist/src/commands/appliance-advanced.d.ts.map +0 -1
  334. package/dist/src/commands/appliance-advanced.js +0 -238
  335. package/dist/src/commands/appliance-advanced.js.map +0 -1
  336. package/dist/src/commands/appliance.d.ts +0 -8
  337. package/dist/src/commands/appliance.d.ts.map +0 -1
  338. package/dist/src/commands/appliance.js +0 -406
  339. package/dist/src/commands/appliance.js.map +0 -1
  340. package/dist/src/commands/ruvector/backup.d.ts +0 -11
  341. package/dist/src/commands/ruvector/backup.d.ts.map +0 -1
  342. package/dist/src/commands/ruvector/backup.js.map +0 -1
  343. package/dist/src/commands/ruvector/benchmark.d.ts +0 -11
  344. package/dist/src/commands/ruvector/benchmark.d.ts.map +0 -1
  345. package/dist/src/commands/ruvector/benchmark.js.map +0 -1
  346. package/dist/src/commands/ruvector/import.d.ts +0 -18
  347. package/dist/src/commands/ruvector/import.d.ts.map +0 -1
  348. package/dist/src/commands/ruvector/import.js.map +0 -1
  349. package/dist/src/commands/ruvector/index.d.ts.map +0 -1
  350. package/dist/src/commands/ruvector/index.js.map +0 -1
  351. package/dist/src/commands/ruvector/init.d.ts +0 -11
  352. package/dist/src/commands/ruvector/init.d.ts.map +0 -1
  353. package/dist/src/commands/ruvector/init.js.map +0 -1
  354. package/dist/src/commands/ruvector/migrate.d.ts +0 -11
  355. package/dist/src/commands/ruvector/migrate.d.ts.map +0 -1
  356. package/dist/src/commands/ruvector/migrate.js.map +0 -1
  357. package/dist/src/commands/ruvector/optimize.d.ts.map +0 -1
  358. package/dist/src/commands/ruvector/optimize.js.map +0 -1
  359. package/dist/src/commands/ruvector/setup.d.ts +0 -18
  360. package/dist/src/commands/ruvector/setup.d.ts.map +0 -1
  361. package/dist/src/commands/ruvector/setup.js.map +0 -1
  362. package/dist/src/commands/ruvector/status.d.ts.map +0 -1
  363. package/dist/src/commands/ruvector/status.js.map +0 -1
  364. package/dist/src/ruvector/agent-wasm.d.ts +0 -182
  365. package/dist/src/ruvector/agent-wasm.d.ts.map +0 -1
  366. package/dist/src/ruvector/agent-wasm.js +0 -316
  367. package/dist/src/ruvector/agent-wasm.js.map +0 -1
  368. package/dist/src/ruvector/ast-analyzer.d.ts +0 -67
  369. package/dist/src/ruvector/ast-analyzer.d.ts.map +0 -1
  370. package/dist/src/ruvector/ast-analyzer.js +0 -277
  371. package/dist/src/ruvector/ast-analyzer.js.map +0 -1
  372. package/dist/src/ruvector/coverage-router.d.ts +0 -160
  373. package/dist/src/ruvector/coverage-router.d.ts.map +0 -1
  374. package/dist/src/ruvector/coverage-router.js +0 -539
  375. package/dist/src/ruvector/coverage-router.js.map +0 -1
  376. package/dist/src/ruvector/coverage-tools.d.ts +0 -33
  377. package/dist/src/ruvector/coverage-tools.d.ts.map +0 -1
  378. package/dist/src/ruvector/coverage-tools.js +0 -157
  379. package/dist/src/ruvector/coverage-tools.js.map +0 -1
  380. package/dist/src/ruvector/diff-classifier.d.ts.map +0 -1
  381. package/dist/src/ruvector/diff-classifier.js.map +0 -1
  382. package/dist/src/ruvector/enhanced-model-router.d.ts +0 -146
  383. package/dist/src/ruvector/enhanced-model-router.d.ts.map +0 -1
  384. package/dist/src/ruvector/enhanced-model-router.js +0 -551
  385. package/dist/src/ruvector/enhanced-model-router.js.map +0 -1
  386. package/dist/src/ruvector/flash-attention.d.ts +0 -195
  387. package/dist/src/ruvector/flash-attention.d.ts.map +0 -1
  388. package/dist/src/ruvector/flash-attention.js +0 -643
  389. package/dist/src/ruvector/flash-attention.js.map +0 -1
  390. package/dist/src/ruvector/graph-analyzer.d.ts +0 -187
  391. package/dist/src/ruvector/graph-analyzer.d.ts.map +0 -1
  392. package/dist/src/ruvector/graph-analyzer.js +0 -929
  393. package/dist/src/ruvector/graph-analyzer.js.map +0 -1
  394. package/dist/src/ruvector/index.d.ts +0 -67
  395. package/dist/src/ruvector/index.d.ts.map +0 -1
  396. package/dist/src/ruvector/index.js +0 -88
  397. package/dist/src/ruvector/index.js.map +0 -1
  398. package/dist/src/ruvector/lora-adapter.d.ts +0 -218
  399. package/dist/src/ruvector/lora-adapter.d.ts.map +0 -1
  400. package/dist/src/ruvector/lora-adapter.js +0 -455
  401. package/dist/src/ruvector/lora-adapter.js.map +0 -1
  402. package/dist/src/ruvector/model-router.d.ts +0 -222
  403. package/dist/src/ruvector/model-router.d.ts.map +0 -1
  404. package/dist/src/ruvector/model-router.js +0 -512
  405. package/dist/src/ruvector/model-router.js.map +0 -1
  406. package/dist/src/ruvector/moe-router.d.ts +0 -213
  407. package/dist/src/ruvector/moe-router.d.ts.map +0 -1
  408. package/dist/src/ruvector/moe-router.js +0 -649
  409. package/dist/src/ruvector/moe-router.js.map +0 -1
  410. package/dist/src/ruvector/q-learning-router.d.ts +0 -217
  411. package/dist/src/ruvector/q-learning-router.d.ts.map +0 -1
  412. package/dist/src/ruvector/q-learning-router.js +0 -712
  413. package/dist/src/ruvector/q-learning-router.js.map +0 -1
  414. package/dist/src/ruvector/ruvllm-wasm.d.ts +0 -179
  415. package/dist/src/ruvector/ruvllm-wasm.d.ts.map +0 -1
  416. package/dist/src/ruvector/ruvllm-wasm.js +0 -363
  417. package/dist/src/ruvector/ruvllm-wasm.js.map +0 -1
  418. package/dist/src/ruvector/semantic-router.d.ts +0 -77
  419. package/dist/src/ruvector/semantic-router.d.ts.map +0 -1
  420. package/dist/src/ruvector/semantic-router.js +0 -178
  421. package/dist/src/ruvector/semantic-router.js.map +0 -1
  422. package/dist/src/ruvector/vector-db.d.ts +0 -69
  423. package/dist/src/ruvector/vector-db.d.ts.map +0 -1
  424. package/dist/src/ruvector/vector-db.js +0 -243
  425. package/dist/src/ruvector/vector-db.js.map +0 -1
  426. package/dist/src/services/ruvector-training.d.ts +0 -222
  427. package/dist/src/services/ruvector-training.d.ts.map +0 -1
  428. package/dist/src/services/ruvector-training.js +0 -696
  429. package/dist/src/services/ruvector-training.js.map +0 -1
  430. package/dist/src/ui/.monomind/loops/loop-1779095996252-mdjpp.json +0 -11
  431. package/dist/src/ui/data/agent-avatars.html +0 -763
  432. package/dist/src/ui/data/agent-avatars.json +0 -966
  433. package/dist/src/ui/data/avatars/account-strategist.svg +0 -58
  434. package/dist/src/ui/data/avatars/accounts-payable.svg +0 -54
  435. package/dist/src/ui/data/avatars/adaptive-coordinator.svg +0 -55
  436. package/dist/src/ui/data/avatars/adaptive-coordinator2.svg +0 -54
  437. package/dist/src/ui/data/avatars/ai-citation.svg +0 -57
  438. package/dist/src/ui/data/avatars/ai-engineer.svg +0 -61
  439. package/dist/src/ui/data/avatars/analytics-reporter.svg +0 -53
  440. package/dist/src/ui/data/avatars/api-tester.svg +0 -53
  441. package/dist/src/ui/data/avatars/architecture.svg +0 -54
  442. package/dist/src/ui/data/avatars/automation-governance.svg +0 -55
  443. package/dist/src/ui/data/avatars/backend-dev.svg +0 -53
  444. package/dist/src/ui/data/avatars/benchmarker.svg +0 -54
  445. package/dist/src/ui/data/avatars/blockchain-auditor.svg +0 -53
  446. package/dist/src/ui/data/avatars/byzantine-coord.svg +0 -57
  447. package/dist/src/ui/data/avatars/case-analyst.svg +0 -57
  448. package/dist/src/ui/data/avatars/cicd-engineer.svg +0 -55
  449. package/dist/src/ui/data/avatars/cloud-architect.svg +0 -54
  450. package/dist/src/ui/data/avatars/code-review-swarm.svg +0 -57
  451. package/dist/src/ui/data/avatars/coder-v119.svg +0 -57
  452. package/dist/src/ui/data/avatars/coder.svg +0 -58
  453. package/dist/src/ui/data/avatars/collective-coord.svg +0 -54
  454. package/dist/src/ui/data/avatars/compliance-auditor.svg +0 -58
  455. package/dist/src/ui/data/avatars/consensus-coordinator.svg +0 -54
  456. package/dist/src/ui/data/avatars/content-creator.svg +0 -54
  457. package/dist/src/ui/data/avatars/crdt-synchronizer.svg +0 -53
  458. package/dist/src/ui/data/avatars/cro-specialist.svg +0 -58
  459. package/dist/src/ui/data/avatars/data-consolidator.svg +0 -54
  460. package/dist/src/ui/data/avatars/data-engineer.svg +0 -53
  461. package/dist/src/ui/data/avatars/database-optimizer.svg +0 -61
  462. package/dist/src/ui/data/avatars/deal-strategist.svg +0 -54
  463. package/dist/src/ui/data/avatars/defender.svg +0 -53
  464. package/dist/src/ui/data/avatars/devops-automator.svg +0 -56
  465. package/dist/src/ui/data/avatars/discovery-coach.svg +0 -54
  466. package/dist/src/ui/data/avatars/email-marketing.svg +0 -57
  467. package/dist/src/ui/data/avatars/embedded-firmware.svg +0 -61
  468. package/dist/src/ui/data/avatars/evidence-collector.svg +0 -57
  469. package/dist/src/ui/data/avatars/experiment-tracker.svg +0 -53
  470. package/dist/src/ui/data/avatars/feedback-synthesizer.svg +0 -54
  471. package/dist/src/ui/data/avatars/finance-tracker.svg +0 -54
  472. package/dist/src/ui/data/avatars/frontend-developer.svg +0 -54
  473. package/dist/src/ui/data/avatars/game-audio-engineer.svg +0 -59
  474. package/dist/src/ui/data/avatars/game-designer.svg +0 -54
  475. package/dist/src/ui/data/avatars/gossip-coordinator.svg +0 -54
  476. package/dist/src/ui/data/avatars/hierarchical-coord.svg +0 -54
  477. package/dist/src/ui/data/avatars/incident-commander.svg +0 -57
  478. package/dist/src/ui/data/avatars/infrastructure.svg +0 -54
  479. package/dist/src/ui/data/avatars/input-validator.svg +0 -53
  480. package/dist/src/ui/data/avatars/ios-developer.svg +0 -54
  481. package/dist/src/ui/data/avatars/issue-tracker.svg +0 -53
  482. package/dist/src/ui/data/avatars/judge.svg +0 -55
  483. package/dist/src/ui/data/avatars/launch-strategist.svg +0 -54
  484. package/dist/src/ui/data/avatars/legal-compliance.svg +0 -53
  485. package/dist/src/ui/data/avatars/level-designer.svg +0 -53
  486. package/dist/src/ui/data/avatars/load-balancer.svg +0 -57
  487. package/dist/src/ui/data/avatars/mcp-builder.svg +0 -53
  488. package/dist/src/ui/data/avatars/memory-coordinator.svg +0 -55
  489. package/dist/src/ui/data/avatars/mesh-coordinator.svg +0 -55
  490. package/dist/src/ui/data/avatars/ml-developer.svg +0 -58
  491. package/dist/src/ui/data/avatars/mobile-app-builder.svg +0 -53
  492. package/dist/src/ui/data/avatars/mobile-dev.svg +0 -54
  493. package/dist/src/ui/data/avatars/model-qa.svg +0 -58
  494. package/dist/src/ui/data/avatars/narrative-designer.svg +0 -58
  495. package/dist/src/ui/data/avatars/outbound-strategist.svg +0 -55
  496. package/dist/src/ui/data/avatars/path-validator.svg +0 -54
  497. package/dist/src/ui/data/avatars/payment-agent.svg +0 -53
  498. package/dist/src/ui/data/avatars/perf-analyzer.svg +0 -58
  499. package/dist/src/ui/data/avatars/pipeline-analyst.svg +0 -54
  500. package/dist/src/ui/data/avatars/planner.svg +0 -55
  501. package/dist/src/ui/data/avatars/pr-manager.svg +0 -54
  502. package/dist/src/ui/data/avatars/pricing-strategist.svg +0 -54
  503. package/dist/src/ui/data/avatars/product-manager.svg +0 -54
  504. package/dist/src/ui/data/avatars/production-validator.svg +0 -54
  505. package/dist/src/ui/data/avatars/project-shepherd.svg +0 -54
  506. package/dist/src/ui/data/avatars/proposal-strategist.svg +0 -54
  507. package/dist/src/ui/data/avatars/prosecutor.svg +0 -57
  508. package/dist/src/ui/data/avatars/pseudocode.svg +0 -53
  509. package/dist/src/ui/data/avatars/queen-coordinator.svg +0 -55
  510. package/dist/src/ui/data/avatars/quorum-manager.svg +0 -53
  511. package/dist/src/ui/data/avatars/raft-manager.svg +0 -53
  512. package/dist/src/ui/data/avatars/reality-checker.svg +0 -58
  513. package/dist/src/ui/data/avatars/recruitment.svg +0 -58
  514. package/dist/src/ui/data/avatars/refinement.svg +0 -53
  515. package/dist/src/ui/data/avatars/release-manager.svg +0 -54
  516. package/dist/src/ui/data/avatars/repo-architect.svg +0 -54
  517. package/dist/src/ui/data/avatars/researcher.svg +0 -58
  518. package/dist/src/ui/data/avatars/resource-allocator.svg +0 -53
  519. package/dist/src/ui/data/avatars/reviewer.svg +0 -53
  520. package/dist/src/ui/data/avatars/safe-executor.svg +0 -53
  521. package/dist/src/ui/data/avatars/sales-coach.svg +0 -53
  522. package/dist/src/ui/data/avatars/sales-engineer.svg +0 -58
  523. package/dist/src/ui/data/avatars/scout-explorer.svg +0 -58
  524. package/dist/src/ui/data/avatars/security-architect.svg +0 -54
  525. package/dist/src/ui/data/avatars/security-auditor.svg +0 -55
  526. package/dist/src/ui/data/avatars/senior-developer.svg +0 -58
  527. package/dist/src/ui/data/avatars/senior-pm.svg +0 -58
  528. package/dist/src/ui/data/avatars/seo-specialist.svg +0 -57
  529. package/dist/src/ui/data/avatars/social-media.svg +0 -54
  530. package/dist/src/ui/data/avatars/solidity-engineer.svg +0 -58
  531. package/dist/src/ui/data/avatars/sparc-coder.svg +0 -58
  532. package/dist/src/ui/data/avatars/sparc-coord.svg +0 -56
  533. package/dist/src/ui/data/avatars/specification.svg +0 -57
  534. package/dist/src/ui/data/avatars/sprint-prioritizer.svg +0 -53
  535. package/dist/src/ui/data/avatars/sre.svg +0 -54
  536. package/dist/src/ui/data/avatars/studio-operations.svg +0 -53
  537. package/dist/src/ui/data/avatars/studio-producer.svg +0 -55
  538. package/dist/src/ui/data/avatars/support-responder.svg +0 -56
  539. package/dist/src/ui/data/avatars/system-architect.svg +0 -54
  540. package/dist/src/ui/data/avatars/task-orchestrator.svg +0 -56
  541. package/dist/src/ui/data/avatars/technical-artist.svg +0 -53
  542. package/dist/src/ui/data/avatars/technical-writer.svg +0 -59
  543. package/dist/src/ui/data/avatars/tester.svg +0 -53
  544. package/dist/src/ui/data/avatars/threat-detection.svg +0 -61
  545. package/dist/src/ui/data/avatars/trend-researcher.svg +0 -54
  546. package/dist/src/ui/data/avatars/trial-director.svg +0 -55
  547. package/dist/src/ui/data/avatars/unity-architect.svg +0 -54
  548. package/dist/src/ui/data/avatars/visionos-engineer.svg +0 -57
  549. package/dist/src/ui/data/avatars/worker-specialist.svg +0 -55
  550. package/dist/src/ui/data/avatars/workflow-architect.svg +0 -57
  551. package/dist/src/ui/data/avatars/workflow-automation.svg +0 -54
  552. package/dist/src/ui/data/avatars/zk-steward.svg +0 -54
  553. package/dist/src/ui/data/known-projects.json +0 -1
  554. /package/dist/src/{ruvector → monovector}/diff-classifier.js +0 -0
@@ -1,317 +0,0 @@
1
- ---
2
- name: monomind:review
3
- description: "Monomind — Multi-agent iterative review loop: runs Code Reviewer, Security Engineer, and domain specialists in parallel, auto-fixes findings each iteration, and captures human-in-loop items to a dated file."
4
- ---
5
-
6
- **First — extract repeat flags:** Follow the REPEAT PREAMBLE from `_repeat.md`. Extracts `--repeat`, `--tillend`, `--maxruns`, `--wait`, `--rep`, `--loop` from `$ARGUMENTS` before all other parsing. If `is_continuation = true`, skip the empty-arguments check below.
7
-
8
- Parse remaining `$ARGUMENTS` as `TOTAL_ITERATIONS` (integer, min 1, max 10).
9
-
10
- If `$ARGUMENTS` is empty, not a positive integer, or greater than 10, output this and STOP:
11
-
12
- > **Usage:** `/monomind:review <iterations>`
13
- >
14
- > Examples:
15
- > - `/monomind:review 1` — single review pass
16
- > - `/monomind:review 3` — three fix-and-re-review cycles
17
- >
18
- > Runs parallel review agents each iteration, auto-fixes what can be fixed, and saves items requiring human judgment to `humaninloopreview-YYYY-MM-DD.md`.
19
-
20
- Do NOT proceed further if no valid number was provided.
21
-
22
- ---
23
-
24
- ## Terminology
25
-
26
- - **Finding**: An issue reported by any review agent.
27
- - **Auto-fixable**: Claude can apply the fix without ambiguity and without changing intended behavior.
28
- - **Human-in-loop (HIL)**: Requires a product/design/architecture decision, a credential, a policy choice, or something Claude cannot safely assume. These are written to the HIL file and skipped.
29
- - **HIL file**: `humaninloopreview-<YYYY-MM-DD>.md` in the project root. Appended each loop; never overwritten.
30
-
31
- ---
32
-
33
- ## Step 0: Setup
34
-
35
- Parse `$ARGUMENTS` as `TOTAL_ITERATIONS` (integer, min 1, max 10).
36
-
37
- Collect the following in parallel:
38
-
39
- 1. **Git context**: Run the following to get recently changed files. Store result as `CHANGED_FILES`.
40
- ```bash
41
- CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD 2>/dev/null)
42
- [ -z "$CHANGED_FILES" ] && CHANGED_FILES=$(git ls-files -m 2>/dev/null)
43
- [ -z "$CHANGED_FILES" ] && CHANGED_FILES=$(git diff --name-only HEAD~5 HEAD 2>/dev/null)
44
- ```
45
- 2. **Repo structure**: Run `git ls-files | head -80` to get a representative file list. Store as `FILE_LIST`.
46
- 3. **Branch info**: Run `git log --oneline -5` to get recent commit context. Store as `RECENT_COMMITS`.
47
- 4. **Stack detection**: Run `ls package.json pyproject.toml go.mod Cargo.toml 2>/dev/null; find . -maxdepth 3 \( -name "*.swift" -o -name "*.kt" \) | head -3` to detect language/framework. Store detected stacks as `STACK`.
48
- 5. **HIL file path**: Compute `HIL_FILE=humaninloopreview-$(date +%Y-%m-%d).md` in the project root.
49
-
50
- Initialize tracking state:
51
- ```
52
- ITERATION = 1
53
- ITERATIONS_RUN = 0 # how many iterations actually executed (for final report)
54
- ALL_FIXED = [] # auto-fixed items (across all iterations)
55
- ALL_HIL = [] # human-in-loop items (across all iterations)
56
- HIL_COUNT = 0 # global counter for HIL-N labels
57
- PENDING_FIXED = [] # staging: auto-fixed this batch, not yet verified
58
- ITERATION_FIXED_FILES = [] # file paths edited this iteration
59
- ```
60
-
61
- ---
62
-
63
- ## Step 1: Select Review Agents for This Stack
64
-
65
- Based on `STACK`, determine which specialist agents to run beyond the always-on core set.
66
-
67
- **Always run (every stack):**
68
- - `Code Reviewer` — correctness, maintainability, performance, naming, dead code
69
- - `Security Engineer` — injection, auth gaps, secrets exposure, CVE-prone patterns, OWASP Top 10
70
- - `Reality Checker` — evidence-based assessment: does the code actually do what it claims?
71
-
72
- **Run conditionally** — detect by running these checks and adding the agent if exit 0:
73
- - `Accessibility Auditor` — `find . -maxdepth 5 \( -name "*.html" -o -name "*.jsx" -o -name "*.tsx" \) -not -path "*/node_modules/*" | head -1 | grep -q .`
74
- - `API Tester` — `find . -maxdepth 5 \( -name "*.route.*" -o -name "openapi.yml" -o -name "openapi.json" -o -name "swagger.*" \) -not -path "*/node_modules/*" | head -1 | grep -q . || grep -rqEl "express\(|fastify|hono|koa|router\." --include="*.ts" --include="*.js" . 2>/dev/null`
75
- - `Database Optimizer` — `find . -maxdepth 5 \( -name "*.sql" -o -name "*migration*" -o -name "*schema*" \) -not -path "*/node_modules/*" | head -1 | grep -q . || grep -rqEl "prisma|typeorm|sequelize|drizzle|knex" --include="*.ts" --include="*.js" . 2>/dev/null`
76
- - `SRE` — `find . -maxdepth 3 \( -name "Dockerfile" -o -name "docker-compose*" -o -name "*.yml" -path "*/.github/workflows/*" \) | head -1 | grep -q .`
77
- - `Mobile App Builder` — `find . -maxdepth 3 \( -name "*.swift" -o -name "*.kt" \) | head -1 | grep -q . || grep -q "react-native" package.json 2>/dev/null`
78
-
79
- Store the selected set as `ACTIVE_REVIEWERS`.
80
-
81
- ---
82
-
83
- ## Loop: Run `TOTAL_ITERATIONS` times
84
-
85
- For each iteration, first reset per-iteration state:
86
- ```
87
- PENDING_FIXED = []
88
- ITERATION_FIXED_FILES = []
89
- ```
90
-
91
- ---
92
-
93
- ### Step 2: Run All Reviewers in Parallel
94
-
95
- Spawn one agent per reviewer in `ACTIVE_REVIEWERS` using the `Task` tool — all in a **single message** so they run concurrently.
96
-
97
- Each agent receives:
98
- - `CHANGED_FILES`, `FILE_LIST`, `RECENT_COMMITS`, `STACK`
99
- - The list of findings already auto-fixed in prior iterations (so they don't re-report them)
100
- - The list of HIL items already deferred (same reason)
101
- - Their specific review focus (below)
102
-
103
- #### Agent Instructions by Role
104
-
105
- All agent prompts share this finding schema. `hil_reason` and `context` are only required when `auto_fixable: false`:
106
- ```
107
- {
108
- file, line,
109
- severity: critical|high|medium|low,
110
- category: "...",
111
- description,
112
- suggested_fix,
113
- auto_fixable: true|false,
114
- hil_reason?: "only if auto_fixable=false — why Claude cannot safely apply this",
115
- context?: "only if auto_fixable=false — 2-4 sentences: what the code does, why this is a problem, what the risk is"
116
- }
117
- ```
118
-
119
- **Code Reviewer prompt:**
120
- > Review the codebase for: logic errors, off-by-one bugs, null/undefined handling, dead code, overly complex functions (>50 lines or >3 nesting levels), naming inconsistencies, missing error propagation, and performance anti-patterns (N+1, blocking I/O, unnecessary allocations). Focus on `CHANGED_FILES` first, then related files. Return findings using the shared schema above.
121
-
122
- **Security Engineer prompt:**
123
- > Audit for: hardcoded secrets or API keys, SQL/command/path injection, missing input validation at system boundaries, insecure deserialization, broken auth/authz, sensitive data in logs, unpatched dependency versions with known CVEs, missing rate limiting on public endpoints, and CORS misconfigurations. Categories: injection|secrets|auth|deps|logging|config. Return findings using the shared schema above.
124
-
125
- **Reality Checker prompt:**
126
- > Check: does each function do what its name/docs claim? Are there missing test assertions? Are there commented-out code blocks, TODO/FIXME/HACK markers, or debug statements left in? Are there import cycles? Are env vars assumed to exist without validation? Categories: correctness|tests|debt|env. Return findings using the shared schema above.
127
-
128
- **Accessibility Auditor prompt (if applicable):**
129
- > Check: missing alt text, non-semantic HTML, keyboard-inaccessible interactive elements, insufficient color contrast (< 4.5:1 for text), missing ARIA labels, focus trap issues, and missing skip navigation. Category: a11y. Return findings using the shared schema above.
130
-
131
- **API Tester prompt (if applicable):**
132
- > Check: endpoints missing auth middleware, routes with no input validation, missing HTTP status codes on error paths, inconsistent response shapes, pagination not implemented where expected, and missing rate-limit headers. Category: api. Return findings using the shared schema above.
133
-
134
- **Database Optimizer prompt (if applicable):**
135
- > Check: missing indexes on foreign keys and frequently-queried columns, N+1 query patterns in ORM code, unparameterized queries, missing transactions around multi-step writes, and schema column type mismatches. Category: database. Return findings using the shared schema above.
136
-
137
- **SRE prompt (if applicable):**
138
- > Check: Docker images without pinned versions, CI jobs with no timeout, missing health check endpoints, hardcoded environment assumptions (localhost, fixed ports), missing retry logic on external calls, and secrets in CI config files. Categories: reliability|infra. Return findings using the shared schema above.
139
-
140
- **Mobile App Builder prompt (if applicable):**
141
- > Check: missing permission explanations, sensitive data stored in plain UserDefaults/SharedPreferences, missing loading/error states, hard-coded URLs, deprecated API usage, and missing offline/degraded-mode handling. Category: mobile. Return findings using the shared schema above.
142
-
143
- ---
144
-
145
- ### Step 3: Merge and Deduplicate Findings
146
-
147
- Collect all agent outputs. As you collect each agent's findings, annotate each finding with `reporter: <agent role name>` (e.g., `"Code Reviewer"`, `"Security Engineer"`, `"Reality Checker"`). Merge into a single `ITERATION_FINDINGS` list. Deduplicate by `(file, category, description[:60])` — keep highest severity when duplicates exist. Do NOT deduplicate by line number, as applied fixes shift line numbers across iterations. Exclude anything already in `ALL_FIXED` or `ALL_HIL` by matching on `(file, description[:60])`.
148
-
149
- Sort by severity: critical → high → medium → low.
150
-
151
- ---
152
-
153
- ### Step 4: Classify and Act
154
-
155
- For each finding in `ITERATION_FINDINGS`:
156
-
157
- **If `auto_fixable: true`:**
158
- - Apply the fix using `Edit` (or `Write` for new files). Add the file path to `ITERATION_FIXED_FILES` list. Add the finding to a staging list `PENDING_FIXED`.
159
-
160
- **If `auto_fixable: false` (HIL):**
161
- - Add to `ALL_HIL`. Do NOT attempt to fix.
162
-
163
- After processing all findings, if `PENDING_FIXED` is empty, skip verification and proceed to Step 5. Otherwise, run verification **once** for the whole batch. Run only commands appropriate for `STACK`:
164
-
165
- **Node.js / TypeScript:**
166
- ```bash
167
- npm run --if-present lint 2>&1 | tail -5
168
- npm run --if-present typecheck 2>&1 | tail -5
169
- npm run --if-present test 2>&1 | tail -10
170
- ```
171
-
172
- **Python** (if `pyproject.toml` or `*.py` detected):
173
- ```bash
174
- ruff check . 2>&1 | tail -5
175
- python -m pytest --tb=short -q 2>&1 | tail -10
176
- ```
177
-
178
- **Go** (if `go.mod` detected):
179
- ```bash
180
- go vet ./... 2>&1 | tail -5
181
- go test ./... 2>&1 | tail -10
182
- ```
183
-
184
- **Rust** (if `Cargo.toml` detected):
185
- ```bash
186
- cargo check 2>&1 | tail -5
187
- cargo test 2>&1 | tail -10
188
- ```
189
- - If all checks pass: move all `PENDING_FIXED` entries into `ALL_FIXED`.
190
- - If any check fails: run `git restore` on each file in `ITERATION_FIXED_FILES` to undo all changes, move all `PENDING_FIXED` entries to `ALL_HIL` with `hil_reason: "batch auto-fix caused verification failure — apply individually"`. Print the error output.
191
-
192
- ---
193
-
194
- ### Step 5: Commit Fixes for This Iteration
195
-
196
- If `ALL_FIXED` gained any new entries this iteration:
197
-
198
- Stage only the files that were actually edited (tracked from `ITERATION_FIXED_FILES` collected in Step 4):
199
- ```bash
200
- git add <space-separated list of ITERATION_FIXED_FILES paths>
201
- ```
202
-
203
- Then commit with each fixed item on its own line in the body:
204
- ```bash
205
- git commit -m "fix(review): iteration <ITERATION> — <count> findings fixed by monomind:review
206
-
207
- <file>:<line> — <description>
208
- <file>:<line> — <description>
209
-
210
- Co-Authored-By: nokhodian <nokhodian@gmail.com>"
211
- ```
212
-
213
- ---
214
-
215
- ### Step 6: Write HIL Items to File
216
-
217
- If any new HIL items were added this iteration, **append** to `HIL_FILE`. For each new HIL item, increment `HIL_COUNT` by 1 and use it as the label number:
218
-
219
- ```markdown
220
- ## Review Iteration <ITERATION> — <YYYY-MM-DD HH:MM>
221
-
222
- <!-- One block per HIL finding; HIL_COUNT increments globally across all iterations -->
223
- ### HIL-<HIL_COUNT>: <description> [`<severity>`]
224
-
225
- **File:** `<file>:<line>`
226
- **Category:** <category>
227
- **Reported by:** <agent name>
228
-
229
- **Context:**
230
- <context from agent finding, or derive from description if context field absent>
231
-
232
- **Suggested fix:**
233
- <suggested_fix from agent, verbatim>
234
-
235
- **Why human decision needed:**
236
- <hil_reason>
237
-
238
- **Your options:**
239
- - [ ] Apply the suggested fix as-is
240
- - [ ] Apply a modified fix (describe below)
241
- - [ ] Defer — not a priority right now
242
- - [ ] Reject — not applicable for this project
243
-
244
- **Your response (fill in and save):**
245
- >
246
-
247
- ---
248
- ```
249
-
250
- After writing, print:
251
- > `HIL_FILE` updated with <count> new items requiring human judgment.
252
-
253
- ---
254
-
255
- ### Step 7: Iteration Summary
256
-
257
- Increment `ITERATIONS_RUN` by 1. Then print a table:
258
-
259
- ```
260
- ### Iteration <ITERATION> / <TOTAL_ITERATIONS>
261
-
262
- | Reviewer | Findings | Auto-Fixed | HIL |
263
- |---------------------|----------|------------|-----|
264
- | Code Reviewer | N | N | N |
265
- | Security Engineer | N | N | N |
266
- | Reality Checker | N | N | N |
267
- | ... | ... | ... | ... |
268
- | **Total** | **N** | **N** | **N**|
269
-
270
- Severity breakdown: X critical, Y high, Z medium, W low
271
- ```
272
-
273
- If zero findings remain after dedup and exclusions, print:
274
- > No new findings. Review complete.
275
- > Break out of the loop early.
276
-
277
- Increment `ITERATION`. Continue to next iteration.
278
-
279
- ---
280
-
281
- ## Step 8: Final Report
282
-
283
- After all iterations complete (or early exit), output:
284
-
285
- ```markdown
286
- ## monomind:review — Complete
287
-
288
- **Iterations run:** <ITERATIONS_RUN> / <TOTAL_ITERATIONS>
289
- **Reviewers active:** <list>
290
-
291
- ### Auto-Fixed (<N> total)
292
- | File | Line | Severity | Category | Description |
293
- |------|------|----------|----------|-------------|
294
- | ... | ... | ... | ... | ... |
295
-
296
- ### Human-in-Loop (<N> items)
297
- Saved to: `humaninloopreview-<date>.md`
298
-
299
- | # | File | Severity | Category | Why HIL |
300
- |---|------|----------|----------|---------|
301
- | 1 | ... | ... | ... | ... |
302
-
303
- ### How to resolve HIL items
304
- 1. Open `humaninloopreview-<date>.md`
305
- 2. For each item, fill in **Your response** and check the option box
306
- 3. Apply your chosen fixes manually, or run `/monomind:review 1` again after fixing to re-verify
307
-
308
- ### Commits created
309
- <list of commit SHAs and messages from this session>
310
- ```
311
-
312
- If `ALL_HIL` is empty, omit the HIL section and congratulate:
313
- > All findings were auto-fixed. No human decisions required.
314
-
315
- To repeat this command on a schedule, wrap it with `/monomind:repeat` or use `--repeat N` / `--tillend` directly.
316
-
317
- Invoke `Skill("mastermind:_repeat")` now to execute the REPEAT POSTAMBLE. This is a required tool call — do not skip it.
@@ -1,125 +0,0 @@
1
- ---
2
- name: monomind-specialagents
3
- description: Activate a specialist agent persona — browse by category, activate by slug, or auto-select based on conversation context
4
- ---
5
-
6
- Activate a specialist agent persona. Three modes:
7
-
8
- **Direct:** `/monomind:specialagents <slug>` — skip selection, activate immediately.
9
-
10
- **Interactive:** `/monomind:specialagents` — guided category → agent selection.
11
-
12
- **Auto:** `/monomind:specialagents auto` — LLM picks the best match from conversation context.
13
-
14
- ---
15
-
16
- ## Step 0 — Detect mode
17
-
18
- - If `$ARGUMENTS` is a non-empty string that is **not** `auto`:
19
- - Treat it as a slug/name → jump to **Step 4: Activate**.
20
- - If `$ARGUMENTS` is `auto` or the user's message contains words like "auto", "automatically", "pick for me", "best agent", "suggest an agent":
21
- - Jump to **Auto flow**.
22
- - Otherwise → **Interactive flow**.
23
-
24
- ---
25
-
26
- ## Interactive flow
27
-
28
- ### Step 1 — List categories
29
-
30
- Run:
31
- ```bash
32
- node "${CLAUDE_PROJECT_DIR:-$(pwd)}/.claude/helpers/hook-handler.cjs" list-extras 2>/dev/null
33
- ```
34
-
35
- Parse the output. Extract the category names (lines like `=== ACADEMIC ===` → `academic`). Display them as a numbered list:
36
-
37
- ```
38
- Available agent categories:
39
- 1. academic
40
- 2. design
41
- 3. marketing
42
- 4. paid-media
43
- 5. product
44
- 6. project-management
45
- 7. sales
46
- 8. specialized
47
- 9. support
48
-
49
- Enter a number or category name:
50
- ```
51
-
52
- Wait for the user to reply with their choice.
53
-
54
- ### Step 2 — List agents in chosen category
55
-
56
- Map the user's reply to the lowercase category slug (e.g. "1" → `academic`, "Project Management" → `project-management`).
57
-
58
- Run:
59
- ```bash
60
- node "${CLAUDE_PROJECT_DIR:-$(pwd)}/.claude/helpers/hook-handler.cjs" list-extras <category> 2>/dev/null
61
- ```
62
-
63
- Parse the agents listed. Display them numbered:
64
-
65
- ```
66
- Agents in <category>:
67
- 1. slug-name — Short description
68
- 2. ...
69
-
70
- Enter a number or agent slug:
71
- ```
72
-
73
- Wait for the user to reply.
74
-
75
- ### Step 3 — Confirm selection
76
-
77
- Echo back: `Activating agent: <slug>`
78
-
79
- Jump to **Step 4: Activate**.
80
-
81
- ---
82
-
83
- ## Auto flow
84
-
85
- ### Auto Step 1 — Fetch all categories
86
-
87
- Run:
88
- ```bash
89
- node "${CLAUDE_PROJECT_DIR:-$(pwd)}/.claude/helpers/hook-handler.cjs" list-extras 2>/dev/null
90
- ```
91
-
92
- Read the full output. Based on the current conversation context (the user's request, task description, or recent messages), decide which **category** is the best fit. Do not ask the user — choose silently.
93
-
94
- ### Auto Step 2 — Fetch agents in chosen category
95
-
96
- Run:
97
- ```bash
98
- node "${CLAUDE_PROJECT_DIR:-$(pwd)}/.claude/helpers/hook-handler.cjs" list-extras <chosen-category> 2>/dev/null
99
- ```
100
-
101
- Read the agent list. Based on the same conversation context, decide which **agent** is the best fit. Do not ask the user — choose silently.
102
-
103
- Announce your reasoning in one sentence:
104
- > "Auto-selected **<slug>** from **<category>** because <brief reason>."
105
-
106
- Jump to **Step 4: Activate**.
107
-
108
- ---
109
-
110
- ## Step 4 — Activate
111
-
112
- Run:
113
- ```bash
114
- node "${CLAUDE_PROJECT_DIR:-$(pwd)}/.claude/helpers/router.cjs" --load-agent "<slug>" 2>/dev/null
115
- ```
116
-
117
- Read the output. It will contain the agent's persona definition, capabilities, and behavioral rules.
118
-
119
- **Adopt the agent identity fully:**
120
- - Introduce yourself in the agent's voice: name, specialty, how you can help.
121
- - Apply all behavioral rules from the loaded persona for the rest of this conversation.
122
- - If the agent definition includes example openers or greetings, use one.
123
- - Remain in character unless the user explicitly asks to switch agents or end the session.
124
-
125
- If `router.cjs` returns an error or empty output, say: "Could not load agent `<slug>`. Run `/monomind:specialagents` to browse available agents."
@@ -1,161 +0,0 @@
1
- ---
2
- name: monomind-swarm
3
- description: Multi-agent swarm coordination — init, start, status, stop, scale, and coordinate agent teams
4
- ---
5
-
6
- # Monomind Swarm Coordination
7
-
8
- Multi-agent swarm coordination with hierarchical topology, distributed memory, and load balancing.
9
-
10
- ## Subcommands
11
-
12
- | Subcommand | Description |
13
- |---|---|
14
- | `init` | Initialize a new swarm (topology + strategy) |
15
- | `start` | Start swarm execution with an objective |
16
- | `status` | Show current swarm status and progress |
17
- | `stop` | Stop swarm execution |
18
- | `scale` | Scale swarm agent count up or down |
19
- | `coordinate` | Launch v1 15-agent hierarchical-mesh coordination |
20
-
21
- ## init — Initialize a Swarm
22
-
23
- ```bash
24
- # Default (hierarchical, 15 agents)
25
- npx monomind swarm init
26
-
27
- # Anti-drift configuration (recommended)
28
- npx monomind swarm init --topology hierarchical --max-agents 8 --strategy specialized
29
-
30
- # v1 15-agent hierarchical-mesh
31
- npx monomind swarm init --v1-mode
32
- npx monomind swarm init --topology hierarchical-mesh --max-agents 15 --strategy specialized
33
- ```
34
-
35
- **Flags:**
36
-
37
- | Flag | Short | Default | Description |
38
- |---|---|---|---|
39
- | `--topology` | `-t` | `hierarchical` | Swarm topology (see table below) |
40
- | `--max-agents` | `-m` | `15` | Maximum concurrent agents |
41
- | `--strategy` | `-s` | — | Coordination strategy |
42
- | `--auto-scale` | — | `true` | Enable automatic scaling |
43
- | `--v1-mode` | — | `false` | Enable v1 hierarchical-mesh with 15 agents |
44
-
45
- ## Topologies
46
-
47
- | Topology | Use When |
48
- |---|---|
49
- | `hierarchical` | Feature dev, bug fixes — anti-drift, tight control |
50
- | `hierarchical-mesh` | Large teams 10-15 agents — v1 queen + peer communication |
51
- | `mesh` | Research, analysis — broad coverage |
52
- | `star` | Parallel testing, parallel maintenance |
53
- | `ring` | Sequential pipeline processing |
54
- | `hybrid` | Dynamic topology switching |
55
-
56
- ## Strategies
57
-
58
- `specialized` (anti-drift, clear roles), `balanced`, `adaptive`, `development`, `research`, `testing`, `optimization`, `maintenance`, `analysis`
59
-
60
- ## start — Start Swarm Execution
61
-
62
- ```bash
63
- # Start a development swarm
64
- npx monomind swarm start -o "Build REST API with authentication" -s development
65
-
66
- # Parallel research swarm
67
- npx monomind swarm start -o "Analyze performance bottlenecks" -s research --parallel
68
- ```
69
-
70
- **Flags:**
71
-
72
- | Flag | Short | Default | Description |
73
- |---|---|---|---|
74
- | `--objective` | `-o` | — | Swarm objective/task (required) |
75
- | `--strategy` | `-s` | `development` | Execution strategy |
76
- | `--parallel` | `-p` | `true` | Enable parallel execution |
77
- | `--monitor` | — | `true` | Enable real-time monitoring |
78
-
79
- ## status — Check Swarm Progress
80
-
81
- ```bash
82
- # Overall status
83
- npx monomind swarm status
84
-
85
- # Status for a specific swarm ID
86
- npx monomind swarm status swarm-abc123
87
- ```
88
-
89
- ## stop — Stop a Swarm
90
-
91
- ```bash
92
- # Graceful stop (saves state by default)
93
- npx monomind swarm stop swarm-abc123
94
-
95
- # Force immediate stop
96
- npx monomind swarm stop swarm-abc123 --force
97
- ```
98
-
99
- **Flags:**
100
-
101
- | Flag | Short | Default | Description |
102
- |---|---|---|---|
103
- | `--force` | `-f` | `false` | Force immediate stop |
104
- | `--save-state` | — | `true` | Save state for potential resume |
105
-
106
- ## scale — Adjust Agent Count
107
-
108
- ```bash
109
- # Scale to 12 agents
110
- npx monomind swarm scale swarm-abc123 --agents 12
111
-
112
- # Scale a specific agent type
113
- npx monomind swarm scale swarm-abc123 --agents 8 --type coder
114
- ```
115
-
116
- ## coordinate — v1 15-Agent Coordination
117
-
118
- ```bash
119
- # Full v1 15-agent hierarchical mesh
120
- npx monomind swarm coordinate
121
-
122
- # Subset of agents
123
- npx monomind swarm coordinate --agents 8
124
- ```
125
-
126
- Activates the v1 agent roster: Queen Coordinator, Security Architect, Security Auditor, Test Architect, Core Architect, Memory Specialist, Swarm Specialist, Integration Architect, Performance Engineer, CLI Developer, Hooks Developer, MCP Specialist, Project Coordinator, Documentation Lead, DevOps Engineer.
127
-
128
- ## MCP Tools
129
-
130
- ```javascript
131
- // Initialize swarm
132
- mcp__monomind__swarm_init({ topology: "hierarchical", maxAgents: 8, strategy: "specialized" })
133
-
134
- // Check status
135
- mcp__monomind__swarm_status({})
136
-
137
- // Health check
138
- mcp__monomind__swarm_health({})
139
-
140
- // Shutdown swarm
141
- mcp__monomind__swarm_shutdown({})
142
- ```
143
-
144
- ## Agent Team Routing
145
-
146
- | Task Type | Agents | Topology |
147
- |---|---|---|
148
- | Bug Fix | coordinator, researcher, coder, tester | hierarchical |
149
- | Feature | coordinator, architect, coder, tester, reviewer | hierarchical |
150
- | Refactor | coordinator, architect, coder, reviewer | hierarchical |
151
- | Performance | coordinator, perf-engineer, coder | hierarchical |
152
- | Security | coordinator, security-architect, auditor | hierarchical |
153
- | Research | coordinator, researcher x4, analyst x2 | mesh |
154
-
155
- ## See Also
156
-
157
- - `npx monomind agent spawn` — Spawn individual agents
158
- - `npx monomind hive-mind init` — Byzantine fault-tolerant consensus
159
- - `/mastermind` — Interactive swarm topology selection
160
-
161
- Documentation: https://github.com/nokhodian/monomind