@theihtisham/agent-shadow-brain 7.2.0 → 7.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (447) hide show
  1. package/CHANGELOG.md +482 -427
  2. package/README.md +202 -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 +39 -87
  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 +2535 -1552
  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 +125 -105
  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_CHECKLIST_v7.0.0.md +24 -24
  432. package/docs/launch/RELEASE_NOTES_v7.0.0.md +44 -44
  433. package/docs/launch/RELEASE_NOTES_v7.1.0.md +32 -32
  434. package/docs/launch/RELEASE_NOTES_v7.1.3.md +40 -0
  435. package/docs/launch/RELEASE_NOTES_v7.1.4.md +30 -0
  436. package/docs/launch/RELEASE_NOTES_v7.2.0.md +24 -24
  437. package/docs/launch/RELEASE_NOTES_v7.22.0.md +53 -0
  438. package/docs/launch/RELEASE_NOTES_v7.22.1.md +11 -0
  439. package/docs/launch/RESEARCH_AND_PLAN_v7.1.4.md +255 -0
  440. package/docs/launch/RESEARCH_AND_PLAN_v7.22.0.md +672 -0
  441. package/package.json +139 -111
  442. package/skills/shadow-debug/SKILL.md +16 -16
  443. package/skills/shadow-implement/SKILL.md +16 -16
  444. package/skills/shadow-release/SKILL.md +16 -16
  445. package/skills/shadow-research/SKILL.md +14 -12
  446. package/skills/shadow-review/SKILL.md +14 -14
  447. package/skills/shadow-workflow/SKILL.md +39 -31
@@ -0,0 +1,46 @@
1
+ # Learning from work
2
+
3
+ Shadow Brain 7.1.4 can reuse project-specific feedback when assembling adaptive context. The loop is explicit: select relevant memory, do the task in the host, observe the result, report what helped or failed, and inspect the effect on later retrieval.
4
+
5
+ ```mermaid
6
+ flowchart LR
7
+ A[Current task] --> B[Scoped adaptive context]
8
+ B --> C[Host performs authorized work]
9
+ C --> D[Observed outcome]
10
+ D --> E[Reported memory feedback]
11
+ E --> F[Bounded task-relevant adjustment]
12
+ F --> B
13
+ E --> G[User review / remove / disable]
14
+ ```
15
+
16
+ The MCP tool assigns `reporter: agent`; portal and CLI feedback assign `reporter: user`. Neither reporter can claim its result is machine-verified by this system. Source and evidence references are not fetched. A tool call succeeding is not evidence that the task succeeded.
17
+
18
+ ## What changes in retrieval
19
+
20
+ Feedback operates only on direct lexical candidates that passed normal project and curation filters. It cannot create a match, boost a graph-only neighbor, revive archived/contested/superseded memory, add source provenance, or alter stored memory content.
21
+
22
+ The task matcher drops generic action words and compares substantive terms. A report needs at least one substantive overlap and a Jaccard similarity of at least 0.34 with the current query. Up to three recent matching distinct tasks contribute. The adjustment is the mean of each rating value multiplied by task similarity and reporter weight.
23
+
24
+ | Input | Value |
25
+ | --- | ---: |
26
+ | Useful | +0.08 |
27
+ | Not useful | -0.04 |
28
+ | Incorrect | -0.12 |
29
+ | User reporter weight | 1 |
30
+ | Agent reporter weight | 0.5 |
31
+ | Final adjustment bounds | -0.12 to +0.08 |
32
+
33
+ The final score cannot go below zero. The candidate report exposes the signed **Project task feedback** signal, contributing record IDs, and reporter kinds. This is a ranking heuristic, not a confidence or truth score.
34
+
35
+ An identical memory/task/reporter combination updates its prior record. When eligible exact-text duplicates are grouped, the newest report from each normalized task can contribute once, with user reports taking precedence over agent reports. Candidate details retain the contributing report IDs. The sidecar is limited to 500 records and 2 MiB, with bounded task, reason and evidence fields. At capacity, a new distinct record is rejected. Existing records can still be updated or removed. Changes use revision checks and atomic file replacement. No age expiry is silently imposed.
36
+
37
+ ## Keep control
38
+
39
+ - Turn local learning influence off to retain records while restoring baseline adaptive scoring.
40
+ - Remove a report to withdraw its influence.
41
+ - Use normal memory curation to mark a claim contested or archive an outdated record. An `incorrect` report does not secretly change curation state.
42
+ - Review agent reports against actual checks. A plausible explanation can still be wrong.
43
+
44
+ This feature is limited to the explicit project workspace and matching local MCP/CLI store. Library callers opt in by passing a `ProjectFeedbackSnapshot` to `assembleContext`. Existing global-store retrieval and legacy profiles do not automatically adopt feedback.
45
+
46
+ [Project Kit walkthrough](PROJECT_KIT.md) · [Retrieval evaluation](evaluation/CONTEXT_EVALUATION_v7.1.4.md)
@@ -0,0 +1,98 @@
1
+ # Project Kit: knowledge and skills for one workspace
2
+
3
+ Project Kit combines a local knowledge store, bounded project inspection, task-specific skill generation, and feedback from actual work. Everything belongs to the selected project. Opening another project does not import these memories or install the skill globally.
4
+
5
+ ## 1. Open your project
6
+
7
+ ```bash
8
+ shadow-brain project workspace .
9
+ ```
10
+
11
+ Open the printed address and choose **Project Kit**. This mode needs no model provider and does not read coding-client profiles. Closing the portal keeps your saved files. The older `dash` command still opens the shared-store dashboard; it does not silently switch or merge stores.
12
+
13
+ | File or folder | Purpose |
14
+ | --- | --- |
15
+ | `.shadow-brain/project-memory.json` | Explicit project knowledge |
16
+ | `.shadow-brain/memory-annotations.json` | Reviews and recorded memory relationships |
17
+ | `.shadow-brain/feature-settings.json` | Workspace runtime controls |
18
+ | `.shadow-brain/activity-journal.json` | Bounded measured/reported activity metadata |
19
+ | `.shadow-brain/memory-feedback.json` | Reported outcomes and local learning control |
20
+ | `.shadow-brain/project-kit-skills` | Ownership receipts for generated skills |
21
+ | `.shadow-brain/disabled-project-skills` | Verified disabled copies outside client discovery paths |
22
+ | Selected host's project skill folder | Generated `SKILL.md` files |
23
+
24
+ Files are created when their feature needs to save data. Treat knowledge and skill content as project files: decide what belongs in version control before sharing the repository. Moving a project changes its path-derived project ID; this release does not automatically reassign earlier memory IDs to the new location.
25
+
26
+ ## 2. Inspect what the project actually declares
27
+
28
+ ```bash
29
+ shadow-brain project inspect .
30
+ ```
31
+
32
+ Inspection reports observed stack markers, package-manager markers, and known check names. It scans at most 500 directory entries through depth three, with bounded allowlisted manifest reads. A script named `test` yields a suggested command; its body is not returned or executed. Lockfiles and configuration markers can identify a tool without reading their contents. The scanner skips linked paths, dependency/build trees and private configuration locations.
33
+
34
+ These are observations, not complete semantic understanding. Missing manifests, a large monorepo, custom scripts, or an unfamiliar stack can leave gaps. The profile shows coverage and warnings. Check the suggested command before running it.
35
+
36
+ ## 3. Add knowledge you want the agent to retain
37
+
38
+ Use the knowledge form for a project constraint, decision, rule, or known lesson. An optional reference records where you found it; the service does not fetch that reference or certify the statement.
39
+
40
+ ```bash
41
+ shadow-brain project knowledge . --title "Checkout retry contract" --content "Preserve the original idempotency key across retries." --source "docs/checkout.md"
42
+ ```
43
+
44
+ The command returns the committed memory ID and project ID. The original text is stored with explicit user provenance. A reference is recorded only when you supply one, so adding a note without a source does not inflate source coverage.
45
+
46
+ Open **Context Lab**, select the project, and ask about checkout retries. The saved note is immediately available to scoped retrieval. You can inspect, contest, archive, or connect it through the existing memory tools.
47
+
48
+ ## 4. Turn a requirement into a local skill
49
+
50
+ Describe the task, choose a client, and optionally supply knowledge. **Use in skill** reuses the knowledge you just added. Preview shows the exact destination and Markdown before Apply.
51
+
52
+ ```bash
53
+ shadow-brain project skill . --target codex --name checkout-retries --requirement "Fix checkout retries and verify that each request commits once."
54
+ ```
55
+
56
+ The output includes `planHash`. Repeat the same inputs with `--apply --expected-plan-hash HASH_FROM_PREVIEW` to write the reviewed plan. The generated skill includes your requirement, supplied knowledge, observed project evidence, and relevant declared checks. It is deterministic; no model or install script runs during generation.
57
+
58
+ | Client target | Generated path |
59
+ | --- | --- |
60
+ | `codex` | `.agents/skills/NAME/SKILL.md` |
61
+ | `claude-code` | `.claude/skills/NAME/SKILL.md` |
62
+ | `opencode` | `.opencode/skills/NAME/SKILL.md` |
63
+ | `deepseek-harness` | `.dsh/skills/NAME/SKILL.md` |
64
+ | `portable` | `.agents/skills/NAME/SKILL.md` |
65
+
66
+ Apply recomputes the preview, checks path safety and ownership, and refuses stale plans or files that were edited outside Project Kit. An unowned file is not overwritten, even if its name matches. Generated skills do not edit `AGENTS.md`, provider settings, or global skill directories. Host support and skill discovery still need to be checked in the client.
67
+
68
+ In **Setup → Managed project skills**, preview Disable, Enable, or Remove to see the affected paths. Disabling moves the verified `SKILL.md` bytes into the workspace’s disabled-skill folder. Enabling restores them only when the discovery path is free. Removal deletes the verified file and its Project Kit receipt. Supporting files and other skill installations stay in place.
69
+
70
+ The panel reports edited files, destination conflicts, and pending operations. For a pending operation, review the same action to complete it. Reload the coding client to refresh its skill discovery. An existing chat can still contain instructions it loaded earlier.
71
+
72
+ ## 5. Connect the same local knowledge to your agent
73
+
74
+ ```bash
75
+ shadow-brain project config . --target codex
76
+ ```
77
+
78
+ Merge the printed recipe into the selected host's configuration. It includes the explicit project directory, project ID and local `--db` path. The connected MCP process then reads the same knowledge shown by the portal.
79
+
80
+ The local launch adds `project_inspect`, `project_knowledge`, `project_skill_preview`, `project_skill_apply`, and `project_feedback` to the regular memory tools. Preview/apply is a two-step operation. Saved text and observations remain reference material; they do not override current user instructions or the host's permissions.
81
+
82
+ ## 6. Learn from reported outcomes
83
+
84
+ After a real task, record whether a selected memory helped. The **Memory outcomes** panel keeps the task, outcome, reason, optional evidence labels and reporter visible. A user report and an agent report remain distinguishable. Agents can call `project_feedback` after observing a concrete result; retrieval alone never creates positive feedback.
85
+
86
+ ```bash
87
+ shadow-brain project feedback list .
88
+ shadow-brain project feedback record . --memory MEMORY_ID --task "Fix checkout retries" --rating useful --reason "The existing idempotency contract matched the passing retry regression check." --evidence "tests/checkout-retry.test.ts"
89
+ shadow-brain project feedback set off --project .
90
+ ```
91
+
92
+ Use `useful`, `not-useful`, or `incorrect`. Record only an outcome you observed; the example reason is not a claim that your tests passed. Feedback is reported evidence, not an automatic truth verdict. The portal lets you remove a record or disable its influence while keeping the history available.
93
+
94
+ Adaptive retrieval applies a small signed adjustment only when the memory already matches the current task and the feedback task is relevant. Repeated identical reports are updated instead of counted again. User reports carry more weight than agent reports. Context Lab shows the applied signal and links to reported outcomes; diagnostic JSON retains record IDs. Legacy retrieval, unrelated projects, inactive memories, and empty-query browsing do not gain feedback influence.
95
+
96
+ This improves local reuse through outcome feedback. It does not train model weights, verify external sources, execute self-modifying code, or guarantee that an agent's next answer will be correct. [Learning rules and limits](LEARNING.md)
97
+
98
+ [Client integration](INTEGRATIONS.md) · [Context Lab](CONTEXT_LAB.md) · [Workspace guide](WORKSPACE.md)
@@ -0,0 +1,62 @@
1
+ # Quickstart
2
+
3
+ This guide covers the 7.22.0 Brain Hub. Use Node.js 22.13 or later in the 22.x line, 24.x, or 26 and later.
4
+
5
+ ## Install and open a project
6
+
7
+ From the project directory, you can start with one command:
8
+
9
+ ```bash
10
+ npx --yes --package @theihtisham/agent-shadow-brain@7.22.0 shadow-brain project workspace . --port 62595
11
+ ```
12
+
13
+ Or install the reusable CLI:
14
+
15
+ ```bash
16
+ npm install -g @theihtisham/agent-shadow-brain@latest
17
+ shadow-brain --version
18
+ cd your-project
19
+ shadow-brain project workspace . --port 62595
20
+ ```
21
+
22
+ Check that the CLI prints `7.22.0` for these steps. Keep the command running and open [the Brain Hub](http://127.0.0.1:62595/hub). The process writes project data inside the selected project’s `.shadow-brain` directory. On restart, run the same command from the same project directory. If you use `--port 0`, open the URL printed by the current process.
23
+
24
+ From a source checkout, use `npm ci` and `npm run build`, then replace `shadow-brain` with `node dist/cli.js` from the checkout. Pass the intended project directory as the workspace argument.
25
+
26
+ ![Running Brain Hub control room](assets/7.22.0-hub-graph.png)
27
+
28
+ ## Save a fact in ordinary words
29
+
30
+ 1. Open **Knowledge** and type “The cupboard is black. Keep its brass handles.”
31
+ 2. Click **Add to memory**. No title, JSON or upload is required.
32
+ 3. Open **Context** and ask “What colour is the cupboard?” The returned reference includes your note and a link to its original text.
33
+ 4. Connect your chosen host through **Setup** so it can retrieve the same memory through MCP.
34
+
35
+ For longer notes, choose **Review first** and save the useful parts. Optional PDF and JSON imports stay available below the plain-text form. Image-only PDFs need OCR, which is not included.
36
+
37
+ ![Approved source page and extracted citation](assets/7.1.4-hub-knowledge.png)
38
+
39
+ ## Connect a host
40
+
41
+ ```bash
42
+ shadow-brain project config . --target codex
43
+ shadow-brain skills install . --target codex
44
+ ```
45
+
46
+ Merge the recipe into the selected host’s configuration. Preview the skill-file changes, then use `--apply` if you want them. Reconnect the host and confirm it can call a tool such as `project_inspect` or `context_pack`. Host file presence, recorded activity, and model evidence are shown separately. [Supported client recipes](INTEGRATIONS.md)
47
+
48
+ ## Explore shared work
49
+
50
+ Create a room in **Collaboration**, add a task, and record a proposal or critique. A participant can claim the task, attach a project-relative artifact, and record a result. **Learning** turns recorded outcomes into candidates with explicit evaluation and promotion. [Workspace guide](WORKSPACE.md)
51
+
52
+ The classic workspace at `/workspace` provides detailed memory review, context selection, and retrieval feedback. `/live` opens the detailed journal. `shadow-brain demo workspace --port 0` runs a separate synthetic tour.
53
+
54
+ [Visual guide](VISUAL_GUIDE_v7.22.0.md) · [Troubleshooting](TROUBLESHOOTING.md)
55
+
56
+ ## Plain-language notes, sessions, and live files
57
+
58
+ In **Knowledge**, paste ordinary notes or a plan and choose **Add to memory**. Direct saving accepts 6,000 characters and 20 paragraphs; **Review first** handles longer notes. **Context** lets you try a task, inspect original evidence, and compare a focused context pack with a bounded reference under the same project controls. **Learning** records usefulness feedback.
59
+
60
+ Open **Sessions** for explicitly reported conversation history and saved handoffs. A connected host can call `session_open`, record meaningful progress, and create a checkpoint; another host calls `session_resume` with that checkpoint to continue. Imported transcripts are deliberate snapshots, not automatic access to native private chat history. [Sessions guide](SESSIONS.md).
61
+
62
+ In **Setup**, choose sharing preferences, context ceilings and optional **project file activity**. A filesystem event does not identify its author. Pushed updates need the local server to remain running. Tool participation applies to cooperating client labels; it does not configure or control another application globally.
package/docs/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # Agent Shadow Brain documentation
2
+
3
+ Agent Shadow Brain 7.22.0 provides a local workspace, CLI, and standalone MCP service for project memory, task context, and generated project skills.
4
+
5
+ ## Start and use the workspace
6
+
7
+ | Guide | Use it to |
8
+ | --- | --- |
9
+ | [Source intake](SOURCE_INTAKE.md) | Paste notes, review corrections, import simple conversations and inspect original evidence. |
10
+ | [Visual guide](VISUAL_GUIDE_v7.22.0.md) | See actual browser captures and their fixture provenance. |
11
+ | [Quickstart](QUICKSTART.md) | Install the exact version, launch the synthetic demo, and open your project workspace. |
12
+ | [Project Kit](PROJECT_KIT.md) | Inspect one project, save local knowledge, and preview and apply a tailored skill. |
13
+ | [Context Lab](CONTEXT_LAB.md) | Assemble, inspect, compare, and copy a task brief. |
14
+ | [Reported outcomes](LEARNING.md) | Record an observed result and inspect, pause, or remove its bounded influence on later retrieval. |
15
+ | [Workspace guide](WORKSPACE.md) | Review memory, work with typed links, check project health, and follow recorded activity. |
16
+ | [Features and limits](FEATURES_AND_LIMITS.md) | Distinguish implemented behavior from host prerequisites, estimates and unavailable metrics. |
17
+ | [Client integrations](INTEGRATIONS.md) | Configure MCP stdio, inspect project skill files, and understand which surfaces the client exposes. |
18
+ | [Workflow skills](WORKFLOW_INTEGRATION.md) | Preview or install the six focused project skills. |
19
+ | [Showcase](SHOWCASE.md) | See Project Kit, Context Lab, memory review, outcome feedback, and Live replay with synthetic data. |
20
+
21
+ ## Architecture and evidence
22
+
23
+ - [Component guide](COMPONENTS.md) maps the shared paths and retained modules.
24
+ - [Agent memory approaches](COMPARISON.md) compares the documented architectures and tradeoffs of related systems.
25
+ - [Paired retrieval evaluation](evaluation/CONTEXT_EVALUATION_v7.1.4.md) reports 14 author-generated diagnostic cases against both profiles. [Raw results](evaluation/CONTEXT_EVALUATION_v7.1.4.json)
26
+ - [Research and acceptance plan](launch/RESEARCH_AND_PLAN_v7.22.0.md) records the research, implementation scope, and verification gates.
27
+
28
+ ## Release and support
29
+
30
+ - [7.22.0 release notes](launch/RELEASE_NOTES_v7.22.0.md) cover shared sessions, native history, project controls and compatibility.
31
+ - [Verification record](launch/RELEASE_ACCEPTANCE_v7.22.0.md) separates tested behavior, local measurements and native-client coverage.
32
+ - [Changelog](../CHANGELOG.md) · [Historical versions](versions/README.md) · [7.0 migration notes](launch/RELEASE_NOTES_v7.0.0.md)
33
+ - [Troubleshooting](TROUBLESHOOTING.md) covers installation, storage, context, and local activity checks.
34
+ - [Open an issue](https://github.com/theihtishaam/agents-brain/issues) with the version, reproduction steps, and relevant diagnostics.
35
+
36
+ [Project README](../README.md)
@@ -0,0 +1,147 @@
1
+ # Shadow Brain — Roadmap to v7.0 and Beyond
2
+
3
+ > **Status:** Living document
4
+ > **Last updated:** 2026-05-12
5
+ > **Author:** @theihtisham
6
+ > **Companion docs:** `RELEASE_NOTES_v6.0.2.md`, `VIRAL-PLAYBOOK.md`
7
+
8
+ This is the strategic plan. v6.0.2 ("Singularity") shipped the substrate. v7.0 is where Shadow Brain becomes the default infrastructure for every AI coding agent on Earth.
9
+
10
+ ---
11
+
12
+ ## North Star
13
+
14
+ > **"Every line of code an AI agent writes anywhere should be able to draw on every relevant lesson your team has ever learned — instantly, locally, privately."**
15
+
16
+ That's it. The roadmap exists to compound toward that.
17
+
18
+ ---
19
+
20
+ ## v7.0 — "Multiplayer" (target: Q3 2026)
21
+
22
+ The theme is *plurality*. v6 made the brain smart; v7 makes it social.
23
+
24
+ ### 🟥 Tier-S (no v7 without these)
25
+
26
+ #### S1. CRDT real-time team sync (Yjs)
27
+ Replace `team-sync` JSON-stomp protocol with **Yjs**. Two engineers on the same brain, concurrent edits, conflict-free. Figma-for-knowledge.
28
+ - Yjs Y.Doc per project
29
+ - WebSocket relay (default: free, self-hosted) + optional Cloudflare relay
30
+ - Encrypted-at-rest via existing `brain-encryption.ts`
31
+ - Backwards-compat shim for v6 team-sync clients
32
+
33
+ #### S2. VS Code Marketplace launch
34
+ The repo has `vscode-extension/` — it's not on the marketplace yet.
35
+ - Inline memory highlights ("Agent X learned this from file Y")
36
+ - Hover for entity provenance ("learned 2 weeks ago by Cursor, confirmed 3× by Claude")
37
+ - One-click "ask brain about this function"
38
+ - Codelens for files: "12 brain memories · 3 ADRs · 1 collision pending"
39
+ - Status bar: brain health · forgetting curve · last sync
40
+ - Publisher account: needs theihtisham@ Microsoft Partner Center setup
41
+
42
+ #### S3. SWE-Bench-Verified public leaderboard
43
+ v6.0.2 shipped the harness. v7 runs it for real.
44
+ - 50-problem SWE-Bench-Verified subset
45
+ - Brain off vs brain on for: Claude 4.7, GPT-5, DeepSeek V3, Llama 4
46
+ - Published dashboard at `brain.dev/leaderboard` (domain TBD)
47
+ - Numbers become the marketing — if brain delivers +20pp resolution, that's the headline
48
+
49
+ #### S4. Brain Exchange seeded with 10 canonical packs
50
+ The marketplace exists; the content doesn't. Pre-build and curate:
51
+ - React 19 · Next.js 16 · Vue 4 · Svelte 6
52
+ - Django 5 · Rails 8 · FastAPI · NestJS
53
+ - Rust async (Tokio/axum) · Solidity · Unity 6
54
+ - K8s ops · Postgres ops · Solana programs
55
+ Each pack: 200-500 high-signal entities, signed, MIT-licensed.
56
+
57
+ ### 🟧 Tier-A (high impact)
58
+
59
+ #### A1. Mobile companion (React Native + Expo)
60
+ "Brain in your pocket."
61
+ - Voice capture: hold-to-talk → transcribe → ingest as memory
62
+ - Photo capture: snap a whiteboard → llava → memory entity
63
+ - Dashboard read-only view
64
+ - Notifications: "Your brain forgot X yesterday — restore?"
65
+ - Syncs via team-sync (Yjs)
66
+
67
+ #### A2. Multimodal v2 — real OCR + diagrams
68
+ v6.0.2 stubs OCR. v7 wires tesseract-wasm (zero install) for clean text extraction. Plus diagram parsing (Mermaid/PlantUML detection).
69
+
70
+ #### A3. Project-LoRA — actually trained
71
+ v6.0.2 ships the pipeline. v7 actually trains + publishes:
72
+ - 5 reference adapters on Hugging Face (one per canonical brain pack)
73
+ - Per-user trained adapters via paid tier (compute pass-through, no margin)
74
+ - Ollama Modelfile auto-generation
75
+ - A/B vs base model in eval harness
76
+
77
+ #### A4. Constitution v2 — auto-evolution
78
+ v6.0.2 reads `constitution.md` statically. v7 lets the brain **propose new rules** when it sees repeated violations of patterns. User approves → rule added. Living constitution.
79
+
80
+ #### A5. Time-travel UI in dashboard
81
+ Brain Replay is currently CLI/SVG. v7 ships an interactive React panel: drag-scrub, play, slow-motion, jump-to-milestone, full-screen.
82
+
83
+ ### 🟨 Tier-B (high-leverage smaller bets)
84
+
85
+ - **B1.** Brain Exchange CLI commands: `shadow-brain exchange install react@latest` → ready in 5 seconds
86
+ - **B2.** Pricing tier signal: free → pro ($10/mo for team sync relay + LoRA training compute)
87
+ - **B3.** Public homepage: `brain.dev` (or `shadow-brain.dev`) with live demos
88
+ - **B4.** SDK in 3 langs: TypeScript (have it), Python, Rust — for embedding brain in any tool
89
+ - **B5.** "Ask the Hive" public demo — drop in a code snippet on the homepage, see the brain answer live (with rate limit)
90
+ - **B6.** Cursor / Cline / Aider plugins-on-their-marketplace (where they have one)
91
+ - **B7.** GitHub Action: `shadow-brain/learn-from-pr@v1` — every merged PR ingests its lessons
92
+ - **B8.** Brain garden v2 — actual knowledge-graph editor, not just a viz
93
+
94
+ ### 🟩 Quality of life (do anytime)
95
+
96
+ - 30-second `demo` enhancements: add 3 themed sample projects (React, Django, Rust) the user can pick
97
+ - Per-platform installers: Homebrew tap, scoop, winget
98
+ - One-click migration from Cursor/Cline-stored prompts (if those tools expose any local memory)
99
+ - Brain "health report" weekly email (opt-in)
100
+ - "What did my brain learn today?" daily digest
101
+
102
+ ---
103
+
104
+ ## v7.5 — "Distributed" (target: Q4 2026)
105
+
106
+ ### Big swings
107
+
108
+ - **Federated brains** — multiple teams' brains can selectively share concepts without merging fully. Cross-org learning without leaks.
109
+ - **Constitution federation** — share rules across projects with diff-and-approve flow
110
+ - **Real-time co-debugging** — two engineers + their brains + shared cursor on a bug, with hive-voice for decisions
111
+ - **Brain forking** — `shadow-brain fork --from theihtisham/react-pack` like GitHub for brains
112
+ - **Brain pull requests** — propose a change to a public brain, peer-reviewed
113
+
114
+ ---
115
+
116
+ ## v8.0 — "Self-Aware" (target: 2027)
117
+
118
+ The brain becomes meta-cognitive.
119
+
120
+ - **Self-tuning forgetting curve** — brain decides what to keep based on observed agent behavior, not heuristics
121
+ - **Brain self-debugging** — brain detects its own degraded recall and proposes interventions
122
+ - **Cross-brain federated learning** — multi-team adapters fine-tuned across consenting brains, privacy-preserving (DP-SGD or LoRA federation)
123
+ - **Predictive memory** — brain pre-fetches likely-needed memories *before* the agent asks, based on session trajectory
124
+ - **Brain handoff to humans** — handoff briefing generator: when a human takes over from an agent, get a one-page "what the agent thinks it knows + what it's uncertain about"
125
+
126
+ ---
127
+
128
+ ## What we will NOT build
129
+
130
+ Explicit anti-list. Saves time arguing.
131
+
132
+ - **Hosted-only SaaS shell** — defeats the local-first thesis. Always local-first; cloud is a relay, not a brain.
133
+ - **Closed core, open shell** — the brain stays MIT. Always.
134
+ - **LLM provider lock-in** — must work with Ollama / vLLM / any OpenAI-compat / Anthropic API equally.
135
+ - **Replacing the agent** — Shadow Brain is *for* agents, not a competing agent. Hermes-Devin-AutoGen territory is theirs.
136
+ - **Surveillance features** — no telemetry. No "anonymous usage data." Ever.
137
+
138
+ ---
139
+
140
+ ## How to push back on this roadmap
141
+
142
+ This document changes. File an issue at `github.com/theihtisham/agent-shadow-brain/issues` with:
143
+ - The item you disagree with
144
+ - What you'd do instead
145
+ - Why (with evidence — your team's experience, paper citation, etc.)
146
+
147
+ Strongest arguments win. The author reserves the right to be wrong publicly.
@@ -0,0 +1,77 @@
1
+ # Shared project sessions
2
+
3
+ Run the local Hub from your project and generate a recipe for each coding agent you use.
4
+
5
+ ```bash
6
+ shadow-brain project workspace . --port 62595
7
+ shadow-brain project config . --target codex
8
+ ```
9
+
10
+ Use `claude-code`, `opencode`, or `deepseek-harness` for the other native recipes. Configure each host to use its recipe from the same project directory, then confirm `session_list`, `session_read`, `session_checkpoint_read`, `session_open`, `session_record`, and `session_resume` appear in its MCP tool list. Open **Sessions** in the project Hub to review work reported by those clients. [Client setup](INTEGRATIONS.md)
11
+
12
+ ## Track work and continue with another agent
13
+
14
+ 1. At the start of shared work, call `session_open` with a title, the project goal, and an operation key. Supply `hostSessionId` when the host already has a safe conversation label to share. A child worker can set `parentSessionId` to the UUID of an existing project session.
15
+ 2. Use `session_record` at meaningful milestones. Record a brief note, a `working` or `waiting` status, or a checkpoint. Save verified progress, decisions, next steps and evidence labels before a handoff. Use `completed` when the session is finished.
16
+ 3. In **Sessions**, open the saved checkpoint and copy the agent resume request. Give it to the next connected agent in the same project. Its `session_resume` call opens a new session owned by that connection and returns the exact saved handoff. The source session and earlier checkpoint stay available. Continuing in the portal creates an operator-owned session.
17
+
18
+ Each write uses a stable operation key for retries in the same connection. Each record includes a revision. Pass `expectedRevision` when making a change based on a specific observed version. If the current connection ends, a new agent connection continues via a checkpoint. The original session is still readable.
19
+
20
+ For example, after opening a session, an agent can call `session_record` with these arguments. Replace the UUID with the `session_open` result and use a new operation key for the checkpoint.
21
+
22
+ ```json
23
+ {
24
+ "sessionId": "1b7766ed-34cb-4108-985d-b172a86ebd85",
25
+ "command": {
26
+ "kind": "checkpoint",
27
+ "key": "checkout-handoff-20261114",
28
+ "summary": "Verified the retry check with a fixture.",
29
+ "completed": ["Ran the existing retry regression check"],
30
+ "nextSteps": ["Check behavior after a process restart"],
31
+ "evidence": ["tests/checkout-retry.test.ts"]
32
+ }
33
+ }
34
+ ```
35
+
36
+ ## Read the status and history
37
+
38
+ The workspace shows the reporting tool label, session title, parent, and last report time. A report stays **recent** for five minutes. Older working or waiting reports are **stale**. Completion and the latest status reporter are stored. A recent report establishes that a cooperating host sent an update. Reported sessions do not themselves inspect open chats or determine whether a model is still generating. The separate Codex connector described below requires an explicit connection. Model information appears when a host explicitly reports usage with the matching agent label and `hostSessionId` as its usage `sessionId`.
39
+
40
+ Messages come from intentional reports by hosts or the operator. You can also import an approved transcript in **Sessions** as a historical snapshot. The snapshot includes the items approved at import time, their original role, and source locators. Imported system, developer, and tool text appears as quoted notes. Only an explicit operator checkpoint turns historical work into a resumable handoff. Treat all recorded text as project evidence and follow current user instructions.
41
+
42
+ The local store retains up to 150 sessions, 200 messages and 40 checkpoints per session. It rejects new records at the relevant limit and preserves existing history. `session_read` returns up to 25 messages and 32 KiB of serialized message data per page. Pass its `nextBefore` value as `before` to read older messages. Use `session_checkpoint_read` to see a checkpoint's contents. Resuming requires its recorded SHA-256. Checkpoint evidence labels are stored as text. Project sessions do not open source paths, start agents, reopen native chat tabs, or capture conversations on their own.
43
+
44
+ ## Understand the tool activity panel
45
+
46
+ The **Brain overview** and **Sessions** views identify Codex, Claude Code, DeepSeek Harness and OpenCode with locally bundled icons. Hover or focus a tool for details, or select it to keep the details open. Select a conversation or connection to inspect its workspace, exact available title and ID, coordination role, latest recorded action and optional model receipt.
47
+
48
+ **Reporting MCP connections** counts initialized project MCP transports with a recent heartbeat. Each transport renews every ten seconds; its lease expires after thirty seconds without renewal. A clean disconnect removes it. An abruptly stopped process expires even if it cannot write a final event. The store retains at most 128 current leases. Recording off or unreadable presence data is unavailable, not evidence of zero connections. Tool participation is a separate control: turning it off restricts project operations but does not close the host's transport, so its connection can still report a heartbeat.
49
+
50
+ A current heartbeat shows that the memory transport is reporting. It does not establish that a model is generating or that a native application tab is open. Registered work sessions, observed tool calls and host-reported model receipts remain separate. If one connection serves several chats, a connection-level action is not attributed to a chat without explicit evidence. A usage receipt shared by several registered sessions is shown at the conversation level rather than assigned to a worker by guessing.
51
+
52
+ Model, provider, effort and token counts appear only when explicitly reported. These receipts do not prove a proxy's underlying model. Fresh journal events can briefly animate the activity indicator; heartbeat renewals do not animate work or reload the graph. Pause motion and reduced-motion preferences keep the interface still.
53
+
54
+ ## Connect to Codex project history
55
+
56
+ In **Sessions**, select **Connect installed Codex**. This starts a separate, read-only local Codex app-server connection for the project open in the Hub. Nothing is connected or read until you select this control. The connector uses the installed CLI; it does not start a model, create a native conversation, read browser data, or request authentication information. Select **Disconnect Codex** to close the connection. It expires automatically after 15 minutes.
57
+
58
+ The connector asks Codex for its indexed current conversations whose recorded working directory matches this project. Use **Show archived chats** for a separate archived list and use the page controls to browse further. The index-only query avoids asking Codex to scan and repair rollout files, so the list can omit conversations that have not appeared in its state index. It is not a guarantee of complete native history. The exact title is shown when Codex provides one; otherwise the Hub says the original title is unavailable. The native conversation ID and its separate session-group ID are not interchangeable.
59
+
60
+ Select a conversation to read a bounded page of visible user and assistant text, then use **Earlier history** for older pages. The page shows how many non-text or unsupported items were omitted. Tool output, reasoning, and attachments are not imported as messages. To keep the displayed page in shared project sessions, select **Save this history page**. The Hub verifies the page fingerprint before saving; if the source changed, review the new page first. A saved page is an immutable, possibly partial snapshot. It is not automatically added as project knowledge and does not resume the original native chat.
61
+
62
+ While **Sessions** is open and connected, the Hub checks the current list every ten seconds and reloads the selected page when its reported update timestamp changes. This does not automatically save new snapshots. The timestamp is supplied by the separate app-server and can have limited resolution; its runtime state does not prove whether a desktop chat is active. The connector requires a compatible app-server with bounded history paging. On Windows it looks for the official npm package's local vendor executable; custom installation locations may not be detected. See the [Codex app-server protocol](https://learn.chatgpt.com/docs/app-server).
63
+
64
+ ## Import a native conversation export
65
+
66
+ In **Sessions**, choose the originating tool and one exported conversation. The Hub keeps the exact title when the export provides one. When the original workspace is recorded, it must match the open project. Selected exports are saved as separate historical snapshots, with their original conversation ID and source fingerprint. The same export reopens the original snapshot. A changed export links a new snapshot to the previous one. Imports do not create memories or run instructions in the conversation.
67
+
68
+ | Tool | Accepted export | Title source |
69
+ | --- | --- | --- |
70
+ | Codex | Selected rollout JSONL or a `codex-rollout-v1` JSON wrapper | The matching `thread_name` in the supplied session index entry. A rollout by itself may have no name. |
71
+ | Claude Code | Selected main conversation JSONL or a `claude-agent-sdk-v1` JSON wrapper | Latest custom title for that conversation. SDK summaries are separate from custom titles. |
72
+ | OpenCode | V1 or V2 session JSON from `opencode session export <id> --sanitize` | The exported session's `info.title`. |
73
+ | DeepSeek Harness | Canonical V4 JSONL or the selected ZIP containing one root session log | Latest title event in the exported conversation. Child logs and attachments stay outside this import. |
74
+
75
+ Codex wrappers include `format`, the selected `rollout` as a JSONL string, and `sessionIndex` with the matching name record. Claude SDK wrappers include `format`, a `session` from `listSessions`, and `messages` from `getSessionMessages` for that session. Choose the one workspace and conversation you intend to share. [Codex session index source](https://github.com/openai/codex/blob/main/codex-rs/rollout/src/session_index.rs) · [Claude Agent SDK](https://code.claude.com/docs/en/agent-sdk/typescript) · [OpenCode commands](https://opencode.ai/docs/cli/commands/) · [DeepSeek archive source](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/session-query/session-log-export/src/archive.ts)
76
+
77
+ Imports accept up to 2 MiB and retain visible user and assistant text with its source locators. Tool arguments, reasoning blocks, system messages, and attachments are excluded. Select only exports you intend to share with this project. An imported session can be continued after the operator saves a handoff checkpoint.
@@ -0,0 +1,13 @@
1
+ # Share Agent Shadow Brain
2
+
3
+ ## Short announcement
4
+
5
+ > Agent Shadow Brain 7.1.3 gives coding clients a shared local store for project decisions and lessons. Build a scoped context pack, review the memories behind it, and follow measured MCP calls in the live portal. Project skills and local MCP setup are available for Codex, Claude Code, OpenCode, and DeepSeek Harness.
6
+
7
+ [GitHub repository](https://github.com/ihtishaam-dev/agent-shadow-brain) · [7.1.3 release and recording](https://github.com/ihtishaam-dev/agent-shadow-brain/releases/tag/v7.1.3) · [npm package](https://www.npmjs.com/package/@theihtisham/agent-shadow-brain/v/7.1.3) · [Client setup](INTEGRATIONS.md)
8
+
9
+ ## Demo caption
10
+
11
+ > Scripted local clients run real MCP calls against synthetic project memories. The live portal shows measured tool timing and marks explicitly reported task phases.
12
+
13
+ [Live screenshot](assets/live-v7.1.3.png) · [Workspace showcase](SHOWCASE.md)
@@ -0,0 +1,87 @@
1
+ # Workspace showcase
2
+
3
+ The images show the 7.1.4 workspace with synthetic projects, memory records, reviews, and links. The Project Kit images use a separate persistent synthetic project. The live views use scripted local MCP calls. Displayed phases come from explicit reports, and durations come from measured calls in that demo.
4
+
5
+ ```bash
6
+ shadow-brain demo workspace --port 0
7
+ ```
8
+
9
+ Open the printed **Workspace** or **Live view** address. Use `--no-activity` for a fixed initial journal snapshot.
10
+
11
+ ## Project Kit
12
+
13
+ In a project-local workspace, inspect observed stack markers and declared checks. Save a knowledge record and use it when drafting a skill for the selected client.
14
+
15
+ ![Project Kit showing observed stack evidence and local knowledge controls](assets/7.1.4-project-kit.png)
16
+
17
+ Review the generated `SKILL.md` and its destination before applying it. The preview includes the user-supplied requirement and available checks.
18
+
19
+ ![Generated project skill preview with the target path and Markdown](assets/7.1.4-project-skill-preview.png)
20
+
21
+ ### Reported memory outcomes
22
+
23
+ Record an observed result with a task, rating, reason, and optional references. The saved card shows the reporter and gives the user a way to remove the report. The switch controls whether later adaptive retrieval can use the reports.
24
+
25
+ ![Project Kit with a user-reported useful outcome and an influence toggle](assets/7.1.4-learning.png)
26
+
27
+ The next matching task shows the report's signed contribution alongside the other ranking signals.
28
+
29
+ ![Context Lab showing a positive Project task feedback contribution and user attribution](assets/7.1.4-outcome-ranking.png)
30
+
31
+ ## Overview and attention queue
32
+
33
+ Choose the project scope, review source coverage, and open a record from the attention queue. The queue flags conditions that merit inspection, including contested records and missing references.
34
+
35
+ ![Overview and the project memory attention queue](assets/7.1.4-overview.png)
36
+
37
+ ## Context Lab
38
+
39
+ Assemble a brief, check its estimated tokens and rendered characters, then expand a candidate to see matched fields, ranking contributions, or a recorded link path.
40
+
41
+ ![Context Lab with task settings, brief metrics, and retrieval stages](assets/7.1.4-context-lab.png)
42
+
43
+ ### Compare profiles
44
+
45
+ Compare the same task and scope with Adaptive and Legacy. The result lists which memories each profile adds and shows their estimated usage.
46
+
47
+ ![Adaptive and legacy comparison for the same task](assets/7.1.4-comparison.png)
48
+
49
+ ## Memory review and graph
50
+
51
+ Inspect a saved record, its recorded references, and manual review controls. A review change is recorded in revision history.
52
+
53
+ ![Memory inspector with saved content, references, and review controls](assets/7.1.4-memory-review.png)
54
+
55
+ Select an edge or focus the recorded relationships around one memory. The workspace distinguishes these relations from project membership and recording-agent links.
56
+
57
+ ![Focused graph showing recorded memory links and the inspector](assets/7.1.4-graph.png)
58
+
59
+ ## Integrations and features
60
+
61
+ Read the documented capabilities and generate a setup example for the client. A project skill-file check and a live client handshake provide different evidence.
62
+
63
+ ![Integration cards and local diagnostics](assets/7.1.4-integrations.png)
64
+
65
+ Choose when context, session briefings, and activity are available. The workspace keeps activity visibility and journal recording as separate controls.
66
+
67
+ ![The five runtime feature controls](assets/7.1.4-features.png)
68
+
69
+ ## Live operations and recorded replay
70
+
71
+ Select a session or event to inspect the available history. The session network, timeline, and charts distinguish measured tool activity from explicit host reports.
72
+
73
+ ![Live operations with the session network and measured timing](assets/7.1.4-live.png)
74
+
75
+ Replay navigates the loaded journal slice. Move to an event with the slider or step controls and return to the live stream when finished.
76
+
77
+ ![Journal replay controls over recorded events](assets/7.1.4-replay.png)
78
+
79
+ ![Animated capture of scripted local MCP activity and replay](assets/live-v7.1.4.gif)
80
+
81
+ ## Mobile layout
82
+
83
+ Use the workspace on a narrow viewport to inspect the same saved records and context.
84
+
85
+ ![Workspace at a mobile viewport](assets/7.1.4-mobile.png)
86
+
87
+ [Project Kit guide](PROJECT_KIT.md) · [Context Lab guide](CONTEXT_LAB.md) · [Workspace guide](WORKSPACE.md) · [Client integrations](INTEGRATIONS.md)
@@ -0,0 +1,33 @@
1
+ # Teach the project from your own notes
2
+
3
+ Open **Knowledge**, write ordinary text and click **Add to memory**. For example: “The cupboard is black. Keep its brass handles.” The project is fixed by the workspace you opened. In **Context**, ask “What colour is the cupboard?” to inspect the retrieved fact and its original source. Connected agents can request the same project context through MCP.
4
+
5
+ Direct saving supports up to 6,000 characters and 20 paragraphs. It preserves the original text and saves each paragraph as reference knowledge. Retrying the same note reuses the same records; earlier approved corrections remain intact. Previously skipped parts are not silently approved. No title, file or special format is needed, and no model is trained by saving a note.
6
+
7
+ For longer notes or a correction before saving, choose **Review first**. Optional uploads support `.txt`, `.md`, `.json` and the separate PDF workflow. Ordinary text is the main path; files and JSON are optional.
8
+
9
+ A preview splits plain text into paragraphs and displays their original lines. The title comes from the first nonblank line; a simple keyword rule suggests a category such as requirement, plan, or knowledge. These are suggestions, not an AI interpretation. Read each item, change its title, text, or category if needed, and approve or reject it. Approved text becomes project memory and may be used in later context. Pending and rejected items are not added as memories. Corrections take effect when you approve the corrected wording; this changes recorded context and does not train model weights.
10
+
11
+ Previewing a valid source saves its original bytes, digest, filename, and review items in the project-owned source store even before approval. A second upload of identical bytes reopens the same review. The evidence view shows the original text and location alongside your approved wording; it verifies the stored relationship, not whether the claim is true. Do not include information you do not want saved in the project. The app does not read a browser's history, session data, or private client configuration to perform an import. Structured credential-shaped fields are rejected, but free-text secret detection is not comprehensive.
12
+
13
+ Text and Markdown must be UTF-8 and are limited to 1 MiB, 500 sections, 6,000 characters per section, and 180,000 extracted characters in total. Break long paragraphs into smaller ones before importing. Text PDFs use the separate PDF page-review workflow and its limits; scanned/image-only PDFs require OCR, which this workflow does not provide.
14
+
15
+ JSON accepts the following three versioned or simple interchange formats, plus an array of messages. Each content value must be a string. Unsupported nested exports, attachments, multimodal content, and unknown fields are rejected instead of silently omitted. System and developer roles in an imported transcript are quoted source evidence only; they do not become instructions to the app or an agent.
16
+
17
+ ```json
18
+ {"schemaVersion":1,"kind":"knowledge","title":"Project notes","records":[{"title":"Build command","content":"Run the build before release.","source":"README.md"}]}
19
+ ```
20
+
21
+ ```json
22
+ {"schemaVersion":1,"kind":"transcript","title":"Review discussion","messages":[{"role":"user","content":"Preserve Unicode."},{"role":"assistant","content":"The proposed constraint is to preserve Unicode."}]}
23
+ ```
24
+
25
+ ```json
26
+ {"messages":[{"role":"user","content":"Preserve Unicode."}]}
27
+ ```
28
+
29
+ Source labels such as `README.md` are citations only and are not opened. No import makes claims in a note true or independently verifies them. Review and correct the text before approving it.
30
+
31
+ ## Save a reviewed transcript as session history
32
+
33
+ After reviewing a transcript, select **Open reviewed history in Sessions**. This creates a completed session containing only the messages approved at that time, preserving their original speaker labels and source locations. Messages labelled system, developer, or tool remain untrusted quoted notes. Repeating the import opens the existing snapshot; review all desired messages before the first import. No summary is generated automatically. You may write a checkpoint yourself and share its resume request with another connected project host. A portal continuation creates a portal-owned record, not a running model or a native host conversation.