@theihtisham/agent-shadow-brain 7.1.0 → 7.1.4

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 (294) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +125 -450
  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/brain-portability.js +1 -1
  21. package/dist/brain/client-config.d.ts +19 -0
  22. package/dist/brain/client-config.d.ts.map +1 -0
  23. package/dist/brain/client-config.js +40 -0
  24. package/dist/brain/client-config.js.map +1 -0
  25. package/dist/brain/client-integrations.d.ts +63 -0
  26. package/dist/brain/client-integrations.d.ts.map +1 -0
  27. package/dist/brain/client-integrations.js +79 -0
  28. package/dist/brain/client-integrations.js.map +1 -0
  29. package/dist/brain/context-assembly.d.ts +84 -0
  30. package/dist/brain/context-assembly.d.ts.map +1 -0
  31. package/dist/brain/context-assembly.js +529 -0
  32. package/dist/brain/context-assembly.js.map +1 -0
  33. package/dist/brain/context-request.d.ts +4 -0
  34. package/dist/brain/context-request.d.ts.map +1 -0
  35. package/dist/brain/context-request.js +22 -0
  36. package/dist/brain/context-request.js.map +1 -0
  37. package/dist/brain/context-retrieval.d.ts +88 -0
  38. package/dist/brain/context-retrieval.d.ts.map +1 -0
  39. package/dist/brain/context-retrieval.js +300 -0
  40. package/dist/brain/context-retrieval.js.map +1 -0
  41. package/dist/brain/feature-settings.d.ts +58 -0
  42. package/dist/brain/feature-settings.d.ts.map +1 -0
  43. package/dist/brain/feature-settings.js +242 -0
  44. package/dist/brain/feature-settings.js.map +1 -0
  45. package/dist/brain/file-identity.d.ts +4 -0
  46. package/dist/brain/file-identity.d.ts.map +1 -0
  47. package/dist/brain/file-identity.js +27 -0
  48. package/dist/brain/file-identity.js.map +1 -0
  49. package/dist/brain/global-brain.d.ts +18 -1
  50. package/dist/brain/global-brain.d.ts.map +1 -1
  51. package/dist/brain/global-brain.js +77 -10
  52. package/dist/brain/global-brain.js.map +1 -1
  53. package/dist/brain/mcp-server.d.ts +30 -1
  54. package/dist/brain/mcp-server.d.ts.map +1 -1
  55. package/dist/brain/mcp-server.js +378 -28
  56. package/dist/brain/mcp-server.js.map +1 -1
  57. package/dist/brain/mcp-stdio.d.ts +12 -0
  58. package/dist/brain/mcp-stdio.d.ts.map +1 -0
  59. package/dist/brain/mcp-stdio.js +140 -0
  60. package/dist/brain/mcp-stdio.js.map +1 -0
  61. package/dist/brain/memory-annotations.d.ts +97 -0
  62. package/dist/brain/memory-annotations.d.ts.map +1 -0
  63. package/dist/brain/memory-annotations.js +389 -0
  64. package/dist/brain/memory-annotations.js.map +1 -0
  65. package/dist/brain/memory-graph.d.ts.map +1 -1
  66. package/dist/brain/memory-graph.js +12 -23
  67. package/dist/brain/memory-graph.js.map +1 -1
  68. package/dist/brain/memory-inspection.d.ts +72 -0
  69. package/dist/brain/memory-inspection.d.ts.map +1 -0
  70. package/dist/brain/memory-inspection.js +131 -0
  71. package/dist/brain/memory-inspection.js.map +1 -0
  72. package/dist/brain/memory-mcp-content.d.ts +44 -0
  73. package/dist/brain/memory-mcp-content.d.ts.map +1 -0
  74. package/dist/brain/memory-mcp-content.js +91 -0
  75. package/dist/brain/memory-mcp-content.js.map +1 -0
  76. package/dist/brain/memory-sources.d.ts +8 -0
  77. package/dist/brain/memory-sources.d.ts.map +1 -0
  78. package/dist/brain/memory-sources.js +27 -0
  79. package/dist/brain/memory-sources.js.map +1 -0
  80. package/dist/brain/orchestrator.js +1 -1
  81. package/dist/brain/project-feedback.d.ts +63 -0
  82. package/dist/brain/project-feedback.d.ts.map +1 -0
  83. package/dist/brain/project-feedback.js +289 -0
  84. package/dist/brain/project-feedback.js.map +1 -0
  85. package/dist/brain/project-hub-contract.d.ts +326 -0
  86. package/dist/brain/project-hub-contract.d.ts.map +1 -0
  87. package/dist/brain/project-hub-contract.js +56 -0
  88. package/dist/brain/project-hub-contract.js.map +1 -0
  89. package/dist/brain/project-hub-mcp.d.ts +168 -0
  90. package/dist/brain/project-hub-mcp.d.ts.map +1 -0
  91. package/dist/brain/project-hub-mcp.js +41 -0
  92. package/dist/brain/project-hub-mcp.js.map +1 -0
  93. package/dist/brain/project-hub-pdf-worker.d.ts +13 -0
  94. package/dist/brain/project-hub-pdf-worker.d.ts.map +1 -0
  95. package/dist/brain/project-hub-pdf-worker.js +84 -0
  96. package/dist/brain/project-hub-pdf-worker.js.map +1 -0
  97. package/dist/brain/project-hub-store.d.ts +38 -0
  98. package/dist/brain/project-hub-store.d.ts.map +1 -0
  99. package/dist/brain/project-hub-store.js +189 -0
  100. package/dist/brain/project-hub-store.js.map +1 -0
  101. package/dist/brain/project-hub.d.ts +127 -0
  102. package/dist/brain/project-hub.d.ts.map +1 -0
  103. package/dist/brain/project-hub.js +381 -0
  104. package/dist/brain/project-hub.js.map +1 -0
  105. package/dist/brain/project-kit-inspection.d.ts +28 -0
  106. package/dist/brain/project-kit-inspection.d.ts.map +1 -0
  107. package/dist/brain/project-kit-inspection.js +200 -0
  108. package/dist/brain/project-kit-inspection.js.map +1 -0
  109. package/dist/brain/project-kit-paths.d.ts +13 -0
  110. package/dist/brain/project-kit-paths.d.ts.map +1 -0
  111. package/dist/brain/project-kit-paths.js +141 -0
  112. package/dist/brain/project-kit-paths.js.map +1 -0
  113. package/dist/brain/project-kit.d.ts +41 -0
  114. package/dist/brain/project-kit.d.ts.map +1 -0
  115. package/dist/brain/project-kit.js +255 -0
  116. package/dist/brain/project-kit.js.map +1 -0
  117. package/dist/brain/project-memory.d.ts +38 -0
  118. package/dist/brain/project-memory.d.ts.map +1 -0
  119. package/dist/brain/project-memory.js +76 -0
  120. package/dist/brain/project-memory.js.map +1 -0
  121. package/dist/brain/subconscious.d.ts +21 -24
  122. package/dist/brain/subconscious.d.ts.map +1 -1
  123. package/dist/brain/subconscious.js +82 -218
  124. package/dist/brain/subconscious.js.map +1 -1
  125. package/dist/brain/workflow-skills.d.ts +5 -5
  126. package/dist/brain/workflow-skills.d.ts.map +1 -1
  127. package/dist/brain/workflow-skills.js +3 -2
  128. package/dist/brain/workflow-skills.js.map +1 -1
  129. package/dist/cli.js +40 -4
  130. package/dist/cli.js.map +1 -1
  131. package/dist/context-cli.d.ts +3 -0
  132. package/dist/context-cli.d.ts.map +1 -0
  133. package/dist/context-cli.js +90 -0
  134. package/dist/context-cli.js.map +1 -0
  135. package/dist/curation-cli.d.ts +4 -0
  136. package/dist/curation-cli.d.ts.map +1 -0
  137. package/dist/curation-cli.js +118 -0
  138. package/dist/curation-cli.js.map +1 -0
  139. package/dist/dashboard/brain-hub-actions.d.ts +2 -0
  140. package/dist/dashboard/brain-hub-actions.d.ts.map +1 -0
  141. package/dist/dashboard/brain-hub-actions.js +137 -0
  142. package/dist/dashboard/brain-hub-actions.js.map +1 -0
  143. package/dist/dashboard/brain-hub-client.d.ts +2 -0
  144. package/dist/dashboard/brain-hub-client.d.ts.map +1 -0
  145. package/dist/dashboard/brain-hub-client.js +335 -0
  146. package/dist/dashboard/brain-hub-client.js.map +1 -0
  147. package/dist/dashboard/brain-hub-graph.d.ts +2 -0
  148. package/dist/dashboard/brain-hub-graph.d.ts.map +1 -0
  149. package/dist/dashboard/brain-hub-graph.js +176 -0
  150. package/dist/dashboard/brain-hub-graph.js.map +1 -0
  151. package/dist/dashboard/brain-hub-html.d.ts +2 -0
  152. package/dist/dashboard/brain-hub-html.d.ts.map +1 -0
  153. package/dist/dashboard/brain-hub-html.js +30 -0
  154. package/dist/dashboard/brain-hub-html.js.map +1 -0
  155. package/dist/dashboard/brain-hub-project-views.d.ts +2 -0
  156. package/dist/dashboard/brain-hub-project-views.d.ts.map +1 -0
  157. package/dist/dashboard/brain-hub-project-views.js +79 -0
  158. package/dist/dashboard/brain-hub-project-views.js.map +1 -0
  159. package/dist/dashboard/brain-hub-views.d.ts +2 -0
  160. package/dist/dashboard/brain-hub-views.d.ts.map +1 -0
  161. package/dist/dashboard/brain-hub-views.js +150 -0
  162. package/dist/dashboard/brain-hub-views.js.map +1 -0
  163. package/dist/dashboard/demo-workspace.d.ts +11 -0
  164. package/dist/dashboard/demo-workspace.d.ts.map +1 -0
  165. package/dist/dashboard/demo-workspace.js +178 -0
  166. package/dist/dashboard/demo-workspace.js.map +1 -0
  167. package/dist/dashboard/live-workspace-html.d.ts +2 -0
  168. package/dist/dashboard/live-workspace-html.d.ts.map +1 -0
  169. package/dist/dashboard/live-workspace-html.js +1042 -0
  170. package/dist/dashboard/live-workspace-html.js.map +1 -0
  171. package/dist/dashboard/project-feedback-html.d.ts +5 -0
  172. package/dist/dashboard/project-feedback-html.d.ts.map +1 -0
  173. package/dist/dashboard/project-feedback-html.js +216 -0
  174. package/dist/dashboard/project-feedback-html.js.map +1 -0
  175. package/dist/dashboard/project-hub-api.d.ts +5 -0
  176. package/dist/dashboard/project-hub-api.d.ts.map +1 -0
  177. package/dist/dashboard/project-hub-api.js +121 -0
  178. package/dist/dashboard/project-hub-api.js.map +1 -0
  179. package/dist/dashboard/project-kit-html.d.ts +4 -0
  180. package/dist/dashboard/project-kit-html.d.ts.map +1 -0
  181. package/dist/dashboard/project-kit-html.js +359 -0
  182. package/dist/dashboard/project-kit-html.js.map +1 -0
  183. package/dist/dashboard/project-workspace.d.ts +16 -0
  184. package/dist/dashboard/project-workspace.d.ts.map +1 -0
  185. package/dist/dashboard/project-workspace.js +106 -0
  186. package/dist/dashboard/project-workspace.js.map +1 -0
  187. package/dist/dashboard/server.d.ts +2 -0
  188. package/dist/dashboard/server.d.ts.map +1 -1
  189. package/dist/dashboard/server.js +65 -19
  190. package/dist/dashboard/server.js.map +1 -1
  191. package/dist/dashboard/v6-dashboard-html.d.ts +1 -1
  192. package/dist/dashboard/v6-dashboard-html.d.ts.map +1 -1
  193. package/dist/dashboard/v6-dashboard-html.js +34 -56
  194. package/dist/dashboard/v6-dashboard-html.js.map +1 -1
  195. package/dist/dashboard/workspace-api.d.ts +22 -0
  196. package/dist/dashboard/workspace-api.d.ts.map +1 -0
  197. package/dist/dashboard/workspace-api.js +429 -0
  198. package/dist/dashboard/workspace-api.js.map +1 -0
  199. package/dist/dashboard/workspace-html.d.ts +2 -0
  200. package/dist/dashboard/workspace-html.d.ts.map +1 -0
  201. package/dist/dashboard/workspace-html.js +2538 -0
  202. package/dist/dashboard/workspace-html.js.map +1 -0
  203. package/dist/dashboard/workspace-status.d.ts +50 -0
  204. package/dist/dashboard/workspace-status.d.ts.map +1 -0
  205. package/dist/dashboard/workspace-status.js +22 -0
  206. package/dist/dashboard/workspace-status.js.map +1 -0
  207. package/dist/index.d.ts +20 -0
  208. package/dist/index.d.ts.map +1 -1
  209. package/dist/index.js +15 -0
  210. package/dist/index.js.map +1 -1
  211. package/dist/integration-cli.d.ts +3 -0
  212. package/dist/integration-cli.d.ts.map +1 -0
  213. package/dist/integration-cli.js +16 -0
  214. package/dist/integration-cli.js.map +1 -0
  215. package/dist/project-cli.d.ts +3 -0
  216. package/dist/project-cli.d.ts.map +1 -0
  217. package/dist/project-cli.js +100 -0
  218. package/dist/project-cli.js.map +1 -0
  219. package/dist/types.d.ts +12 -3
  220. package/dist/types.d.ts.map +1 -1
  221. package/docs/COMPARISON.md +22 -0
  222. package/docs/COMPONENTS.md +66 -0
  223. package/docs/CONTEXT_LAB.md +79 -0
  224. package/docs/FEATURES_AND_LIMITS.md +24 -0
  225. package/docs/INTEGRATIONS.md +68 -0
  226. package/docs/LEARNING.md +46 -0
  227. package/docs/PROJECT_KIT.md +93 -0
  228. package/docs/QUICKSTART.md +44 -0
  229. package/docs/README.md +33 -0
  230. package/docs/ROADMAP-v7.md +147 -0
  231. package/docs/SHARING.md +13 -0
  232. package/docs/SHOWCASE.md +87 -0
  233. package/docs/STATS.md +21 -0
  234. package/docs/TROUBLESHOOTING.md +42 -0
  235. package/docs/UPGRADE_PLAN_v7.0.0.md +203 -0
  236. package/docs/VIRAL-PLAYBOOK.md +259 -0
  237. package/docs/VISUAL_GUIDE_v7.1.4.md +70 -0
  238. package/docs/WORKFLOW_INTEGRATION.md +19 -1
  239. package/docs/WORKSPACE.md +37 -0
  240. package/docs/assets/7.1.4-collaboration-design-preview.png +0 -0
  241. package/docs/assets/7.1.4-comparison.png +0 -0
  242. package/docs/assets/7.1.4-context-lab.png +0 -0
  243. package/docs/assets/7.1.4-control-room-dense-preview.png +0 -0
  244. package/docs/assets/7.1.4-control-room-focus-preview.png +0 -0
  245. package/docs/assets/7.1.4-features.png +0 -0
  246. package/docs/assets/7.1.4-graph.png +0 -0
  247. package/docs/assets/7.1.4-hub-control-room.png +0 -0
  248. package/docs/assets/7.1.4-hub-empty.png +0 -0
  249. package/docs/assets/7.1.4-hub-knowledge.png +0 -0
  250. package/docs/assets/7.1.4-hub-learning.png +0 -0
  251. package/docs/assets/7.1.4-hub-mobile.png +0 -0
  252. package/docs/assets/7.1.4-hub-public-docs-source.png +0 -0
  253. package/docs/assets/7.1.4-hub-public-docs.gif +0 -0
  254. package/docs/assets/7.1.4-hub-public-docs.png +0 -0
  255. package/docs/assets/7.1.4-hub-setup.png +0 -0
  256. package/docs/assets/7.1.4-hub-walkthrough.gif +0 -0
  257. package/docs/assets/7.1.4-integrations.png +0 -0
  258. package/docs/assets/7.1.4-knowledge-design-preview.png +0 -0
  259. package/docs/assets/7.1.4-learning-design-preview.png +0 -0
  260. package/docs/assets/7.1.4-learning.png +0 -0
  261. package/docs/assets/7.1.4-live.png +0 -0
  262. package/docs/assets/7.1.4-memory-review.png +0 -0
  263. package/docs/assets/7.1.4-mobile.png +0 -0
  264. package/docs/assets/7.1.4-models-design-preview.png +0 -0
  265. package/docs/assets/7.1.4-outcome-ranking.png +0 -0
  266. package/docs/assets/7.1.4-overview.png +0 -0
  267. package/docs/assets/7.1.4-project-kit.png +0 -0
  268. package/docs/assets/7.1.4-project-skill-preview.png +0 -0
  269. package/docs/assets/7.1.4-replay.png +0 -0
  270. package/docs/assets/7.1.4-setup-design-preview.png +0 -0
  271. package/docs/assets/7.1.4-usage-design-preview.png +0 -0
  272. package/docs/assets/context-flow-v7.2.png +0 -0
  273. package/docs/assets/context-v7.1.3.png +0 -0
  274. package/docs/assets/features-v7.1.3.png +0 -0
  275. package/docs/assets/graph-v7.1.3.png +0 -0
  276. package/docs/assets/integrations-v7.1.3.png +0 -0
  277. package/docs/assets/live-v7.1.3.png +0 -0
  278. package/docs/assets/live-v7.1.4.gif +0 -0
  279. package/docs/assets/memory-detail-v7.1.3.png +0 -0
  280. package/docs/assets/overview-v7.1.3.png +0 -0
  281. package/docs/assets/workspace-graph-v7.2.png +0 -0
  282. package/docs/assets/workspace-overview-v7.2.png +0 -0
  283. package/docs/evaluation/CONTEXT_EVALUATION_v7.1.4.json +1818 -0
  284. package/docs/evaluation/CONTEXT_EVALUATION_v7.1.4.md +36 -0
  285. package/docs/launch/COMPONENT_MAP_v7.1.4.md +307 -0
  286. package/docs/launch/PROJECT_KIT_PLAN_v7.1.4.md +110 -0
  287. package/docs/launch/PROJECT_LEARNING_PLAN_v7.1.4.md +63 -0
  288. package/docs/launch/RELEASE_NOTES_v7.1.3.md +40 -0
  289. package/docs/launch/RELEASE_NOTES_v7.1.4.md +30 -0
  290. package/docs/launch/RELEASE_NOTES_v7.2.0.md +24 -0
  291. package/docs/launch/RESEARCH_AND_PLAN_v7.1.4.md +255 -0
  292. package/package.json +43 -126
  293. package/skills/shadow-research/SKILL.md +2 -0
  294. package/skills/shadow-workflow/SKILL.md +6 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # Changelog
2
2
 
3
+ ## [7.1.4] - 2026-11-13 - Brain Hub, shared work, and reviewed learning
4
+
5
+ - 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.
6
+ - Added bounded PDF text extraction with page citations, explicit approval into local memory, and a needs-OCR state for scanned pages.
7
+ - Added transactional project rooms with scoped MCP participation, task leases, typed messages, versioned artifact handoffs, acknowledgement, and recorded outcomes.
8
+ - 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.
9
+ - 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.
10
+ - Raised the Node 22 minimum to 22.13 for PDF.js and built-in SQLite. Node 24.x and 26+ remain supported.
11
+
12
+ - 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.
13
+ - 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.
14
+ - 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.
15
+ - 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.
16
+ - 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.
17
+ - 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.
18
+ - 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.
19
+ - 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.
20
+
21
+ 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.
22
+
23
+ ## [7.1.3] - 2026-11-11 - Live activity and curated memory
24
+
25
+ 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.
26
+
27
+ - Added a live portal with an event-driven session network, measured tool charts, host-reported phases, timeline, pause, and reduced motion.
28
+ - Added a bounded cross-process activity journal, cursor and reset detection, metadata-only MCP instrumentation, host reporting, and separate recording and visibility controls.
29
+ - Added memory review, typed relations, audit history, and project-scoped curation through the workspace and CLI.
30
+ - Excluded archived, contested, and superseded memories before context ranking; briefings refresh when reviews change.
31
+ - Added standard MCP stdio, client capability checks, project skill diagnostics, and generated launch configuration.
32
+ - Improved workspace navigation, source coverage, graph filtering, context explanations, dark mode, and mobile layouts.
33
+ - Fixed empty-project graph scope, preservation of pending writes during read refresh, and per-client attach/detach targeting.
34
+
35
+
36
+ ## [7.2.0] - 2026-11-11 - Context Packs and Workspace
37
+
38
+ - Make the local workspace the default dashboard with overview, searchable memories, graph, context, and feature controls. Keep the previous dashboard at `/advanced`.
39
+ - Build size-bounded, project-scoped context packs with ranked memory selection, duplicate handling, recorded source provenance, and selection explanations.
40
+ - Use context packs for session briefings. Key cached results to the task and current settings, and check enablement before reading or returning a briefing.
41
+ - Persist four validated feature settings for context assembly, explicit cross-project context, automatic briefings, and dashboard activity delivery.
42
+ - Add `context-pack` and `features list|set` commands, read-only `context_pack` and `feature_flags` MCP tools, and public context and settings APIs.
43
+ - Refresh the README and workspace guide with a concept illustration and dashboard screenshots.
44
+
3
45
  ## [7.1.0] - 2026-11-11 - Focused Workflows and Portable Skills
4
46
 
5
47
  - Bundle six reusable skills for proportionate planning, implementation, diagnosis, review, research, and release work.
package/README.md CHANGED
@@ -1,450 +1,125 @@
1
- # Agent Shadow Brain
2
-
3
- Local-first memory, focused task workflows, and portable skills for AI coding agents.
4
-
5
- Version: 7.1.0
6
-
7
-
8
- Agent Shadow Brain gives tools like Codex, Claude Code, Cursor, Cline, OpenCode, Aider, and related MCP clients a shared local memory layer. It stores compact, source-backed lessons about projects, recalls them later, generates fresh-session briefings, audits memory quality, and exports JSONL training/eval packs.
9
-
10
- It does not change model weights by itself. It helps agents work better by giving them relevant, current, source-linked context before and during complex work.
11
-
12
- ## What's New in 7.1.0
13
-
14
- Six built-in skills help an agent understand the request, plan in proportion to the work, carry out authorized changes, and verify the result. Simple answers stay simple. Planning-only, diagnosis-only, and review-only requests keep their boundaries; existing authorization carries forward.
15
-
16
- - **Focused skills:** `shadow-workflow`, `shadow-implement`, `shadow-debug`, `shadow-review`, `shadow-research`, and `shadow-release`.
17
- - **Project integrations:** Codex, Claude Code, OpenCode, and DeepSeek Harness skill directories, plus a portable option. Preview installation first; preserve existing project instructions and locally edited skills.
18
- - **Workflow guidance:** CLI, library, and MCP interfaces suggest steps and relevant skills. Routing is a local English-language heuristic with explicit overrides. The host agent interprets the request and performs the work.
19
- - **No provider setup required:** skills and workflow analysis run locally without model calls, credentials, background agents, or global configuration changes.
20
-
21
- Run these commands **from your project root**:
22
-
23
- ```bash
24
- shadow-brain skills list
25
- shadow-brain skills install . --target codex
26
- shadow-brain skills install . --target codex --apply
27
- shadow-brain workflow analyze "Investigate and fix the failing export" --json
28
- ```
29
-
30
- Replace `codex` with `claude-code`, `opencode`, `deepseek-harness`, or `portable`. Use `--target all` to install the four native layouts. The preview writes nothing; `--apply` writes the listed files after validation. Clients must support and enable skill discovery. DeepSeek Harness requires its filesystem skills, registry/tool support, and project-instruction context to be enabled. Installing files alone does not prove a running client loaded them.
31
-
32
- See the [integration guide](docs/WORKFLOW_INTEGRATION.md) for selection, preservation behavior, library/MCP examples, and compatibility sources; [7.1 release notes](docs/launch/RELEASE_NOTES_v7.1.0.md) describe the scope.
33
-
34
- ## Memory improvements in 7.0.0
35
-
36
- - **Durable multi-agent memory.** Saves lock, reload, and merge the latest store so independent agents cannot replace each other's new memories. Queued writes acknowledge success after persistence. Failed operations remain retryable and visible in storage health.
37
- - **Explainable recall.** Results include matched keywords, score components, and identities reporting the same normalized content within the same project and category. Unrelated notes no longer inflate scores. Scores are ranking heuristics, not probabilities of truth or proof of independent verification.
38
- - **Storage diagnostics.** Use `shadow-brain storage-health --json` or MCP `global_storage_health` to inspect errors and pending operations. Invalid or unsupported stores fail explicitly and remain unchanged.
39
- - **Safer setup and packaging.** Installation no longer edits agent settings. Help, version, and memory diagnostics do not load provider configuration. Dependencies are refreshed, activity-log text is escaped, and package tests install a real tarball into a fresh consumer project.
40
-
41
- ### Upgrade from 6.x
42
-
43
- Use Node.js 22.12+ within 22.x, Node 24.x, or Node 26+. Back up your existing `global.json` before upgrading and stop older Shadow Brain writers; older versions do not participate in the new lock protocol. The schema remains version 1. Start integrations explicitly using the existing setup/attach commands after installation.
44
-
45
- `writeSync()` remains an in-memory operation; call `await brain.sync()` for durable persistence. `await brain.write()` resolves after the background sync or an explicit sync; a false result means persistence failed or the queue was full. Failed accepted operations remain pending for retry. Recall reads the process snapshot, refreshed by sync; it is not an instantaneous cross-process read.
46
-
47
- ### New commands
48
-
49
- ```bash
50
- shadow-brain storage-health --json
51
- shadow-brain storage-health --db ./global.json --json
52
- shadow-brain recall-explain "deployment rollback" --limit 5
53
- shadow-brain recall-explain "database migration" --project . --min-confidence 0.4
54
- ```
55
-
56
- `storage-health` validates readability and schema, reports JSON even on failure, and exits with code 1 for an invalid store. It does not repair or rewrite an existing store; when checking a missing store it may create its parent directory. `lastSuccessfulSync` describes the current process only. The MCP health tool inspects existing process state without initializing or flushing it.
57
-
58
- The library exports `GlobalBrain`, `getGlobalBrain`, and their public types:
59
-
60
- ```js
61
- import { getGlobalBrain } from '@theihtisham/agent-shadow-brain';
62
- const brain = getGlobalBrain({ dbPath: './global.json' });
63
- await brain.init();
64
- console.log(brain.recallScored({ keywords: ['deployment'], limit: 5 }));
65
- console.log(brain.getStorageHealth());
66
- await brain.shutdown();
67
- ```
68
-
69
- Details: [release notes](docs/launch/RELEASE_NOTES_v7.0.0.md).
70
-
71
- ## Earlier dashboard features
72
-
73
- - **Simple by default, Advanced on demand.** The dashboard opens with eight plain-English tabs (Home, Brain Map, Memories, Ask the Brain, Activity, Connected Tools, Brain Health, Settings). Flip to Advanced to reveal every feature — nothing was removed, just tidied.
74
- - **Brain Map.** An interactive graph of everything the brain remembers — memories, projects, tools, and tags — sized by importance (PageRank) and linked by shared context. Zoom, pan, click a node for details, and watch it grow live as new memories arrive.
75
- - **Realtime activity.** Memory writes, reflections, and tool events stream live over WebSocket instead of polling, with a live pulse on Home.
76
- - **Live Network.** A refreshed animation of your tools talking to the brain, with flowing signal pulses.
77
- - **Two-way knowledge seeding.** Quick-Save captures knowledge in one click; "Hand to Agent" generates a ready briefing to pass context back to any tool.
78
- - **Plain-language everywhere.** Cryptic feature names rewritten (e.g. Calibration → Accuracy, Pre-Mortem → Risk Check, Tokens → Cost & Usage), each with a hover description.
79
-
80
-
81
- ## What It Actually Does
82
-
83
- - Stores cross-project and cross-agent memories in a local JSON brain at `~/.shadow-brain/global.json`.
84
- - Recalls memories by project, agent, category, and keywords.
85
- - Generates source-backed resume packs for fresh sessions, account switches, context compaction, and handoffs.
86
- - Audits memory quality: source coverage, stale entries, duplicates, low-quality notes, recall health.
87
- - Creates verified memory seed drafts from dashboard/API, then requires user, agent, or dual approval before writing to durable memory.
88
- - Exports JSONL rows for evals, distillation, or local fine-tuning pipelines.
89
- - Provides CLI, dashboard API, and MCP tool surfaces.
90
- - Includes safety helpers such as hook audit, detach, and action firewall checks.
91
- - Works without telemetry and without an API key for local memory features.
92
-
93
- ## What It Does Not Claim
94
-
95
- - It does not secretly train GPT, Claude, Gemini, or any remote model.
96
- - It does not guarantee perfect recall.
97
- - It does not replace project docs, tests, source control, or human review.
98
- - It does not make every listed agent automatically available. Agent support depends on local installation and hook/config compatibility.
99
- - It does not publish or sync data unless you explicitly use export, sync, or other sharing commands.
100
-
101
- ## Install
102
-
103
- ```bash
104
- npm install -g @theihtisham/agent-shadow-brain
105
- ```
106
-
107
- CLI binaries:
108
-
109
- ```bash
110
- shadow-brain --help
111
- asb --help
112
- ```
113
-
114
- You can also run without global install:
115
-
116
- ```bash
117
- npx @theihtisham/agent-shadow-brain@latest --help
118
- ```
119
-
120
- ## Safe First Run
121
-
122
- Start by auditing before attaching hooks:
123
-
124
- ```bash
125
- shadow-brain audit-hooks .
126
- shadow-brain live-brain status .
127
- ```
128
-
129
- Only attach after you review what will be changed:
130
-
131
- ```bash
132
- shadow-brain attach-all .
133
- ```
134
-
135
- Detach later if needed:
136
-
137
- ```bash
138
- shadow-brain detach-all .
139
- ```
140
-
141
- ## v6.0.3: Live Brain
142
-
143
- The 6.0.3 release focuses on practical long-memory improvement for agents.
144
-
145
- ### Live Brain Status
146
-
147
- ```bash
148
- shadow-brain live-brain status .
149
- ```
150
-
151
- Shows:
152
-
153
- - memory count
154
- - average memory quality
155
- - source coverage
156
- - stale memories
157
- - duplicate clusters
158
- - recall eval score
159
- - recommended cleanup actions
160
-
161
- JSON output:
162
-
163
- ```bash
164
- shadow-brain live-brain status . --json
165
- ```
166
-
167
- ### Agent Briefing
168
-
169
- Generate a markdown briefing for a fresh agent session:
170
-
171
- ```bash
172
- shadow-brain live-brain brief . -o SHADOW_BRAIN_AGENT_BRIEF.md
173
- ```
174
-
175
- The briefing includes:
176
-
177
- - rules for agents
178
- - top source-backed memories
179
- - memory warnings
180
- - recall health
181
- - commands agents should run next
182
-
183
- ### Recall Eval
184
-
185
- Check whether the brain can retrieve useful memories for common agent tasks:
186
-
187
- ```bash
188
- shadow-brain live-brain eval .
189
- ```
190
-
191
- Custom eval queries use pipe separators:
192
-
193
- ```bash
194
- shadow-brain live-brain eval . --queries "current blocker|do not repeat|verified command"
195
- ```
196
-
197
- ### Memory Hygiene
198
-
199
- List concrete cleanup and learning actions:
200
-
201
- ```bash
202
- shadow-brain live-brain hygiene .
203
- ```
204
-
205
- This highlights missing sources, stale memories, duplicates, weak recall, and missing project-scoped memories.
206
-
207
- ### Training/Eval Export
208
-
209
- Export source-backed memories as JSONL:
210
-
211
- ```bash
212
- shadow-brain live-brain train-pack . --out shadow-brain-training.jsonl
213
- ```
214
-
215
- This is useful for:
216
-
217
- - retrieval evals
218
- - local distillation experiments
219
- - supervised fine-tuning datasets
220
- - memory regression tests
221
-
222
- The export is only data preparation. You choose the downstream training/eval tool.
223
-
224
- ## Core Memory Commands
225
-
226
- Recall from the global brain:
227
-
228
- ```bash
229
- shadow-brain global recall --query "current blocker next step" --json --limit 8
230
- ```
231
-
232
- Show global stats:
233
-
234
- ```bash
235
- shadow-brain global stats
236
- ```
237
-
238
- Create a source-backed resume seed:
239
-
240
- ```bash
241
- shadow-brain resume-seed . -o SHADOW_BRAIN_RESUME_SEED.md
242
- ```
243
-
244
- Show what a project has learned:
245
-
246
- ```bash
247
- shadow-brain timeline . --limit 30
248
- ```
249
-
250
- Create a cross-agent handoff packet:
251
-
252
- ```bash
253
- shadow-brain handoff codex claude-code . --task "continue release verification"
254
- ```
255
-
256
- Record a durable memory from a script:
257
-
258
- ```bash
259
- node tools/record-global-memory.mjs ^
260
- --project-dir "." ^
261
- --project-name "my-project" ^
262
- --agent codex ^
263
- --category "project.lesson" ^
264
- --importance 0.8 ^
265
- --tags "memory,release" ^
266
- --sources "README.md,CHANGELOG.md" ^
267
- --content "Keep release notes source-backed and verify npm metadata before publish."
268
- ```
269
-
270
- ## Dashboard
271
-
272
- Start the local dashboard:
273
-
274
- ```bash
275
- shadow-brain dash . --no-open --port 7341
276
- ```
277
-
278
- For a fast UI/API-only launch on a large repo:
279
-
280
- ```bash
281
- shadow-brain dash . --no-open --no-analysis --host 127.0.0.1 --port 7341
282
- ```
283
-
284
- Open:
285
-
286
- ```text
287
- http://127.0.0.1:7341
288
- ```
289
-
290
- The v6 dashboard includes a **Live Brain** tab for memory health, source coverage, recall evals, hygiene actions, top memories, and the generated agent briefing.
291
-
292
- It also includes:
293
-
294
- - **Memory Browser intelligence cards** for total memories, source coverage, fresh learning, seed queue, top categories, agent coverage, and top tags.
295
- - **Memory Seeder** for controlled research-to-memory workflows. Drafts stay out of the global brain until approval is complete.
296
- - **Token Economy accuracy split**: current runtime agent is shown separately from historical model spend, so old Claude/Cursor spend records do not imply the dashboard is running that agent.
297
-
298
- ### Realtime Activity (new in 6.1.0)
299
-
300
- The dashboard now streams brain activity live over its WebSocket instead of polling. Memory writes, dreams, seed drafts/commits, collisions, sub-agent spawns, and consolidation cycles appear the instant they happen.
301
-
302
- - **Live Pulse** card on the Overview with a streaming mini-feed and an events/min rate.
303
- - **Activity Log** tab with filter chips, a pulsing LIVE badge, pause/resume, clear, search, and an events/min sparkline.
304
- - **Connection indicator** in the header — green when the realtime socket is live, amber while reconnecting.
305
- - **Cross-process aware**: a memory written by an agent in a *different* terminal is picked up by watching `~/.shadow-brain/global.json`, so the feed reflects the whole machine, not just this process.
306
-
307
- Polling remains as a 15-second reconciliation fallback; live events arrive in well under a second.
308
-
309
- ### Intelligence Hub — Memory Constellation (new in 6.2.0)
310
-
311
- A new **Intelligence** tab turns the brain into an interactive graph. Every memory, project, agent, and tag is a node in a force-directed **Memory Constellation**, sized by importance (PageRank blended with each memory's own score) and linked by project, author, tags, and shared-tag relatedness.
312
-
313
- - **Interactive**: scroll to zoom, drag to pan, click a node to focus its neighborhood and open a detail drawer; hover for a tooltip.
314
- - **Filters + search** by node type (memory / project / agent / tag).
315
- - **Live**: new memories pulse into the graph over the realtime stream.
316
- - **Analytics strip**: source-coverage gauge, agent-contribution and category charts, tag cloud, and a recent-memory feed.
317
- - Works instantly on your existing `~/.shadow-brain/global.json` — no project analysis or setup step.
318
-
319
- Several previously sparse tabs were also rebuilt with real visualizations: **Pre-Mortem** (risk matrix + failure cards), **Attention** (weighted heat bars), **Calibration** (Brier/trust chart), **Reputation** (trust rings), **Causal Chains** (node-link DAG), and **Branch Brains** (stat cards).
320
-
321
- Constellation API:
322
-
323
- ```text
324
- GET /api/v6/memory-graph
325
- ```
326
-
327
-
328
- Memory seeding API:
329
-
330
- ```text
331
- GET /api/v6/seed-drafts
332
- POST /api/v6/seed-draft
333
- POST /api/v6/seed-approve
334
- POST /api/v6/seed-reject
335
- POST /api/v6/seed-commit
336
- GET /api/v6/memory-intelligence
337
- ```
338
-
339
- Useful API endpoints:
340
-
341
- ```text
342
- GET/POST /api/v6/live-brain
343
- GET/POST /api/v6/resume-pack
344
- GET/POST /api/v6/ww2br-recall
345
- GET/POST /api/v6/memory-browser
346
- ```
347
-
348
- Example:
349
-
350
- ```bash
351
- curl "http://127.0.0.1:7341/api/v6/live-brain?projectDir=C:/path/to/project"
352
- ```
353
-
354
- ## MCP Tools
355
-
356
- The MCP server exposes memory and agent-control tools for compatible clients.
357
-
358
- New in 6.3.0:
359
-
360
- - `global_recall_scored` — recall with a per-memory confidence score (recency, author importance, cross-agent corroboration, prior usage, keyword relevance). Results are ranked by confidence so agents can weight memories instead of trusting every hit equally. Supports `minConfidence` to drop low-trust hits.
361
-
362
- New in 6.0.3:
363
-
364
- - `live_brain_status`
365
- - `live_brain_brief`
366
- - `live_brain_train_pack`
367
-
368
- Existing useful tools include:
369
-
370
- - `global_recall`
371
- - `global_recall_scored`
372
- - `global_stats`
373
- - `global_timeline`
374
- - `subconscious_inject`
375
- - `agent_handoff`
376
- - `firewall_check`
377
-
378
- Start MCP from the dashboard API or existing CLI/server integration, depending on your setup.
379
-
380
- ## How Agents Should Use It
381
-
382
- Recommended workflow for complex work:
383
-
384
- 1. Run `shadow-brain live-brain status <project>`.
385
- 2. Generate or read a live briefing.
386
- 3. Verify current project docs and source files.
387
- 4. Work normally.
388
- 5. Record only durable, source-backed lessons after proof.
389
- 6. Run recall evals when memory quality starts to drift.
390
-
391
- Good memories are short, action-oriented, and source-backed:
392
-
393
- ```text
394
- [lesson:release-readme-v1] Before publishing, verify package.json version, package-lock root version, README install commands, build output, and npm pack contents.
395
- Sources: package.json; package-lock.json; README.md
396
- Tags: release,npm,verification
397
- ```
398
-
399
- Bad memories are vague:
400
-
401
- ```text
402
- Make project better.
403
- ```
404
-
405
- ## Local Data
406
-
407
- Default global brain:
408
-
409
- ```text
410
- ~/.shadow-brain/global.json
411
- ```
412
-
413
- Project-local generated files may include:
414
-
415
- ```text
416
- SHADOW_BRAIN_AGENT_BRIEF.md
417
- SHADOW_BRAIN_RESUME_SEED.md
418
- shadow-brain-training.jsonl
419
- ```
420
-
421
- Do not store secrets, API keys, passwords, private keys, or raw credentials in memory content, metadata, tags, prompts, reports, or exported training data.
422
-
423
- ## Development
424
-
425
- ```bash
426
- npm ci --ignore-scripts
427
- npm run verify
428
- npm run test:package
429
- ```
430
-
431
- Focused tests:
432
-
433
- ```bash
434
- npx vitest run tests/brain/live-brain.test.ts tests/brain/context-continuity.test.ts
435
- ```
436
-
437
- On Windows PowerShell, if execution policy blocks `npm.ps1`, use:
438
-
439
- ```powershell
440
- npm.cmd run build
441
- npx.cmd vitest run tests\brain\live-brain.test.ts
442
- ```
443
-
444
- ## Release Checklist
445
-
446
- Run `npm run verify`, `npm audit --audit-level=high`, and `npm run test:package`. Inspect the package allowlist, then publish the verified tarball. Confirm the npm version, integrity, and GitHub tag before announcing a release. See [the complete release checklist](docs/launch/RELEASE_CHECKLIST_v7.0.0.md).
447
-
448
- ## License
449
-
450
- MIT
1
+ <h1 align="center">Agent Shadow Brain</h1>
2
+
3
+ [![Follow Ihtisham on GitHub](https://img.shields.io/badge/Follow-Ihtisham%20on%20GitHub-181717?logo=github&logoColor=white)](https://github.com/theihtishaam)
4
+ <p align="center"><strong>A shared brain for the tools you build with.</strong></p>
5
+ <p align="center">Keep project knowledge, understand context, and follow the work between your AI tools.</p>
6
+
7
+ <p align="center">
8
+ <a href="https://www.npmjs.com/package/@theihtisham/agent-shadow-brain"><img alt="npm latest version" src="https://img.shields.io/npm/v/@theihtisham/agent-shadow-brain/latest?label=npm&amp;color=0f766e"></a>
9
+ <a href="https://www.npmjs.com/package/@theihtisham/agent-shadow-brain"><img alt="npm downloads per month" src="https://img.shields.io/npm/dm/@theihtisham/agent-shadow-brain?label=downloads%20%2F%20month&amp;color=0f766e"></a>
10
+ <a href="docs/STATS.md"><img alt="Cumulative npm downloads" src="https://raw.githubusercontent.com/theihtishaam/agents-brain/main/docs/assets/npm-total-downloads.svg"></a>
11
+ <a href="https://github.com/theihtishaam/agents-brain/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/theihtishaam/agents-brain/actions/workflows/ci.yml/badge.svg?branch=main"></a>
12
+ <a href="LICENSE"><img alt="MIT license" src="https://img.shields.io/github/license/theihtishaam/agents-brain?color=475569"></a>
13
+ <a href="https://github.com/theihtishaam/agents-brain/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/theihtishaam/agents-brain?style=flat&amp;logo=github&amp;color=475569"></a>
14
+ </p>
15
+
16
+ <p align="center"><a href="#try-it">Try it</a> · <a href="#inside-the-brain-hub">Visual tour</a> · <a href="#connect-your-agent">Connect your agent</a> · <a href="docs/README.md">Documentation</a></p>
17
+
18
+ ![Running Brain Hub with imported public documentation, measured MCP tool calls, and source inspection](docs/assets/7.1.4-hub-public-docs.gif)
19
+
20
+ [What works and its limits](docs/FEATURES_AND_LIMITS.md)
21
+
22
+ The Brain Hub brings project memory, cited PDF pages, shared work, and recorded tool activity into one local workspace. The animation shows 74 excerpts from 18 public Agent Brain documents loaded into an isolated store. The activity journal records three actual local MCP calls from a scripted client. [Public documentation snapshot](https://github.com/theihtishaam/agents-brain/tree/2e26e7b349db4dd75bf0277b28caff8044190d16) · [Visual guide](docs/VISUAL_GUIDE_v7.1.4.md)
23
+
24
+ ## Try it
25
+
26
+ Use **Node.js 22.13+ in the 22.x line, 24.x, or 26+**. This guide describes the 7.1.4 build. Check the installed version before using the Hub steps.
27
+
28
+ ```bash
29
+ npm install -g @theihtisham/agent-shadow-brain@latest
30
+ shadow-brain --version
31
+ cd your-project
32
+ shadow-brain project workspace . --port 62595
33
+ ```
34
+
35
+ Keep the launcher running and open [the project Brain Hub](http://127.0.0.1:62595/hub). Use the same project directory and port when restarting. Port `0` lets the OS assign a free port, so open the URL printed by that launch. The classic workspace remains at `/workspace`; detailed activity diagnostics remain at `/live`.
36
+
37
+ To build from this checkout while preparing a release, use `npm ci`, `npm run build`, then `node dist/cli.js project workspace . --port 62595`. The command’s directory argument selects which project store to open. [Quickstart](docs/QUICKSTART.md) · [Troubleshooting](docs/TROUBLESHOOTING.md)
38
+
39
+ ## Inside the Brain Hub
40
+
41
+ ![Brain Hub with stored public documentation, linked references, context estimates, and a measured MCP receipt](docs/assets/7.1.4-hub-public-docs.png)
42
+
43
+ | View | What you can do |
44
+ | --- | --- |
45
+ | **Brain overview** | Follow stored memory relationships, open a node or its keyboard-accessible list entry, and seek through recorded activity. An empty store has zero graph nodes and edges. |
46
+ | **Knowledge** | Upload a PDF, review extracted text page by page, approve a cited page into project memory, or save supplied knowledge. Preview and apply a host-specific project skill. |
47
+ | **Collaboration** | Open a project room, post a proposal or critique, claim a task, attach a project file, accept evidence, and record the outcome. |
48
+ | **Context** | Assemble a scoped pack, inspect selected passages and sources, compare retrieval profiles, and copy the rendered Markdown. |
49
+ | **Models and Usage** | Inspect host file presence, retained tool activity, and estimated pack tokens. Missing model identities, token receipts, and costs display as unavailable. |
50
+ | **Learning** | Create a lesson from a recorded outcome. Record a paired evaluation, promote an eligible lesson, or roll back its retrieval influence. |
51
+ | **Setup** | Copy client configuration recipes and manage persisted runtime controls. |
52
+
53
+ ### Follow evidence from a PDF to a context pack
54
+
55
+ ![Working PDF intake with extracted text, a page locator, and approved project memory](docs/assets/7.1.4-hub-knowledge.png)
56
+
57
+ ```mermaid
58
+ flowchart LR
59
+ PDF[Local PDF] --> Parse[Extract page text]
60
+ Parse --> Review[Review cited page]
61
+ Review -->|Approve| Memory[Project memory]
62
+ Memory --> Pack[Scoped context pack]
63
+ Pack --> Host[Copy or retrieve through MCP]
64
+ ```
65
+
66
+ The project store records the document fingerprint and the approved page citation. An image-only page shows that OCR is needed. Context budget figures estimate rendered pack tokens, and profile comparisons use the same scoped request. Provider billing and model-token receipts remain unavailable. [Context guide](docs/CONTEXT_LAB.md)
67
+
68
+ ### Coordinate work and record a lesson
69
+
70
+ ```mermaid
71
+ flowchart LR
72
+ Goal[Project room] --> Msg[Proposal or critique]
73
+ Msg --> Claim[Task claim and lease]
74
+ Claim --> Artifact[Versioned file and digest]
75
+ Artifact --> Outcome[Recorded outcome]
76
+ Outcome --> Candidate[Lesson candidate]
77
+ Candidate --> Evaluate[Operator records evaluation]
78
+ Evaluate --> Promote[Explicit promotion]
79
+ Promote --> Rollback[Rollback archives retrieval influence]
80
+ ```
81
+
82
+ Browser and compatible project-local MCP clients share the same room records. Task claims carry revisions and expire. A recipient acknowledgement references the specific message or artifact. Learning changes project memory and retrieval. The workspace does not run models, train them, or assign work to hosts by itself. [Workspace guide](docs/WORKSPACE.md) · [Workflow integration](docs/WORKFLOW_INTEGRATION.md)
83
+
84
+ ![Actual learning view with a recorded comparison and rolled-back lesson](docs/assets/7.1.4-hub-learning.png)
85
+
86
+ ### Browse the original evidence tools
87
+
88
+ The classic workspace offers memory curation, typed relationships, retrieval feedback, and the full Context Lab. The detailed activity view adds filters and playback controls for the loaded journal.
89
+
90
+ ![Classic Context Lab with selected and excluded evidence](docs/assets/7.1.4-context-lab.png)
91
+
92
+ ![Memory review with recorded sources and typed links](docs/assets/7.1.4-memory-review.png)
93
+
94
+ ![Activity diagnostics showing a recorded tool timeline](docs/assets/7.1.4-live.png)
95
+
96
+ ## Connect your agent
97
+
98
+ Generate a recipe from the same directory used to start the project workspace. The recipe identifies the project store and launches the local stdio service.
99
+
100
+ ```bash
101
+ shadow-brain project config . --target codex
102
+ shadow-brain skills install . --target codex
103
+ ```
104
+
105
+ Preview the skill installation before adding `--apply`. Merge the printed recipe in the selected host, reconnect, and confirm it can list and call a tool such as `project_inspect` or `context_pack`. A recorded exchange will appear when activity recording and display are enabled. [Integration guide](docs/INTEGRATIONS.md)
106
+
107
+ | Target | Recipe |
108
+ | --- | --- |
109
+ | Codex | `shadow-brain project config . --target codex` |
110
+ | Claude Code | `shadow-brain project config . --target claude-code` |
111
+ | OpenCode | `shadow-brain project config . --target opencode` |
112
+ | DeepSeek Harness | `shadow-brain project config . --target deepseek-harness` |
113
+ | Other compatible host | `shadow-brain project config . --target portable` |
114
+
115
+ The Setup page distinguishes installed skill files and generated configuration from recorded activity. The public documentation capture used a scripted MCP client. Native host connectivity, model identity, and provider usage remain unavailable in that capture.
116
+
117
+ ![Actual Setup view with persisted feature switches and client recipes](docs/assets/7.1.4-hub-setup.png)
118
+
119
+ ## Documentation
120
+
121
+ - [Quickstart](docs/QUICKSTART.md) · [Workspace guide](docs/WORKSPACE.md) · [Visual guide](docs/VISUAL_GUIDE_v7.1.4.md) · [Features and limits](docs/FEATURES_AND_LIMITS.md)
122
+ - [Project Kit](docs/PROJECT_KIT.md) · [Context Lab](docs/CONTEXT_LAB.md) · [Workflow skills](docs/WORKFLOW_INTEGRATION.md)
123
+ - [Integrations](docs/INTEGRATIONS.md) · [Troubleshooting](docs/TROUBLESHOOTING.md) · [Release notes](docs/launch/RELEASE_NOTES_v7.1.4.md)
124
+
125
+ MIT license. [Changelog](CHANGELOG.md)
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function registerActivityCommands(program: Command): void;
3
+ //# sourceMappingURL=activity-cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activity-cli.d.ts","sourceRoot":"","sources":["../src/activity-cli.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAyDpC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA2C/D"}