@theihtisham/agent-shadow-brain 7.2.0 → 7.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. package/CHANGELOG.md +478 -429
  2. package/README.md +198 -68
  3. package/dist/activity-cli.d.ts +3 -0
  4. package/dist/activity-cli.d.ts.map +1 -0
  5. package/dist/activity-cli.js +78 -0
  6. package/dist/activity-cli.js.map +1 -0
  7. package/dist/adapters/index.d.ts +2 -1
  8. package/dist/adapters/index.d.ts.map +1 -1
  9. package/dist/adapters/index.js +3 -2
  10. package/dist/adapters/index.js.map +1 -1
  11. package/dist/brain/activity-journal.d.ts +82 -0
  12. package/dist/brain/activity-journal.d.ts.map +1 -0
  13. package/dist/brain/activity-journal.js +315 -0
  14. package/dist/brain/activity-journal.js.map +1 -0
  15. package/dist/brain/activity-reporting.d.ts +14 -0
  16. package/dist/brain/activity-reporting.d.ts.map +1 -0
  17. package/dist/brain/activity-reporting.js +17 -0
  18. package/dist/brain/activity-reporting.js.map +1 -0
  19. package/dist/brain/auto-update.js +1 -1
  20. package/dist/brain/auto-update.js.map +1 -1
  21. package/dist/brain/brain-portability.js +1 -1
  22. package/dist/brain/brain-portability.js.map +1 -1
  23. package/dist/brain/client-config.d.ts +19 -0
  24. package/dist/brain/client-config.d.ts.map +1 -0
  25. package/dist/brain/client-config.js +40 -0
  26. package/dist/brain/client-config.js.map +1 -0
  27. package/dist/brain/client-integrations.d.ts +63 -0
  28. package/dist/brain/client-integrations.d.ts.map +1 -0
  29. package/dist/brain/client-integrations.js +79 -0
  30. package/dist/brain/client-integrations.js.map +1 -0
  31. package/dist/brain/context-assembly.d.ts +41 -5
  32. package/dist/brain/context-assembly.d.ts.map +1 -1
  33. package/dist/brain/context-assembly.js +366 -35
  34. package/dist/brain/context-assembly.js.map +1 -1
  35. package/dist/brain/context-efficiency.d.ts +48 -0
  36. package/dist/brain/context-efficiency.d.ts.map +1 -0
  37. package/dist/brain/context-efficiency.js +34 -0
  38. package/dist/brain/context-efficiency.js.map +1 -0
  39. package/dist/brain/context-request.d.ts +4 -0
  40. package/dist/brain/context-request.d.ts.map +1 -0
  41. package/dist/brain/context-request.js +24 -0
  42. package/dist/brain/context-request.js.map +1 -0
  43. package/dist/brain/context-retrieval.d.ts +88 -0
  44. package/dist/brain/context-retrieval.d.ts.map +1 -0
  45. package/dist/brain/context-retrieval.js +301 -0
  46. package/dist/brain/context-retrieval.js.map +1 -0
  47. package/dist/brain/feature-settings.d.ts +10 -0
  48. package/dist/brain/feature-settings.d.ts.map +1 -1
  49. package/dist/brain/feature-settings.js +18 -2
  50. package/dist/brain/feature-settings.js.map +1 -1
  51. package/dist/brain/file-identity.d.ts +4 -0
  52. package/dist/brain/file-identity.d.ts.map +1 -0
  53. package/dist/brain/file-identity.js +27 -0
  54. package/dist/brain/file-identity.js.map +1 -0
  55. package/dist/brain/global-brain.d.ts +18 -2
  56. package/dist/brain/global-brain.d.ts.map +1 -1
  57. package/dist/brain/global-brain.js +75 -7
  58. package/dist/brain/global-brain.js.map +1 -1
  59. package/dist/brain/managed-project-skills.d.ts +48 -0
  60. package/dist/brain/managed-project-skills.d.ts.map +1 -0
  61. package/dist/brain/managed-project-skills.js +230 -0
  62. package/dist/brain/managed-project-skills.js.map +1 -0
  63. package/dist/brain/mcp-presence.d.ts +50 -0
  64. package/dist/brain/mcp-presence.d.ts.map +1 -0
  65. package/dist/brain/mcp-presence.js +214 -0
  66. package/dist/brain/mcp-presence.js.map +1 -0
  67. package/dist/brain/mcp-server.d.ts +40 -1
  68. package/dist/brain/mcp-server.d.ts.map +1 -1
  69. package/dist/brain/mcp-server.js +506 -52
  70. package/dist/brain/mcp-server.js.map +1 -1
  71. package/dist/brain/mcp-stdio.d.ts +12 -0
  72. package/dist/brain/mcp-stdio.d.ts.map +1 -0
  73. package/dist/brain/mcp-stdio.js +158 -0
  74. package/dist/brain/mcp-stdio.js.map +1 -0
  75. package/dist/brain/memory-annotations.d.ts +99 -0
  76. package/dist/brain/memory-annotations.d.ts.map +1 -0
  77. package/dist/brain/memory-annotations.js +402 -0
  78. package/dist/brain/memory-annotations.js.map +1 -0
  79. package/dist/brain/memory-graph.d.ts.map +1 -1
  80. package/dist/brain/memory-graph.js +12 -23
  81. package/dist/brain/memory-graph.js.map +1 -1
  82. package/dist/brain/memory-inspection.d.ts +73 -0
  83. package/dist/brain/memory-inspection.d.ts.map +1 -0
  84. package/dist/brain/memory-inspection.js +131 -0
  85. package/dist/brain/memory-inspection.js.map +1 -0
  86. package/dist/brain/memory-mcp-content.d.ts +46 -0
  87. package/dist/brain/memory-mcp-content.d.ts.map +1 -0
  88. package/dist/brain/memory-mcp-content.js +95 -0
  89. package/dist/brain/memory-mcp-content.js.map +1 -0
  90. package/dist/brain/memory-sources.d.ts +8 -0
  91. package/dist/brain/memory-sources.d.ts.map +1 -0
  92. package/dist/brain/memory-sources.js +27 -0
  93. package/dist/brain/memory-sources.js.map +1 -0
  94. package/dist/brain/model-registry.d.ts +4 -5
  95. package/dist/brain/model-registry.d.ts.map +1 -1
  96. package/dist/brain/model-registry.js +22 -207
  97. package/dist/brain/model-registry.js.map +1 -1
  98. package/dist/brain/model-usage.d.ts +66 -0
  99. package/dist/brain/model-usage.d.ts.map +1 -0
  100. package/dist/brain/model-usage.js +246 -0
  101. package/dist/brain/model-usage.js.map +1 -0
  102. package/dist/brain/native-codex.d.ts +105 -0
  103. package/dist/brain/native-codex.d.ts.map +1 -0
  104. package/dist/brain/native-codex.js +292 -0
  105. package/dist/brain/native-codex.js.map +1 -0
  106. package/dist/brain/native-session-import.d.ts +56 -0
  107. package/dist/brain/native-session-import.d.ts.map +1 -0
  108. package/dist/brain/native-session-import.js +307 -0
  109. package/dist/brain/native-session-import.js.map +1 -0
  110. package/dist/brain/orchestrator.js +1 -1
  111. package/dist/brain/orchestrator.js.map +1 -1
  112. package/dist/brain/project-feedback.d.ts +63 -0
  113. package/dist/brain/project-feedback.d.ts.map +1 -0
  114. package/dist/brain/project-feedback.js +300 -0
  115. package/dist/brain/project-feedback.js.map +1 -0
  116. package/dist/brain/project-hub-contract.d.ts +332 -0
  117. package/dist/brain/project-hub-contract.d.ts.map +1 -0
  118. package/dist/brain/project-hub-contract.js +57 -0
  119. package/dist/brain/project-hub-contract.js.map +1 -0
  120. package/dist/brain/project-hub-mcp.d.ts +182 -0
  121. package/dist/brain/project-hub-mcp.d.ts.map +1 -0
  122. package/dist/brain/project-hub-mcp.js +46 -0
  123. package/dist/brain/project-hub-mcp.js.map +1 -0
  124. package/dist/brain/project-hub-pdf-worker.d.ts +13 -0
  125. package/dist/brain/project-hub-pdf-worker.d.ts.map +1 -0
  126. package/dist/brain/project-hub-pdf-worker.js +84 -0
  127. package/dist/brain/project-hub-pdf-worker.js.map +1 -0
  128. package/dist/brain/project-hub-store.d.ts +50 -0
  129. package/dist/brain/project-hub-store.d.ts.map +1 -0
  130. package/dist/brain/project-hub-store.js +257 -0
  131. package/dist/brain/project-hub-store.js.map +1 -0
  132. package/dist/brain/project-hub.d.ts +132 -0
  133. package/dist/brain/project-hub.d.ts.map +1 -0
  134. package/dist/brain/project-hub.js +403 -0
  135. package/dist/brain/project-hub.js.map +1 -0
  136. package/dist/brain/project-kit-inspection.d.ts +28 -0
  137. package/dist/brain/project-kit-inspection.d.ts.map +1 -0
  138. package/dist/brain/project-kit-inspection.js +200 -0
  139. package/dist/brain/project-kit-inspection.js.map +1 -0
  140. package/dist/brain/project-kit-paths.d.ts +13 -0
  141. package/dist/brain/project-kit-paths.d.ts.map +1 -0
  142. package/dist/brain/project-kit-paths.js +141 -0
  143. package/dist/brain/project-kit-paths.js.map +1 -0
  144. package/dist/brain/project-kit.d.ts +51 -0
  145. package/dist/brain/project-kit.d.ts.map +1 -0
  146. package/dist/brain/project-kit.js +319 -0
  147. package/dist/brain/project-kit.js.map +1 -0
  148. package/dist/brain/project-memory.d.ts +38 -0
  149. package/dist/brain/project-memory.d.ts.map +1 -0
  150. package/dist/brain/project-memory.js +76 -0
  151. package/dist/brain/project-memory.js.map +1 -0
  152. package/dist/brain/project-policy-delivery.d.ts +8 -0
  153. package/dist/brain/project-policy-delivery.d.ts.map +1 -0
  154. package/dist/brain/project-policy-delivery.js +38 -0
  155. package/dist/brain/project-policy-delivery.js.map +1 -0
  156. package/dist/brain/project-policy.d.ts +88 -0
  157. package/dist/brain/project-policy.d.ts.map +1 -0
  158. package/dist/brain/project-policy.js +267 -0
  159. package/dist/brain/project-policy.js.map +1 -0
  160. package/dist/brain/project-session-contract.d.ts +180 -0
  161. package/dist/brain/project-session-contract.d.ts.map +1 -0
  162. package/dist/brain/project-session-contract.js +50 -0
  163. package/dist/brain/project-session-contract.js.map +1 -0
  164. package/dist/brain/project-session-mcp.d.ts +145 -0
  165. package/dist/brain/project-session-mcp.d.ts.map +1 -0
  166. package/dist/brain/project-session-mcp.js +58 -0
  167. package/dist/brain/project-session-mcp.js.map +1 -0
  168. package/dist/brain/project-sessions.d.ts +97 -0
  169. package/dist/brain/project-sessions.d.ts.map +1 -0
  170. package/dist/brain/project-sessions.js +223 -0
  171. package/dist/brain/project-sessions.js.map +1 -0
  172. package/dist/brain/project-source-contract.d.ts +109 -0
  173. package/dist/brain/project-source-contract.d.ts.map +1 -0
  174. package/dist/brain/project-source-contract.js +2 -0
  175. package/dist/brain/project-source-contract.js.map +1 -0
  176. package/dist/brain/project-source-intake.d.ts +26 -0
  177. package/dist/brain/project-source-intake.d.ts.map +1 -0
  178. package/dist/brain/project-source-intake.js +457 -0
  179. package/dist/brain/project-source-intake.js.map +1 -0
  180. package/dist/brain/subconscious.d.ts +3 -1
  181. package/dist/brain/subconscious.d.ts.map +1 -1
  182. package/dist/brain/subconscious.js +8 -3
  183. package/dist/brain/subconscious.js.map +1 -1
  184. package/dist/brain/workflow-skills.d.ts +5 -5
  185. package/dist/brain/workflow-skills.d.ts.map +1 -1
  186. package/dist/brain/workflow-skills.js +3 -2
  187. package/dist/brain/workflow-skills.js.map +1 -1
  188. package/dist/cli.js +37 -3
  189. package/dist/cli.js.map +1 -1
  190. package/dist/context-cli.d.ts.map +1 -1
  191. package/dist/context-cli.js +49 -7
  192. package/dist/context-cli.js.map +1 -1
  193. package/dist/curation-cli.d.ts +4 -0
  194. package/dist/curation-cli.d.ts.map +1 -0
  195. package/dist/curation-cli.js +118 -0
  196. package/dist/curation-cli.js.map +1 -0
  197. package/dist/dashboard/brain-hub-actions.d.ts +2 -0
  198. package/dist/dashboard/brain-hub-actions.d.ts.map +1 -0
  199. package/dist/dashboard/brain-hub-actions.js +234 -0
  200. package/dist/dashboard/brain-hub-actions.js.map +1 -0
  201. package/dist/dashboard/brain-hub-agent-dock.d.ts +2 -0
  202. package/dist/dashboard/brain-hub-agent-dock.d.ts.map +1 -0
  203. package/dist/dashboard/brain-hub-agent-dock.js +255 -0
  204. package/dist/dashboard/brain-hub-agent-dock.js.map +1 -0
  205. package/dist/dashboard/brain-hub-brand-icons.d.ts +2 -0
  206. package/dist/dashboard/brain-hub-brand-icons.d.ts.map +1 -0
  207. package/dist/dashboard/brain-hub-brand-icons.js +9 -0
  208. package/dist/dashboard/brain-hub-brand-icons.js.map +1 -0
  209. package/dist/dashboard/brain-hub-client.d.ts +2 -0
  210. package/dist/dashboard/brain-hub-client.d.ts.map +1 -0
  211. package/dist/dashboard/brain-hub-client.js +435 -0
  212. package/dist/dashboard/brain-hub-client.js.map +1 -0
  213. package/dist/dashboard/brain-hub-context.d.ts +2 -0
  214. package/dist/dashboard/brain-hub-context.d.ts.map +1 -0
  215. package/dist/dashboard/brain-hub-context.js +37 -0
  216. package/dist/dashboard/brain-hub-context.js.map +1 -0
  217. package/dist/dashboard/brain-hub-controls.d.ts +2 -0
  218. package/dist/dashboard/brain-hub-controls.d.ts.map +1 -0
  219. package/dist/dashboard/brain-hub-controls.js +63 -0
  220. package/dist/dashboard/brain-hub-controls.js.map +1 -0
  221. package/dist/dashboard/brain-hub-exchanges.d.ts +2 -0
  222. package/dist/dashboard/brain-hub-exchanges.d.ts.map +1 -0
  223. package/dist/dashboard/brain-hub-exchanges.js +82 -0
  224. package/dist/dashboard/brain-hub-exchanges.js.map +1 -0
  225. package/dist/dashboard/brain-hub-graph.d.ts +2 -0
  226. package/dist/dashboard/brain-hub-graph.d.ts.map +1 -0
  227. package/dist/dashboard/brain-hub-graph.js +338 -0
  228. package/dist/dashboard/brain-hub-graph.js.map +1 -0
  229. package/dist/dashboard/brain-hub-html.d.ts +2 -0
  230. package/dist/dashboard/brain-hub-html.d.ts.map +1 -0
  231. package/dist/dashboard/brain-hub-html.js +85 -0
  232. package/dist/dashboard/brain-hub-html.js.map +1 -0
  233. package/dist/dashboard/brain-hub-knowledge.d.ts +2 -0
  234. package/dist/dashboard/brain-hub-knowledge.d.ts.map +1 -0
  235. package/dist/dashboard/brain-hub-knowledge.js +33 -0
  236. package/dist/dashboard/brain-hub-knowledge.js.map +1 -0
  237. package/dist/dashboard/brain-hub-live.d.ts +2 -0
  238. package/dist/dashboard/brain-hub-live.d.ts.map +1 -0
  239. package/dist/dashboard/brain-hub-live.js +151 -0
  240. package/dist/dashboard/brain-hub-live.js.map +1 -0
  241. package/dist/dashboard/brain-hub-managed-skills.d.ts +2 -0
  242. package/dist/dashboard/brain-hub-managed-skills.d.ts.map +1 -0
  243. package/dist/dashboard/brain-hub-managed-skills.js +20 -0
  244. package/dist/dashboard/brain-hub-managed-skills.js.map +1 -0
  245. package/dist/dashboard/brain-hub-native.d.ts +2 -0
  246. package/dist/dashboard/brain-hub-native.d.ts.map +1 -0
  247. package/dist/dashboard/brain-hub-native.js +44 -0
  248. package/dist/dashboard/brain-hub-native.js.map +1 -0
  249. package/dist/dashboard/brain-hub-project-views.d.ts +2 -0
  250. package/dist/dashboard/brain-hub-project-views.d.ts.map +1 -0
  251. package/dist/dashboard/brain-hub-project-views.js +80 -0
  252. package/dist/dashboard/brain-hub-project-views.js.map +1 -0
  253. package/dist/dashboard/brain-hub-sessions.d.ts +2 -0
  254. package/dist/dashboard/brain-hub-sessions.d.ts.map +1 -0
  255. package/dist/dashboard/brain-hub-sessions.js +40 -0
  256. package/dist/dashboard/brain-hub-sessions.js.map +1 -0
  257. package/dist/dashboard/brain-hub-usage.d.ts +2 -0
  258. package/dist/dashboard/brain-hub-usage.d.ts.map +1 -0
  259. package/dist/dashboard/brain-hub-usage.js +28 -0
  260. package/dist/dashboard/brain-hub-usage.js.map +1 -0
  261. package/dist/dashboard/brain-hub-views.d.ts +2 -0
  262. package/dist/dashboard/brain-hub-views.d.ts.map +1 -0
  263. package/dist/dashboard/brain-hub-views.js +155 -0
  264. package/dist/dashboard/brain-hub-views.js.map +1 -0
  265. package/dist/dashboard/demo-workspace.d.ts +11 -0
  266. package/dist/dashboard/demo-workspace.d.ts.map +1 -0
  267. package/dist/dashboard/demo-workspace.js +178 -0
  268. package/dist/dashboard/demo-workspace.js.map +1 -0
  269. package/dist/dashboard/live-workspace-html.d.ts +2 -0
  270. package/dist/dashboard/live-workspace-html.d.ts.map +1 -0
  271. package/dist/dashboard/live-workspace-html.js +1042 -0
  272. package/dist/dashboard/live-workspace-html.js.map +1 -0
  273. package/dist/dashboard/managed-project-skills-api.d.ts +29 -0
  274. package/dist/dashboard/managed-project-skills-api.d.ts.map +1 -0
  275. package/dist/dashboard/managed-project-skills-api.js +28 -0
  276. package/dist/dashboard/managed-project-skills-api.js.map +1 -0
  277. package/dist/dashboard/native-codex-api.d.ts +83 -0
  278. package/dist/dashboard/native-codex-api.d.ts.map +1 -0
  279. package/dist/dashboard/native-codex-api.js +91 -0
  280. package/dist/dashboard/native-codex-api.js.map +1 -0
  281. package/dist/dashboard/project-feedback-html.d.ts +5 -0
  282. package/dist/dashboard/project-feedback-html.d.ts.map +1 -0
  283. package/dist/dashboard/project-feedback-html.js +216 -0
  284. package/dist/dashboard/project-feedback-html.js.map +1 -0
  285. package/dist/dashboard/project-file-watch.d.ts +46 -0
  286. package/dist/dashboard/project-file-watch.d.ts.map +1 -0
  287. package/dist/dashboard/project-file-watch.js +221 -0
  288. package/dist/dashboard/project-file-watch.js.map +1 -0
  289. package/dist/dashboard/project-hub-api.d.ts +5 -0
  290. package/dist/dashboard/project-hub-api.d.ts.map +1 -0
  291. package/dist/dashboard/project-hub-api.js +121 -0
  292. package/dist/dashboard/project-hub-api.js.map +1 -0
  293. package/dist/dashboard/project-kit-html.d.ts +4 -0
  294. package/dist/dashboard/project-kit-html.d.ts.map +1 -0
  295. package/dist/dashboard/project-kit-html.js +359 -0
  296. package/dist/dashboard/project-kit-html.js.map +1 -0
  297. package/dist/dashboard/project-live-stream.d.ts +33 -0
  298. package/dist/dashboard/project-live-stream.d.ts.map +1 -0
  299. package/dist/dashboard/project-live-stream.js +233 -0
  300. package/dist/dashboard/project-live-stream.js.map +1 -0
  301. package/dist/dashboard/project-policy-api.d.ts +37 -0
  302. package/dist/dashboard/project-policy-api.d.ts.map +1 -0
  303. package/dist/dashboard/project-policy-api.js +31 -0
  304. package/dist/dashboard/project-policy-api.js.map +1 -0
  305. package/dist/dashboard/project-session-api.d.ts +28 -0
  306. package/dist/dashboard/project-session-api.d.ts.map +1 -0
  307. package/dist/dashboard/project-session-api.js +84 -0
  308. package/dist/dashboard/project-session-api.js.map +1 -0
  309. package/dist/dashboard/project-source-api.d.ts +11 -0
  310. package/dist/dashboard/project-source-api.d.ts.map +1 -0
  311. package/dist/dashboard/project-source-api.js +67 -0
  312. package/dist/dashboard/project-source-api.js.map +1 -0
  313. package/dist/dashboard/project-workspace.d.ts +16 -0
  314. package/dist/dashboard/project-workspace.d.ts.map +1 -0
  315. package/dist/dashboard/project-workspace.js +124 -0
  316. package/dist/dashboard/project-workspace.js.map +1 -0
  317. package/dist/dashboard/server.d.ts +1 -0
  318. package/dist/dashboard/server.d.ts.map +1 -1
  319. package/dist/dashboard/server.js +99 -42
  320. package/dist/dashboard/server.js.map +1 -1
  321. package/dist/dashboard/v6-dashboard-html.d.ts +1 -1
  322. package/dist/dashboard/v6-dashboard-html.d.ts.map +1 -1
  323. package/dist/dashboard/v6-dashboard-html.js +4261 -4309
  324. package/dist/dashboard/v6-dashboard-html.js.map +1 -1
  325. package/dist/dashboard/workspace-api.d.ts +12 -0
  326. package/dist/dashboard/workspace-api.d.ts.map +1 -1
  327. package/dist/dashboard/workspace-api.js +359 -41
  328. package/dist/dashboard/workspace-api.js.map +1 -1
  329. package/dist/dashboard/workspace-html.d.ts.map +1 -1
  330. package/dist/dashboard/workspace-html.js +1118 -135
  331. package/dist/dashboard/workspace-html.js.map +1 -1
  332. package/dist/dashboard/workspace-status.d.ts +53 -0
  333. package/dist/dashboard/workspace-status.d.ts.map +1 -0
  334. package/dist/dashboard/workspace-status.js +23 -0
  335. package/dist/dashboard/workspace-status.js.map +1 -0
  336. package/dist/index.d.ts +16 -0
  337. package/dist/index.d.ts.map +1 -1
  338. package/dist/index.js +13 -0
  339. package/dist/index.js.map +1 -1
  340. package/dist/integration-cli.d.ts +3 -0
  341. package/dist/integration-cli.d.ts.map +1 -0
  342. package/dist/integration-cli.js +16 -0
  343. package/dist/integration-cli.js.map +1 -0
  344. package/dist/project-cli.d.ts +3 -0
  345. package/dist/project-cli.d.ts.map +1 -0
  346. package/dist/project-cli.js +100 -0
  347. package/dist/project-cli.js.map +1 -0
  348. package/dist/types.d.ts +8 -1
  349. package/dist/types.d.ts.map +1 -1
  350. package/docs/BRAND_ASSETS.md +36 -0
  351. package/docs/COMPARISON.md +22 -0
  352. package/docs/COMPONENTS.md +66 -0
  353. package/docs/CONTEXT_LAB.md +79 -0
  354. package/docs/FEATURES_AND_LIMITS.md +29 -0
  355. package/docs/INTEGRATIONS.md +70 -0
  356. package/docs/LEARNING.md +46 -0
  357. package/docs/PROJECT_KIT.md +98 -0
  358. package/docs/QUICKSTART.md +62 -0
  359. package/docs/README.md +36 -0
  360. package/docs/ROADMAP-v7.md +147 -0
  361. package/docs/SESSIONS.md +77 -0
  362. package/docs/SHARING.md +13 -0
  363. package/docs/SHOWCASE.md +87 -0
  364. package/docs/SOURCE_INTAKE.md +33 -0
  365. package/docs/STATS.md +21 -0
  366. package/docs/TROUBLESHOOTING.md +42 -0
  367. package/docs/UPGRADE_PLAN_v7.0.0.md +203 -0
  368. package/docs/VIRAL-PLAYBOOK.md +259 -0
  369. package/docs/VISUAL_GUIDE_v7.1.4.md +70 -0
  370. package/docs/VISUAL_GUIDE_v7.22.0.md +73 -0
  371. package/docs/WORKFLOW_INTEGRATION.md +21 -1
  372. package/docs/WORKSPACE.md +63 -70
  373. package/docs/assets/7.1.4-collaboration-design-preview.png +0 -0
  374. package/docs/assets/7.1.4-comparison.png +0 -0
  375. package/docs/assets/7.1.4-context-lab.png +0 -0
  376. package/docs/assets/7.1.4-control-room-dense-preview.png +0 -0
  377. package/docs/assets/7.1.4-control-room-focus-preview.png +0 -0
  378. package/docs/assets/7.1.4-features.png +0 -0
  379. package/docs/assets/7.1.4-graph.png +0 -0
  380. package/docs/assets/7.1.4-hub-control-room.png +0 -0
  381. package/docs/assets/7.1.4-hub-empty.png +0 -0
  382. package/docs/assets/7.1.4-hub-knowledge.png +0 -0
  383. package/docs/assets/7.1.4-hub-learning.png +0 -0
  384. package/docs/assets/7.1.4-hub-mobile.png +0 -0
  385. package/docs/assets/7.1.4-hub-public-docs-source.png +0 -0
  386. package/docs/assets/7.1.4-hub-public-docs.gif +0 -0
  387. package/docs/assets/7.1.4-hub-public-docs.png +0 -0
  388. package/docs/assets/7.1.4-hub-setup.png +0 -0
  389. package/docs/assets/7.1.4-hub-walkthrough.gif +0 -0
  390. package/docs/assets/7.1.4-integrations.png +0 -0
  391. package/docs/assets/7.1.4-knowledge-design-preview.png +0 -0
  392. package/docs/assets/7.1.4-learning-design-preview.png +0 -0
  393. package/docs/assets/7.1.4-learning.png +0 -0
  394. package/docs/assets/7.1.4-live.png +0 -0
  395. package/docs/assets/7.1.4-memory-review.png +0 -0
  396. package/docs/assets/7.1.4-mobile.png +0 -0
  397. package/docs/assets/7.1.4-models-design-preview.png +0 -0
  398. package/docs/assets/7.1.4-outcome-ranking.png +0 -0
  399. package/docs/assets/7.1.4-overview.png +0 -0
  400. package/docs/assets/7.1.4-project-kit.png +0 -0
  401. package/docs/assets/7.1.4-project-skill-preview.png +0 -0
  402. package/docs/assets/7.1.4-replay.png +0 -0
  403. package/docs/assets/7.1.4-setup-design-preview.png +0 -0
  404. package/docs/assets/7.1.4-usage-design-preview.png +0 -0
  405. package/docs/assets/7.22.0-agent-dock-mobile.png +0 -0
  406. package/docs/assets/7.22.0-agent-dock.gif +0 -0
  407. package/docs/assets/7.22.0-agent-dock.png +0 -0
  408. package/docs/assets/7.22.0-hub-exchange.png +0 -0
  409. package/docs/assets/7.22.0-hub-exchanges.gif +0 -0
  410. package/docs/assets/7.22.0-hub-graph.png +0 -0
  411. package/docs/assets/7.22.0-hub-mobile-empty.png +0 -0
  412. package/docs/assets/7.22.0-managed-skills.png +0 -0
  413. package/docs/assets/7.22.0-plain-evidence.png +0 -0
  414. package/docs/assets/7.22.0-project-controls.png +0 -0
  415. package/docs/assets/7.22.0-sessions.png +0 -0
  416. package/docs/assets/7.22.0-teach-brain.png +0 -0
  417. package/docs/assets/context-v7.1.3.png +0 -0
  418. package/docs/assets/features-v7.1.3.png +0 -0
  419. package/docs/assets/graph-v7.1.3.png +0 -0
  420. package/docs/assets/integrations-v7.1.3.png +0 -0
  421. package/docs/assets/live-v7.1.3.png +0 -0
  422. package/docs/assets/live-v7.1.4.gif +0 -0
  423. package/docs/assets/memory-detail-v7.1.3.png +0 -0
  424. package/docs/assets/overview-v7.1.3.png +0 -0
  425. package/docs/evaluation/CONTEXT_EVALUATION_v7.1.4.json +1818 -0
  426. package/docs/evaluation/CONTEXT_EVALUATION_v7.1.4.md +36 -0
  427. package/docs/launch/COMPONENT_MAP_v7.1.4.md +307 -0
  428. package/docs/launch/PROJECT_KIT_PLAN_v7.1.4.md +110 -0
  429. package/docs/launch/PROJECT_LEARNING_PLAN_v7.1.4.md +63 -0
  430. package/docs/launch/RELEASE_ACCEPTANCE_v7.22.0.md +48 -0
  431. package/docs/launch/RELEASE_NOTES_v7.1.3.md +40 -0
  432. package/docs/launch/RELEASE_NOTES_v7.1.4.md +30 -0
  433. package/docs/launch/RELEASE_NOTES_v7.22.0.md +53 -0
  434. package/docs/launch/RESEARCH_AND_PLAN_v7.1.4.md +255 -0
  435. package/docs/launch/RESEARCH_AND_PLAN_v7.22.0.md +672 -0
  436. package/package.json +135 -111
  437. package/skills/shadow-research/SKILL.md +2 -0
  438. package/skills/shadow-workflow/SKILL.md +8 -0
package/CHANGELOG.md CHANGED
@@ -1,429 +1,478 @@
1
- # Changelog
2
-
3
- ## [7.2.0] - 2026-11-11 - Context Packs and Workspace
4
-
5
- - Make the local workspace the default dashboard with overview, searchable memories, graph, context, and feature controls. Keep the previous dashboard at `/advanced`.
6
- - Build size-bounded, project-scoped context packs with ranked memory selection, duplicate handling, recorded source provenance, and selection explanations.
7
- - Use context packs for session briefings. Key cached results to the task and current settings, and check enablement before reading or returning a briefing.
8
- - Persist four validated feature settings for context assembly, explicit cross-project context, automatic briefings, and dashboard activity delivery.
9
- - Add `context-pack` and `features list|set` commands, read-only `context_pack` and `feature_flags` MCP tools, and public context and settings APIs.
10
- - Refresh the README and workspace guide with a concept illustration and dashboard screenshots.
11
-
12
- ## [7.1.0] - 2026-11-11 - Focused Workflows and Portable Skills
13
-
14
- - Bundle six reusable skills for proportionate planning, implementation, diagnosis, review, research, and release work.
15
- - Add project-local skill installation for Codex, Claude Code, OpenCode, DeepSeek Harness, and compatible portable clients. Preview by default; preserve user instructions, reject conflicting local edits and stale plans, validate paths, and back up managed updates.
16
- - Add `skills list`, `skills show`, `skills targets`, `skills install`, and `workflow analyze` CLI commands.
17
- - Add read-only `workflow_analyze` and `workflow_skills` MCP tools and public library APIs.
18
- - Respect plan-only, diagnosis-only, and review-only scope in advisory routing. Add explicit task, mode, and complexity overrides; no provider calls or automatic task execution.
19
- - Verify skill packaging, fresh-consumer installation, safe update behavior, and representative task scenarios.
20
-
21
-
22
- ## [7.0.0] - 2026-11-11 - Durable Memory and Explained Recall
23
-
24
- ### Breaking changes
25
-
26
- - Require Node 22.12+ in 22.x, 24.x, or 26+; update dependency majors including simple-git, Zod, Anthropic SDK, and Vitest.
27
- - Remove automatic install-time agent configuration. Setup is explicit.
28
- - Reject unreadable, invalid, and unsupported stores without silently resetting or renaming them.
29
- - Recall scoring uses real keyword coverage, creation-age recency, and matching-content agent reports. Existing minimum-confidence thresholds may return different results.
30
-
31
- ### Added and fixed
32
-
33
- - Serialize cross-process commits; merge latest data with pending operations, preserve external deletions, and use unique temporary files.
34
- - Acknowledge queued writes after persistence, retain failed changes for retry, and expose structured storage diagnostics.
35
- - Add `storage-health` and `recall-explain` commands, `global_storage_health` MCP tool, and public GlobalBrain library exports/types.
36
- - Make scored recall finite and deterministic across the full candidate pool; explain matches and supporting identities.
37
- - Load CLI configuration only when required, redact diagnostic key output, and escape dashboard activity text.
38
- - Update dependencies, isolate tests from personal state, correct a date-dependent training-export test, add artifact consumer smoke checks, and expand CI to Windows/Linux on Node 22/24/26.
39
- - Make legacy promotional automation manual-only.
40
-
41
- ## [6.3.0] - 2026-06-06 - Recall Confidence + Issue-Bot Spam Fix
42
-
43
- This release adds per-memory recall confidence scoring and fixes a GitHub Actions
44
- issue-bot that was opening duplicate milestone/spike issues.
45
-
46
- ### Added
47
-
48
- - `GlobalBrain.recallScored()`: recall enriched with a blended `RecallConfidence` per entry. Signals: keyword relevance, recency (30-day half-life decay), author-assigned importance, cross-agent corroboration, and prior usage. Results are ranked by confidence and support a `minConfidence` floor.
49
- - `RecallConfidence` and `ScoredGlobalEntry` types in `src/types.ts`.
50
- - MCP tool `global_recall_scored` exposing scored recall to compatible clients.
51
- - Dashboard recall results now show a color-coded confidence badge (high/medium/low) with a per-signal breakdown on hover; the `/api/v6/ww2br-recall` endpoint now returns scored results.
52
- - Focused tests in `tests/brain/global-recall-confidence.test.ts` for scoring, importance ranking, cross-agent corroboration, and `minConfidence` filtering.
53
-
54
- ### Fixed
55
-
56
- - Viral Amplifier bot opened dozens of duplicate `Milestone — 25 stars` and `Momentum spike` issues. Root causes: (1) the milestone job ran on every cron schedule (including the every-6h trending cron) instead of only the daily run, and (2) both scripts trusted local state files (`.github/.milestone-state.json`, `.github/.trending-state.json`) that the workflow never committed, so each fresh checkout reset state and re-fired.
57
- - `milestone-notifier.mjs` and `trending-detector.mjs` are now idempotent: they verify against GitHub (open/closed issues for milestones, open issues within the 24h window for spikes) before posting, and treat lookup failures as "skip" to stay spam-safe.
58
- - `viral-amplifier.yml`: milestone job restricted to the daily 14:00 UTC cron; `welcome-new-issue` now ignores bot-authored issues so the bot no longer triages its own issues.
59
-
60
- ## [6.0.3] - 2026-06-03 - Live Brain Release
61
-
62
- This release makes Shadow Brain more realistic and more useful for complex agent work. It focuses on source-backed long memory, live memory health, recall evals, agent briefings, and release-ready docs.
63
-
64
- ### Added
65
-
66
- - `src/brain/live-brain.ts`: Live Brain report engine for memory health, recall evals, hygiene actions, top memories, and agent briefings.
67
- - `src/brain/memory-seeder.ts`: verified memory seeding workflow with draft, user approval, agent approval, dual approval, reject, and seed-to-brain states.
68
- - `shadow-brain live-brain status`: shows memory quality, source coverage, recall health, and recommended actions.
69
- - `shadow-brain live-brain brief`: writes a markdown briefing for fresh sessions, handoffs, and context recovery.
70
- - `shadow-brain live-brain eval`: checks whether useful memory can be recalled for agent workflows.
71
- - `shadow-brain live-brain hygiene`: lists stale, duplicate, low-quality, and source-light memory issues.
72
- - `shadow-brain live-brain train-pack`: exports source-backed JSONL examples for evals, distillation, or local fine-tuning pipelines.
73
- - `/api/v6/live-brain` and the v6 dashboard Live Brain tab: dashboard/API route and UI for the same report and markdown briefing.
74
- - `/api/v6/memory-intelligence`: live memory data for source coverage, freshness, categories, agents, tags, recent writes, and approval queue counts.
75
- - `/api/v6/seed-*`: dashboard/API workflow for creating research drafts, approving/rejecting them, and committing approved drafts to global memory.
76
- - Dashboard Memory Seeder tab: select research agent, approval agent, approval mode, project path, sources, category, tags, and importance before writing durable memory.
77
- - Dashboard launch controls: `shadow-brain dash --host 127.0.0.1 --no-analysis` for fast UI/API startup on large repos.
78
- - MCP tools: `live_brain_status`, `live_brain_brief`, and `live_brain_train_pack`.
79
- - Focused tests for Live Brain scoring, briefing, recall eval, JSONL export, and memory seeding approval gates.
80
-
81
- ### Changed
82
-
83
- - README rewritten to be realistic about what the project does and does not do.
84
- - npm package version updated to `6.0.3`.
85
- - npm package description replaced with a practical local-first memory description.
86
- - Runtime-visible versions updated in CLI, auto-update, portability export, orchestrator status, and MCP server metadata.
87
- - Resume-pack source discovery now includes common repo docs such as `README.md`, `CHANGELOG.md`, `package.json`, and roadmap docs in addition to project-specific agent/progress files.
88
- - CLI config merging now honors explicit `watchMode: false` from one-shot commands.
89
- - Token Economy dashboard now separates the current runtime agent from historical model spend records, avoiding misleading labels such as an old Claude model appearing as the active Codex runtime.
90
-
91
- ### Notes
92
-
93
- - "Training" in this release means data export for user-run evals, distillation, or local fine-tuning. Shadow Brain does not modify remote model weights.
94
- - No new runtime dependencies were added.
95
- - Verification: TypeScript build passed; the full Vitest suite passed; `npm pack --dry-run` passed.
96
-
97
- ---
98
-
99
- All notable changes to `@theihtisham/agent-shadow-brain` are documented here.
100
-
101
- This project follows [Semantic Versioning](https://semver.org/) and [Keep a Changelog](https://keepachangelog.com/) conventions.
102
-
103
- > For detailed release notes with migration guides, see the [docs/versions/](docs/versions/) directory.
104
-
105
- ---
106
-
107
- ## [6.0.2] — 2026-05-12 — Singularity Edition (Current)
108
-
109
- > **5 world-first viral features + real ANN vector index + Constitution layer + Confidence Gate + multimodal vision + LoRA distillation pipeline + SWE-Bench-Lite eval harness. Semver-strict this is v7.0.0; numbered 6.0.2 by author preference. See `docs/launch/RELEASE_NOTES_v6.0.2.md` for the full story.**
110
-
111
- ### Added — 5 viral world-first features
112
-
113
- 1. **Brain Replay** (`src/brain/brain-replay.ts`) — scrubbable timeline of every brain event since day zero. Exports tweet-ready SVG with density histogram + milestone markers.
114
- 2. **Brain DNA** (`src/brain/brain-dna.ts`) — Spotify-Wrapped-style 1080×1080 fingerprint card per codebase. 8 personality archetypes (Architect, Debugger, Speedster, Scholar, Cartographer, Diplomat, Sentinel, Wanderer).
115
- 3. **Hive Voice** (`src/brain/hive-voice.ts`) — multi-model debate-vote on any question. Outputs SVG consensus bar chart with explicit dissent + confidence distribution.
116
- 4. **Brain Time Capsule** (`src/brain/brain-time-capsule.ts`) — freeze + label + resurrect brain snapshots. Ed25519-signed (stub) `.tcz` bundles.
117
- 5. **Brain Diff** (`src/brain/brain-diff.ts`) — semantic diff between two brains. Outputs Venn-diagram SVG + English narrative.
118
-
119
- ### Added — infrastructure
120
-
121
- 6. **Real ANN vector index v2** (`src/brain/embeddings-v2.ts`) — hand-rolled HNSW-style graph (M=8, efSearch=32). Sub-100ms recall over 10k vectors. Sharded persistence (5MB cap). Auto-pulls `nomic-embed-text` from Ollama on first run. Zero new deps.
122
- 7. **Constitution layer** (`src/brain/constitution.ts`) — `<project>/.shadow-brain/constitution.md` parser + injector + validator. Hot-reload via fs.watch. Logs violations to JSONL.
123
- 8. **Confidence Gate** (`src/brain/confidence-gate.ts`) — active output filter (`block` / `downgrade` / `flag` modes). Persists calibration history; reports Brier score + ECE.
124
- 9. **Multimodal vision** (`src/brain/multimodal-vision.ts`) — Ollama llava/llava-llama3/bakllava integration. Image ingestion → description → embedding → indexed search.
125
- 10. **Markdown brain export/import** (`src/brain/markdown-export.ts`) — git-trackable `.shadow-brain.md` round-trip. Diff before write.
126
- 11. **OpenTelemetry-lite tracing** (`src/brain/otel-lite.ts`) — zero-dep OTel-compatible JSONL tracer. Daily file rotation. `tracer.withSpan(name, fn)` helper.
127
-
128
- ### Added — research-grade scaffolds
129
-
130
- 12. **Project-LoRA distillation pipeline** (`tools/lora-pipeline/`) — `generate_training_data.py`, `train_lora.py`, `eval_lora.py`, `serve_lora.py`. Distill the brain into a Qwen2.5-Coder-1.5B LoRA adapter. Run when ready.
131
- 13. **SWE-Bench-Lite micro-eval harness** (`tools/swe-bench-lite/`) — 10 hand-curated public-repo bugs. `runner.py` + `score.py` + pre-filled `report-template.md`. Realistic expected lift: +20-40% resolution rate with brain on.
132
-
133
- ### Added — DX
134
-
135
- 14. **`shadow-brain demo` command** — 30-second hello-world: auto-ingests sample repo, runs queries, opens dashboard.
136
- 15. **Forgetting curve transparency + pinning** — every memory shows decay reason; `pin: true` flag prevents auto-decay.
137
- 16. **Dashboard tour video** (`docs/launch/shadow-brain-dashboard-tour.mp4`) — 5-minute narrated walkthrough of every panel.
138
- 17. **MCP server hardening** — better discovery, full feature surface, docs at `/mcp/info`.
139
-
140
- ### Changed
141
-
142
- - `embeddings.ts` kept untouched; `embeddings-v2.ts` composes it (no breaking change for callers that imported v1)
143
- - `package.json` version → 6.0.2; description updated to reflect new features
144
- - README hero updated with v6.0.2 feature row + new install command
145
-
146
- ### Docs
147
-
148
- - `docs/launch/RELEASE_NOTES_v6.0.2.md` — full release notes
149
- - `docs/ROADMAP-v7.md` — v7+ strategic plan
150
- - `docs/VIRAL-PLAYBOOK.md` — launch playbook
151
-
152
- ### Notes
153
-
154
- - **No new npm runtime dependencies.** Zero-dep philosophy preserved.
155
- - TypeScript strict mode passes. All new modules compile cleanly.
156
- - Backwards compatible with v6.0 brains; no migration required.
157
-
158
- ---
159
-
160
- ## [6.0.0] — 2026-04-24 — Hive Mind Edition
161
-
162
- > **Hive Mind for AI agents — the first sub-agent-aware brain. 22 genuinely new features. 100% local-first, free, open source.**
163
-
164
- ### The Hive Mind
165
-
166
- Before v6.0, every AI agent and sub-agent started from zero. Claude's `Task` tool, Cursor's Composer, CrewAI/LangGraph/AutoGen sub-agents — none shared memory with the parent. Shadow Brain v6 is the first tool that bridges the brain across frameworks AND into sub-agents.
167
-
168
- ### Added — 22 genuinely novel modules
169
-
170
- 1. **Sub-Agent Brain Bridge (SABB)** (`src/brain/subagent-bridge.ts`) — detects sub-agent spawns, computes focused context slivers, quarantines sub-agent memories until graduated (confidence ≥ 0.7).
171
- 2. **Causal Memory Chains** (`src/brain/causal-chains.ts`) — tracks cause→effect relationships, renders as Graphviz DAG, answers "why did X happen?"
172
- 3. **Agent Collision Detective** (`src/brain/collision-detective.ts`) — real-time overlapping edit intent detection with advisory locks.
173
- 4. **Dream Engine** (`src/brain/dream-engine.ts`) — background idle reflection via local LLM (Ollama): revisit, counterfactual, consolidation, contradiction, pattern-discovery.
174
- 5. **Agent Reputation Ledger** (`src/brain/reputation-ledger.ts`) — Ed25519-signed decision receipts with portable accuracy scores and shields.io badges.
175
- 6. **Swarm Debate Protocol** (`src/brain/swarm-debate.ts`) — pro/con/arbiter multi-agent debate for critical decisions.
176
- 7. **Pre-Mortem Assistant** (`src/brain/pre-mortem.ts`) — surfaces past failures from project memory before significant tasks.
177
- 8. **Branch Brains** (`src/brain/branch-brain.ts`) — git-branch-aware memory context switching.
178
- 9. **Attention Heatmap** (`src/brain/attention-heatmap.ts`) — weighted attribution of which memories influenced each decision.
179
- 10. **Token Economy Engine** (`src/brain/token-economy.ts`) — cross-agent cost tracking, monthly projections, savings suggestions.
180
- 11. **Forgetting Curve + Sleep Consolidation** (`src/brain/forgetting-curve.ts`) — Ebbinghaus-inspired natural decay + tier promotion.
181
- 12. **Formal Verification Bridge** (`src/brain/formal-verification-bridge.ts`) — natural-language rules → ESLint / Semgrep / LSP diagnostics.
182
- 13. **Confidence Calibration Monitor** (`src/brain/calibration-monitor.ts`) — Brier-score based agent trust weighting.
183
- 14. **Cost-Aware Sub-Agent Spawner** (`src/brain/cost-aware-spawner.ts`) — routes sub-agent spawns to cheapest model that satisfies task.
184
- 15. **Air-Gap Mode** (`src/brain/air-gap.ts`) — block outbound network; localhost-only.
185
- 16. **E2E Encryption** (`src/brain/brain-encryption.ts`) — ChaCha20-Poly1305 at rest with scrypt key derivation.
186
- 17. **Hallucination Quarantine** (`src/brain/hallucination-quarantine.ts`) — isolate suspect memories; auto-delete after 7 days.
187
- 18. **Voice Mode** (`src/brain/voice-mode.ts`) — transcript processing with brain integration.
188
- 19. **Brain Garden** (`src/brain/brain-garden.ts`) — living constellation visualization data source.
189
- 20. **PR Auto-Review** (`src/brain/pr-auto-review.ts`) — GitHub PR comment generator citing project memories.
190
- 21. **Team Brain Sync** (`src/brain/team-brain-sync.ts`) — P2P peer state layer for WebRTC team brain.
191
- 22. **Brain Exchange** (`src/brain/brain-exchange.ts`) — export + import curated shareable brain slices with redaction.
192
-
193
- ### Added — supporting infrastructure
194
-
195
- - **Local-First LLM Adapter** (`src/brain/local-llm.ts`) — unified Ollama-first adapter used by Dream Engine, Swarm Debate, Pre-Mortem. Graceful fallback when unreachable.
196
- - **Hive Accelerator** (`src/brain/hive-accelerator.ts`) — wires SSSP (arXiv 2504.17033) for causal traversal + TurboQuant (ICLR 2026) for similarity scoring.
197
- - **Complete Web Control Dashboard** (`src/dashboard/v6-dashboard-html.ts` + server routes) — 23-tab SPA at `http://localhost:7341/hive`. Controls every feature: enable/disable, configure, monitor. Agent connect/disconnect. Unified activity log. API+MCP configuration panels. Brain Garden D3 canvas.
198
- - **48 new CLI commands** grouped under `hive`, `subagent`, `causal`, `collision`, `dream`, `reputation`, `debate`, `premortem`, `branch-brain`, `attention`, `tokens`, `forget`, `formal`, `calibrate`, `airgap`, `encrypt`, `quarantine`, `voice`, `garden`, `pr-review`, `team-sync`, `exchange`.
199
- - **36 new MCP tool handlers** for every v6 module — any MCP-compatible AI tool can now call them.
200
- - **v6 integration tests** (`tests/brain/hivemind-v6.test.ts`) — 24 smoke tests covering every module.
201
-
202
- ### Changed
203
-
204
- - Version: `5.2.0` → `6.0.0`
205
- - Total brain modules: **26 → 48** (22 new v6 modules + Hive Accelerator + Local LLM)
206
- - CLI commands: **70+ → 90+**
207
- - MCP tools: **~27 → 60+** (existing + 36 v6 handlers)
208
- - README hero: v6.0 Hive Mind positioning with 22 novel features prominently listed
209
- - Web dashboard: `/` (legacy) + `/hive` or `/v6` (complete Hive Mind control)
210
- - `package.json` description + 25 new v6 keywords for maximum discoverability
211
-
212
- ### Removed
213
-
214
- - Repo hygiene cleanup — removed stray files (`C:Userstheihtmp_b64_3.txt`, `eng.traineddata`, `write_pattern.py`, `.playwright-mcp/`, `seo-gists/`, empty `.codex`). Updated `.gitignore` to prevent recurrence.
215
-
216
- ### Security
217
-
218
- - ChaCha20-Poly1305 AEAD encryption for brain-at-rest
219
- - Ed25519 cryptographic signatures on agent reputation receipts
220
- - Air-gap mode with RFC1918 + metadata-endpoint blocking
221
- - Hallucination quarantine prevents unverified claims from polluting global brain
222
-
223
- ### Philosophy
224
-
225
- **Local-first default.** All AI features (Dream Engine, Swarm Debate, Pre-Mortem, Voice) route to Ollama by default. Zero API keys needed. Zero network required. Zero cost to run. Shadow Brain works offline, in air-gapped environments, and in compliance-constrained enterprises. Remote providers (Anthropic, OpenAI, GLM) remain an optional upgrade — never a requirement.
226
-
227
- ---
228
-
229
- ## [5.2.0] — 2026-04-22 — Subconscious Singularity Edition
230
-
231
- > **One brain. Every agent. Every project. Every session. Forever.**
232
-
233
- ### The Singularity
234
-
235
- Before v5.2.0, every project had its own brain and every AI agent (Claude, Cursor, Cline...) had to be told what each project knew. Now there is **one brain** — a singleton global JSON store at `~/.shadow-brain/global.json` that every agent reads from and writes to.
236
-
237
- What Cursor learns in project A is instantly known to Claude Code in project B.
238
-
239
- ### Added
240
-
241
- - **Singleton Global Brain** (`src/brain/global-brain.ts`) — one `~/.shadow-brain/global.json` is the source of truth for every project + agent on the machine. Atomic write-and-rename plus an in-process write queue handles concurrent multi-agent writes without native dependencies. Auto-prune at 1GB. Project-scoped views via `GlobalBrain.projectIdFor(rootDir)`.
242
- - **Subconscious Engine** (`src/brain/subconscious.ts`) — proactive context injection on every session start. The agent doesn't have to ask — the brain surfaces recent decisions, active tasks, similar past work, project state, cross-agent insights, and warnings. Hard-capped at 2K tokens, relevance-ranked, agent-configurable.
243
- - **Universal Bootstrap** (`src/brain/session-hooks.ts`) — `asb attach-all` detects every installed AI agent on your machine and installs SessionStart hooks per agent's native mechanism (Claude Code settings.json, Cursor `.cursor/rules`, Cline VS Code extension, Windsurf `.windsurfrules`, Codex config.json, Aider `.aider.conf.yml`, Copilot `.github/copilot-instructions.md`, etc.). Every agent calls Shadow Brain on first prompt of every session.
244
- - **L0 In-Memory Hot Tier** (`src/brain/l0-cache.ts`) — sub-millisecond recall via byte-budgeted Map LRU. Sits in front of the global JSON brain. Per-namespace caches with `getCache(name)`. Default 64MB budget, configurable.
245
- - **Agent Safety Firewall** (`src/brain/agent-firewall.ts`) — blocks risky agent actions such as secret file access, destructive commands, curl-to-shell installs, and prompt-injection payloads before tools execute.
246
- - **Agent Handoff Packets** (`src/brain/agent-handoff.ts`) — `asb handoff cursor codex` generates a cross-agent continuation packet with task state, changed files, recent memories, and safety warnings.
247
- - **Proof Timeline + Share Report** — `asb timeline` and `asb proof report` expose the viral proof stream: what agents learned, when, and what the firewall blocked.
248
- - **Cursor Adapter** (`src/adapters/cursor.ts`) — first-class adapter, no more falling back to ClineAdapter. Reads conversations from `~/.cursor/conversations`, injects into `.cursor/rules/shadow-brain-insights.md`, escalates critical insights to `.cursorrules`.
249
- - **Windsurf Adapter** (`src/adapters/windsurf.ts`) — first-class adapter. Reads from `~/.windsurf/conversations`, writes to `.windsurfrules` with `# === Shadow Brain Insights ===` marker for safe re-injection.
250
- - **GitHub Copilot Adapter** (`src/adapters/copilot.ts`) — workspace-level integration via `.github/copilot-instructions.md` (Copilot's official context file). Replaces a marker block on each update so injection is idempotent.
251
- - **4 New CLI Commands**:
252
- - `asb attach-all` — universal bootstrap for every detected agent
253
- - `asb subconscious inject|status|configure` — manage proactive context injection
254
- - `asb global stats|recall|cache|sync` — inspect the singleton global brain
255
- - `asb handoff`, `asb timeline`, `asb firewall`, `asb detach-all`, `asb audit-hooks`, `asb proof report` — trust, safety, and launch-proof commands
256
- - **4 New MCP Tools** — `subconscious_inject`, `global_recall`, `global_stats`, `attach_status`. Now any MCP client can talk to the global brain directly.
257
-
258
- ### Changed
259
-
260
- - **AgentTool union** now includes `'copilot'` — full type-safe support for 10 agents (was 9)
261
- - **adapters/index.ts** — Cursor and Windsurf no longer alias ClineAdapter; each gets its own implementation
262
- - **Description + 80 npm keywords** rewritten for v5.2.0 positioning and maximum discoverability
263
- - **Total brain modules: 26** (4 new + 22 from v5.1.1)
264
-
265
- ### Performance
266
-
267
- - Hot recalls now <1ms via L0 cache (was 10-30ms via SQLite)
268
- - Cross-project queries replace per-project DB lookup overhead with a single indexed query
269
-
270
- ### Fixed
271
-
272
- - Cursor and Windsurf adapters previously reused ClineAdapter — they now have correct path detection and conversation parsing for their actual file layouts
273
-
274
- ### Migration Notes
275
-
276
- v5.2.0 is **fully backward-compatible** with v5.1.1. The global brain is created on first init and coexists with project-local brains. No breaking changes to existing CLI commands or MCP tools.
277
-
278
- To opt into the new singleton model: run `asb attach-all` once and every future session of every agent will auto-bootstrap.
279
-
280
- ---
281
-
282
- ## [5.1.1] — 2026-04-18 — Hyper-Cognitive Intelligence Edition
283
-
284
- ### Added
285
- - **Built-in LSP Server** — pure Node.js Language Server Protocol implementation with stdio + TCP transport modes, real-time diagnostics, hover info, and code actions
286
- - **Custom LLM Fine-Tuning Engine** — automatic training data generation from code changes, JSONL export, multi-model training pipeline
287
- - **Smart Cache** — 3-tier (hot/warm/cold) LRU cache with predictive prefetch via co-access graph, tag-based invalidation, and adaptive tier promotion
288
- - **Intent Engine** — multi-strategy NLP command understanding with keyword, fuzzy, and context-aware matching strategies
289
- - **Code DNA Fingerprinting** — 9-gene structural analysis covering structure, complexity, style, dependency, and evolution gene categories
290
- - **Temporal Intelligence** — velocity metrics, file heatmaps, 5-factor bug prediction, anomaly detection, and peak hour/day analysis
291
- - 6 new CLI commands: `lsp`, `fine-tune`, `cache`, `intent`, `dna`, `temporal`
292
- - 27 README badges for maximum discoverability
293
-
294
- ### Changed
295
- - Total brain modules: **22** (6 new + 16 from v5.0.1)
296
- - All v5.0.1, v5.0.0, and v4.0.0 features included and enhanced
297
- - Expanded npm keywords to 50+
298
-
299
- ### Fixed
300
- - 18 TypeScript compilation errors in CLI — aligned property references with actual module interfaces
301
-
302
- ---
303
-
304
- ## [5.0.1] — 2026-04-15 — Zero-Config Intelligence Edition
305
-
306
- ### Added
307
- - **Zero-Config Auto-Setup** — auto-detect project type, AI tools, languages, frameworks; setup is explicit and reversible in v5.2.0
308
- - **MCP Server** — 19-tool Model Context Protocol server for Claude Code, Cursor, and all AI tools
309
- - **Rich Web Dashboard** — real-time WebSocket dashboard with 8 panels (health, memory tiers, insights, fixes, AI tools, modules, stats, controls)
310
- - **Natural Language Queries** — `shadow-brain ask "..."` for plain-English brain interaction
311
- - **Plugin System** — hookable analysis pipeline with npm plugin discovery
312
- - **Brain Export/Import** — full brain state portability for team sync and backup
313
- - 5 new CLI commands: `off`, `ask`, `export`, `import`, `plugin`
314
- - **Cursor MCP Compatibility** — root path POST + `/v1/chat` endpoint support
315
- - **Postinstall Auto-Setup** — runs automatically after `npm install`
316
-
317
- ### Changed
318
- - 50+ npm keywords for discoverability
319
- - All v5.0.0 and v4.0.0 features included and enhanced
320
-
321
- ---
322
-
323
- ## [5.0.0] — 2026-04-12 — Infinite Intelligence Edition
324
-
325
- ### Added
326
- - **Hierarchical Memory Compression** — 4-tier pyramid (raw -> summary -> pattern -> principle) with drill-down/up navigation
327
- - **Context-Triggered Associative Recall** — automatic memory activation based on file paths, keywords, and categories
328
- - **Multi-Agent Consensus Protocol** — trust-weighted voting, confidence intervals, conflict resolution across multiple AI agents
329
- - **Collective Cross-Project Learning** — verified rule sharing, viral propagation, accuracy tracking across projects
330
- - 5 new CLI commands: `memory`, `recall`, `consensus`, `collective`, `v5`
331
-
332
- ### Changed
333
- - Memory architecture fully rewritten for infinite retention
334
- - Cross-agent communication protocol standardized
335
-
336
- ---
337
-
338
- ## [4.0.0] — 2026-04-08 — Hyper-Intelligence Edition
339
-
340
- ### Added
341
- - **TurboQuant Infinite Memory** — 6x compression, zero forgetting (based on Google Research, ICLR 2026)
342
- - **SSSP BMSSP Routing** — O(m log^(2/3) n) deterministic routing (based on arXiv 2504.17033, Duan et al.)
343
- - **Self-Evolving Genetic Rules** — tournament selection, Gaussian mutation, Bayesian meta-learning
344
- - **Cross-Agent Intelligence Protocol (CAIP)** — 7 agents share insights in real-time via WebSocket
345
- - **Adversarial Hallucination Defense** — cross-reference verification, evidence scoring, confidence thresholds
346
- - **Swarm Intelligence** — Ant Colony Optimization pheromone-based file prioritization
347
- - **Knowledge Graph + PageRank** — code entity impact radar with d=0.85 damping factor
348
- - **Predictive Engine** — bug risk scoring, technical debt forecasting, anomaly detection
349
- - 9 new CLI commands: `turbo`, `route`, `caip`, `evolve`, `predict`, `graph`, `swarm`, `defense`, `v4`
350
-
351
- ### Changed
352
- - All v3.0.0 features included and enhanced
353
- - Neural mesh upgraded with TurboMemory integration
354
- - Pattern memory upgraded with compressed vector storage
355
- - Learning engine upgraded with genetic optimization
356
-
357
- ---
358
-
359
- ## [3.0.0] — 2026-04-01 — Hyper-Intelligence Edition
360
-
361
- ### Added
362
- - **Cognitive Load Analysis** — estimates mental complexity of code sections
363
- - **Security Audit Engine** — vulnerability scanning, dependency risk assessment
364
- - **Influence Map** — tracks which code changes ripple through the codebase
365
- - Enhanced neural mesh with Shannon entropy and cosine similarity
366
- - Bayesian confidence scoring for all insights
367
-
368
- ### Changed
369
- - Analysis pipeline fully restructured for hyper-intelligence features
370
- - CLI expanded with security and cognitive commands
371
-
372
- ---
373
-
374
- ## [2.1.0] — 2026-03-25 — Quantum Neural Mesh
375
-
376
- ### Added
377
- - **Cross-Session Shared Intelligence** — persist and share insights across sessions
378
- - **Shannon Entropy Analysis** — information-theoretic code complexity measurement
379
- - **Cosine Similarity Matching** — semantic code comparison
380
- - **Bayesian Confidence** — probabilistic confidence scoring for recommendations
381
-
382
- ### Changed
383
- - Neural mesh architecture upgraded for cross-session persistence
384
- - Insight quality improved with entropy-based scoring
385
-
386
- ---
387
-
388
- ## [2.0.0] — 2026-03-18 — Super-Intelligence Edition
389
-
390
- ### Added
391
- - **Semantic Analyzer** — deep code understanding beyond syntax
392
- - **Dependency Graph** — full project dependency visualization and analysis
393
- - **Code Similarity Engine** — detect duplicated and near-duplicated code
394
- - **MCP Server** — initial Model Context Protocol server implementation
395
- - **Team Mode** — collaborative AI-assisted development
396
-
397
- ### Changed
398
- - Complete architecture rewrite from v1.x
399
- - CLI expanded from 15 to 35+ commands
400
-
401
- ---
402
-
403
- ## [1.x] — 2026-02 to 2026-03 — Foundation
404
-
405
- ### v1.2.0
406
- - Added vulnerability scanning
407
- - Added CI/CD integration hooks
408
-
409
- ### v1.1.0
410
- - Added smart fix suggestions
411
- - Added health scoring with weighted metrics
412
-
413
- ### v1.0.0
414
- - Initial release
415
- - 7 agent adapters (Claude Code, Cursor, Cline, Windsurf, Copilot, Kilo Code, Amp)
416
- - Basic health scoring and analysis pipeline
417
- - Vulnerability scanning
418
- - CLI with 15 commands
419
-
420
- ---
421
-
422
- [5.2.0]: https://github.com/theihtisham/agent-shadow-brain/releases/tag/v5.2.0
423
- [5.1.1]: https://github.com/theihtisham/agent-shadow-brain/releases/tag/v5.1.1
424
- [5.0.1]: https://github.com/theihtisham/agent-shadow-brain/releases/tag/v5.0.1
425
- [5.0.0]: https://github.com/theihtisham/agent-shadow-brain/releases/tag/v5.0.0
426
- [4.0.0]: https://github.com/theihtisham/agent-shadow-brain/releases/tag/v4.0.0
427
- [3.0.0]: https://github.com/theihtisham/agent-shadow-brain/releases/tag/v3.0.0
428
- [2.1.0]: https://github.com/theihtisham/agent-shadow-brain/releases/tag/v2.1.0
429
- [2.0.0]: https://github.com/theihtisham/agent-shadow-brain/releases/tag/v2.0.0
1
+ # Changelog
2
+
3
+ ## [7.22.0] - 2026-11-14 - Shared project memory and resumable work
4
+
5
+ - Added ordinary text/Markdown, knowledge JSON and simple conversation intake, editable review, immutable originals and typed evidence resolution through HTTP and MCP.
6
+ - Fixed stale project recall across warm processes, inactive-memory exclusions, duplicate feedback attribution and unrelated fallback for queries without searchable terms.
7
+ - Added immutable artifact reads, correctly paired portal activity, dense depth-layered graph inspection, honest replay expiration and complete context diagnostics.
8
+ - Added bounded, idempotent host-reported model/token receipts with safe concurrent storage, partial coverage and accurate subset arithmetic.
9
+ - Added direct plain-text memory saving with original evidence and retry protection; optional review remains available for longer notes.
10
+ - Added reported sessions, paged conversation history, immutable checkpoints and cross-agent continuation, including exact available native identities from selected exports.
11
+ - Added an explicit project-scoped Codex history connection with bounded paging, archive browsing, disconnect cleanup and verified page imports.
12
+ - Added bounded live change streaming, reconnect/fallback and optional project file metadata watching.
13
+ - Added revisioned tool participation, per-conversation sharing, coordination roles and context ceilings, enforced across agent tools, resources and prompts.
14
+ - Added verified Project Kit skill disable, restore and removal with exact preview, conflict detection and protected local edits.
15
+ - Removed automatic legacy host-config discovery, credential-bearing HTTP fields and untested success claims in provider tests.
16
+ - Show exact dated npm totals as plain text; refresh public totals every two days.
17
+ - Full release behavior and boundaries are documented in [the release notes](docs/launch/RELEASE_NOTES_v7.22.0.md).
18
+
19
+ ## [7.1.4] - 2026-11-13 - Brain Hub, shared work, and reviewed learning
20
+
21
+ - Made the dense Brain Hub the default portal, with an interactive memory graph, recorded-event animation, context comparison, knowledge intake, collaboration rooms, learning controls, and setup. The memory workspace and advanced interfaces remain available.
22
+ - Added bounded PDF text extraction with page citations, explicit approval into local memory, and a needs-OCR state for scanned pages.
23
+ - Added transactional project rooms with scoped MCP participation, task leases, typed messages, versioned artifact handoffs, acknowledgement, and recorded outcomes.
24
+ - Added evidence-linked lesson candidates with operator-reported evaluation, explicit promotion, idempotent memory commits and rollback. These controls do not train model weights or autonomously execute agents.
25
+ - Added independent server health and storage diagnostics, same-port reconnect, and stale-project mutation protection. Fixed local search/graph scope and Windows canonical-path and file-identity compatibility.
26
+ - Raised the Node 22 minimum to 22.13 for PDF.js and built-in SQLite. Node 24.x and 26+ remain supported.
27
+
28
+ - Added a provider-free project portal with persistent local knowledge, bounded project inspection, and task-specific skill previews. Generated skills remain inside the selected project and preserve edited or unowned files.
29
+ - Added a revisioned project feedback store and local learning controls. User and agent reports remain distinguishable; small task-relevant adjustments affect existing adaptive matches only and can be removed or disabled.
30
+ - Added optional adaptive retrieval with technical identifier/path matching, query-centered excerpts, duplicate grouping before the candidate cap, and bounded recorded-link expansion. Legacy remains the SDK/CLI/MCP default.
31
+ - Added Context Lab pipeline and candidate explanations, profile comparison, source/review attention queues, directional graph inspection, and live journal replay with transport filters and reduced motion.
32
+ - Added memory inspection/health tools, MCP resources and prompt templates, native client recipes, and five additional project-local tools. Local MCP launches enforce project scope across reads, prompts, resources and activity.
33
+ - Fixed automatic briefing invalidation after external writes and staged local changes, scoped inventory selection before its cap, and the isolated demo's explicit port parsing.
34
+ - Added an isolated synthetic demo, ten core workspace screenshots plus Project Kit and learning views, a GIF/MP4 walkthrough, a component catalog, and source-backed research/comparison documentation.
35
+ - Added paired retrieval diagnostics, local persistence/feedback/scope regressions and fresh-package checks. Diagnostic results describe author-generated cases, not superiority over competing tools or model answer quality.
36
+
37
+ Install `@7.1.4` explicitly when upgrading from the earlier publication named 7.2.0. Existing global memory workflows and advanced modules remain available; Project Kit does not migrate or merge them.
38
+
39
+ ## [7.1.3] - 2026-11-11 - Live activity and curated memory
40
+
41
+ This release follows 7.2.0 using the version number requested by the maintainer. Install `@7.1.3` explicitly when upgrading from 7.2.0.
42
+
43
+ - Added a live portal with an event-driven session network, measured tool charts, host-reported phases, timeline, pause, and reduced motion.
44
+ - Added a bounded cross-process activity journal, cursor and reset detection, metadata-only MCP instrumentation, host reporting, and separate recording and visibility controls.
45
+ - Added memory review, typed relations, audit history, and project-scoped curation through the workspace and CLI.
46
+ - Excluded archived, contested, and superseded memories before context ranking; briefings refresh when reviews change.
47
+ - Added standard MCP stdio, client capability checks, project skill diagnostics, and generated launch configuration.
48
+ - Improved workspace navigation, source coverage, graph filtering, context explanations, dark mode, and mobile layouts.
49
+ - Fixed empty-project graph scope, preservation of pending writes during read refresh, and per-client attach/detach targeting.
50
+
51
+
52
+ ## [7.2.0] - 2026-11-11 - Context Packs and Workspace
53
+
54
+ - Make the local workspace the default dashboard with overview, searchable memories, graph, context, and feature controls. Keep the previous dashboard at `/advanced`.
55
+ - Build size-bounded, project-scoped context packs with ranked memory selection, duplicate handling, recorded source provenance, and selection explanations.
56
+ - Use context packs for session briefings. Key cached results to the task and current settings, and check enablement before reading or returning a briefing.
57
+ - Persist four validated feature settings for context assembly, explicit cross-project context, automatic briefings, and dashboard activity delivery.
58
+ - Add `context-pack` and `features list|set` commands, read-only `context_pack` and `feature_flags` MCP tools, and public context and settings APIs.
59
+ - Refresh the README and workspace guide with a concept illustration and dashboard screenshots.
60
+
61
+ ## [7.1.0] - 2026-11-11 - Focused Workflows and Portable Skills
62
+
63
+ - Bundle six reusable skills for proportionate planning, implementation, diagnosis, review, research, and release work.
64
+ - Add project-local skill installation for Codex, Claude Code, OpenCode, DeepSeek Harness, and compatible portable clients. Preview by default; preserve user instructions, reject conflicting local edits and stale plans, validate paths, and back up managed updates.
65
+ - Add `skills list`, `skills show`, `skills targets`, `skills install`, and `workflow analyze` CLI commands.
66
+ - Add read-only `workflow_analyze` and `workflow_skills` MCP tools and public library APIs.
67
+ - Respect plan-only, diagnosis-only, and review-only scope in advisory routing. Add explicit task, mode, and complexity overrides; no provider calls or automatic task execution.
68
+ - Verify skill packaging, fresh-consumer installation, safe update behavior, and representative task scenarios.
69
+
70
+
71
+ ## [7.0.0] - 2026-11-11 - Durable Memory and Explained Recall
72
+
73
+ ### Breaking changes
74
+
75
+ - Require Node 22.12+ in 22.x, 24.x, or 26+; update dependency majors including simple-git, Zod, Anthropic SDK, and Vitest.
76
+ - Remove automatic install-time agent configuration. Setup is explicit.
77
+ - Reject unreadable, invalid, and unsupported stores without silently resetting or renaming them.
78
+ - Recall scoring uses real keyword coverage, creation-age recency, and matching-content agent reports. Existing minimum-confidence thresholds may return different results.
79
+
80
+ ### Added and fixed
81
+
82
+ - Serialize cross-process commits; merge latest data with pending operations, preserve external deletions, and use unique temporary files.
83
+ - Acknowledge queued writes after persistence, retain failed changes for retry, and expose structured storage diagnostics.
84
+ - Add `storage-health` and `recall-explain` commands, `global_storage_health` MCP tool, and public GlobalBrain library exports/types.
85
+ - Make scored recall finite and deterministic across the full candidate pool; explain matches and supporting identities.
86
+ - Load CLI configuration only when required, redact diagnostic key output, and escape dashboard activity text.
87
+ - Update dependencies, isolate tests from personal state, correct a date-dependent training-export test, add artifact consumer smoke checks, and expand CI to Windows/Linux on Node 22/24/26.
88
+ - Make legacy promotional automation manual-only.
89
+
90
+ ## [6.3.0] - 2026-06-06 - Recall Confidence + Issue-Bot Spam Fix
91
+
92
+ This release adds per-memory recall confidence scoring and fixes a GitHub Actions
93
+ issue-bot that was opening duplicate milestone/spike issues.
94
+
95
+ ### Added
96
+
97
+ - `GlobalBrain.recallScored()`: recall enriched with a blended `RecallConfidence` per entry. Signals: keyword relevance, recency (30-day half-life decay), author-assigned importance, cross-agent corroboration, and prior usage. Results are ranked by confidence and support a `minConfidence` floor.
98
+ - `RecallConfidence` and `ScoredGlobalEntry` types in `src/types.ts`.
99
+ - MCP tool `global_recall_scored` exposing scored recall to compatible clients.
100
+ - Dashboard recall results now show a color-coded confidence badge (high/medium/low) with a per-signal breakdown on hover; the `/api/v6/ww2br-recall` endpoint now returns scored results.
101
+ - Focused tests in `tests/brain/global-recall-confidence.test.ts` for scoring, importance ranking, cross-agent corroboration, and `minConfidence` filtering.
102
+
103
+ ### Fixed
104
+
105
+ - Viral Amplifier bot opened dozens of duplicate `Milestone — 25 stars` and `Momentum spike` issues. Root causes: (1) the milestone job ran on every cron schedule (including the every-6h trending cron) instead of only the daily run, and (2) both scripts trusted local state files (`.github/.milestone-state.json`, `.github/.trending-state.json`) that the workflow never committed, so each fresh checkout reset state and re-fired.
106
+ - `milestone-notifier.mjs` and `trending-detector.mjs` are now idempotent: they verify against GitHub (open/closed issues for milestones, open issues within the 24h window for spikes) before posting, and treat lookup failures as "skip" to stay spam-safe.
107
+ - `viral-amplifier.yml`: milestone job restricted to the daily 14:00 UTC cron; `welcome-new-issue` now ignores bot-authored issues so the bot no longer triages its own issues.
108
+
109
+ ## [6.0.3] - 2026-06-03 - Live Brain Release
110
+
111
+ This release makes Shadow Brain more realistic and more useful for complex agent work. It focuses on source-backed long memory, live memory health, recall evals, agent briefings, and release-ready docs.
112
+
113
+ ### Added
114
+
115
+ - `src/brain/live-brain.ts`: Live Brain report engine for memory health, recall evals, hygiene actions, top memories, and agent briefings.
116
+ - `src/brain/memory-seeder.ts`: verified memory seeding workflow with draft, user approval, agent approval, dual approval, reject, and seed-to-brain states.
117
+ - `shadow-brain live-brain status`: shows memory quality, source coverage, recall health, and recommended actions.
118
+ - `shadow-brain live-brain brief`: writes a markdown briefing for fresh sessions, handoffs, and context recovery.
119
+ - `shadow-brain live-brain eval`: checks whether useful memory can be recalled for agent workflows.
120
+ - `shadow-brain live-brain hygiene`: lists stale, duplicate, low-quality, and source-light memory issues.
121
+ - `shadow-brain live-brain train-pack`: exports source-backed JSONL examples for evals, distillation, or local fine-tuning pipelines.
122
+ - `/api/v6/live-brain` and the v6 dashboard Live Brain tab: dashboard/API route and UI for the same report and markdown briefing.
123
+ - `/api/v6/memory-intelligence`: live memory data for source coverage, freshness, categories, agents, tags, recent writes, and approval queue counts.
124
+ - `/api/v6/seed-*`: dashboard/API workflow for creating research drafts, approving/rejecting them, and committing approved drafts to global memory.
125
+ - Dashboard Memory Seeder tab: select research agent, approval agent, approval mode, project path, sources, category, tags, and importance before writing durable memory.
126
+ - Dashboard launch controls: `shadow-brain dash --host 127.0.0.1 --no-analysis` for fast UI/API startup on large repos.
127
+ - MCP tools: `live_brain_status`, `live_brain_brief`, and `live_brain_train_pack`.
128
+ - Focused tests for Live Brain scoring, briefing, recall eval, JSONL export, and memory seeding approval gates.
129
+
130
+ ### Changed
131
+
132
+ - README rewritten to be realistic about what the project does and does not do.
133
+ - npm package version updated to `6.0.3`.
134
+ - npm package description replaced with a practical local-first memory description.
135
+ - Runtime-visible versions updated in CLI, auto-update, portability export, orchestrator status, and MCP server metadata.
136
+ - Resume-pack source discovery now includes common repo docs such as `README.md`, `CHANGELOG.md`, `package.json`, and roadmap docs in addition to project-specific agent/progress files.
137
+ - CLI config merging now honors explicit `watchMode: false` from one-shot commands.
138
+ - Token Economy dashboard now separates the current runtime agent from historical model spend records, avoiding misleading labels such as an old Claude model appearing as the active Codex runtime.
139
+
140
+ ### Notes
141
+
142
+ - "Training" in this release means data export for user-run evals, distillation, or local fine-tuning. Shadow Brain does not modify remote model weights.
143
+ - No new runtime dependencies were added.
144
+ - Verification: TypeScript build passed; the full Vitest suite passed; `npm pack --dry-run` passed.
145
+
146
+ ---
147
+
148
+ All notable changes to `@theihtisham/agent-shadow-brain` are documented here.
149
+
150
+ This project follows [Semantic Versioning](https://semver.org/) and [Keep a Changelog](https://keepachangelog.com/) conventions.
151
+
152
+ > For detailed release notes with migration guides, see the [docs/versions/](docs/versions/) directory.
153
+
154
+ ---
155
+
156
+ ## [6.0.2] — 2026-05-12 — Singularity Edition (Current)
157
+
158
+ > **5 world-first viral features + real ANN vector index + Constitution layer + Confidence Gate + multimodal vision + LoRA distillation pipeline + SWE-Bench-Lite eval harness. Semver-strict this is v7.0.0; numbered 6.0.2 by author preference. See `docs/launch/RELEASE_NOTES_v6.0.2.md` for the full story.**
159
+
160
+ ### Added — 5 viral world-first features
161
+
162
+ 1. **Brain Replay** (`src/brain/brain-replay.ts`) — scrubbable timeline of every brain event since day zero. Exports tweet-ready SVG with density histogram + milestone markers.
163
+ 2. **Brain DNA** (`src/brain/brain-dna.ts`) — Spotify-Wrapped-style 1080×1080 fingerprint card per codebase. 8 personality archetypes (Architect, Debugger, Speedster, Scholar, Cartographer, Diplomat, Sentinel, Wanderer).
164
+ 3. **Hive Voice** (`src/brain/hive-voice.ts`) — multi-model debate-vote on any question. Outputs SVG consensus bar chart with explicit dissent + confidence distribution.
165
+ 4. **Brain Time Capsule** (`src/brain/brain-time-capsule.ts`) — freeze + label + resurrect brain snapshots. Ed25519-signed (stub) `.tcz` bundles.
166
+ 5. **Brain Diff** (`src/brain/brain-diff.ts`) — semantic diff between two brains. Outputs Venn-diagram SVG + English narrative.
167
+
168
+ ### Added — infrastructure
169
+
170
+ 6. **Real ANN vector index v2** (`src/brain/embeddings-v2.ts`) — hand-rolled HNSW-style graph (M=8, efSearch=32). Sub-100ms recall over 10k vectors. Sharded persistence (5MB cap). Auto-pulls `nomic-embed-text` from Ollama on first run. Zero new deps.
171
+ 7. **Constitution layer** (`src/brain/constitution.ts`) — `<project>/.shadow-brain/constitution.md` parser + injector + validator. Hot-reload via fs.watch. Logs violations to JSONL.
172
+ 8. **Confidence Gate** (`src/brain/confidence-gate.ts`) — active output filter (`block` / `downgrade` / `flag` modes). Persists calibration history; reports Brier score + ECE.
173
+ 9. **Multimodal vision** (`src/brain/multimodal-vision.ts`) — Ollama llava/llava-llama3/bakllava integration. Image ingestion → description → embedding → indexed search.
174
+ 10. **Markdown brain export/import** (`src/brain/markdown-export.ts`) — git-trackable `.shadow-brain.md` round-trip. Diff before write.
175
+ 11. **OpenTelemetry-lite tracing** (`src/brain/otel-lite.ts`) — zero-dep OTel-compatible JSONL tracer. Daily file rotation. `tracer.withSpan(name, fn)` helper.
176
+
177
+ ### Added — research-grade scaffolds
178
+
179
+ 12. **Project-LoRA distillation pipeline** (`tools/lora-pipeline/`) — `generate_training_data.py`, `train_lora.py`, `eval_lora.py`, `serve_lora.py`. Distill the brain into a Qwen2.5-Coder-1.5B LoRA adapter. Run when ready.
180
+ 13. **SWE-Bench-Lite micro-eval harness** (`tools/swe-bench-lite/`) — 10 hand-curated public-repo bugs. `runner.py` + `score.py` + pre-filled `report-template.md`. Realistic expected lift: +20-40% resolution rate with brain on.
181
+
182
+ ### Added — DX
183
+
184
+ 14. **`shadow-brain demo` command** — 30-second hello-world: auto-ingests sample repo, runs queries, opens dashboard.
185
+ 15. **Forgetting curve transparency + pinning** — every memory shows decay reason; `pin: true` flag prevents auto-decay.
186
+ 16. **Dashboard tour video** (`docs/launch/shadow-brain-dashboard-tour.mp4`) — 5-minute narrated walkthrough of every panel.
187
+ 17. **MCP server hardening** — better discovery, full feature surface, docs at `/mcp/info`.
188
+
189
+ ### Changed
190
+
191
+ - `embeddings.ts` kept untouched; `embeddings-v2.ts` composes it (no breaking change for callers that imported v1)
192
+ - `package.json` version → 6.0.2; description updated to reflect new features
193
+ - README hero updated with v6.0.2 feature row + new install command
194
+
195
+ ### Docs
196
+
197
+ - `docs/launch/RELEASE_NOTES_v6.0.2.md` — full release notes
198
+ - `docs/ROADMAP-v7.md` — v7+ strategic plan
199
+ - `docs/VIRAL-PLAYBOOK.md` — launch playbook
200
+
201
+ ### Notes
202
+
203
+ - **No new npm runtime dependencies.** Zero-dep philosophy preserved.
204
+ - TypeScript strict mode passes. All new modules compile cleanly.
205
+ - Backwards compatible with v6.0 brains; no migration required.
206
+
207
+ ---
208
+
209
+ ## [6.0.0] — 2026-04-24 — Hive Mind Edition
210
+
211
+ > **Hive Mind for AI agents — the first sub-agent-aware brain. 22 genuinely new features. 100% local-first, free, open source.**
212
+
213
+ ### The Hive Mind
214
+
215
+ Before v6.0, every AI agent and sub-agent started from zero. Claude's `Task` tool, Cursor's Composer, CrewAI/LangGraph/AutoGen sub-agents — none shared memory with the parent. Shadow Brain v6 is the first tool that bridges the brain across frameworks AND into sub-agents.
216
+
217
+ ### Added — 22 genuinely novel modules
218
+
219
+ 1. **Sub-Agent Brain Bridge (SABB)** (`src/brain/subagent-bridge.ts`) — detects sub-agent spawns, computes focused context slivers, quarantines sub-agent memories until graduated (confidence ≥ 0.7).
220
+ 2. **Causal Memory Chains** (`src/brain/causal-chains.ts`) — tracks cause→effect relationships, renders as Graphviz DAG, answers "why did X happen?"
221
+ 3. **Agent Collision Detective** (`src/brain/collision-detective.ts`) — real-time overlapping edit intent detection with advisory locks.
222
+ 4. **Dream Engine** (`src/brain/dream-engine.ts`) — background idle reflection via local LLM (Ollama): revisit, counterfactual, consolidation, contradiction, pattern-discovery.
223
+ 5. **Agent Reputation Ledger** (`src/brain/reputation-ledger.ts`) — Ed25519-signed decision receipts with portable accuracy scores and shields.io badges.
224
+ 6. **Swarm Debate Protocol** (`src/brain/swarm-debate.ts`) — pro/con/arbiter multi-agent debate for critical decisions.
225
+ 7. **Pre-Mortem Assistant** (`src/brain/pre-mortem.ts`) — surfaces past failures from project memory before significant tasks.
226
+ 8. **Branch Brains** (`src/brain/branch-brain.ts`) — git-branch-aware memory context switching.
227
+ 9. **Attention Heatmap** (`src/brain/attention-heatmap.ts`) — weighted attribution of which memories influenced each decision.
228
+ 10. **Token Economy Engine** (`src/brain/token-economy.ts`) — cross-agent cost tracking, monthly projections, savings suggestions.
229
+ 11. **Forgetting Curve + Sleep Consolidation** (`src/brain/forgetting-curve.ts`) — Ebbinghaus-inspired natural decay + tier promotion.
230
+ 12. **Formal Verification Bridge** (`src/brain/formal-verification-bridge.ts`) — natural-language rules → ESLint / Semgrep / LSP diagnostics.
231
+ 13. **Confidence Calibration Monitor** (`src/brain/calibration-monitor.ts`) — Brier-score based agent trust weighting.
232
+ 14. **Cost-Aware Sub-Agent Spawner** (`src/brain/cost-aware-spawner.ts`) — routes sub-agent spawns to cheapest model that satisfies task.
233
+ 15. **Air-Gap Mode** (`src/brain/air-gap.ts`) — block outbound network; localhost-only.
234
+ 16. **E2E Encryption** (`src/brain/brain-encryption.ts`) — ChaCha20-Poly1305 at rest with scrypt key derivation.
235
+ 17. **Hallucination Quarantine** (`src/brain/hallucination-quarantine.ts`) — isolate suspect memories; auto-delete after 7 days.
236
+ 18. **Voice Mode** (`src/brain/voice-mode.ts`) — transcript processing with brain integration.
237
+ 19. **Brain Garden** (`src/brain/brain-garden.ts`) — living constellation visualization data source.
238
+ 20. **PR Auto-Review** (`src/brain/pr-auto-review.ts`) — GitHub PR comment generator citing project memories.
239
+ 21. **Team Brain Sync** (`src/brain/team-brain-sync.ts`) — P2P peer state layer for WebRTC team brain.
240
+ 22. **Brain Exchange** (`src/brain/brain-exchange.ts`) — export + import curated shareable brain slices with redaction.
241
+
242
+ ### Added — supporting infrastructure
243
+
244
+ - **Local-First LLM Adapter** (`src/brain/local-llm.ts`) — unified Ollama-first adapter used by Dream Engine, Swarm Debate, Pre-Mortem. Graceful fallback when unreachable.
245
+ - **Hive Accelerator** (`src/brain/hive-accelerator.ts`) — wires SSSP (arXiv 2504.17033) for causal traversal + TurboQuant (ICLR 2026) for similarity scoring.
246
+ - **Complete Web Control Dashboard** (`src/dashboard/v6-dashboard-html.ts` + server routes) — 23-tab SPA at `http://localhost:7341/hive`. Controls every feature: enable/disable, configure, monitor. Agent connect/disconnect. Unified activity log. API+MCP configuration panels. Brain Garden D3 canvas.
247
+ - **48 new CLI commands** grouped under `hive`, `subagent`, `causal`, `collision`, `dream`, `reputation`, `debate`, `premortem`, `branch-brain`, `attention`, `tokens`, `forget`, `formal`, `calibrate`, `airgap`, `encrypt`, `quarantine`, `voice`, `garden`, `pr-review`, `team-sync`, `exchange`.
248
+ - **36 new MCP tool handlers** for every v6 module — any MCP-compatible AI tool can now call them.
249
+ - **v6 integration tests** (`tests/brain/hivemind-v6.test.ts`) — 24 smoke tests covering every module.
250
+
251
+ ### Changed
252
+
253
+ - Version: `5.2.0` → `6.0.0`
254
+ - Total brain modules: **26 → 48** (22 new v6 modules + Hive Accelerator + Local LLM)
255
+ - CLI commands: **70+ → 90+**
256
+ - MCP tools: **~27 → 60+** (existing + 36 v6 handlers)
257
+ - README hero: v6.0 Hive Mind positioning with 22 novel features prominently listed
258
+ - Web dashboard: `/` (legacy) + `/hive` or `/v6` (complete Hive Mind control)
259
+ - `package.json` description + 25 new v6 keywords for maximum discoverability
260
+
261
+ ### Removed
262
+
263
+ - Repo hygiene cleanup — removed stray files (`C:Userstheihtmp_b64_3.txt`, `eng.traineddata`, `write_pattern.py`, `.playwright-mcp/`, `seo-gists/`, empty `.codex`). Updated `.gitignore` to prevent recurrence.
264
+
265
+ ### Security
266
+
267
+ - ChaCha20-Poly1305 AEAD encryption for brain-at-rest
268
+ - Ed25519 cryptographic signatures on agent reputation receipts
269
+ - Air-gap mode with RFC1918 + metadata-endpoint blocking
270
+ - Hallucination quarantine prevents unverified claims from polluting global brain
271
+
272
+ ### Philosophy
273
+
274
+ **Local-first default.** All AI features (Dream Engine, Swarm Debate, Pre-Mortem, Voice) route to Ollama by default. Zero API keys needed. Zero network required. Zero cost to run. Shadow Brain works offline, in air-gapped environments, and in compliance-constrained enterprises. Remote providers (Anthropic, OpenAI, GLM) remain an optional upgrade — never a requirement.
275
+
276
+ ---
277
+
278
+ ## [5.2.0] — 2026-04-22 — Subconscious Singularity Edition
279
+
280
+ > **One brain. Every agent. Every project. Every session. Forever.**
281
+
282
+ ### The Singularity
283
+
284
+ Before v5.2.0, every project had its own brain and every AI agent (Claude, Cursor, Cline...) had to be told what each project knew. Now there is **one brain** — a singleton global JSON store at `~/.shadow-brain/global.json` that every agent reads from and writes to.
285
+
286
+ What Cursor learns in project A is instantly known to Claude Code in project B.
287
+
288
+ ### Added
289
+
290
+ - **Singleton Global Brain** (`src/brain/global-brain.ts`) — one `~/.shadow-brain/global.json` is the source of truth for every project + agent on the machine. Atomic write-and-rename plus an in-process write queue handles concurrent multi-agent writes without native dependencies. Auto-prune at 1GB. Project-scoped views via `GlobalBrain.projectIdFor(rootDir)`.
291
+ - **Subconscious Engine** (`src/brain/subconscious.ts`) — proactive context injection on every session start. The agent doesn't have to ask — the brain surfaces recent decisions, active tasks, similar past work, project state, cross-agent insights, and warnings. Hard-capped at 2K tokens, relevance-ranked, agent-configurable.
292
+ - **Universal Bootstrap** (`src/brain/session-hooks.ts`) — `asb attach-all` detects every installed AI agent on your machine and installs SessionStart hooks per agent's native mechanism (Claude Code settings.json, Cursor `.cursor/rules`, Cline VS Code extension, Windsurf `.windsurfrules`, Codex config.json, Aider `.aider.conf.yml`, Copilot `.github/copilot-instructions.md`, etc.). Every agent calls Shadow Brain on first prompt of every session.
293
+ - **L0 In-Memory Hot Tier** (`src/brain/l0-cache.ts`) — sub-millisecond recall via byte-budgeted Map LRU. Sits in front of the global JSON brain. Per-namespace caches with `getCache(name)`. Default 64MB budget, configurable.
294
+ - **Agent Safety Firewall** (`src/brain/agent-firewall.ts`) — blocks risky agent actions such as secret file access, destructive commands, curl-to-shell installs, and prompt-injection payloads before tools execute.
295
+ - **Agent Handoff Packets** (`src/brain/agent-handoff.ts`) — `asb handoff cursor codex` generates a cross-agent continuation packet with task state, changed files, recent memories, and safety warnings.
296
+ - **Proof Timeline + Share Report** — `asb timeline` and `asb proof report` expose the viral proof stream: what agents learned, when, and what the firewall blocked.
297
+ - **Cursor Adapter** (`src/adapters/cursor.ts`) — first-class adapter, no more falling back to ClineAdapter. Reads conversations from `~/.cursor/conversations`, injects into `.cursor/rules/shadow-brain-insights.md`, escalates critical insights to `.cursorrules`.
298
+ - **Windsurf Adapter** (`src/adapters/windsurf.ts`) — first-class adapter. Reads from `~/.windsurf/conversations`, writes to `.windsurfrules` with `# === Shadow Brain Insights ===` marker for safe re-injection.
299
+ - **GitHub Copilot Adapter** (`src/adapters/copilot.ts`) — workspace-level integration via `.github/copilot-instructions.md` (Copilot's official context file). Replaces a marker block on each update so injection is idempotent.
300
+ - **4 New CLI Commands**:
301
+ - `asb attach-all` — universal bootstrap for every detected agent
302
+ - `asb subconscious inject|status|configure` — manage proactive context injection
303
+ - `asb global stats|recall|cache|sync` — inspect the singleton global brain
304
+ - `asb handoff`, `asb timeline`, `asb firewall`, `asb detach-all`, `asb audit-hooks`, `asb proof report` — trust, safety, and launch-proof commands
305
+ - **4 New MCP Tools** — `subconscious_inject`, `global_recall`, `global_stats`, `attach_status`. Now any MCP client can talk to the global brain directly.
306
+
307
+ ### Changed
308
+
309
+ - **AgentTool union** now includes `'copilot'` — full type-safe support for 10 agents (was 9)
310
+ - **adapters/index.ts** — Cursor and Windsurf no longer alias ClineAdapter; each gets its own implementation
311
+ - **Description + 80 npm keywords** rewritten for v5.2.0 positioning and maximum discoverability
312
+ - **Total brain modules: 26** (4 new + 22 from v5.1.1)
313
+
314
+ ### Performance
315
+
316
+ - Hot recalls now <1ms via L0 cache (was 10-30ms via SQLite)
317
+ - Cross-project queries replace per-project DB lookup overhead with a single indexed query
318
+
319
+ ### Fixed
320
+
321
+ - Cursor and Windsurf adapters previously reused ClineAdapter — they now have correct path detection and conversation parsing for their actual file layouts
322
+
323
+ ### Migration Notes
324
+
325
+ v5.2.0 is **fully backward-compatible** with v5.1.1. The global brain is created on first init and coexists with project-local brains. No breaking changes to existing CLI commands or MCP tools.
326
+
327
+ To opt into the new singleton model: run `asb attach-all` once and every future session of every agent will auto-bootstrap.
328
+
329
+ ---
330
+
331
+ ## [5.1.1] — 2026-04-18 — Hyper-Cognitive Intelligence Edition
332
+
333
+ ### Added
334
+ - **Built-in LSP Server** — pure Node.js Language Server Protocol implementation with stdio + TCP transport modes, real-time diagnostics, hover info, and code actions
335
+ - **Custom LLM Fine-Tuning Engine** — automatic training data generation from code changes, JSONL export, multi-model training pipeline
336
+ - **Smart Cache** — 3-tier (hot/warm/cold) LRU cache with predictive prefetch via co-access graph, tag-based invalidation, and adaptive tier promotion
337
+ - **Intent Engine** — multi-strategy NLP command understanding with keyword, fuzzy, and context-aware matching strategies
338
+ - **Code DNA Fingerprinting** — 9-gene structural analysis covering structure, complexity, style, dependency, and evolution gene categories
339
+ - **Temporal Intelligence** — velocity metrics, file heatmaps, 5-factor bug prediction, anomaly detection, and peak hour/day analysis
340
+ - 6 new CLI commands: `lsp`, `fine-tune`, `cache`, `intent`, `dna`, `temporal`
341
+ - 27 README badges for maximum discoverability
342
+
343
+ ### Changed
344
+ - Total brain modules: **22** (6 new + 16 from v5.0.1)
345
+ - All v5.0.1, v5.0.0, and v4.0.0 features included and enhanced
346
+ - Expanded npm keywords to 50+
347
+
348
+ ### Fixed
349
+ - 18 TypeScript compilation errors in CLI — aligned property references with actual module interfaces
350
+
351
+ ---
352
+
353
+ ## [5.0.1] — 2026-04-15 — Zero-Config Intelligence Edition
354
+
355
+ ### Added
356
+ - **Zero-Config Auto-Setup** — auto-detect project type, AI tools, languages, frameworks; setup is explicit and reversible in v5.2.0
357
+ - **MCP Server** — 19-tool Model Context Protocol server for Claude Code, Cursor, and all AI tools
358
+ - **Rich Web Dashboard** — real-time WebSocket dashboard with 8 panels (health, memory tiers, insights, fixes, AI tools, modules, stats, controls)
359
+ - **Natural Language Queries** — `shadow-brain ask "..."` for plain-English brain interaction
360
+ - **Plugin System** — hookable analysis pipeline with npm plugin discovery
361
+ - **Brain Export/Import** — full brain state portability for team sync and backup
362
+ - 5 new CLI commands: `off`, `ask`, `export`, `import`, `plugin`
363
+ - **Cursor MCP Compatibility** — root path POST + `/v1/chat` endpoint support
364
+ - **Postinstall Auto-Setup** — runs automatically after `npm install`
365
+
366
+ ### Changed
367
+ - 50+ npm keywords for discoverability
368
+ - All v5.0.0 and v4.0.0 features included and enhanced
369
+
370
+ ---
371
+
372
+ ## [5.0.0] — 2026-04-12 — Infinite Intelligence Edition
373
+
374
+ ### Added
375
+ - **Hierarchical Memory Compression** — 4-tier pyramid (raw -> summary -> pattern -> principle) with drill-down/up navigation
376
+ - **Context-Triggered Associative Recall** — automatic memory activation based on file paths, keywords, and categories
377
+ - **Multi-Agent Consensus Protocol** — trust-weighted voting, confidence intervals, conflict resolution across multiple AI agents
378
+ - **Collective Cross-Project Learning** — verified rule sharing, viral propagation, accuracy tracking across projects
379
+ - 5 new CLI commands: `memory`, `recall`, `consensus`, `collective`, `v5`
380
+
381
+ ### Changed
382
+ - Memory architecture fully rewritten for infinite retention
383
+ - Cross-agent communication protocol standardized
384
+
385
+ ---
386
+
387
+ ## [4.0.0] — 2026-04-08 — Hyper-Intelligence Edition
388
+
389
+ ### Added
390
+ - **TurboQuant Infinite Memory** — 6x compression, zero forgetting (based on Google Research, ICLR 2026)
391
+ - **SSSP BMSSP Routing** — O(m log^(2/3) n) deterministic routing (based on arXiv 2504.17033, Duan et al.)
392
+ - **Self-Evolving Genetic Rules** — tournament selection, Gaussian mutation, Bayesian meta-learning
393
+ - **Cross-Agent Intelligence Protocol (CAIP)** — 7 agents share insights in real-time via WebSocket
394
+ - **Adversarial Hallucination Defense** — cross-reference verification, evidence scoring, confidence thresholds
395
+ - **Swarm Intelligence** — Ant Colony Optimization pheromone-based file prioritization
396
+ - **Knowledge Graph + PageRank** — code entity impact radar with d=0.85 damping factor
397
+ - **Predictive Engine** — bug risk scoring, technical debt forecasting, anomaly detection
398
+ - 9 new CLI commands: `turbo`, `route`, `caip`, `evolve`, `predict`, `graph`, `swarm`, `defense`, `v4`
399
+
400
+ ### Changed
401
+ - All v3.0.0 features included and enhanced
402
+ - Neural mesh upgraded with TurboMemory integration
403
+ - Pattern memory upgraded with compressed vector storage
404
+ - Learning engine upgraded with genetic optimization
405
+
406
+ ---
407
+
408
+ ## [3.0.0] — 2026-04-01 — Hyper-Intelligence Edition
409
+
410
+ ### Added
411
+ - **Cognitive Load Analysis** — estimates mental complexity of code sections
412
+ - **Security Audit Engine** — vulnerability scanning, dependency risk assessment
413
+ - **Influence Map** — tracks which code changes ripple through the codebase
414
+ - Enhanced neural mesh with Shannon entropy and cosine similarity
415
+ - Bayesian confidence scoring for all insights
416
+
417
+ ### Changed
418
+ - Analysis pipeline fully restructured for hyper-intelligence features
419
+ - CLI expanded with security and cognitive commands
420
+
421
+ ---
422
+
423
+ ## [2.1.0] — 2026-03-25 — Quantum Neural Mesh
424
+
425
+ ### Added
426
+ - **Cross-Session Shared Intelligence** — persist and share insights across sessions
427
+ - **Shannon Entropy Analysis** — information-theoretic code complexity measurement
428
+ - **Cosine Similarity Matching** — semantic code comparison
429
+ - **Bayesian Confidence** — probabilistic confidence scoring for recommendations
430
+
431
+ ### Changed
432
+ - Neural mesh architecture upgraded for cross-session persistence
433
+ - Insight quality improved with entropy-based scoring
434
+
435
+ ---
436
+
437
+ ## [2.0.0] — 2026-03-18 — Super-Intelligence Edition
438
+
439
+ ### Added
440
+ - **Semantic Analyzer** — deep code understanding beyond syntax
441
+ - **Dependency Graph** — full project dependency visualization and analysis
442
+ - **Code Similarity Engine** — detect duplicated and near-duplicated code
443
+ - **MCP Server** — initial Model Context Protocol server implementation
444
+ - **Team Mode** — collaborative AI-assisted development
445
+
446
+ ### Changed
447
+ - Complete architecture rewrite from v1.x
448
+ - CLI expanded from 15 to 35+ commands
449
+
450
+ ---
451
+
452
+ ## [1.x] — 2026-02 to 2026-03 — Foundation
453
+
454
+ ### v1.2.0
455
+ - Added vulnerability scanning
456
+ - Added CI/CD integration hooks
457
+
458
+ ### v1.1.0
459
+ - Added smart fix suggestions
460
+ - Added health scoring with weighted metrics
461
+
462
+ ### v1.0.0
463
+ - Initial release
464
+ - 7 agent adapters (Claude Code, Cursor, Cline, Windsurf, Copilot, Kilo Code, Amp)
465
+ - Basic health scoring and analysis pipeline
466
+ - Vulnerability scanning
467
+ - CLI with 15 commands
468
+
469
+ ---
470
+
471
+ [5.2.0]: https://github.com/theihtisham/agent-shadow-brain/releases/tag/v5.2.0
472
+ [5.1.1]: https://github.com/theihtisham/agent-shadow-brain/releases/tag/v5.1.1
473
+ [5.0.1]: https://github.com/theihtisham/agent-shadow-brain/releases/tag/v5.0.1
474
+ [5.0.0]: https://github.com/theihtisham/agent-shadow-brain/releases/tag/v5.0.0
475
+ [4.0.0]: https://github.com/theihtisham/agent-shadow-brain/releases/tag/v4.0.0
476
+ [3.0.0]: https://github.com/theihtisham/agent-shadow-brain/releases/tag/v3.0.0
477
+ [2.1.0]: https://github.com/theihtisham/agent-shadow-brain/releases/tag/v2.1.0
478
+ [2.0.0]: https://github.com/theihtisham/agent-shadow-brain/releases/tag/v2.0.0