@vpxa/kb 0.1.13 → 0.1.15

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 (383) hide show
  1. package/README.md +8 -2
  2. package/package.json +10 -7
  3. package/packages/analyzers/dist/blast-radius-analyzer.d.ts +17 -20
  4. package/packages/analyzers/dist/blast-radius-analyzer.js +6 -12
  5. package/packages/analyzers/dist/dependency-analyzer.d.ts +31 -27
  6. package/packages/analyzers/dist/dependency-analyzer.js +7 -9
  7. package/packages/analyzers/dist/diagram-generator.d.ts +12 -8
  8. package/packages/analyzers/dist/diagram-generator.js +3 -4
  9. package/packages/analyzers/dist/entry-point-analyzer.d.ts +39 -35
  10. package/packages/analyzers/dist/entry-point-analyzer.js +5 -6
  11. package/packages/analyzers/dist/index.d.ts +12 -14
  12. package/packages/analyzers/dist/index.js +1 -1
  13. package/packages/analyzers/dist/knowledge-producer.d.ts +29 -25
  14. package/packages/analyzers/dist/knowledge-producer.js +16 -15
  15. package/packages/analyzers/dist/pattern-analyzer.d.ts +14 -10
  16. package/packages/analyzers/dist/pattern-analyzer.js +3 -5
  17. package/packages/analyzers/dist/regex-call-graph.d.ts +6 -12
  18. package/packages/analyzers/dist/regex-call-graph.js +2 -1
  19. package/packages/analyzers/dist/structure-analyzer.d.ts +13 -9
  20. package/packages/analyzers/dist/structure-analyzer.js +3 -4
  21. package/packages/analyzers/dist/symbol-analyzer.d.ts +12 -8
  22. package/packages/analyzers/dist/symbol-analyzer.js +8 -13
  23. package/packages/analyzers/dist/ts-call-graph.d.ts +16 -13
  24. package/packages/analyzers/dist/ts-call-graph.js +2 -1
  25. package/packages/analyzers/dist/types.d.ts +82 -79
  26. package/packages/analyzers/dist/types.js +1 -0
  27. package/packages/chunker/dist/call-graph-extractor.d.ts +13 -10
  28. package/packages/chunker/dist/call-graph-extractor.js +2 -1
  29. package/packages/chunker/dist/chunker-factory.d.ts +6 -2
  30. package/packages/chunker/dist/chunker-factory.js +2 -1
  31. package/packages/chunker/dist/chunker.interface.d.ts +8 -4
  32. package/packages/chunker/dist/chunker.interface.js +1 -0
  33. package/packages/chunker/dist/code-chunker.d.ts +16 -12
  34. package/packages/chunker/dist/code-chunker.js +12 -14
  35. package/packages/chunker/dist/generic-chunker.d.ts +14 -10
  36. package/packages/chunker/dist/generic-chunker.js +6 -5
  37. package/packages/chunker/dist/index.d.ts +8 -8
  38. package/packages/chunker/dist/index.js +1 -1
  39. package/packages/chunker/dist/markdown-chunker.d.ts +16 -12
  40. package/packages/chunker/dist/markdown-chunker.js +4 -10
  41. package/packages/chunker/dist/treesitter-chunker.d.ts +28 -31
  42. package/packages/chunker/dist/treesitter-chunker.js +7 -8
  43. package/packages/cli/dist/commands/analyze.d.ts +6 -2
  44. package/packages/cli/dist/commands/analyze.js +3 -3
  45. package/packages/cli/dist/commands/context-cmds.d.ts +6 -2
  46. package/packages/cli/dist/commands/context-cmds.js +2 -1
  47. package/packages/cli/dist/commands/environment.d.ts +6 -2
  48. package/packages/cli/dist/commands/environment.js +2 -2
  49. package/packages/cli/dist/commands/execution.d.ts +6 -2
  50. package/packages/cli/dist/commands/execution.js +2 -1
  51. package/packages/cli/dist/commands/graph.d.ts +6 -2
  52. package/packages/cli/dist/commands/graph.js +6 -6
  53. package/packages/cli/dist/commands/init/adapters.d.ts +27 -0
  54. package/packages/cli/dist/commands/init/adapters.js +2 -0
  55. package/packages/cli/dist/commands/init/config.d.ts +11 -0
  56. package/packages/cli/dist/commands/init/config.js +4 -0
  57. package/packages/cli/dist/commands/init/curated.d.ts +8 -0
  58. package/packages/cli/dist/commands/init/curated.js +2 -0
  59. package/packages/cli/dist/commands/init/index.d.ts +23 -0
  60. package/packages/cli/dist/commands/init/index.js +3 -0
  61. package/packages/cli/dist/commands/init/scaffold.d.ts +24 -0
  62. package/packages/cli/dist/commands/init/scaffold.js +2 -0
  63. package/packages/cli/dist/commands/init/templates.d.ts +10 -0
  64. package/packages/cli/dist/commands/init/templates.js +302 -0
  65. package/packages/cli/dist/commands/init.d.ts +8 -3
  66. package/packages/cli/dist/commands/init.js +120 -123
  67. package/packages/cli/dist/commands/knowledge.d.ts +6 -2
  68. package/packages/cli/dist/commands/knowledge.js +2 -1
  69. package/packages/cli/dist/commands/search.d.ts +6 -2
  70. package/packages/cli/dist/commands/search.js +2 -8
  71. package/packages/cli/dist/commands/system.d.ts +6 -2
  72. package/packages/cli/dist/commands/system.js +5 -7
  73. package/packages/cli/dist/commands/workspace.d.ts +6 -2
  74. package/packages/cli/dist/commands/workspace.js +2 -2
  75. package/packages/cli/dist/context.d.ts +7 -4
  76. package/packages/cli/dist/context.js +2 -1
  77. package/packages/cli/dist/helpers.d.ts +51 -47
  78. package/packages/cli/dist/helpers.js +6 -5
  79. package/packages/cli/dist/index.d.ts +4 -1
  80. package/packages/cli/dist/index.js +3 -2
  81. package/packages/cli/dist/kb-init.d.ts +48 -50
  82. package/packages/cli/dist/kb-init.js +2 -1
  83. package/packages/cli/dist/types.d.ts +8 -5
  84. package/packages/cli/dist/types.js +1 -0
  85. package/packages/core/dist/constants.d.ts +36 -33
  86. package/packages/core/dist/constants.js +2 -1
  87. package/packages/core/dist/content-detector.d.ts +8 -7
  88. package/packages/core/dist/content-detector.js +2 -1
  89. package/packages/core/dist/errors.d.ts +15 -12
  90. package/packages/core/dist/errors.js +2 -1
  91. package/packages/core/dist/index.d.ts +6 -6
  92. package/packages/core/dist/index.js +1 -1
  93. package/packages/core/dist/logger.d.ts +16 -7
  94. package/packages/core/dist/logger.js +2 -1
  95. package/packages/core/dist/types.d.ts +107 -91
  96. package/packages/core/dist/types.js +2 -0
  97. package/packages/embeddings/dist/embedder.interface.d.ts +22 -19
  98. package/packages/embeddings/dist/embedder.interface.js +1 -0
  99. package/packages/embeddings/dist/index.d.ts +3 -3
  100. package/packages/embeddings/dist/index.js +1 -1
  101. package/packages/embeddings/dist/onnx-embedder.d.ts +21 -22
  102. package/packages/embeddings/dist/onnx-embedder.js +2 -1
  103. package/packages/enterprise-bridge/dist/cache.d.ts +29 -0
  104. package/packages/enterprise-bridge/dist/cache.js +2 -0
  105. package/packages/enterprise-bridge/dist/er-client.d.ts +38 -0
  106. package/packages/enterprise-bridge/dist/er-client.js +2 -0
  107. package/packages/enterprise-bridge/dist/evolution-collector.d.ts +63 -0
  108. package/packages/enterprise-bridge/dist/evolution-collector.js +2 -0
  109. package/packages/enterprise-bridge/dist/index.d.ts +8 -0
  110. package/packages/enterprise-bridge/dist/index.js +1 -0
  111. package/packages/enterprise-bridge/dist/policy-store.d.ts +46 -0
  112. package/packages/enterprise-bridge/dist/policy-store.js +2 -0
  113. package/packages/enterprise-bridge/dist/push-adapter.d.ts +24 -0
  114. package/packages/enterprise-bridge/dist/push-adapter.js +2 -0
  115. package/packages/enterprise-bridge/dist/result-merger.d.ts +15 -0
  116. package/packages/enterprise-bridge/dist/result-merger.js +2 -0
  117. package/packages/enterprise-bridge/dist/types.d.ts +82 -0
  118. package/packages/enterprise-bridge/dist/types.js +2 -0
  119. package/packages/indexer/dist/file-hasher.d.ts +5 -2
  120. package/packages/indexer/dist/file-hasher.js +2 -1
  121. package/packages/indexer/dist/filesystem-crawler.d.ts +23 -20
  122. package/packages/indexer/dist/filesystem-crawler.js +2 -1
  123. package/packages/indexer/dist/graph-extractor.d.ts +9 -12
  124. package/packages/indexer/dist/graph-extractor.js +2 -1
  125. package/packages/indexer/dist/incremental-indexer.d.ts +49 -43
  126. package/packages/indexer/dist/incremental-indexer.js +2 -1
  127. package/packages/indexer/dist/index.d.ts +5 -5
  128. package/packages/indexer/dist/index.js +1 -1
  129. package/packages/server/dist/api.d.ts +3 -8
  130. package/packages/server/dist/api.js +1 -1
  131. package/packages/server/dist/config.d.ts +6 -2
  132. package/packages/server/dist/config.js +2 -1
  133. package/packages/server/dist/curated-manager.d.ts +79 -76
  134. package/packages/server/dist/curated-manager.js +6 -10
  135. package/packages/server/dist/index.d.ts +1 -2
  136. package/packages/server/dist/index.js +2 -1
  137. package/packages/server/dist/replay-interceptor.d.ts +6 -6
  138. package/packages/server/dist/replay-interceptor.js +2 -1
  139. package/packages/server/dist/resources/resources.d.ts +7 -3
  140. package/packages/server/dist/resources/resources.js +3 -2
  141. package/packages/server/dist/server.d.ts +34 -24
  142. package/packages/server/dist/server.js +2 -1
  143. package/packages/server/dist/tools/analyze.tools.d.ts +14 -10
  144. package/packages/server/dist/tools/analyze.tools.js +2 -3
  145. package/packages/server/dist/tools/audit.tool.d.ts +8 -4
  146. package/packages/server/dist/tools/audit.tool.js +2 -4
  147. package/packages/server/dist/tools/bridge.tools.d.ts +35 -0
  148. package/packages/server/dist/tools/bridge.tools.js +16 -0
  149. package/packages/server/dist/tools/evolution.tools.d.ts +8 -0
  150. package/packages/server/dist/tools/evolution.tools.js +6 -0
  151. package/packages/server/dist/tools/forge.tools.d.ts +13 -11
  152. package/packages/server/dist/tools/forge.tools.js +11 -13
  153. package/packages/server/dist/tools/forget.tool.d.ts +7 -3
  154. package/packages/server/dist/tools/forget.tool.js +2 -7
  155. package/packages/server/dist/tools/graph.tool.d.ts +7 -3
  156. package/packages/server/dist/tools/graph.tool.js +5 -5
  157. package/packages/server/dist/tools/list.tool.d.ts +7 -3
  158. package/packages/server/dist/tools/list.tool.js +3 -8
  159. package/packages/server/dist/tools/lookup.tool.d.ts +7 -3
  160. package/packages/server/dist/tools/lookup.tool.js +3 -9
  161. package/packages/server/dist/tools/onboard.tool.d.ts +8 -4
  162. package/packages/server/dist/tools/onboard.tool.js +3 -2
  163. package/packages/server/dist/tools/policy.tools.d.ts +8 -0
  164. package/packages/server/dist/tools/policy.tools.js +3 -0
  165. package/packages/server/dist/tools/produce.tool.d.ts +6 -2
  166. package/packages/server/dist/tools/produce.tool.js +3 -2
  167. package/packages/server/dist/tools/read.tool.d.ts +7 -3
  168. package/packages/server/dist/tools/read.tool.js +3 -6
  169. package/packages/server/dist/tools/reindex.tool.d.ts +10 -6
  170. package/packages/server/dist/tools/reindex.tool.js +3 -2
  171. package/packages/server/dist/tools/remember.tool.d.ts +8 -3
  172. package/packages/server/dist/tools/remember.tool.js +4 -5
  173. package/packages/server/dist/tools/replay.tool.d.ts +6 -2
  174. package/packages/server/dist/tools/replay.tool.js +3 -6
  175. package/packages/server/dist/tools/search.tool.d.ts +10 -4
  176. package/packages/server/dist/tools/search.tool.js +7 -22
  177. package/packages/server/dist/tools/status.tool.d.ts +7 -3
  178. package/packages/server/dist/tools/status.tool.js +3 -3
  179. package/packages/server/dist/tools/toolkit.tools.d.ts +36 -34
  180. package/packages/server/dist/tools/toolkit.tools.js +20 -24
  181. package/packages/server/dist/tools/update.tool.d.ts +7 -3
  182. package/packages/server/dist/tools/update.tool.js +2 -6
  183. package/packages/server/dist/tools/utility.tools.d.ts +15 -14
  184. package/packages/server/dist/tools/utility.tools.js +11 -23
  185. package/packages/server/dist/version-check.d.ts +5 -1
  186. package/packages/server/dist/version-check.js +2 -1
  187. package/packages/store/dist/graph-store.interface.d.ts +89 -86
  188. package/packages/store/dist/graph-store.interface.js +1 -0
  189. package/packages/store/dist/index.d.ts +6 -6
  190. package/packages/store/dist/index.js +1 -1
  191. package/packages/store/dist/lance-store.d.ts +37 -30
  192. package/packages/store/dist/lance-store.js +2 -1
  193. package/packages/store/dist/sqlite-graph-store.d.ts +43 -46
  194. package/packages/store/dist/sqlite-graph-store.js +14 -13
  195. package/packages/store/dist/store-factory.d.ts +11 -7
  196. package/packages/store/dist/store-factory.js +2 -1
  197. package/packages/store/dist/store.interface.d.ts +47 -46
  198. package/packages/store/dist/store.interface.js +1 -0
  199. package/packages/tools/dist/audit.d.ts +61 -61
  200. package/packages/tools/dist/audit.js +5 -5
  201. package/packages/tools/dist/batch.d.ts +20 -17
  202. package/packages/tools/dist/batch.js +2 -1
  203. package/packages/tools/dist/changelog.d.ts +29 -26
  204. package/packages/tools/dist/changelog.js +3 -2
  205. package/packages/tools/dist/check.d.ts +42 -38
  206. package/packages/tools/dist/check.js +3 -2
  207. package/packages/tools/dist/checkpoint.d.ts +17 -14
  208. package/packages/tools/dist/checkpoint.js +2 -2
  209. package/packages/tools/dist/codemod.d.ts +35 -32
  210. package/packages/tools/dist/codemod.js +3 -2
  211. package/packages/tools/dist/compact.d.ts +34 -37
  212. package/packages/tools/dist/compact.js +3 -2
  213. package/packages/tools/dist/data-transform.d.ts +10 -7
  214. package/packages/tools/dist/data-transform.js +2 -1
  215. package/packages/tools/dist/dead-symbols.d.ts +29 -25
  216. package/packages/tools/dist/dead-symbols.js +3 -2
  217. package/packages/tools/dist/delegate.d.ts +26 -23
  218. package/packages/tools/dist/delegate.js +2 -5
  219. package/packages/tools/dist/diff-parse.d.ts +24 -21
  220. package/packages/tools/dist/diff-parse.js +4 -3
  221. package/packages/tools/dist/digest.d.ts +43 -45
  222. package/packages/tools/dist/digest.js +5 -5
  223. package/packages/tools/dist/encode.d.ts +11 -8
  224. package/packages/tools/dist/encode.js +2 -1
  225. package/packages/tools/dist/env-info.d.ts +25 -22
  226. package/packages/tools/dist/env-info.js +2 -1
  227. package/packages/tools/dist/eval.d.ts +13 -10
  228. package/packages/tools/dist/eval.js +3 -3
  229. package/packages/tools/dist/evidence-map.d.ts +64 -61
  230. package/packages/tools/dist/evidence-map.js +3 -3
  231. package/packages/tools/dist/file-cache.d.ts +42 -0
  232. package/packages/tools/dist/file-cache.js +4 -0
  233. package/packages/tools/dist/file-summary.d.ts +34 -29
  234. package/packages/tools/dist/file-summary.js +3 -2
  235. package/packages/tools/dist/file-walk.d.ts +6 -3
  236. package/packages/tools/dist/file-walk.js +2 -1
  237. package/packages/tools/dist/find-examples.d.ts +26 -21
  238. package/packages/tools/dist/find-examples.js +4 -3
  239. package/packages/tools/dist/find.d.ts +39 -40
  240. package/packages/tools/dist/find.js +2 -1
  241. package/packages/tools/dist/forge-classify.d.ts +35 -38
  242. package/packages/tools/dist/forge-classify.js +3 -2
  243. package/packages/tools/dist/forge-ground.d.ts +58 -60
  244. package/packages/tools/dist/forge-ground.js +2 -1
  245. package/packages/tools/dist/git-context.d.ts +22 -19
  246. package/packages/tools/dist/git-context.js +4 -3
  247. package/packages/tools/dist/graph-query.d.ts +75 -78
  248. package/packages/tools/dist/graph-query.js +2 -1
  249. package/packages/tools/dist/guide.d.ts +14 -11
  250. package/packages/tools/dist/guide.js +2 -1
  251. package/packages/tools/dist/health.d.ts +13 -10
  252. package/packages/tools/dist/health.js +3 -2
  253. package/packages/tools/dist/http-request.d.ts +20 -17
  254. package/packages/tools/dist/http-request.js +2 -1
  255. package/packages/tools/dist/index.d.ts +54 -53
  256. package/packages/tools/dist/index.js +1 -1
  257. package/packages/tools/dist/lane.d.ts +28 -25
  258. package/packages/tools/dist/lane.js +7 -7
  259. package/packages/tools/dist/measure.d.ts +32 -29
  260. package/packages/tools/dist/measure.js +3 -2
  261. package/packages/tools/dist/onboard.d.ts +29 -26
  262. package/packages/tools/dist/onboard.js +18 -41
  263. package/packages/tools/dist/parse-output.d.ts +48 -45
  264. package/packages/tools/dist/parse-output.js +3 -2
  265. package/packages/tools/dist/path-resolver.d.ts +4 -1
  266. package/packages/tools/dist/path-resolver.js +2 -1
  267. package/packages/tools/dist/process-manager.d.ts +18 -15
  268. package/packages/tools/dist/process-manager.js +2 -1
  269. package/packages/tools/dist/queue.d.ts +28 -25
  270. package/packages/tools/dist/queue.js +2 -2
  271. package/packages/tools/dist/regex-test.d.ts +26 -23
  272. package/packages/tools/dist/regex-test.js +2 -1
  273. package/packages/tools/dist/rename.d.ts +28 -25
  274. package/packages/tools/dist/rename.js +3 -2
  275. package/packages/tools/dist/replay.d.ts +32 -29
  276. package/packages/tools/dist/replay.js +5 -6
  277. package/packages/tools/dist/response-envelope.d.ts +32 -29
  278. package/packages/tools/dist/response-envelope.js +2 -1
  279. package/packages/tools/dist/schema-validate.d.ts +15 -12
  280. package/packages/tools/dist/schema-validate.js +2 -1
  281. package/packages/tools/dist/scope-map.d.ts +45 -47
  282. package/packages/tools/dist/scope-map.js +2 -1
  283. package/packages/tools/dist/snippet.d.ts +26 -24
  284. package/packages/tools/dist/snippet.js +2 -1
  285. package/packages/tools/dist/stash.d.ts +13 -10
  286. package/packages/tools/dist/stash.js +2 -2
  287. package/packages/tools/dist/stratum-card.d.ts +27 -27
  288. package/packages/tools/dist/stratum-card.js +4 -5
  289. package/packages/tools/dist/symbol.d.ts +29 -25
  290. package/packages/tools/dist/symbol.js +4 -3
  291. package/packages/tools/dist/test-run.d.ts +19 -15
  292. package/packages/tools/dist/test-run.js +3 -2
  293. package/packages/tools/dist/text-utils.d.ts +6 -3
  294. package/packages/tools/dist/text-utils.js +3 -2
  295. package/packages/tools/dist/time-utils.d.ts +15 -12
  296. package/packages/tools/dist/time-utils.js +2 -1
  297. package/packages/tools/dist/trace.d.ts +24 -20
  298. package/packages/tools/dist/trace.js +3 -2
  299. package/packages/tools/dist/truncation.d.ts +6 -3
  300. package/packages/tools/dist/truncation.js +8 -14
  301. package/packages/tools/dist/watch.d.ts +28 -25
  302. package/packages/tools/dist/watch.js +2 -1
  303. package/packages/tools/dist/web-fetch.d.ts +35 -32
  304. package/packages/tools/dist/web-fetch.js +7 -12
  305. package/packages/tools/dist/web-search.d.ts +16 -13
  306. package/packages/tools/dist/web-search.js +2 -1
  307. package/packages/tools/dist/workset.d.ts +19 -16
  308. package/packages/tools/dist/workset.js +2 -2
  309. package/packages/tui/dist/App-BAlmxCCw.js +3 -0
  310. package/packages/tui/dist/App.d.ts +11 -5
  311. package/packages/tui/dist/App.js +1 -450
  312. package/packages/tui/dist/CuratedPanel-sYdZAICX.js +3 -0
  313. package/packages/tui/dist/LogPanel-DVB8Sv46.js +4 -0
  314. package/packages/tui/dist/SearchPanel-DREo6zgt.js +3 -0
  315. package/packages/tui/dist/StatusPanel-2ex8fLOO.js +3 -0
  316. package/packages/tui/dist/chunk-D6axbAb-.js +2 -0
  317. package/packages/tui/dist/devtools-DUyj952l.js +8 -0
  318. package/packages/tui/dist/embedder.interface-D4ew0HPW.d.ts +29 -0
  319. package/packages/tui/dist/index-B9VpfVPP.d.ts +14 -0
  320. package/packages/tui/dist/index.d.ts +3 -19
  321. package/packages/tui/dist/index.js +2 -476
  322. package/packages/tui/dist/jsx-runtime-Cof-kwFn.js +317 -0
  323. package/packages/tui/dist/panels/CuratedPanel.d.ts +11 -5
  324. package/packages/tui/dist/panels/CuratedPanel.js +1 -371
  325. package/packages/tui/dist/panels/LogPanel.d.ts +7 -2
  326. package/packages/tui/dist/panels/LogPanel.js +1 -449
  327. package/packages/tui/dist/panels/SearchPanel.d.ts +14 -7
  328. package/packages/tui/dist/panels/SearchPanel.js +1 -372
  329. package/packages/tui/dist/panels/StatusPanel.d.ts +11 -5
  330. package/packages/tui/dist/panels/StatusPanel.js +1 -371
  331. package/packages/tui/dist/store.interface-CnY6SPOH.d.ts +151 -0
  332. package/scaffold/adapters/claude-code.mjs +20 -0
  333. package/scaffold/adapters/copilot.mjs +320 -0
  334. package/scaffold/copilot/agents/Architect-Reviewer-Alpha.agent.md +14 -0
  335. package/scaffold/copilot/agents/Architect-Reviewer-Beta.agent.md +14 -0
  336. package/scaffold/copilot/agents/Code-Reviewer-Alpha.agent.md +12 -0
  337. package/scaffold/copilot/agents/Code-Reviewer-Beta.agent.md +12 -0
  338. package/scaffold/copilot/agents/Debugger.agent.md +31 -0
  339. package/scaffold/copilot/agents/Documenter.agent.md +35 -0
  340. package/scaffold/copilot/agents/Explorer.agent.md +50 -0
  341. package/scaffold/copilot/agents/Frontend.agent.md +29 -0
  342. package/scaffold/copilot/agents/Implementer.agent.md +31 -0
  343. package/scaffold/copilot/agents/Orchestrator.agent.md +96 -0
  344. package/scaffold/copilot/agents/Planner.agent.md +45 -0
  345. package/scaffold/copilot/agents/README.md +57 -0
  346. package/scaffold/copilot/agents/Refactor.agent.md +30 -0
  347. package/scaffold/copilot/agents/Researcher-Alpha.agent.md +12 -0
  348. package/scaffold/copilot/agents/Researcher-Beta.agent.md +12 -0
  349. package/scaffold/copilot/agents/Researcher-Delta.agent.md +12 -0
  350. package/scaffold/copilot/agents/Researcher-Gamma.agent.md +12 -0
  351. package/scaffold/copilot/agents/Security.agent.md +42 -0
  352. package/scaffold/copilot/agents/_shared/adr-protocol.md +91 -0
  353. package/scaffold/copilot/agents/_shared/architect-reviewer-base.md +50 -0
  354. package/scaffold/copilot/agents/_shared/code-agent-base.md +70 -0
  355. package/scaffold/copilot/agents/_shared/code-reviewer-base.md +54 -0
  356. package/scaffold/copilot/agents/_shared/decision-protocol.md +27 -0
  357. package/scaffold/copilot/agents/_shared/forge-protocol.md +46 -0
  358. package/scaffold/copilot/agents/_shared/researcher-base.md +61 -0
  359. package/scaffold/copilot/agents/templates/adr-template.md +27 -0
  360. package/scaffold/copilot/agents/templates/execution-state.md +25 -0
  361. package/scaffold/copilot/prompts/ask.prompt.md +20 -0
  362. package/scaffold/copilot/prompts/debug.prompt.md +25 -0
  363. package/scaffold/copilot/prompts/design.prompt.md +22 -0
  364. package/scaffold/copilot/prompts/implement.prompt.md +26 -0
  365. package/scaffold/copilot/prompts/plan.prompt.md +24 -0
  366. package/scaffold/copilot/prompts/review.prompt.md +31 -0
  367. package/scaffold/definitions/agents.mjs +165 -0
  368. package/scaffold/definitions/bodies.mjs +292 -0
  369. package/scaffold/definitions/hooks.mjs +43 -0
  370. package/scaffold/definitions/models.mjs +56 -0
  371. package/scaffold/definitions/plugins.mjs +24 -0
  372. package/scaffold/definitions/prompts.mjs +145 -0
  373. package/scaffold/definitions/protocols.mjs +322 -0
  374. package/scaffold/definitions/tools.mjs +176 -0
  375. package/scaffold/generate.mjs +74 -0
  376. package/skills/brainstorming/SKILL.md +259 -0
  377. package/skills/brainstorming/scripts/frame-template.html +365 -0
  378. package/skills/brainstorming/scripts/helper.js +216 -0
  379. package/skills/brainstorming/scripts/server.cjs +9 -0
  380. package/skills/brainstorming/scripts/server.src.cjs +249 -0
  381. package/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
  382. package/skills/brainstorming/visual-companion.md +430 -0
  383. package/skills/knowledge-base/SKILL.md +22 -9
@@ -0,0 +1,70 @@
1
+ # Code Agent — Shared Base Instructions
2
+
3
+ > This file contains shared protocols for all code-modifying agents (Implementer, Frontend, Refactor, Debugger). Each agent's definition file contains only its unique identity, constraints, and workflow. **Do not duplicate this content in agent files.**
4
+
5
+ ## Invocation Mode Detection
6
+
7
+ You may be invoked in two modes:
8
+ 1. **Direct** — you have full KB tool access. Execute KB Recall normally.
9
+ 2. **Sub-agent** (via Orchestrator) — you may have limited MCP tool access.
10
+ The Orchestrator provides context under "## Prior KB Context" in your prompt.
11
+ If present, skip KB Recall and use the provided context instead.
12
+
13
+ **Detection:** If your prompt contains "## Prior KB Context", you are in sub-agent mode.
14
+
15
+ ---
16
+
17
+ ## FORGE Protocol (Quality Gate)
18
+
19
+ **Quick reference:**
20
+ 1. If the Orchestrator provided FORGE tier in your prompt, use it. Otherwise, run `forge_classify` to determine tier.
21
+ 2. **Floor tier** → implement directly, no evidence map needed.
22
+ 3. **Standard/Critical tier** → Use `evidence_map` to track each critical-path claim as V/A/U during your work.
23
+ 4. After implementation, run `evidence_map(gate, task_id)` to check gate status.
24
+ 5. Use `stratum_card` for quick file context instead of reading full files. Use `digest` to compress accumulated context.
25
+
26
+ ---
27
+
28
+ ## KB Recall (BLOCKING — Before ANY Code Change)
29
+
30
+ 1. **Search for relevant context:**
31
+ ```
32
+ search("feature/area keywords")
33
+ scope_map("what you are doing")
34
+ ```
35
+ 2. **Check for existing patterns** — reuse established conventions
36
+ 3. **Read design decisions** that constrain your implementation
37
+ 4. **If KB has no hits**, proceed but **remember your findings at the end**
38
+
39
+ **Proceed only after KB search is complete.**
40
+
41
+ ---
42
+
43
+ ## KB Learn (After Completing Work)
44
+
45
+ Before returning your handoff, persist discoveries to KB:
46
+ - Architecture insights → `remember({ title, content, category: "patterns" })`
47
+ - Non-obvious solutions → `remember({ title, content, category: "troubleshooting" })`
48
+ - Key decisions made → `remember({ title, content, category: "decisions" })`
49
+ - Outdated KB entries → `update(path, content, reason)`
50
+
51
+ ---
52
+
53
+ ## Handoff Format
54
+
55
+ Always return this structure when invoked as a sub-agent:
56
+
57
+ ```markdown
58
+ <handoff>
59
+ <status>SUCCESS | PARTIAL | FAILED | ESCALATE</status>
60
+ <summary>{1 sentence summary}</summary>
61
+ <artifacts>
62
+ - Created: {files}
63
+ - Modified: {files}
64
+ - Deleted: {files}
65
+ </artifacts>
66
+ <context>{what the next agent needs to know}</context>
67
+ <blockers>{any blocking issues}</blockers>
68
+ </handoff>
69
+ ```
70
+
@@ -0,0 +1,54 @@
1
+ # Code-Reviewer — Shared Base Instructions
2
+
3
+ > Shared methodology for all Code-Reviewer variants. Each variant's definition contains only identity and model. **Do not duplicate.**
4
+
5
+ ## Review Workflow
6
+
7
+ 1. **KB Recall** — Search for relevant conventions, past review findings
8
+ 2. **Blast Radius** — `blast_radius` on changed files to understand impact
9
+ 3. **FORGE Classify** — `forge_classify` to determine review depth
10
+ 4. **Review** — Evaluate against all dimensions below
11
+ 5. **Validate** — Run `check` (typecheck + lint) and `test_run`
12
+ 6. **Report** — Structured findings with verdict
13
+ 7. **Persist** — `remember` any new patterns or issues
14
+
15
+ ## Review Dimensions
16
+
17
+ | Dimension | What to Check |
18
+ |-----------|---------------|
19
+ | **Correctness** | Logic errors, off-by-one, null handling, async/await |
20
+ | **Security** | OWASP Top 10, input validation, secrets exposure |
21
+ | **Performance** | N+1 queries, unnecessary allocations, missing caching |
22
+ | **Maintainability** | Naming, complexity, DRY, single responsibility |
23
+ | **Testing** | Coverage for new/changed logic, edge cases |
24
+ | **Patterns** | Consistency with existing codebase conventions |
25
+ | **Types** | Proper typing, no `any`, generics where useful |
26
+
27
+ ## Output Format
28
+
29
+ ```markdown
30
+ ## Code Review: {scope}
31
+ **Verdict: APPROVED | NEEDS_REVISION | FAILED**
32
+ **Severity: {count by level}**
33
+
34
+ ### Findings
35
+ 1. **[SEVERITY]** {file}:{line} — Description and fix
36
+
37
+ ### Summary
38
+ {Overall assessment, key concerns}
39
+ ```
40
+
41
+ ## Severity Levels
42
+
43
+ - **CRITICAL** — Correctness bug that will cause runtime failure
44
+ - **HIGH** — Security issue or major design flaw
45
+ - **MEDIUM** — Code quality concern that should be fixed
46
+ - **LOW** — Style/naming suggestion
47
+
48
+ ## Rules
49
+
50
+ - **APPROVED** requires zero CRITICAL/HIGH findings
51
+ - **NEEDS_REVISION** for any HIGH finding
52
+ - **FAILED** for any CRITICAL finding
53
+ - Always check for **test coverage** on new/changed code
54
+
@@ -0,0 +1,27 @@
1
+ # Multi-Model Decision Protocol
2
+
3
+ The Orchestrator uses **multi-model decision analysis** to resolve non-trivial technical choices. This is the autonomous decision-making process — distinct from the interactive brainstorming skill.
4
+
5
+ ## How It Works
6
+
7
+ The Orchestrator launches ALL available Researcher variants **in parallel** with the same question. Each returns an independent recommendation. The Orchestrator synthesizes results and presents the agreement/disagreement breakdown to the user.
8
+
9
+ ## When to Use (Auto-Trigger Rules)
10
+
11
+ Trigger the decision protocol when there is an **unresolved non-trivial technical decision** after requirements are understood:
12
+ - Architecture or infrastructure decisions with multiple viable approaches
13
+ - Data model, schema, or storage strategy choices
14
+ - Technology or library selection
15
+ - Trade-offs where the "right" answer isn't obvious
16
+ - When a sub-agent returns a recommendation that has alternatives
17
+
18
+ **Do NOT use for:** Requirements discovery, user intent clarification, or feature scoping — those belong to the brainstorming skill.
19
+
20
+ ## Key Rules
21
+
22
+ - Always launch in **parallel**, minimum 4 variants
23
+ - Use exact case-sensitive agent names — never rename or alias
24
+ - Never make a non-trivial technical decision without multi-model analysis
25
+ - **Produce an ADR** after every decision resolution
26
+ - `remember` the decision for future recall
27
+
@@ -0,0 +1,46 @@
1
+ # FORGE Protocol — Quality Overlay
2
+
3
+ > Follow the FORGE (Fact-Oriented Reasoning with Graduated Evidence) protocol for all code generation and modification tasks.
4
+
5
+ ## KB Tools for FORGE
6
+
7
+ | Tool | Purpose | When |
8
+ |------|---------|------|
9
+ | `forge_ground` | Execute entire Ground phase — classify tier, scope map, unknowns, constraints | Start of every Standard/Critical task |
10
+ | `forge_classify` | Classify tier only (Floor/Standard/Critical) | Quick classification |
11
+ | `evidence_map` | CRUD + Gate evaluation for Evidence Map | Track claims during Build |
12
+ | `stratum_card` | Generate T1/T2 context cards from files | Replace full file reads |
13
+ | `digest` | Compress N text sources into budget | Compress accumulated context |
14
+
15
+ ## Tier Classification
16
+
17
+ - **Floor**: Single file, no unknowns, no schema change, blast_radius ≤ 2. → Skip Phase 3.
18
+ - **Standard**: Default for multi-file or non-trivial tasks.
19
+ - **Critical**: blast_radius > 5, cross-service boundary, schema change, or security code.
20
+
21
+ When uncertain, round up.
22
+
23
+ ## 4-Phase Flow
24
+
25
+ ### Phase 1 — Ground
26
+ Read files, blast radius, classify tier, build Typed Unknown Queue, load constraints.
27
+
28
+ ### Phase 2 — Build
29
+ Generate with evidence anchoring. Route typed unknowns mid-generation.
30
+
31
+ ### Phase 3 — Break (Standard+ only, skip for Floor)
32
+ One adversarial round. Check error paths, edge cases, blast radius, convention violations.
33
+
34
+ ### Phase 4 — Gate
35
+ Binary YIELD/HOLD. Contract-type unknowns → **HARD BLOCK**. Non-contract → 1 retry, then FORCED DELIVERY with annotation.
36
+
37
+ ## Evidence Map
38
+
39
+ ```
40
+ evidence_map({ action: "create", task_id: "my-task", tier: "standard" })
41
+ evidence_map({ action: "add", task_id: "my-task", claim: "API contract unchanged", status: "V", receipt: "search → types.ts#L42" })
42
+ evidence_map({ action: "gate", task_id: "my-task" }) → YIELD / HOLD / HARD_BLOCK
43
+ ```
44
+
45
+ Status values: **V** (Verified + receipt), **A** (Assumed + reasoning), **U** (Unresolved).
46
+
@@ -0,0 +1,61 @@
1
+ # Researcher — Shared Base Instructions
2
+
3
+ > Shared methodology for all Researcher variants. Each variant's definition contains only its unique identity and model assignment. **Do not duplicate.**
4
+
5
+ ## Research Methodology
6
+
7
+ ### Phase 1: KB Recall (BLOCKING)
8
+ ```
9
+ search("task keywords")
10
+ scope_map("what you need to investigate")
11
+ ```
12
+
13
+ ### Phase 2: Exploration
14
+ - Use `find`, `symbol`, `trace` for code exploration
15
+ - Use `file_summary`, `compact` for efficient file reading
16
+ - Use `analyze_structure`, `analyze_dependencies` for package-level understanding
17
+ - Use `web_search`, `web_fetch` for external documentation
18
+
19
+ ### Phase 3: Synthesis
20
+ - Combine findings from multiple sources using `digest`
21
+ - Create `stratum_card` for key files that will be referenced later
22
+ - Build a coherent picture of the subsystem
23
+
24
+ ### Phase 4: Report
25
+ Return structured findings. Always include:
26
+ 1. **Summary** — 1-3 sentence overview
27
+ 2. **Key Findings** — Bullet list of important discoveries
28
+ 3. **Files Examined** — Paths with brief purpose notes
29
+ 4. **Recommendation** — Your suggested approach with reasoning
30
+ 5. **Trade-offs** — Pros and cons of alternatives
31
+ 6. **Risks** — What could go wrong
32
+
33
+ ### Phase 5: Persist
34
+ `remember` key findings for future recall.
35
+
36
+ ---
37
+
38
+ ## Multi-Model Decision Context
39
+
40
+ When invoked for a decision analysis, you receive a specific question. You MUST:
41
+ 1. **Commit to a recommendation** — do not hedge with "it depends"
42
+ 2. **Provide concrete reasoning** — cite specific files, patterns, or constraints
43
+ 3. **Acknowledge trade-offs** — show you considered alternatives
44
+ 4. **State your confidence level** — high/medium/low with reasoning
45
+
46
+ ---
47
+
48
+ ## Invocation Mode Detection
49
+
50
+ - **Direct** (has KB tools) → Execute KB Recall normally
51
+ - **Sub-agent** (prompt has "## Prior KB Context") → Skip KB Recall, use provided context
52
+
53
+ ---
54
+
55
+ ## Context Efficiency
56
+
57
+ - **Prefer `file_summary` over `read_file`** for understanding structure
58
+ - **Prefer `compact` over full reads** when you need specific sections
59
+ - **Use `digest`** when synthesizing from 3+ sources
60
+ - **Use `stratum_card`** for files you'll reference repeatedly
61
+
@@ -0,0 +1,27 @@
1
+ # DR-NNN: {Short Title}
2
+
3
+ **Status:** Proposed | Accepted | Rejected | Deprecated | Superseded
4
+ **Date:** YYYY-MM-DD
5
+ **Participants:** {which Researcher variants participated}
6
+
7
+ ## Context
8
+ {What is the issue? Why are we making this decision?}
9
+ {If superseding, link: "Supersedes DR-NNN."}
10
+
11
+ ## Decision
12
+ {What was decided and why — 2-5 sentences max}
13
+
14
+ ## Decision Analysis Summary
15
+ | Model | Recommendation | Key Reasoning |
16
+ |-------|---------------|---------------|
17
+
18
+ **Agreements:** {what 3+ models agreed on}
19
+ **Disagreements:** {where they diverged}
20
+
21
+ ## Consequences
22
+ **Positive:** {benefits}
23
+ **Negative:** {trade-offs accepted}
24
+ **Risks:** {what could go wrong, and any mitigations}
25
+
26
+ ## Alternatives Considered
27
+ {Other approaches evaluated and why they were rejected — keeps the "why not" alongside the "why"}
@@ -0,0 +1,25 @@
1
+ # Execution State: {Task Title}
2
+
3
+ **Status:** PLANNING | IN_PROGRESS | REVIEW | COMPLETED | BLOCKED
4
+ **Started:** {timestamp}
5
+ **Plan:** {link to plan file}
6
+
7
+ ## Phases
8
+
9
+ | # | Title | Agent | Status | Batch |
10
+ |---|-------|-------|--------|-------|
11
+
12
+ ## Current Batch
13
+
14
+ **Batch {N}:** {phases in this batch}
15
+ **Status:** IMPLEMENTING | REVIEWING | APPROVED
16
+
17
+ ## Decisions Log
18
+
19
+ | Decision | Rationale | ADR |
20
+ |----------|-----------|-----|
21
+
22
+ ## Blockers
23
+
24
+ | Issue | Severity | Assigned |
25
+ |-------|----------|----------|
@@ -0,0 +1,20 @@
1
+ ---
2
+ description: "Quick research question — find answer using KB + web search"
3
+ agent: "Researcher-Alpha"
4
+ tools:
5
+ - knowledge-base/search
6
+ - knowledge-base/web_search
7
+ - knowledge-base/web_fetch
8
+ - knowledge-base/compact
9
+ - knowledge-base/file_summary
10
+ - knowledge-base/remember
11
+ ---
12
+
13
+ ## Quick Research
14
+
15
+ 1. **KB Recall** — Search knowledge base for existing answers
16
+ 2. **Web Search** — If KB has no relevant results, search the web
17
+ 3. **Synthesize** — Combine findings into a clear, concise answer
18
+ 4. **Remember** — If the answer is broadly useful, persist it to KB
19
+
20
+ **Always cite sources** — KB entries, file paths, or URLs.
@@ -0,0 +1,25 @@
1
+ ---
2
+ description: "Systematic error diagnosis: reproduce → trace → diagnose → fix → verify"
3
+ agent: "Debugger"
4
+ tools:
5
+ - knowledge-base/search
6
+ - knowledge-base/symbol
7
+ - knowledge-base/trace
8
+ - knowledge-base/blast_radius
9
+ - knowledge-base/check
10
+ - knowledge-base/test_run
11
+ - knowledge-base/parse_output
12
+ - knowledge-base/compact
13
+ - knowledge-base/remember
14
+ ---
15
+
16
+ ## Debug Workflow
17
+
18
+ 1. **Parse Error** — Use `parse_output` on the error message/stack trace
19
+ 2. **KB Recall** — Search for known issues matching this pattern
20
+ 3. **Reproduce** — Run the failing command/test to confirm
21
+ 4. **Trace** — Use `symbol` and `trace` to follow the call chain
22
+ 5. **Diagnose** — Form hypothesis, gather evidence
23
+ 6. **Fix** — Implement minimal fix
24
+ 7. **Verify** — `check` + `test_run` to confirm fix and no regressions
25
+ 8. **Remember** — Persist the fix with category `troubleshooting`
@@ -0,0 +1,22 @@
1
+ ---
2
+ description: "Collaborative design session — explore ideas, refine requirements, produce a design spec"
3
+ agent: "Orchestrator"
4
+ tools:
5
+ - knowledge-base/search
6
+ - knowledge-base/scope_map
7
+ - knowledge-base/file_summary
8
+ - knowledge-base/compact
9
+ - knowledge-base/remember
10
+ - knowledge-base/forge_classify
11
+ ---
12
+
13
+ ## Design Session
14
+
15
+ Enter Phase 0 (Design Gate) directly — the user is requesting a design session.
16
+
17
+ 1. **Invoke the brainstorming skill** — interactive design dialogue with user
18
+ 2. Follow the skill's full process (auto-selects Simple or Advanced mode)
19
+ 3. If Advanced Mode, use Decision Protocol for unresolved technical choices
20
+ 4. Terminal state: brainstorming skill invokes writing-plans skill
21
+
22
+ **🛑 HARD GATE** — Do NOT skip brainstorming. Do NOT write code. Design first.
@@ -0,0 +1,26 @@
1
+ ---
2
+ description: "Full lifecycle implementation: plan → build → review → commit"
3
+ agent: "Orchestrator"
4
+ tools:
5
+ - knowledge-base/search
6
+ - knowledge-base/scope_map
7
+ - knowledge-base/forge_ground
8
+ - knowledge-base/check
9
+ - knowledge-base/test_run
10
+ - knowledge-base/blast_radius
11
+ - knowledge-base/remember
12
+ - knowledge-base/audit
13
+ ---
14
+
15
+ ## Implementation Pipeline
16
+
17
+ Follow the Orchestrator's full workflow:
18
+
19
+ 1. **Phase 0: Design Gate** — Orchestrator checks if design is needed. Creative/additive work triggers brainstorming first. Use `/design` if you want to start with design explicitly.
20
+ 2. **Phase 1: Planning** — Research, draft plan, present to user for approval
21
+ 3. **Phase 2: Implementation** — Execute phases in parallel batches
22
+ 4. **Phase 3: Completion** — Final review, docs, persist learnings
23
+
24
+ **🛑 MANDATORY STOPS** — After plan, after each batch, after completion.
25
+
26
+ Refer to the Orchestrator agent's full instructions for the detailed workflow.
@@ -0,0 +1,24 @@
1
+ ---
2
+ description: "Create a detailed TDD implementation plan without executing it"
3
+ agent: "Planner"
4
+ tools:
5
+ - knowledge-base/search
6
+ - knowledge-base/scope_map
7
+ - knowledge-base/forge_ground
8
+ - knowledge-base/forge_classify
9
+ - knowledge-base/file_summary
10
+ - knowledge-base/analyze_structure
11
+ - knowledge-base/analyze_dependencies
12
+ - knowledge-base/remember
13
+ ---
14
+
15
+ ## Planning Workflow
16
+
17
+ 1. **KB Recall** — Search for past plans, architecture decisions
18
+ 2. **FORGE Ground** — Classify tier, scope map, seed unknowns
19
+ 3. **Research** — Explore codebase, understand subsystems
20
+ 4. **Draft Plan** — 3-10 phases with agent assignments, TDD steps
21
+ 5. **Dependency Graph** — Group into parallel batches
22
+ 6. **Present** — Show plan with open questions
23
+
24
+ **🛑 MANDATORY STOP** — Wait for user approval. Do NOT implement.
@@ -0,0 +1,31 @@
1
+ ---
2
+ description: "Dual-model code + architecture review pipeline"
3
+ agent: "Orchestrator"
4
+ tools:
5
+ - knowledge-base/search
6
+ - knowledge-base/blast_radius
7
+ - knowledge-base/check
8
+ - knowledge-base/test_run
9
+ - knowledge-base/analyze_dependencies
10
+ - knowledge-base/remember
11
+ ---
12
+
13
+ ## Review Pipeline
14
+
15
+ ### Step 1: Scope
16
+ Identify changed files and their blast radius.
17
+
18
+ ### Step 2: Code Review (parallel)
19
+ Launch Code-Reviewer-Alpha and Code-Reviewer-Beta on the same changeset.
20
+
21
+ ### Step 3: Architecture Review (if needed)
22
+ If changes cross service boundaries or modify interfaces, launch Architect-Reviewer-Alpha and Architect-Reviewer-Beta.
23
+
24
+ ### Step 4: Synthesis
25
+ Merge findings from both reviewers:
26
+ - **Agreements**: Both found same issue → HIGH confidence
27
+ - **Unique findings**: One found, other didn't → verify
28
+ - **Disagreements**: Contradicting verdicts → present both to user
29
+
30
+ ### Step 5: Report
31
+ Present unified review with: verdict, findings by severity, recommended actions.
@@ -0,0 +1,165 @@
1
+ /**
2
+ * Agent definitions — role, description, capabilities, and variant configuration.
3
+ *
4
+ * These are IDE-agnostic. Each IDE adapter reads these definitions and
5
+ * produces its own file format (.agent.md, .mdc, CLAUDE.md sections, etc.).
6
+ *
7
+ * `toolRole` maps to a key in tools.mjs IDE_CAPABILITIES.
8
+ * `variants` (if present) means this role has multiple model variants.
9
+ * `sharedBase` points to a shared protocol file the agent should reference.
10
+ */
11
+
12
+ export const AGENTS = {
13
+ // ─── Orchestration ────────────────────────────────────────────────────
14
+
15
+ Orchestrator: {
16
+ description:
17
+ 'Master conductor that orchestrates the full development lifecycle: Planning → Implementation → Review → Recovery → Commit',
18
+ argumentHint: null,
19
+ toolRole: 'orchestrator',
20
+ sharedBase: null, // Orchestrator has inline instructions
21
+ category: 'orchestration',
22
+ },
23
+
24
+ Planner: {
25
+ description:
26
+ 'Autonomous planner that researches codebases and writes comprehensive TDD implementation plans',
27
+ argumentHint: null,
28
+ toolRole: 'planner',
29
+ sharedBase: 'code-agent-base',
30
+ category: 'orchestration',
31
+ },
32
+
33
+ // ─── Implementation ───────────────────────────────────────────────────
34
+
35
+ Implementer: {
36
+ description:
37
+ 'Persistent implementation agent that writes code following TDD practices until all tasks are complete',
38
+ argumentHint: 'Implementation task, feature, or phase from plan',
39
+ toolRole: 'codeAgent',
40
+ sharedBase: 'code-agent-base',
41
+ category: 'implementation',
42
+ },
43
+
44
+ Frontend: {
45
+ description:
46
+ 'UI/UX specialist for React, styling, responsive design, and frontend implementation',
47
+ argumentHint: 'UI component, styling task, or frontend feature',
48
+ toolRole: 'codeAgent',
49
+ sharedBase: 'code-agent-base',
50
+ category: 'implementation',
51
+ },
52
+
53
+ Refactor: {
54
+ description:
55
+ 'Code refactoring specialist that improves structure, readability, and maintainability',
56
+ argumentHint: 'Code, component, or pattern to refactor',
57
+ toolRole: 'refactor',
58
+ sharedBase: 'code-agent-base',
59
+ category: 'implementation',
60
+ },
61
+
62
+ // ─── Diagnostics ──────────────────────────────────────────────────────
63
+
64
+ Debugger: {
65
+ description: 'Expert debugger that diagnoses issues, traces errors, and provides solutions',
66
+ argumentHint: 'Error message, stack trace, or description of issue',
67
+ toolRole: 'debugger',
68
+ sharedBase: 'code-agent-base',
69
+ category: 'diagnostics',
70
+ },
71
+
72
+ Security: {
73
+ description: 'Security specialist that analyzes code for vulnerabilities and compliance',
74
+ argumentHint: 'Code, feature, or component to security review',
75
+ toolRole: 'security',
76
+ sharedBase: null,
77
+ category: 'diagnostics',
78
+ },
79
+
80
+ // ─── Documentation ────────────────────────────────────────────────────
81
+
82
+ Documenter: {
83
+ description:
84
+ 'Documentation specialist that creates and maintains comprehensive project documentation',
85
+ argumentHint: 'Component, API, feature, or area to document',
86
+ toolRole: 'documenter',
87
+ sharedBase: null,
88
+ category: 'documentation',
89
+ },
90
+
91
+ Explorer: {
92
+ description:
93
+ 'Rapid codebase exploration to find files, usages, dependencies, and structural context',
94
+ argumentHint: 'Find files, usages, and context related to: {topic or goal}',
95
+ toolRole: 'explorer',
96
+ sharedBase: null,
97
+ category: 'exploration',
98
+ },
99
+
100
+ // ─── Multi-variant roles ──────────────────────────────────────────────
101
+
102
+ Researcher: {
103
+ description:
104
+ 'Deep analysis, architecture review, and multi-model decision protocol participant',
105
+ argumentHint: 'Research question, problem statement, or subsystem to investigate',
106
+ toolRole: 'researcher',
107
+ sharedBase: 'researcher-base',
108
+ category: 'research',
109
+ variants: {
110
+ Alpha: {
111
+ description: 'Primary deep research agent — also serves as default Researcher',
112
+ identity:
113
+ ', the primary deep research agent. During multi-model decision sessions, you provide deep reasoning and nuanced system design.',
114
+ },
115
+ Beta: {
116
+ description:
117
+ 'Research variant for multi-model decision protocol — different LLM perspective',
118
+ identity:
119
+ ', a variant of the Researcher agent. You exist to provide a **different LLM perspective** during multi-model decision sessions. Approach problems with the same rigor but bring your own reasoning style.',
120
+ },
121
+ Gamma: {
122
+ description:
123
+ 'Research variant for multi-model decision protocol — different LLM perspective',
124
+ identity:
125
+ ', a variant of the Researcher agent. You exist to provide a **different LLM perspective** during multi-model decision sessions. Approach problems with the same rigor but bring your own reasoning style.',
126
+ },
127
+ Delta: {
128
+ description:
129
+ 'Research variant for multi-model decision protocol — different LLM perspective',
130
+ identity:
131
+ ', a variant of the Researcher agent. You exist to provide a **different LLM perspective** during multi-model decision sessions. Approach problems with the same rigor but bring your own reasoning style.',
132
+ },
133
+ },
134
+ },
135
+
136
+ 'Code-Reviewer': {
137
+ description:
138
+ 'Code review specialist analyzing code for quality, security, performance, and maintainability',
139
+ argumentHint: 'File path, PR, or code to review',
140
+ toolRole: 'reviewer',
141
+ sharedBase: 'code-reviewer-base',
142
+ category: 'review',
143
+ variants: {
144
+ Alpha: { description: 'Primary code reviewer' },
145
+ Beta: { description: 'Code reviewer variant — different LLM perspective for dual review' },
146
+ },
147
+ },
148
+
149
+ 'Architect-Reviewer': {
150
+ description:
151
+ 'Reviews architecture for pattern adherence, SOLID compliance, dependency direction, and structural integrity',
152
+ argumentHint: 'Files, PR, or subsystem to architecture-review',
153
+ toolRole: 'reviewer',
154
+ sharedBase: 'architect-reviewer-base',
155
+ category: 'review',
156
+ extraBody:
157
+ 'You are **not** the Code-Reviewer agent. Code-Reviewer handles correctness, testing, security, and code quality. You handle the big picture: service boundaries, dependency direction, pattern adherence, and structural health.',
158
+ variants: {
159
+ Alpha: { description: 'Primary architecture reviewer' },
160
+ Beta: {
161
+ description: 'Architecture reviewer variant — different LLM perspective for dual review',
162
+ },
163
+ },
164
+ },
165
+ };