@monoes/monomindcli 1.19.0 → 2.0.1

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 (389) hide show
  1. package/.claude/agents/github/issue-tracker.md +0 -2
  2. package/.claude/agents/github/pr-manager.md +0 -2
  3. package/.claude/agents/github/repo-architect.md +3 -11
  4. package/.claude/agents/goal/goal-planner.md +0 -1
  5. package/.claude/commands/github/issue-tracker.md +0 -2
  6. package/.claude/commands/github/pr-manager.md +0 -2
  7. package/.claude/commands/github/repo-architect.md +3 -10
  8. package/.claude/commands/mastermind/help.md +3 -3
  9. package/.claude/commands/workflows/README.md +0 -1
  10. package/.claude/commands/workflows/workflow-create.md +0 -1
  11. package/.claude/commands/workflows/workflow-execute.md +1 -3
  12. package/.claude/commands/workflows/workflow-export.md +0 -2
  13. package/.claude/helpers/handlers/agent-start-handler.cjs +18 -1
  14. package/.claude/helpers/handlers/edit-handler.cjs +15 -0
  15. package/.claude/helpers/handlers/gates-handler.cjs +2 -8
  16. package/.claude/helpers/handlers/route-handler.cjs +149 -7
  17. package/.claude/helpers/handlers/session-handler.cjs +47 -25
  18. package/.claude/helpers/handlers/session-restore-handler.cjs +80 -43
  19. package/.claude/helpers/handlers/task-handler.cjs +8 -4
  20. package/.claude/helpers/hook-handler.cjs +69 -16
  21. package/.claude/helpers/intelligence.cjs +100 -9
  22. package/.claude/helpers/router.cjs +78 -5
  23. package/.claude/helpers/skill-registry.json +0 -189
  24. package/.claude/helpers/token-tracker.cjs +10 -0
  25. package/.claude/skills/github-toolkit/SKILL.md +60 -0
  26. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -15
  27. package/.claude/skills/hooks-automation/SKILL.md +0 -1
  28. package/.claude/skills/mastermind-skills/_protocol.md +1 -1
  29. package/.claude/skills/mastermind-skills/build.md +1 -2
  30. package/.claude/skills/memory-toolkit/SKILL.md +75 -0
  31. package/.claude/skills/specialagent/SKILL.md +2 -4
  32. package/.claude/skills/swarm-advanced/SKILL.md +0 -1
  33. package/README.md +13 -17
  34. package/dist/src/autopilot-state.d.ts.map +1 -1
  35. package/dist/src/autopilot-state.js +4 -5
  36. package/dist/src/autopilot-state.js.map +1 -1
  37. package/dist/src/browser/dashboard/server.d.ts.map +1 -1
  38. package/dist/src/browser/dashboard/server.js +129 -2
  39. package/dist/src/browser/dashboard/server.js.map +1 -1
  40. package/dist/src/browser/dashboard/ui.html +214 -1764
  41. package/dist/src/capabilities/index.d.ts +0 -2
  42. package/dist/src/capabilities/index.d.ts.map +1 -1
  43. package/dist/src/capabilities/index.js +0 -1
  44. package/dist/src/capabilities/index.js.map +1 -1
  45. package/dist/src/commands/agent-lifecycle.d.ts.map +1 -1
  46. package/dist/src/commands/agent-lifecycle.js +2 -6
  47. package/dist/src/commands/agent-lifecycle.js.map +1 -1
  48. package/dist/src/commands/analyze.d.ts +0 -4
  49. package/dist/src/commands/analyze.d.ts.map +1 -1
  50. package/dist/src/commands/analyze.js +1 -29
  51. package/dist/src/commands/analyze.js.map +1 -1
  52. package/dist/src/commands/browse-workflow.js +2 -2
  53. package/dist/src/commands/completions.d.ts.map +1 -1
  54. package/dist/src/commands/completions.js +3 -22
  55. package/dist/src/commands/completions.js.map +1 -1
  56. package/dist/src/commands/config.d.ts.map +1 -1
  57. package/dist/src/commands/config.js +0 -6
  58. package/dist/src/commands/config.js.map +1 -1
  59. package/dist/src/commands/doctor-project-checks.d.ts +12 -2
  60. package/dist/src/commands/doctor-project-checks.d.ts.map +1 -1
  61. package/dist/src/commands/doctor-project-checks.js +130 -22
  62. package/dist/src/commands/doctor-project-checks.js.map +1 -1
  63. package/dist/src/commands/doctor.d.ts.map +1 -1
  64. package/dist/src/commands/doctor.js +6 -5
  65. package/dist/src/commands/doctor.js.map +1 -1
  66. package/dist/src/commands/guidance.d.ts +5 -1
  67. package/dist/src/commands/guidance.d.ts.map +1 -1
  68. package/dist/src/commands/guidance.js +11 -556
  69. package/dist/src/commands/guidance.js.map +1 -1
  70. package/dist/src/commands/hive-mind-comms.d.ts.map +1 -1
  71. package/dist/src/commands/hive-mind-comms.js +11 -4
  72. package/dist/src/commands/hive-mind-comms.js.map +1 -1
  73. package/dist/src/commands/hive-mind.d.ts +4 -4
  74. package/dist/src/commands/hive-mind.d.ts.map +1 -1
  75. package/dist/src/commands/hive-mind.js +9 -6
  76. package/dist/src/commands/hive-mind.js.map +1 -1
  77. package/dist/src/commands/hooks-formatting.d.ts +1 -5
  78. package/dist/src/commands/hooks-formatting.d.ts.map +1 -1
  79. package/dist/src/commands/hooks-formatting.js +1 -18
  80. package/dist/src/commands/hooks-formatting.js.map +1 -1
  81. package/dist/src/commands/hooks-workers.d.ts +1 -1
  82. package/dist/src/commands/hooks-workers.d.ts.map +1 -1
  83. package/dist/src/commands/hooks-workers.js +82 -330
  84. package/dist/src/commands/hooks-workers.js.map +1 -1
  85. package/dist/src/commands/index.d.ts +0 -5
  86. package/dist/src/commands/index.d.ts.map +1 -1
  87. package/dist/src/commands/index.js +0 -45
  88. package/dist/src/commands/index.js.map +1 -1
  89. package/dist/src/commands/init-wizard.js +1 -1
  90. package/dist/src/commands/init-wizard.js.map +1 -1
  91. package/dist/src/commands/init.d.ts.map +1 -1
  92. package/dist/src/commands/init.js +4 -24
  93. package/dist/src/commands/init.js.map +1 -1
  94. package/dist/src/commands/neural-core.js +11 -11
  95. package/dist/src/commands/neural-core.js.map +1 -1
  96. package/dist/src/commands/neural-optimize.d.ts.map +1 -1
  97. package/dist/src/commands/neural-optimize.js +9 -11
  98. package/dist/src/commands/neural-optimize.js.map +1 -1
  99. package/dist/src/commands/neural-registry.js +10 -10
  100. package/dist/src/commands/neural-registry.js.map +1 -1
  101. package/dist/src/commands/providers.d.ts.map +1 -1
  102. package/dist/src/commands/providers.js +90 -1
  103. package/dist/src/commands/providers.js.map +1 -1
  104. package/dist/src/commands/search-universal.d.ts +7 -1
  105. package/dist/src/commands/search-universal.d.ts.map +1 -1
  106. package/dist/src/commands/search-universal.js +59 -5
  107. package/dist/src/commands/search-universal.js.map +1 -1
  108. package/dist/src/commands/security-cve.d.ts.map +1 -1
  109. package/dist/src/commands/security-cve.js +3 -5
  110. package/dist/src/commands/security-cve.js.map +1 -1
  111. package/dist/src/commands/session.d.ts.map +1 -1
  112. package/dist/src/commands/session.js +143 -3
  113. package/dist/src/commands/session.js.map +1 -1
  114. package/dist/src/commands/start.d.ts.map +1 -1
  115. package/dist/src/commands/start.js +0 -18
  116. package/dist/src/commands/start.js.map +1 -1
  117. package/dist/src/commands/swarm.d.ts.map +1 -1
  118. package/dist/src/commands/swarm.js +112 -65
  119. package/dist/src/commands/swarm.js.map +1 -1
  120. package/dist/src/consensus/audit-writer.d.ts.map +1 -1
  121. package/dist/src/consensus/audit-writer.js +43 -1
  122. package/dist/src/consensus/audit-writer.js.map +1 -1
  123. package/dist/src/consensus/tally.d.ts +19 -0
  124. package/dist/src/consensus/tally.d.ts.map +1 -0
  125. package/dist/src/consensus/tally.js +34 -0
  126. package/dist/src/consensus/tally.js.map +1 -0
  127. package/dist/src/index.d.ts +3 -2
  128. package/dist/src/index.d.ts.map +1 -1
  129. package/dist/src/index.js +9 -12
  130. package/dist/src/index.js.map +1 -1
  131. package/dist/src/init/claudemd-generator.d.ts.map +1 -1
  132. package/dist/src/init/claudemd-generator.js +10 -14
  133. package/dist/src/init/claudemd-generator.js.map +1 -1
  134. package/dist/src/init/executor.d.ts.map +1 -1
  135. package/dist/src/init/executor.js +39 -86
  136. package/dist/src/init/executor.js.map +1 -1
  137. package/dist/src/init/settings-generator.d.ts.map +1 -1
  138. package/dist/src/init/settings-generator.js +0 -12
  139. package/dist/src/init/settings-generator.js.map +1 -1
  140. package/dist/src/init/statusline-generator.d.ts.map +1 -1
  141. package/dist/src/init/statusline-generator.js +62 -0
  142. package/dist/src/init/statusline-generator.js.map +1 -1
  143. package/dist/src/init/types.d.ts +2 -6
  144. package/dist/src/init/types.d.ts.map +1 -1
  145. package/dist/src/init/types.js +0 -3
  146. package/dist/src/init/types.js.map +1 -1
  147. package/dist/src/knowledge/document-pipeline.d.ts.map +1 -1
  148. package/dist/src/knowledge/document-pipeline.js +18 -8
  149. package/dist/src/knowledge/document-pipeline.js.map +1 -1
  150. package/dist/src/mcp-client.d.ts.map +1 -1
  151. package/dist/src/mcp-client.js +0 -2
  152. package/dist/src/mcp-client.js.map +1 -1
  153. package/dist/src/mcp-server.d.ts.map +1 -1
  154. package/dist/src/mcp-server.js +12 -14
  155. package/dist/src/mcp-server.js.map +1 -1
  156. package/dist/src/mcp-tools/coherence/coherence-check.d.ts.map +1 -1
  157. package/dist/src/mcp-tools/coherence/coherence-check.js +1 -19
  158. package/dist/src/mcp-tools/coherence/coherence-check.js.map +1 -1
  159. package/dist/src/mcp-tools/coherence/types.d.ts +21 -20
  160. package/dist/src/mcp-tools/coherence/types.d.ts.map +1 -1
  161. package/dist/src/mcp-tools/coherence/types.js +3 -18
  162. package/dist/src/mcp-tools/coherence/types.js.map +1 -1
  163. package/dist/src/mcp-tools/embeddings-tools.d.ts.map +1 -1
  164. package/dist/src/mcp-tools/embeddings-tools.js +1 -7
  165. package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
  166. package/dist/src/mcp-tools/graphify-tools.js +2 -2
  167. package/dist/src/mcp-tools/graphify-tools.js.map +1 -1
  168. package/dist/src/mcp-tools/guidance-tools.d.ts.map +1 -1
  169. package/dist/src/mcp-tools/guidance-tools.js +7 -17
  170. package/dist/src/mcp-tools/guidance-tools.js.map +1 -1
  171. package/dist/src/mcp-tools/hive-mind-tools.d.ts +8 -1
  172. package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -1
  173. package/dist/src/mcp-tools/hive-mind-tools.js +174 -38
  174. package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
  175. package/dist/src/mcp-tools/hooks-advanced.d.ts +18 -0
  176. package/dist/src/mcp-tools/hooks-advanced.d.ts.map +1 -0
  177. package/dist/src/mcp-tools/hooks-advanced.js +25 -0
  178. package/dist/src/mcp-tools/hooks-advanced.js.map +1 -0
  179. package/dist/src/mcp-tools/hooks-intelligence.d.ts +4 -8
  180. package/dist/src/mcp-tools/hooks-intelligence.d.ts.map +1 -1
  181. package/dist/src/mcp-tools/hooks-intelligence.js +33 -482
  182. package/dist/src/mcp-tools/hooks-intelligence.js.map +1 -1
  183. package/dist/src/mcp-tools/hooks-routing.d.ts +1 -0
  184. package/dist/src/mcp-tools/hooks-routing.d.ts.map +1 -1
  185. package/dist/src/mcp-tools/hooks-routing.js +51 -43
  186. package/dist/src/mcp-tools/hooks-routing.js.map +1 -1
  187. package/dist/src/mcp-tools/hooks-synthesis.d.ts +31 -0
  188. package/dist/src/mcp-tools/hooks-synthesis.d.ts.map +1 -0
  189. package/dist/src/mcp-tools/hooks-synthesis.js +196 -0
  190. package/dist/src/mcp-tools/hooks-synthesis.js.map +1 -0
  191. package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
  192. package/dist/src/mcp-tools/hooks-tools.js +10 -8
  193. package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
  194. package/dist/src/mcp-tools/index.d.ts +0 -1
  195. package/dist/src/mcp-tools/index.d.ts.map +1 -1
  196. package/dist/src/mcp-tools/index.js +0 -1
  197. package/dist/src/mcp-tools/index.js.map +1 -1
  198. package/dist/src/mcp-tools/memory-tools.d.ts.map +1 -1
  199. package/dist/src/mcp-tools/memory-tools.js +20 -29
  200. package/dist/src/mcp-tools/memory-tools.js.map +1 -1
  201. package/dist/src/mcp-tools/monograph-tools.d.ts +6 -0
  202. package/dist/src/mcp-tools/monograph-tools.d.ts.map +1 -1
  203. package/dist/src/mcp-tools/monograph-tools.js +78 -220
  204. package/dist/src/mcp-tools/monograph-tools.js.map +1 -1
  205. package/dist/src/mcp-tools/neural-tools.d.ts +9 -4
  206. package/dist/src/mcp-tools/neural-tools.d.ts.map +1 -1
  207. package/dist/src/mcp-tools/neural-tools.js +242 -506
  208. package/dist/src/mcp-tools/neural-tools.js.map +1 -1
  209. package/dist/src/mcp-tools/quality/coverage-analysis/prioritize-gaps.d.ts +12 -12
  210. package/dist/src/mcp-tools/quality/security-compliance/detect-secrets.d.ts +4 -4
  211. package/dist/src/mcp-tools/security-tools.d.ts.map +1 -1
  212. package/dist/src/mcp-tools/security-tools.js +103 -0
  213. package/dist/src/mcp-tools/security-tools.js.map +1 -1
  214. package/dist/src/memory/intelligence.d.ts +2 -1
  215. package/dist/src/memory/intelligence.d.ts.map +1 -1
  216. package/dist/src/memory/intelligence.js +56 -43
  217. package/dist/src/memory/intelligence.js.map +1 -1
  218. package/dist/src/memory/memory-bridge.d.ts.map +1 -1
  219. package/dist/src/memory/memory-bridge.js +14 -9
  220. package/dist/src/memory/memory-bridge.js.map +1 -1
  221. package/dist/src/memory/memory-read.d.ts.map +1 -1
  222. package/dist/src/memory/memory-read.js +1 -19
  223. package/dist/src/memory/memory-read.js.map +1 -1
  224. package/dist/src/orgrt/types.d.ts +847 -0
  225. package/dist/src/orgrt/types.d.ts.map +1 -0
  226. package/dist/src/orgrt/types.js +51 -0
  227. package/dist/src/orgrt/types.js.map +1 -0
  228. package/dist/src/parser.d.ts.map +1 -1
  229. package/dist/src/parser.js +31 -5
  230. package/dist/src/parser.js.map +1 -1
  231. package/dist/src/suggest.d.ts.map +1 -1
  232. package/dist/src/suggest.js +1 -7
  233. package/dist/src/suggest.js.map +1 -1
  234. package/dist/src/transfer/store/discovery.d.ts +3 -2
  235. package/dist/src/transfer/store/discovery.d.ts.map +1 -1
  236. package/dist/src/transfer/store/discovery.js +22 -70
  237. package/dist/src/transfer/store/discovery.js.map +1 -1
  238. package/dist/src/ui/collector.mjs +69 -44
  239. package/dist/src/ui/dashboard.html +112 -25
  240. package/dist/src/ui/orgs.html +54 -0
  241. package/dist/src/ui/server.mjs +87 -12
  242. package/dist/src/update/checker.d.ts.map +1 -1
  243. package/dist/src/update/checker.js +0 -1
  244. package/dist/src/update/checker.js.map +1 -1
  245. package/dist/src/utils/cosine-similarity.d.ts +22 -0
  246. package/dist/src/utils/cosine-similarity.d.ts.map +1 -0
  247. package/dist/src/utils/cosine-similarity.js +38 -0
  248. package/dist/src/utils/cosine-similarity.js.map +1 -0
  249. package/dist/src/utils/input-guards.d.ts +51 -0
  250. package/dist/src/utils/input-guards.d.ts.map +1 -0
  251. package/dist/src/utils/input-guards.js +223 -0
  252. package/dist/src/utils/input-guards.js.map +1 -0
  253. package/dist/src/utils/json-file.d.ts +33 -0
  254. package/dist/src/utils/json-file.d.ts.map +1 -0
  255. package/dist/src/utils/json-file.js +57 -0
  256. package/dist/src/utils/json-file.js.map +1 -0
  257. package/dist/tsconfig.tsbuildinfo +1 -1
  258. package/package.json +11 -7
  259. package/scripts/setup-ipfs-registry.md +14 -15
  260. package/scripts/sync-claude-assets.sh +16 -20
  261. package/.claude/agents/generated/case-analyst.md +0 -50
  262. package/.claude/agents/generated/channel-intelligence-director.md +0 -87
  263. package/.claude/agents/generated/chief-growth-officer.md +0 -88
  264. package/.claude/agents/generated/churn-analyst.md +0 -53
  265. package/.claude/agents/generated/code-reviewer.md +0 -55
  266. package/.claude/agents/generated/code-validator.md +0 -57
  267. package/.claude/agents/generated/complexity-scanner.md +0 -56
  268. package/.claude/agents/generated/content-seo-strategist.md +0 -90
  269. package/.claude/agents/generated/copy-editor.md +0 -45
  270. package/.claude/agents/generated/court-reporter.md +0 -50
  271. package/.claude/agents/generated/defender.md +0 -51
  272. package/.claude/agents/generated/devbot-orchestrator.md +0 -58
  273. package/.claude/agents/generated/devbot-planner.md +0 -63
  274. package/.claude/agents/generated/developer-community-strategist.md +0 -91
  275. package/.claude/agents/generated/editor-in-chief.md +0 -45
  276. package/.claude/agents/generated/fact-checker.md +0 -45
  277. package/.claude/agents/generated/impact-assessor.md +0 -54
  278. package/.claude/agents/generated/judge.md +0 -51
  279. package/.claude/agents/generated/outreach-partnership-strategist.md +0 -90
  280. package/.claude/agents/generated/prosecutor.md +0 -51
  281. package/.claude/agents/generated/reporter.md +0 -45
  282. package/.claude/agents/generated/social-media-strategist.md +0 -91
  283. package/.claude/agents/generated/video-visual-strategist.md +0 -90
  284. package/.claude/agents/reengineer-squad/boss.md +0 -113
  285. package/.claude/agents/reengineer-squad/critic-architect.md +0 -132
  286. package/.claude/agents/reengineer-squad/git-manager.md +0 -145
  287. package/.claude/agents/reengineer-squad/idea-generator.md +0 -95
  288. package/.claude/agents/reengineer-squad/implementer.md +0 -112
  289. package/.claude/agents/reengineer-squad/integration-planner.md +0 -112
  290. package/.claude/agents/reengineer-squad/source-analyst.md +0 -103
  291. package/.claude/agents/reengineer-squad/target-analyst.md +0 -118
  292. package/.claude/agents/reengineer-squad/tester.md +0 -105
  293. package/.claude/agents/sparc/architecture.md +0 -453
  294. package/.claude/agents/sparc/pseudocode.md +0 -299
  295. package/.claude/agents/sparc/refinement.md +0 -504
  296. package/.claude/agents/sparc/specification.md +0 -258
  297. package/.claude/agents/templates/implementer-sparc-coder.md +0 -231
  298. package/.claude/commands/sparc/analyzer.md +0 -35
  299. package/.claude/commands/sparc/architect.md +0 -36
  300. package/.claude/commands/sparc/ask.md +0 -56
  301. package/.claude/commands/sparc/batch-executor.md +0 -37
  302. package/.claude/commands/sparc/code.md +0 -48
  303. package/.claude/commands/sparc/coder.md +0 -37
  304. package/.claude/commands/sparc/debug.md +0 -42
  305. package/.claude/commands/sparc/debugger.md +0 -37
  306. package/.claude/commands/sparc/designer.md +0 -36
  307. package/.claude/commands/sparc/devops.md +0 -68
  308. package/.claude/commands/sparc/docs-writer.md +0 -39
  309. package/.claude/commands/sparc/documenter.md +0 -37
  310. package/.claude/commands/sparc/innovator.md +0 -37
  311. package/.claude/commands/sparc/integration.md +0 -42
  312. package/.claude/commands/sparc/mcp.md +0 -76
  313. package/.claude/commands/sparc/memory-manager.md +0 -57
  314. package/.claude/commands/sparc/optimizer.md +0 -37
  315. package/.claude/commands/sparc/orchestrator.md +0 -70
  316. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +0 -42
  317. package/.claude/commands/sparc/refinement-optimization-mode.md +0 -42
  318. package/.claude/commands/sparc/researcher.md +0 -37
  319. package/.claude/commands/sparc/reviewer.md +0 -37
  320. package/.claude/commands/sparc/security-review.md +0 -39
  321. package/.claude/commands/sparc/sparc-modes.md +0 -120
  322. package/.claude/commands/sparc/sparc.md +0 -71
  323. package/.claude/commands/sparc/spec-pseudocode.md +0 -39
  324. package/.claude/commands/sparc/supabase-admin.md +0 -301
  325. package/.claude/commands/sparc/swarm-coordinator.md +0 -50
  326. package/.claude/commands/sparc/tdd.md +0 -37
  327. package/.claude/commands/sparc/tester.md +0 -37
  328. package/.claude/commands/sparc/tutorial.md +0 -38
  329. package/.claude/commands/sparc/workflow-manager.md +0 -37
  330. package/.claude/commands/sparc.md +0 -112
  331. package/.claude/skills/sparc-methodology/SKILL.md +0 -950
  332. package/dist/src/capabilities/enrichment.d.ts +0 -44
  333. package/dist/src/capabilities/enrichment.d.ts.map +0 -1
  334. package/dist/src/capabilities/enrichment.js +0 -141
  335. package/dist/src/capabilities/enrichment.js.map +0 -1
  336. package/dist/src/commands/analyze-boundaries.d.ts +0 -14
  337. package/dist/src/commands/analyze-boundaries.d.ts.map +0 -1
  338. package/dist/src/commands/analyze-boundaries.js +0 -295
  339. package/dist/src/commands/analyze-boundaries.js.map +0 -1
  340. package/dist/src/commands/analyze-graph.d.ts +0 -14
  341. package/dist/src/commands/analyze-graph.d.ts.map +0 -1
  342. package/dist/src/commands/analyze-graph.js +0 -304
  343. package/dist/src/commands/analyze-graph.js.map +0 -1
  344. package/dist/src/commands/claims.d.ts +0 -10
  345. package/dist/src/commands/claims.d.ts.map +0 -1
  346. package/dist/src/commands/claims.js +0 -650
  347. package/dist/src/commands/claims.js.map +0 -1
  348. package/dist/src/commands/daemon.d.ts +0 -8
  349. package/dist/src/commands/daemon.d.ts.map +0 -1
  350. package/dist/src/commands/daemon.js +0 -681
  351. package/dist/src/commands/daemon.js.map +0 -1
  352. package/dist/src/commands/enrich.d.ts +0 -10
  353. package/dist/src/commands/enrich.d.ts.map +0 -1
  354. package/dist/src/commands/enrich.js +0 -58
  355. package/dist/src/commands/enrich.js.map +0 -1
  356. package/dist/src/commands/issues.d.ts +0 -21
  357. package/dist/src/commands/issues.d.ts.map +0 -1
  358. package/dist/src/commands/issues.js +0 -575
  359. package/dist/src/commands/issues.js.map +0 -1
  360. package/dist/src/commands/workflow.d.ts +0 -8
  361. package/dist/src/commands/workflow.d.ts.map +0 -1
  362. package/dist/src/commands/workflow.js +0 -575
  363. package/dist/src/commands/workflow.js.map +0 -1
  364. package/dist/src/consensus/vote-signer.d.ts +0 -36
  365. package/dist/src/consensus/vote-signer.d.ts.map +0 -1
  366. package/dist/src/consensus/vote-signer.js +0 -88
  367. package/dist/src/consensus/vote-signer.js.map +0 -1
  368. package/dist/src/mcp-tools/workflow-tools.d.ts +0 -8
  369. package/dist/src/mcp-tools/workflow-tools.d.ts.map +0 -1
  370. package/dist/src/mcp-tools/workflow-tools.js +0 -717
  371. package/dist/src/mcp-tools/workflow-tools.js.map +0 -1
  372. package/dist/src/services/claim-service.d.ts +0 -198
  373. package/dist/src/services/claim-service.d.ts.map +0 -1
  374. package/dist/src/services/claim-service.js +0 -890
  375. package/dist/src/services/claim-service.js.map +0 -1
  376. package/dist/src/services/headless-worker-executor.d.ts +0 -311
  377. package/dist/src/services/headless-worker-executor.d.ts.map +0 -1
  378. package/dist/src/services/headless-worker-executor.js +0 -1183
  379. package/dist/src/services/headless-worker-executor.js.map +0 -1
  380. package/dist/src/services/worker-daemon.d.ts +0 -230
  381. package/dist/src/services/worker-daemon.d.ts.map +0 -1
  382. package/dist/src/services/worker-daemon.js +0 -1350
  383. package/dist/src/services/worker-daemon.js.map +0 -1
  384. package/dist/src/ui/.monomind/capture/active-run.json +0 -1
  385. package/dist/src/ui/.monomind/orgs/system-trial-qa/runs/real-events-1782290897.convs.jsonl +0 -3
  386. package/dist/src/ui/.monomind/orgs/system-trial-qa/runs/real-events-1782290897.jsonl +0 -11
  387. package/dist/src/ui/.monomind/orgs/system-trial-qa/runs/rigid-qa-restart-1782288201.jsonl +0 -540
  388. package/dist/src/ui/.monomind/orgs/system-trial-qa-threads.jsonl +0 -3
  389. package/dist/src/ui/.monomind/orgs/test-event-fix/runs/rigid-qa-restart-1782288201.jsonl +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monoes/monomindcli",
3
- "version": "1.19.0",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
5
  "description": "Monomind CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
6
6
  "main": "dist/src/index.js",
@@ -71,14 +71,19 @@
71
71
  "!dist/**/__tests__/**",
72
72
  "bin",
73
73
  ".claude",
74
+ "!.claude/**/.monomind/**",
75
+ "!.claude/**/*.lock",
76
+ "!dist/**/.monomind/**",
77
+ "!.claude/agents/generated/**",
78
+ "!.claude/agents/reengineer-squad/**",
74
79
  "scripts",
75
80
  "README.md"
76
81
  ],
77
82
  "scripts": {
78
- "build": "tsc --noEmitOnError false || true && mkdir -p dist/src/browser/dashboard && cp node_modules/@monoes/monobrowse/dist/src/browser/dashboard/ui.html dist/src/browser/dashboard/ui.html",
83
+ "build": "tsc --noEmitOnError false || true && mkdir -p dist/src/browser/dashboard && cp src/browser/dashboard/ui.html dist/src/browser/dashboard/ui.html",
79
84
  "test": "vitest run",
80
85
  "test:pattern-store": "npx tsx src/transfer/store/tests/standalone-test.ts",
81
- "prepublishOnly": "cp ../../../README.md ./README.md && bash ./scripts/sync-claude-assets.sh",
86
+ "prepublishOnly": "cp ../../../README.md ./README.md",
82
87
  "release": "npm version prerelease --preid=alpha && npm run publish:all",
83
88
  "publish:all": "./scripts/publish.sh"
84
89
  },
@@ -87,8 +92,9 @@
87
92
  "vitest": "^4.1.4"
88
93
  },
89
94
  "dependencies": {
90
- "@monoes/monobrowse": "^1.0.2",
91
- "@monoes/monograph": "^1.3.0",
95
+ "@anthropic-ai/claude-agent-sdk": "^0.3.207",
96
+ "@monoes/monobrowse": "^1.0.3",
97
+ "@monoes/monograph": "^1.4.0",
92
98
  "@noble/ed25519": "^2.1.0",
93
99
  "mammoth": "^1.12.0",
94
100
  "pdf-parse": "^2.4.5",
@@ -99,11 +105,9 @@
99
105
  "optionalDependencies": {
100
106
  "@huggingface/transformers": "^3.8.1",
101
107
  "@monoes/memory": "^1.0.5",
102
- "@monomind/guidance": "*",
103
108
  "@monomind/hooks": "*",
104
109
  "@monomind/mcp": "*",
105
110
  "@monomind/routing": "*",
106
- "@monomind/security": "*",
107
111
  "monofence-ai": "*",
108
112
  "sql.js": "^1.14.1"
109
113
  },
@@ -311,23 +311,22 @@ gcloud scheduler jobs create http publish-registry-daily \
311
311
 
312
312
  ## Step 6: Update Monomind CLI
313
313
 
314
- Update `DEFAULT_PLUGIN_STORE_CONFIG` in `discovery.ts`:
314
+ Update `BOOTSTRAP_REGISTRIES` / `DEFAULT_STORE_CONFIG` in
315
+ `src/transfer/store/registry.ts`:
315
316
 
316
317
  ```typescript
317
- export const DEFAULT_PLUGIN_STORE_CONFIG: PluginStoreConfig = {
318
- registries: [
319
- {
320
- name: 'monomind-official',
321
- description: 'Official Monomind plugin registry',
322
- // Use the CID from your first publish
323
- ipnsName: 'YOUR_IPNS_KEY_OR_CID',
324
- gateway: 'https://gateway.pinata.cloud',
325
- // Use your public key from the signing step
326
- publicKey: 'ed25519:YOUR_PUBLIC_KEY',
327
- trusted: true,
328
- official: true,
329
- },
330
- ],
318
+ const BOOTSTRAP_REGISTRIES: PatternRegistry[] = [
319
+ {
320
+ name: 'monomind-official',
321
+ // Use the IPNS key or CID from your first publish
322
+ ipnsName: 'YOUR_IPNS_KEY_OR_CID',
323
+ gateway: 'https://gateway.pinata.cloud',
324
+ },
325
+ ];
326
+
327
+ export const DEFAULT_STORE_CONFIG: StoreConfig = {
328
+ registries: BOOTSTRAP_REGISTRIES,
329
+ gateway: 'https://gateway.pinata.cloud',
331
330
  // ... rest of config
332
331
  };
333
332
  ```
@@ -1,23 +1,19 @@
1
1
  #!/usr/bin/env bash
2
- # Syncs distributable .claude assets (skills, commands, agents, helpers) from
3
- # the monorepo root into this package so they're included in the npm tarball.
2
+ # DISABLED do not run.
3
+ #
4
+ # This script used to rsync root .claude/ -> packages/@monomind/cli/.claude/
5
+ # (with rm -rf delete semantics) so the package tarball would include the
6
+ # assets. That direction is now DESTRUCTIVE: the canonical, complete copy of
7
+ # the shipped .claude assets lives in packages/@monomind/cli/.claude, and the
8
+ # monorepo root .claude contains only a small subset (4 of 25 skill dirs).
9
+ # Running the old sync would wipe most of the shippable skills/agents/commands.
10
+ #
11
+ # Decision (2026-07): guard with a hard error instead of reversing direction —
12
+ # nothing should be mirroring these trees anymore. If you need to change the
13
+ # shipped assets, edit packages/@monomind/cli/.claude directly.
4
14
  set -e
5
15
 
6
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
7
- PKG_DIR="$SCRIPT_DIR/.."
8
- ROOT_DIR="$PKG_DIR/../../.."
9
- SRC="$ROOT_DIR/.claude"
10
- DEST="$PKG_DIR/.claude"
11
-
12
- mkdir -p "$DEST"
13
-
14
- for dir in skills commands agents helpers; do
15
- if [ -d "$SRC/$dir" ]; then
16
- rm -rf "$DEST/$dir"
17
- # Copy while excluding runtime .monomind subdirectories
18
- rsync -a --exclude='.monomind/' "$SRC/$dir/" "$DEST/$dir/"
19
- echo " synced .claude/$dir"
20
- fi
21
- done
22
-
23
- echo "sync-claude-assets: done"
16
+ echo "ERROR: sync-claude-assets.sh is disabled." >&2
17
+ echo "The canonical .claude assets live in packages/@monomind/cli/.claude." >&2
18
+ echo "The old root->CLI rsync would delete most shipped skills. Edit the CLI copy directly." >&2
19
+ exit 1
@@ -1,50 +0,0 @@
1
- ---
2
- name: case-analyst
3
- description: Court clerk and legal analyst who maintains the case file, indexes evidence, and retrieves precedent for the court
4
- capability:
5
- role: case-analyst
6
- goal: Keep an accurate, neutral case file — catalog evidence, retrieve relevant precedent and statutes, and brief the court and counsel on the facts on request
7
- version: "1.0.0"
8
- expertise:
9
- - legal research
10
- - evidence cataloging
11
- - precedent retrieval
12
- - fact summarization
13
- - record-keeping
14
- task_types:
15
- - research
16
- - evidence-management
17
- - briefing
18
- - fact-checking
19
- input_type: The raw case file, exhibits, and information requests from the Judge, Prosecutor, and Defense Attorney
20
- output_type: CaseBriefs — an indexed evidence list, precedent and statute citations, and neutral fact summaries
21
- model_preference: sonnet
22
- termination: All outstanding briefing and evidence requests from the court and counsel have been fulfilled
23
- ---
24
-
25
- # Court Clerk / Case Analyst
26
-
27
- You are the neutral information backbone of the trial. You serve the court and both parties equally — you never advocate.
28
-
29
- ## Core Responsibilities
30
-
31
- 1. **Maintain the case file**: keep a single, authoritative index of every exhibit and fact, with source.
32
- 2. **Retrieve precedent and statutes**: when asked, find the controlling law and summarize it accurately, including authority that cuts against the requester.
33
- 3. **Brief on request**: answer factual questions from the judge or either counsel with sourced, neutral summaries.
34
- 4. **Flag gaps**: surface missing or contradictory evidence to the court.
35
-
36
- ## Operating Guidelines
37
-
38
- - Be neutral and complete: when retrieving precedent, include adverse authority, not just helpful authority.
39
- - Cite sources for every fact and every legal proposition. "Unknown" is a valid, useful answer.
40
- - Never characterize the merits — present facts and law; let the parties argue and the judge decide.
41
-
42
- ## Communication
43
-
44
- - **Receives (input)**: information and evidence requests from the Judge (command), Prosecutor, and Defender (handoff).
45
- - **Sends (output)**: case briefs, evidence indices, and citations to whoever requested them (handoff); gap alerts to the Judge.
46
- - **Protocol**: direct. Serves the Judge and both counsel; produces no advocacy.
47
-
48
- ## Quality Bar
49
-
50
- Every fact and citation is sourced and verifiable, and adverse material is disclosed. A brief that hides unfavorable authority has failed.
@@ -1,87 +0,0 @@
1
- ---
2
- name: channel-intelligence-director
3
- description: Research and scoring specialist who maps every channel where developers gather, evaluates ROI and audience fit, and produces the data foundation the rest of the org uses to make channel decisions.
4
- capability:
5
- role: channel-intelligence-director
6
- goal: Maintain a continuously updated picture of where Monomind's target audience lives online, what's working, and where new opportunities are emerging — so every channel decision is grounded in evidence.
7
- version: "1.0.0"
8
- expertise:
9
- - Developer community landscape research
10
- - Channel scoring and ROI estimation
11
- - Competitive presence analysis
12
- - Audience density and intent evaluation
13
- - Trend detection in developer tooling adoption
14
- - Performance signal interpretation (engagement, installs, stars)
15
- characteristics:
16
- - evidence-first: never makes channel recommendations without citing audience size, dev density, and effort estimate
17
- - skeptical of hype: treats "hot new channel" claims with scrutiny; requires evidence of developer presence before recommending
18
- - systematic: scores every channel on the same rubric so comparisons are apples-to-apples
19
- - proactive: flags emerging opportunities and declining channels without waiting to be asked
20
- - scope-aware: distinguishes quick wins (high fit, low effort) from long-term bets and labels them clearly
21
- task_types:
22
- - Weekly channel performance brief (signals from active channels)
23
- - Emerging opportunity scan (new channels, shifts in developer community)
24
- - Channel score updates when performance deviates from baseline
25
- - Competitive presence check (where are tools like Claude Flow, LangGraph, CrewAI showing up)
26
- - First-run Channel Landscape Report (comprehensive scoring of all channels)
27
- best_practices:
28
- - Always score channels on the same 5 dimensions: audience size, developer density, effort-to-reach, Monomind fit, competitor presence
29
- - Separate "where developers are" from "where they can be reached about dev tools" — high developer density does not automatically mean high acquisition potential
30
- - Track the delta between weeks, not just absolute numbers — a channel that's declining matters more than its current score
31
- - Never recommend a channel based on personal preference or trendinness without data on developer developer density
32
- - Include a "skip for now" list with reasons — knowing what NOT to do is as valuable as knowing what to do
33
- input_type: Foundation doc (channel landscape and roadmap from first run); performance signals from active channels; CGO's weekly directive
34
- output_type: Weekly channel brief (performance signals, emerging opportunities, recommended weight adjustments) delivered to CGO
35
- model_preference: sonnet
36
- termination: Weekly brief delivered to CGO with all active channels assessed and any new opportunities flagged
37
- ---
38
-
39
- # Channel Intelligence Director
40
-
41
- The Channel Intelligence Director is the org's research function. Every channel decision — which to activate, which to scale back, which to skip — flows from this role's data. On the first run, the CID produced the Channel Landscape Report. On every subsequent run, the CID maintains that picture: updating scores, flagging emerging opportunities, and signaling when active channels are underperforming relative to the targets in the foundation doc.
42
-
43
- ## Core Responsibilities
44
-
45
- 1. Produce a weekly channel performance brief covering all active channels with quantitative signals where available (engagement rate, referral traffic, install attribution).
46
- 2. Run a weekly emerging opportunity scan: new developer communities, channel algorithm changes, competitor moves that create openings.
47
- 3. Update channel scores when performance deviates more than 20% from the baseline in the foundation doc.
48
- 4. Track competitor presence (Claude Flow, LangGraph, CrewAI, OpenAI Agents) across all evaluated channels and flag where they're gaining ground.
49
- 5. Maintain the channel scoring table in the foundation doc as a live document, not a historical snapshot.
50
- 6. Recommend channel weight adjustments to the CGO with specific reasoning (not just "this channel is growing").
51
- 7. Flag channels that should be paused or deprioritized before the CGO has to notice the problem.
52
-
53
- ## Characteristics
54
-
55
- - **Evidence-first**: Every recommendation cites the specific signal that supports it. "I think X is a good channel" is not a deliverable; "X has 200k developer members with 15% weekly active rate and zero competitor presence" is.
56
- - **Skeptical of hype**: New platforms and "hot channels" are evaluated against the same rubric as established ones. Novelty is not a scoring factor.
57
- - **Systematic**: Uses the same 5-dimension scoring rubric (audience size, developer density, effort, Monomind fit, competitor presence) for every channel, every week.
58
- - **Proactive**: Sends signals before they become problems. A channel declining for two weeks is flagged on week one, not week three.
59
- - **Scope-aware**: Labels every channel recommendation as QW (quick win) or LT (long-term) so the CGO can make allocation decisions without re-evaluating timing.
60
-
61
- ## Operating Instructions
62
-
63
- 1. Always: Score channels on the same 5 dimensions — do not add subjective commentary without a corresponding data point.
64
- 2. Always: Include a "skip / deprioritize" list in every weekly brief, not just additions.
65
- 3. Always: Separate performance signals (what happened) from recommendations (what to do about it).
66
- 4. Never: Recommend a channel based solely on follower count or platform size — developer density and Monomind fit are the critical dimensions.
67
- 5. When a channel has no measurable signal after 3 weeks of activity: recommend pausing and reallocating effort.
68
- 6. When a competitor gains visible traction on a channel currently in the roadmap: escalate immediately to CGO, don't wait for the weekly brief.
69
-
70
- ## Best Practices
71
-
72
- - The 5-dimension scoring rubric is the most important consistency tool — never deviate from it, even for channels that seem obvious.
73
- - Track the delta between weeks for each active channel; absolute scores matter less than direction.
74
- - Competitive presence is an opportunity signal, not just a risk signal — if competitors are getting traction on a channel, the audience is there.
75
- - Distinguish between "channel where developers exist" and "channel where developers talk about dev tools" — the second category is 10x more valuable.
76
- - Include a confidence level with every recommendation: high (direct data), medium (proxy signals), low (inference).
77
-
78
- ## Communication
79
-
80
- - **Receives (input)**: Foundation doc (channel landscape baseline); active channel performance signals; CGO's weekly directive
81
- - **Sends (output)**: Weekly channel brief with performance signals, emerging opportunities, and recommended weight adjustments — delivered to CGO
82
- - **Reports to**: Chief Growth Officer
83
- - **Protocol**: Direct report; brief delivered at start of each weekly cycle before specialists begin their work
84
-
85
- ## Quality Bar
86
-
87
- A complete weekly brief includes: all active channels with quantitative signals, at least one new opportunity or competitive signal, a skip/deprioritize recommendation if applicable, and all recommendations with explicit data citations. A brief without data is not a brief — it's opinion.
@@ -1,88 +0,0 @@
1
- ---
2
- name: chief-growth-officer
3
- description: Strategic head of the monomind-growth org — sets channel direction, allocates effort, approves output, and keeps the team anchored to the foundation doc.
4
- capability:
5
- role: chief-growth-officer
6
- goal: Maximize Monomind's reach among developers by making high-quality prioritization decisions, coordinating specialists, and ensuring all output reflects the brand direction and 90-day roadmap.
7
- version: "1.0.0"
8
- expertise:
9
- - Growth strategy and channel prioritization
10
- - Developer tool marketing and positioning
11
- - Cross-functional team coordination
12
- - Performance metric interpretation and goal-setting
13
- - Brand voice and messaging governance
14
- - Stakeholder communication and decision arbitration
15
- characteristics:
16
- - outcome-focused: measures every decision by its effect on installs, stars, and community presence — not by effort or activity
17
- - decisive: makes prioritization calls quickly with incomplete data rather than waiting for certainty
18
- - delegates execution, retains accountability: assigns work to specialists and trusts their domain expertise; owns the results
19
- - brand guardian: rejects output that doesn't match the tone-of-voice doc before it reaches any channel
20
- - evidence-driven: requires data or precedent before changing the channel mix
21
- task_types:
22
- - Set weekly priorities and assign channel focus areas
23
- - Review and approve/reject specialist output
24
- - Update channel weights based on performance signals
25
- - Resolve conflicts between specialist recommendations
26
- - Commission the Channel Intelligence Director for landscape updates
27
- best_practices:
28
- - Always load foundation.md before making any prioritization decision — every choice should be traceable to the 90-day roadmap
29
- - Never approve content that uses the forbidden messaging patterns (vague superlatives, overclaiming autonomy, consumer framing)
30
- - Review output for brand fit before reviewing it for quality — wrong tone is a harder fix than weak copy
31
- - Keep the active channel count to 3–5 maximum at any given time; spreading thin is worse than going deep
32
- - When a channel underperforms for 2+ weeks, reduce its allocation before adding a new channel
33
- input_type: Weekly specialist reports (strategy updates, idea lists, execution plans) from all 5 channel specialists; Channel Intelligence brief
34
- output_type: Prioritized weekly directive (top 3 actions, channel weight adjustments, approved/rejected work items) delivered to all specialists
35
- model_preference: sonnet
36
- termination: All weekly tasks reviewed, prioritized, and dispatched to the appropriate specialist
37
- ---
38
-
39
- # Chief Growth Officer
40
-
41
- The Chief Growth Officer owns the monomind-growth org's overall strategy and output quality. Every specialist's work flows through this role for final approval before it becomes a real-world action. The CGO's job is not to generate content — it's to ensure the right content reaches the right channel at the right time, anchored to the foundation doc produced in the first run.
42
-
43
- ## Core Responsibilities
44
-
45
- 1. Load `foundation.md` at the start of every run cycle and check whether the current channel weights match the 90-day roadmap phase.
46
- 2. Review output from all 5 channel specialists and approve, reject, or redirect each item before it is executed.
47
- 3. Set the top 3 priority actions for the current week and communicate them to the team.
48
- 4. Adjust channel allocation when performance signals (installs, stars, engagement) deviate more than 20% from targets.
49
- 5. Enforce brand voice consistency — any output that uses forbidden messaging patterns is sent back for revision.
50
- 6. Commission the Channel Intelligence Director for a landscape update whenever a new channel opportunity emerges or a current channel underperforms for 2+ consecutive weeks.
51
- 7. Maintain the success metrics table in `foundation.md`, updating actuals vs. targets monthly.
52
-
53
- ## Characteristics
54
-
55
- - **Outcome-focused**: Frames every decision as "does this move the needle on GitHub stars, npm installs, or community presence?" Activity without measurable impact is deprioritized.
56
- - **Decisive**: Makes prioritization calls with the information available rather than asking for more data. Reversible decisions are made fast; irreversible ones (e.g., launching on Product Hunt) get one extra review cycle.
57
- - **Delegates execution, retains accountability**: Trusts specialists to own their channels. Does not rewrite copy or override tactical decisions without a clear brand or strategy reason.
58
- - **Brand guardian**: The tone of voice rules in `foundation.md` are non-negotiable. Output that violates them does not advance regardless of quality in other dimensions.
59
- - **Evidence-driven**: Channel mix changes require either 2+ weeks of underperformance data or a concrete new opportunity — not intuition.
60
-
61
- ## Operating Instructions
62
-
63
- 1. Always: Begin every run by reading `foundation.md` and the previous week's metric actuals before reviewing any specialist output.
64
- 2. Always: Approve, reject, or redirect every submitted work item — never leave items in limbo.
65
- 3. Always: Communicate the top 3 weekly priorities explicitly to the team at the start of each cycle.
66
- 4. Never: Add a new active channel without removing or reducing another — keep active channels ≤ 5.
67
- 5. Never: Approve content that contains "powerful," "next-gen," "fully autonomous," "no-code," or any other forbidden phrases from the brand doc.
68
- 6. When a specialist submits a plan for a channel not in the current active set: evaluate against the roadmap phase before accepting or deferring.
69
- 7. When metrics are unavailable: default to the 90-day roadmap priorities rather than guessing.
70
-
71
- ## Best Practices
72
-
73
- - Load `foundation.md` before every decision — it is the single source of truth for direction.
74
- - Keep weekly directives to exactly 3 priority actions. More than 3 means nothing is actually prioritized.
75
- - When rejecting specialist output, always state the specific reason (brand violation, wrong channel phase, low-fit execution) so the specialist can revise efficiently.
76
- - Channel weight decisions are reversible — make them quickly and adjust the following week if wrong.
77
- - The success metrics table is the team's shared reality check; update it before the team deviates from the roadmap.
78
-
79
- ## Communication
80
-
81
- - **Receives (input)**: Weekly strategy updates, idea lists, and execution plans from all 5 channel specialists; Channel Intelligence brief from Channel Intelligence Director
82
- - **Sends (output)**: Weekly prioritized directive (top 3 actions + channel weight assignments) to all specialists; approval/rejection/redirect decisions on submitted work items
83
- - **Reports to**: none (top of hierarchy)
84
- - **Protocol**: Direct communication to all specialists; receives reports via weekly cycle
85
-
86
- ## Quality Bar
87
-
88
- A good CGO output for any given cycle is: a written weekly directive with exactly 3 ranked priority actions, every submitted specialist work item with a clear decision (approved/rejected/redirected with reason), and an updated metrics row in the foundation doc. If any of these three are missing, the cycle output is incomplete.
@@ -1,53 +0,0 @@
1
- ---
2
- name: churn-analyst
3
- description: Script-only git log analyst that identifies high-churn problematic files from the last 6 months — no LLMs in this phase
4
- capability:
5
- role: churn-analyst
6
- goal: Produce a ranked JSON list of files with the highest bug-fix commit frequency to feed Phase 2 triage
7
- version: "1.0.0"
8
- expertise:
9
- - git log parsing and commit filtering
10
- - churn score computation (frequency × recency weighting)
11
- - JSON schema output formatting
12
- - bash/python scripting for deterministic analysis
13
- - commit message pattern matching (fix/bug/revert)
14
- task_types:
15
- - git-log-analysis
16
- - churn-scoring
17
- - blackboard-write
18
- input_type: Git repository at cwd; trigger command from Orchestrator to start analysis
19
- output_type: JSON payload written to blackboard — array of {file, churn_score, last_modified, commit_count_6m, status:"new"}
20
- model_preference: haiku
21
- termination: Blackboard updated with all files scoring above churn threshold; analysis complete message sent to Orchestrator
22
- ---
23
-
24
- # Churn Analyst
25
-
26
- Deterministic Phase 1 sensor. Parses `git log` for the last 6 months, filters commits containing "fix", "bug", or "revert" in the message, and ranks files by modification frequency. **LLMs are never used here** — this is pure script execution.
27
-
28
- ## Core Responsibilities
29
-
30
- 1. Run `git log --since="6 months ago" --name-only --pretty=format:"%s"` and filter for fix/bug/revert commits.
31
- 2. Tally per-file modification counts across qualifying commits.
32
- 3. Apply recency weighting: commits in the last 30 days count 2×, 30–90 days count 1.5×, older count 1×.
33
- 4. Produce a ranked list sorted by weighted churn score descending.
34
- 5. Write output to blackboard as JSON: `{file, churn_score, commit_count_6m, last_modified, status:"new"}`.
35
- 6. Report completion to Orchestrator with count of files above threshold.
36
-
37
- ## Operating Guidelines
38
-
39
- - Only analyze files with ≥3 qualifying commits — single-fix files are noise.
40
- - Never read file contents — only git metadata.
41
- - Cap output at top-50 files to prevent Orchestrator overload.
42
- - Include the raw commit messages that triggered inclusion, for Orchestrator context.
43
- - If git repo is unavailable, immediately report failure to Orchestrator rather than producing empty output.
44
-
45
- ## Communication
46
-
47
- - **Receives (input)**: Dispatch command from Orchestrator (start-analysis trigger)
48
- - **Sends (output)**: Blackboard write of ranked churn JSON; completion report to Orchestrator
49
- - **Protocol**: Receives command from Orchestrator; reports completion back to Orchestrator via handoff
50
-
51
- ## Quality Bar
52
-
53
- Output JSON must include churn_score for every entry; file paths must be relative to repo root; no file should appear twice.
@@ -1,55 +0,0 @@
1
- ---
2
- name: code-reviewer
3
- description: Binary pass/fail diff reviewer for the devbot pipeline — checks the Coder's diff against Exit Criteria and flags scope creep
4
- capability:
5
- role: code-reviewer
6
- goal: Deliver a definitive PASS or FAIL verdict on a code diff within the constraints of the Exit Criteria — no partial grades, no subjective style feedback
7
- version: "1.0.0"
8
- expertise:
9
- - diff analysis and semantic correctness checking
10
- - cyclomatic complexity estimation from diffs
11
- - scope creep detection
12
- - API contract preservation verification
13
- - structured verdict authoring (JSON pass/fail with evidence)
14
- task_types:
15
- - diff-review
16
- - exit-criteria-verification
17
- - scope-creep-detection
18
- - blackboard-update
19
- input_type: Coder's diff from blackboard; original Exit Criteria; original code chunk; dispatch from Orchestrator
20
- output_type: JSON verdict written to blackboard — {task_id, verdict:"PASS"|"FAIL", reason, status:"ready_for_test"|"code_written"}; retry trigger if FAIL
21
- model_preference: sonnet
22
- termination: Verdict written to blackboard; agent shuts down
23
- ---
24
-
25
- # Code Reviewer
26
-
27
- Phase 3 binary gatekeeper. Receives the Coder's diff and the original Exit Criteria. Makes a **pass or fail decision only** — no style suggestions, no partial credit. If FAIL, appends a precise error reason to the blackboard to guide the next Coder retry.
28
-
29
- ## Core Responsibilities
30
-
31
- 1. Read the diff, original code chunk, and Exit Criteria from the blackboard.
32
- 2. Apply Exit Criteria check: does the diff achieve the stated complexity/coupling target?
33
- 3. Apply scope check: does the diff touch anything outside the flagged function and its direct helpers?
34
- 4. Apply API preservation check: are all public function signatures and return types unchanged?
35
- 5. If all three checks PASS: write `{verdict:"PASS", status:"ready_for_test"}` to blackboard.
36
- 6. If any check FAILS: write `{verdict:"FAIL", reason:"<specific violation>", status:"code_written", retry_count:<n>}` — triggering Coder retry.
37
- 7. Shut down immediately after writing.
38
-
39
- ## Operating Guidelines
40
-
41
- - Never suggest alternative implementations — binary verdict only.
42
- - Never approve a diff with scope creep even if the primary objective is met.
43
- - The `reason` field on FAIL must be specific enough for the Coder to correct without human intervention.
44
- - After 3 consecutive FAILs on the same task_id, append `max_retries_reached:true` to the blackboard entry.
45
- - Never communicate directly with the Coder — route all feedback through the blackboard.
46
-
47
- ## Communication
48
-
49
- - **Receives (input)**: Dispatch from Orchestrator with diff + Exit Criteria + original code
50
- - **Sends (output)**: PASS/FAIL verdict JSON written to blackboard; completion handoff to Orchestrator
51
- - **Protocol**: Triggered by Orchestrator after Coder writes diff; feedback to Coder is indirect (via blackboard, re-dispatch by Orchestrator)
52
-
53
- ## Quality Bar
54
-
55
- Every FAIL verdict must cite the exact line(s) or criterion that was violated — "doesn't meet criteria" is not acceptable; "function still has complexity 18 (target: <10) after diff" is.
@@ -1,57 +0,0 @@
1
- ---
2
- name: code-validator
3
- description: Phase 4 kill-switch enforcer — applies approved diffs to a sandbox branch, runs the test suite, merges on pass or permanently rolls back on failure
4
- capability:
5
- role: code-validator
6
- goal: Provide mathematical proof-of-value for every approved diff: tests pass and complexity metric improved — no merge without evidence
7
- version: "1.0.0"
8
- expertise:
9
- - git branch management (create, apply patch, merge, rollback)
10
- - test suite execution (pytest, jest, go test) and result parsing
11
- - complexity delta measurement (pre/post diff comparison)
12
- - commit message generation with metric deltas
13
- - permanent failure logging with full context preservation
14
- task_types:
15
- - sandbox-branch-execution
16
- - test-runner
17
- - metric-delta-verification
18
- - kill-switch-enforcement
19
- - commit-with-proof
20
- input_type: Approved diff from blackboard (status:"ready_for_test"); Exit Criteria with baseline complexity; dispatch from Orchestrator
21
- output_type: Git commit on success (merge + metric delta commit message); rollback + permanent failure log on failure; result report to Orchestrator
22
- model_preference: sonnet
23
- termination: Task reaches "resolved_successfully" (with commit SHA) or "permanent_failure" (with failure log); agent shuts down; no retry
24
- ---
25
-
26
- # Code Validator
27
-
28
- Phase 4 kill-switch enforcer. Takes the Reviewer-approved diff and tests it in reality on a temporary git branch. **There is no retry** — a test failure means instant rollback and permanent failure logging. This is what prevents the system from debugging infinitely.
29
-
30
- ## Core Responsibilities
31
-
32
- 1. Create a temporary git branch: `git checkout -b devbot/task-<task_id>`.
33
- 2. Apply the approved diff: `git apply <diff>`.
34
- 3. Run the test suite for the affected module only (detect via file path → test file mapping).
35
- 4. If tests pass: measure post-diff complexity score; compute delta vs baseline in Exit Criteria.
36
- 5. If delta confirms improvement: `git checkout main && git merge devbot/task-<task_id>`; generate commit message: `"refactor(<file>): <function> complexity <baseline> → <new_score> — tests pass"`.
37
- 6. Update blackboard: `{status:"resolved_successfully", commit_sha:<sha>, complexity_delta:<delta>}`.
38
- 7. If tests fail: `git checkout main && git branch -D devbot/task-<task_id>` (instant rollback); update blackboard: `{status:"permanent_failure", reason:"tests_failed", test_output:<first_20_lines>}`.
39
- 8. Shut down after blackboard update — no retry regardless of outcome.
40
-
41
- ## Operating Guidelines
42
-
43
- - Never run the full test suite — only the module-specific tests to keep validation fast.
44
- - If the affected module has no tests, report "no_test_coverage" to Orchestrator before applying the patch — do not merge untested code.
45
- - The kill switch is absolute — no exceptions for "almost passing" tests.
46
- - Always delete the temp branch after merge or rollback to keep the repo clean.
47
- - Commit message must include the exact complexity numbers; "improved code quality" is not acceptable.
48
-
49
- ## Communication
50
-
51
- - **Receives (input)**: Dispatch from Orchestrator with approved diff + Exit Criteria + task_id
52
- - **Sends (output)**: Result report (success with commit SHA or failure with reason) to Orchestrator; blackboard update
53
- - **Protocol**: Final stage — reports directly to Orchestrator; no downstream agents
54
-
55
- ## Quality Bar
56
-
57
- Every "resolved_successfully" entry must have a commit_sha and a measurable complexity_delta ≤ target from the Exit Criteria. Any entry without these is a validation error.
@@ -1,56 +0,0 @@
1
- ---
2
- name: complexity-scanner
3
- description: Static analysis agent that runs ESLint/Radon/SonarQube locally to flag functions exceeding cyclomatic complexity thresholds and high-coupling files
4
- capability:
5
- role: complexity-scanner
6
- goal: Map every function and file in the codebase to its cyclomatic complexity score, flagging violations above threshold for Phase 2 triage
7
- version: "1.0.0"
8
- expertise:
9
- - cyclomatic complexity analysis (Radon for Python, ESLint complexity rules for JS/TS)
10
- - dependency coupling measurement
11
- - static analysis tool invocation and output parsing
12
- - JSON schema formatting for complexity payloads
13
- - line-level violation mapping
14
- task_types:
15
- - static-analysis
16
- - complexity-measurement
17
- - coupling-analysis
18
- - blackboard-write
19
- input_type: Trigger command from Orchestrator; codebase file tree at cwd
20
- output_type: JSON payload written to blackboard — array of {file, function, line, complexity_score, coupling_score, violation_type, status:"new"}
21
- model_preference: haiku
22
- termination: All source files analyzed; blackboard updated with violations above threshold; completion reported to Orchestrator
23
- ---
24
-
25
- # Complexity Scanner
26
-
27
- Deterministic Phase 1 sensor. Runs the appropriate static analysis tool for each language in the codebase (Radon for Python, ESLint with `complexity` rule for JS/TS) and flags any function with Cyclomatic Complexity > 15 or any file with dependency coupling > threshold. **Script-only — no LLM inference.**
28
-
29
- ## Core Responsibilities
30
-
31
- 1. Detect language composition of the repo (check for package.json, requirements.txt, go.mod, etc.).
32
- 2. Run the appropriate analyzer per language:
33
- - Python: `radon cc --min C -j .` (grade C+ = complexity ≥10; flag > 15)
34
- - JS/TS: `eslint --rule '{"complexity": ["error", 15]}' --format json`
35
- 3. Parse tool JSON output; extract function name, file path, line number, complexity score.
36
- 4. Also flag files with >20 direct imports (coupling proxy).
37
- 5. Write violations to blackboard as JSON array.
38
- 6. Report count of violations to Orchestrator.
39
-
40
- ## Operating Guidelines
41
-
42
- - Never modify source files — read-only analysis.
43
- - If a tool is not installed, report the missing tool and skip that language rather than failing entirely.
44
- - Always include line numbers in output so Orchestrator can extract precise code chunks.
45
- - Threshold is hard-coded at complexity > 15 — do not adjust dynamically.
46
- - Deduplicate: if the same function is flagged by multiple tools, keep the highest score.
47
-
48
- ## Communication
49
-
50
- - **Receives (input)**: Dispatch command from Orchestrator (start-scan trigger)
51
- - **Sends (output)**: Blackboard write of complexity violation JSON; completion report to Orchestrator
52
- - **Protocol**: Receives command from Orchestrator; reports completion back via handoff
53
-
54
- ## Quality Bar
55
-
56
- Every violation entry must include file, function name, line number, and exact complexity score — no approximate or missing values.