@theihtisham/agent-shadow-brain 7.1.4 → 7.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/CHANGELOG.md +478 -462
  2. package/README.md +97 -24
  3. package/dist/brain/auto-update.js +1 -1
  4. package/dist/brain/auto-update.js.map +1 -1
  5. package/dist/brain/brain-portability.js +1 -1
  6. package/dist/brain/brain-portability.js.map +1 -1
  7. package/dist/brain/client-integrations.js +1 -1
  8. package/dist/brain/client-integrations.js.map +1 -1
  9. package/dist/brain/context-assembly.d.ts +10 -0
  10. package/dist/brain/context-assembly.d.ts.map +1 -1
  11. package/dist/brain/context-assembly.js +15 -6
  12. package/dist/brain/context-assembly.js.map +1 -1
  13. package/dist/brain/context-efficiency.d.ts +48 -0
  14. package/dist/brain/context-efficiency.d.ts.map +1 -0
  15. package/dist/brain/context-efficiency.js +34 -0
  16. package/dist/brain/context-efficiency.js.map +1 -0
  17. package/dist/brain/context-request.d.ts +1 -1
  18. package/dist/brain/context-request.d.ts.map +1 -1
  19. package/dist/brain/context-request.js +4 -2
  20. package/dist/brain/context-request.js.map +1 -1
  21. package/dist/brain/context-retrieval.d.ts +1 -1
  22. package/dist/brain/context-retrieval.d.ts.map +1 -1
  23. package/dist/brain/context-retrieval.js +2 -1
  24. package/dist/brain/context-retrieval.js.map +1 -1
  25. package/dist/brain/feature-settings.d.ts +5 -0
  26. package/dist/brain/feature-settings.d.ts.map +1 -1
  27. package/dist/brain/feature-settings.js +8 -2
  28. package/dist/brain/feature-settings.js.map +1 -1
  29. package/dist/brain/global-brain.d.ts +1 -1
  30. package/dist/brain/global-brain.d.ts.map +1 -1
  31. package/dist/brain/global-brain.js +1 -0
  32. package/dist/brain/global-brain.js.map +1 -1
  33. package/dist/brain/managed-project-skills.d.ts +48 -0
  34. package/dist/brain/managed-project-skills.d.ts.map +1 -0
  35. package/dist/brain/managed-project-skills.js +230 -0
  36. package/dist/brain/managed-project-skills.js.map +1 -0
  37. package/dist/brain/mcp-presence.d.ts +50 -0
  38. package/dist/brain/mcp-presence.d.ts.map +1 -0
  39. package/dist/brain/mcp-presence.js +214 -0
  40. package/dist/brain/mcp-presence.js.map +1 -0
  41. package/dist/brain/mcp-server.d.ts +12 -0
  42. package/dist/brain/mcp-server.d.ts.map +1 -1
  43. package/dist/brain/mcp-server.js +177 -31
  44. package/dist/brain/mcp-server.js.map +1 -1
  45. package/dist/brain/mcp-stdio.d.ts +1 -1
  46. package/dist/brain/mcp-stdio.d.ts.map +1 -1
  47. package/dist/brain/mcp-stdio.js +19 -1
  48. package/dist/brain/mcp-stdio.js.map +1 -1
  49. package/dist/brain/memory-annotations.d.ts +2 -0
  50. package/dist/brain/memory-annotations.d.ts.map +1 -1
  51. package/dist/brain/memory-annotations.js +13 -0
  52. package/dist/brain/memory-annotations.js.map +1 -1
  53. package/dist/brain/memory-inspection.d.ts +1 -0
  54. package/dist/brain/memory-inspection.d.ts.map +1 -1
  55. package/dist/brain/memory-inspection.js +1 -1
  56. package/dist/brain/memory-inspection.js.map +1 -1
  57. package/dist/brain/memory-mcp-content.d.ts +4 -2
  58. package/dist/brain/memory-mcp-content.d.ts.map +1 -1
  59. package/dist/brain/memory-mcp-content.js +20 -16
  60. package/dist/brain/memory-mcp-content.js.map +1 -1
  61. package/dist/brain/model-registry.d.ts +4 -5
  62. package/dist/brain/model-registry.d.ts.map +1 -1
  63. package/dist/brain/model-registry.js +22 -207
  64. package/dist/brain/model-registry.js.map +1 -1
  65. package/dist/brain/model-usage.d.ts +66 -0
  66. package/dist/brain/model-usage.d.ts.map +1 -0
  67. package/dist/brain/model-usage.js +246 -0
  68. package/dist/brain/model-usage.js.map +1 -0
  69. package/dist/brain/native-codex.d.ts +105 -0
  70. package/dist/brain/native-codex.d.ts.map +1 -0
  71. package/dist/brain/native-codex.js +292 -0
  72. package/dist/brain/native-codex.js.map +1 -0
  73. package/dist/brain/native-session-import.d.ts +56 -0
  74. package/dist/brain/native-session-import.d.ts.map +1 -0
  75. package/dist/brain/native-session-import.js +307 -0
  76. package/dist/brain/native-session-import.js.map +1 -0
  77. package/dist/brain/orchestrator.js +1 -1
  78. package/dist/brain/orchestrator.js.map +1 -1
  79. package/dist/brain/project-feedback.d.ts +1 -1
  80. package/dist/brain/project-feedback.d.ts.map +1 -1
  81. package/dist/brain/project-feedback.js +19 -8
  82. package/dist/brain/project-feedback.js.map +1 -1
  83. package/dist/brain/project-hub-contract.d.ts +6 -0
  84. package/dist/brain/project-hub-contract.d.ts.map +1 -1
  85. package/dist/brain/project-hub-contract.js +2 -1
  86. package/dist/brain/project-hub-contract.js.map +1 -1
  87. package/dist/brain/project-hub-mcp.d.ts +14 -0
  88. package/dist/brain/project-hub-mcp.d.ts.map +1 -1
  89. package/dist/brain/project-hub-mcp.js +6 -1
  90. package/dist/brain/project-hub-mcp.js.map +1 -1
  91. package/dist/brain/project-hub-store.d.ts +14 -2
  92. package/dist/brain/project-hub-store.d.ts.map +1 -1
  93. package/dist/brain/project-hub-store.js +70 -2
  94. package/dist/brain/project-hub-store.js.map +1 -1
  95. package/dist/brain/project-hub.d.ts +5 -0
  96. package/dist/brain/project-hub.d.ts.map +1 -1
  97. package/dist/brain/project-hub.js +23 -1
  98. package/dist/brain/project-hub.js.map +1 -1
  99. package/dist/brain/project-kit.d.ts +10 -0
  100. package/dist/brain/project-kit.d.ts.map +1 -1
  101. package/dist/brain/project-kit.js +80 -16
  102. package/dist/brain/project-kit.js.map +1 -1
  103. package/dist/brain/project-policy-delivery.d.ts +8 -0
  104. package/dist/brain/project-policy-delivery.d.ts.map +1 -0
  105. package/dist/brain/project-policy-delivery.js +38 -0
  106. package/dist/brain/project-policy-delivery.js.map +1 -0
  107. package/dist/brain/project-policy.d.ts +88 -0
  108. package/dist/brain/project-policy.d.ts.map +1 -0
  109. package/dist/brain/project-policy.js +267 -0
  110. package/dist/brain/project-policy.js.map +1 -0
  111. package/dist/brain/project-session-contract.d.ts +180 -0
  112. package/dist/brain/project-session-contract.d.ts.map +1 -0
  113. package/dist/brain/project-session-contract.js +50 -0
  114. package/dist/brain/project-session-contract.js.map +1 -0
  115. package/dist/brain/project-session-mcp.d.ts +145 -0
  116. package/dist/brain/project-session-mcp.d.ts.map +1 -0
  117. package/dist/brain/project-session-mcp.js +58 -0
  118. package/dist/brain/project-session-mcp.js.map +1 -0
  119. package/dist/brain/project-sessions.d.ts +97 -0
  120. package/dist/brain/project-sessions.d.ts.map +1 -0
  121. package/dist/brain/project-sessions.js +223 -0
  122. package/dist/brain/project-sessions.js.map +1 -0
  123. package/dist/brain/project-source-contract.d.ts +109 -0
  124. package/dist/brain/project-source-contract.d.ts.map +1 -0
  125. package/dist/brain/project-source-contract.js +2 -0
  126. package/dist/brain/project-source-contract.js.map +1 -0
  127. package/dist/brain/project-source-intake.d.ts +26 -0
  128. package/dist/brain/project-source-intake.d.ts.map +1 -0
  129. package/dist/brain/project-source-intake.js +457 -0
  130. package/dist/brain/project-source-intake.js.map +1 -0
  131. package/dist/cli.js +1 -1
  132. package/dist/cli.js.map +1 -1
  133. package/dist/context-cli.d.ts.map +1 -1
  134. package/dist/context-cli.js +9 -3
  135. package/dist/context-cli.js.map +1 -1
  136. package/dist/dashboard/brain-hub-actions.d.ts.map +1 -1
  137. package/dist/dashboard/brain-hub-actions.js +232 -135
  138. package/dist/dashboard/brain-hub-actions.js.map +1 -1
  139. package/dist/dashboard/brain-hub-agent-dock.d.ts +2 -0
  140. package/dist/dashboard/brain-hub-agent-dock.d.ts.map +1 -0
  141. package/dist/dashboard/brain-hub-agent-dock.js +255 -0
  142. package/dist/dashboard/brain-hub-agent-dock.js.map +1 -0
  143. package/dist/dashboard/brain-hub-brand-icons.d.ts +2 -0
  144. package/dist/dashboard/brain-hub-brand-icons.d.ts.map +1 -0
  145. package/dist/dashboard/brain-hub-brand-icons.js +9 -0
  146. package/dist/dashboard/brain-hub-brand-icons.js.map +1 -0
  147. package/dist/dashboard/brain-hub-client.d.ts.map +1 -1
  148. package/dist/dashboard/brain-hub-client.js +433 -333
  149. package/dist/dashboard/brain-hub-client.js.map +1 -1
  150. package/dist/dashboard/brain-hub-context.d.ts +2 -0
  151. package/dist/dashboard/brain-hub-context.d.ts.map +1 -0
  152. package/dist/dashboard/brain-hub-context.js +37 -0
  153. package/dist/dashboard/brain-hub-context.js.map +1 -0
  154. package/dist/dashboard/brain-hub-controls.d.ts +2 -0
  155. package/dist/dashboard/brain-hub-controls.d.ts.map +1 -0
  156. package/dist/dashboard/brain-hub-controls.js +63 -0
  157. package/dist/dashboard/brain-hub-controls.js.map +1 -0
  158. package/dist/dashboard/brain-hub-exchanges.d.ts +2 -0
  159. package/dist/dashboard/brain-hub-exchanges.d.ts.map +1 -0
  160. package/dist/dashboard/brain-hub-exchanges.js +82 -0
  161. package/dist/dashboard/brain-hub-exchanges.js.map +1 -0
  162. package/dist/dashboard/brain-hub-graph.d.ts.map +1 -1
  163. package/dist/dashboard/brain-hub-graph.js +236 -74
  164. package/dist/dashboard/brain-hub-graph.js.map +1 -1
  165. package/dist/dashboard/brain-hub-html.d.ts.map +1 -1
  166. package/dist/dashboard/brain-hub-html.js +56 -1
  167. package/dist/dashboard/brain-hub-html.js.map +1 -1
  168. package/dist/dashboard/brain-hub-knowledge.d.ts +2 -0
  169. package/dist/dashboard/brain-hub-knowledge.d.ts.map +1 -0
  170. package/dist/dashboard/brain-hub-knowledge.js +33 -0
  171. package/dist/dashboard/brain-hub-knowledge.js.map +1 -0
  172. package/dist/dashboard/brain-hub-live.d.ts +2 -0
  173. package/dist/dashboard/brain-hub-live.d.ts.map +1 -0
  174. package/dist/dashboard/brain-hub-live.js +151 -0
  175. package/dist/dashboard/brain-hub-live.js.map +1 -0
  176. package/dist/dashboard/brain-hub-managed-skills.d.ts +2 -0
  177. package/dist/dashboard/brain-hub-managed-skills.d.ts.map +1 -0
  178. package/dist/dashboard/brain-hub-managed-skills.js +20 -0
  179. package/dist/dashboard/brain-hub-managed-skills.js.map +1 -0
  180. package/dist/dashboard/brain-hub-native.d.ts +2 -0
  181. package/dist/dashboard/brain-hub-native.d.ts.map +1 -0
  182. package/dist/dashboard/brain-hub-native.js +44 -0
  183. package/dist/dashboard/brain-hub-native.js.map +1 -0
  184. package/dist/dashboard/brain-hub-project-views.d.ts.map +1 -1
  185. package/dist/dashboard/brain-hub-project-views.js +78 -77
  186. package/dist/dashboard/brain-hub-project-views.js.map +1 -1
  187. package/dist/dashboard/brain-hub-sessions.d.ts +2 -0
  188. package/dist/dashboard/brain-hub-sessions.d.ts.map +1 -0
  189. package/dist/dashboard/brain-hub-sessions.js +40 -0
  190. package/dist/dashboard/brain-hub-sessions.js.map +1 -0
  191. package/dist/dashboard/brain-hub-usage.d.ts +2 -0
  192. package/dist/dashboard/brain-hub-usage.d.ts.map +1 -0
  193. package/dist/dashboard/brain-hub-usage.js +28 -0
  194. package/dist/dashboard/brain-hub-usage.js.map +1 -0
  195. package/dist/dashboard/brain-hub-views.d.ts.map +1 -1
  196. package/dist/dashboard/brain-hub-views.js +151 -146
  197. package/dist/dashboard/brain-hub-views.js.map +1 -1
  198. package/dist/dashboard/live-workspace-html.js +1039 -1039
  199. package/dist/dashboard/managed-project-skills-api.d.ts +29 -0
  200. package/dist/dashboard/managed-project-skills-api.d.ts.map +1 -0
  201. package/dist/dashboard/managed-project-skills-api.js +28 -0
  202. package/dist/dashboard/managed-project-skills-api.js.map +1 -0
  203. package/dist/dashboard/native-codex-api.d.ts +83 -0
  204. package/dist/dashboard/native-codex-api.d.ts.map +1 -0
  205. package/dist/dashboard/native-codex-api.js +91 -0
  206. package/dist/dashboard/native-codex-api.js.map +1 -0
  207. package/dist/dashboard/project-file-watch.d.ts +46 -0
  208. package/dist/dashboard/project-file-watch.d.ts.map +1 -0
  209. package/dist/dashboard/project-file-watch.js +221 -0
  210. package/dist/dashboard/project-file-watch.js.map +1 -0
  211. package/dist/dashboard/project-live-stream.d.ts +33 -0
  212. package/dist/dashboard/project-live-stream.d.ts.map +1 -0
  213. package/dist/dashboard/project-live-stream.js +233 -0
  214. package/dist/dashboard/project-live-stream.js.map +1 -0
  215. package/dist/dashboard/project-policy-api.d.ts +37 -0
  216. package/dist/dashboard/project-policy-api.d.ts.map +1 -0
  217. package/dist/dashboard/project-policy-api.js +31 -0
  218. package/dist/dashboard/project-policy-api.js.map +1 -0
  219. package/dist/dashboard/project-session-api.d.ts +28 -0
  220. package/dist/dashboard/project-session-api.d.ts.map +1 -0
  221. package/dist/dashboard/project-session-api.js +84 -0
  222. package/dist/dashboard/project-session-api.js.map +1 -0
  223. package/dist/dashboard/project-source-api.d.ts +11 -0
  224. package/dist/dashboard/project-source-api.d.ts.map +1 -0
  225. package/dist/dashboard/project-source-api.js +67 -0
  226. package/dist/dashboard/project-source-api.js.map +1 -0
  227. package/dist/dashboard/project-workspace.d.ts.map +1 -1
  228. package/dist/dashboard/project-workspace.js +18 -0
  229. package/dist/dashboard/project-workspace.js.map +1 -1
  230. package/dist/dashboard/server.d.ts.map +1 -1
  231. package/dist/dashboard/server.js +64 -25
  232. package/dist/dashboard/server.js.map +1 -1
  233. package/dist/dashboard/v6-dashboard-html.d.ts +1 -1
  234. package/dist/dashboard/v6-dashboard-html.d.ts.map +1 -1
  235. package/dist/dashboard/v6-dashboard-html.js +4261 -4309
  236. package/dist/dashboard/v6-dashboard-html.js.map +1 -1
  237. package/dist/dashboard/workspace-api.d.ts.map +1 -1
  238. package/dist/dashboard/workspace-api.js +105 -23
  239. package/dist/dashboard/workspace-api.js.map +1 -1
  240. package/dist/dashboard/workspace-status.d.ts +3 -0
  241. package/dist/dashboard/workspace-status.d.ts.map +1 -1
  242. package/dist/dashboard/workspace-status.js +4 -3
  243. package/dist/dashboard/workspace-status.js.map +1 -1
  244. package/dist/project-cli.js +1 -1
  245. package/dist/project-cli.js.map +1 -1
  246. package/docs/BRAND_ASSETS.md +36 -0
  247. package/docs/FEATURES_AND_LIMITS.md +29 -24
  248. package/docs/INTEGRATIONS.md +4 -2
  249. package/docs/LEARNING.md +1 -1
  250. package/docs/PROJECT_KIT.md +6 -1
  251. package/docs/QUICKSTART.md +62 -44
  252. package/docs/README.md +36 -33
  253. package/docs/SESSIONS.md +77 -0
  254. package/docs/SOURCE_INTAKE.md +33 -0
  255. package/docs/STATS.md +21 -21
  256. package/docs/VISUAL_GUIDE_v7.22.0.md +73 -0
  257. package/docs/WORKFLOW_INTEGRATION.md +3 -1
  258. package/docs/WORKSPACE.md +63 -37
  259. package/docs/assets/7.22.0-agent-dock-mobile.png +0 -0
  260. package/docs/assets/7.22.0-agent-dock.gif +0 -0
  261. package/docs/assets/7.22.0-agent-dock.png +0 -0
  262. package/docs/assets/7.22.0-hub-exchange.png +0 -0
  263. package/docs/assets/7.22.0-hub-exchanges.gif +0 -0
  264. package/docs/assets/7.22.0-hub-graph.png +0 -0
  265. package/docs/assets/7.22.0-hub-mobile-empty.png +0 -0
  266. package/docs/assets/7.22.0-managed-skills.png +0 -0
  267. package/docs/assets/7.22.0-plain-evidence.png +0 -0
  268. package/docs/assets/7.22.0-project-controls.png +0 -0
  269. package/docs/assets/7.22.0-sessions.png +0 -0
  270. package/docs/assets/7.22.0-teach-brain.png +0 -0
  271. package/docs/launch/RELEASE_ACCEPTANCE_v7.22.0.md +48 -0
  272. package/docs/launch/RELEASE_NOTES_v7.22.0.md +53 -0
  273. package/docs/launch/RESEARCH_AND_PLAN_v7.22.0.md +672 -0
  274. package/package.json +135 -130
  275. package/skills/shadow-workflow/SKILL.md +2 -0
@@ -7,7 +7,7 @@ Agent Shadow Brain provides six reusable workflow skills, project-specific skill
7
7
  Run these commands from the project root:
8
8
 
9
9
  ```bash
10
- npm install -g @theihtisham/agent-shadow-brain@7.1.4
10
+ npm install -g @theihtisham/agent-shadow-brain@7.22.0
11
11
  shadow-brain project workspace .
12
12
  shadow-brain project config . --target codex
13
13
  ```
@@ -34,6 +34,8 @@ shadow-brain project config . --target deepseek-harness
34
34
 
35
35
  Recipes contain an absolute Node executable and installed CLI path. Regenerate them after moving the installation. OpenCode V2 uses `mcp.servers`; consult the documentation for an older host. DeepSeek Harness requires the MCP client plugin and, for skill discovery, the filesystem skill provider. Its documented MCP bridge supports tools and resources; prompt templates are unsupported. A generic wrapper is not universal configuration for every client.
36
36
 
37
+ The legacy Models panel uses provider settings configured for Shadow Brain. It returns model labels and enabled status to the browser. Coding-agent settings stay with their hosts. The old custom-agent configuration endpoint is retired.
38
+
37
39
  [Codex MCP](https://learn.chatgpt.com/docs/extend/mcp?surface=cli) · [Claude Code MCP](https://code.claude.com/docs/en/mcp) · [OpenCode MCP](https://opencode.ai/docs/mcp-servers/) · [Harness MCP client](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/mcp/mcp-client/README.md) · [Harness filesystem skills](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/skill/skill-filesystem/README.md)
38
40
 
39
41
  ## Add workflow skills
@@ -50,7 +52,7 @@ The first command previews the reusable skill bundle. The second applies it. Loc
50
52
 
51
53
  Ask the connected host to call `workflow_skills`, then `context_pack` with the selected project ID, your current task, and `profile: "adaptive"`. Check the returned memory IDs and sources. A successful host call verifies the connection. With recording enabled, its measured boundaries appear in the matching portal's Live view.
52
54
 
53
- The regular memory profile offers twelve tools, two static resources, a scoped memory resource template, and two task/handoff prompt templates. A project-local MCP launch additionally exposes Project Kit inspection, explicit knowledge storage, skill preview, and guarded apply. Use the current `tools/list` response for available tools. Resource references are saved labels; the service does not open their targets.
55
+ The memory profile offers scoped tools, resources and task/handoff prompt templates. A project-local MCP launch additionally exposes Project Kit, reviewed source evidence, collaboration, sessions and optional host-reported usage. Use the current `tools/list` response for available tools. Resource references are saved labels; the service does not open their targets. Project tool participation and conversation sharing apply to agent delivery through tools, resources and prompts.
54
56
 
55
57
  `activity_report` records explicitly reported phases or spans. Reported activity is labelled separately from measured MCP calls. Neither exposes a model's hidden reasoning.
56
58
 
package/docs/LEARNING.md CHANGED
@@ -32,7 +32,7 @@ The task matcher drops generic action words and compares substantive terms. A re
32
32
 
33
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
34
 
35
- An identical memory/task/reporter combination updates its prior record. Repeated praise therefore does not accumulate. When a user and an agent report on the same normalized task, the user report takes precedence. 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.
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
36
 
37
37
  ## Keep control
38
38
 
@@ -14,10 +14,11 @@ Open the printed address and choose **Project Kit**. This mode needs no model pr
14
14
  | --- | --- |
15
15
  | `.shadow-brain/project-memory.json` | Explicit project knowledge |
16
16
  | `.shadow-brain/memory-annotations.json` | Reviews and recorded memory relationships |
17
- | `.shadow-brain/feature-settings.json` | The five runtime controls |
17
+ | `.shadow-brain/feature-settings.json` | Workspace runtime controls |
18
18
  | `.shadow-brain/activity-journal.json` | Bounded measured/reported activity metadata |
19
19
  | `.shadow-brain/memory-feedback.json` | Reported outcomes and local learning control |
20
20
  | `.shadow-brain/project-kit-skills` | Ownership receipts for generated skills |
21
+ | `.shadow-brain/disabled-project-skills` | Verified disabled copies outside client discovery paths |
21
22
  | Selected host's project skill folder | Generated `SKILL.md` files |
22
23
 
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.
@@ -64,6 +65,10 @@ The output includes `planHash`. Repeat the same inputs with `--apply --expected-
64
65
 
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.
66
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
+
67
72
  ## 5. Connect the same local knowledge to your agent
68
73
 
69
74
  ```bash
@@ -1,44 +1,62 @@
1
- # Quickstart
2
-
3
- This guide covers the 7.1.4 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
- ```bash
8
- npm install -g @theihtisham/agent-shadow-brain@latest
9
- shadow-brain --version
10
- cd your-project
11
- shadow-brain project workspace . --port 62595
12
- ```
13
-
14
- Check that the CLI prints `7.1.4` 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.
15
-
16
- 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.
17
-
18
- ![Running Brain Hub control room](assets/7.1.4-hub-control-room.png)
19
-
20
- ## Add your first evidence
21
-
22
- 1. In **Knowledge**, save explicit project knowledge or upload a PDF.
23
- 2. For a PDF, open an extracted page, read its citation, and approve the page you want to retrieve later. Scanned pages show that OCR is needed.
24
- 3. Open **Brain overview** and select a record. The node list offers the same selection with a keyboard.
25
- 4. In **Context**, describe the task and set a token budget. Build a pack or compare profiles, review selected sources, then copy the pack.
26
-
27
- ![Approved source page and extracted citation](assets/7.1.4-hub-knowledge.png)
28
-
29
- ## Connect a host
30
-
31
- ```bash
32
- shadow-brain project config . --target codex
33
- shadow-brain skills install . --target codex
34
- ```
35
-
36
- 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)
37
-
38
- ## Explore shared work
39
-
40
- 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)
41
-
42
- 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.
43
-
44
- [Visual guide](VISUAL_GUIDE_v7.1.4.md) · [Troubleshooting](TROUBLESHOOTING.md)
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 CHANGED
@@ -1,33 +1,36 @@
1
- # Agent Shadow Brain documentation
2
-
3
- Agent Shadow Brain 7.1.4 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
- | [Quickstart](QUICKSTART.md) | Install the exact version, launch the synthetic demo, and open your project workspace. |
10
- | [Project Kit](PROJECT_KIT.md) | Inspect one project, save local knowledge, and preview and apply a tailored skill. |
11
- | [Context Lab](CONTEXT_LAB.md) | Assemble, inspect, compare, and copy a task brief. |
12
- | [Reported outcomes](LEARNING.md) | Record an observed result and inspect, pause, or remove its bounded influence on later retrieval. |
13
- | [Workspace guide](WORKSPACE.md) | Review memory, work with typed links, check project health, and follow recorded activity. |
14
- | [Features and limits](FEATURES_AND_LIMITS.md) | Distinguish implemented behavior from host prerequisites, estimates and unavailable metrics. |
15
- | [Client integrations](INTEGRATIONS.md) | Configure MCP stdio, inspect project skill files, and understand which surfaces the client exposes. |
16
- | [Workflow skills](WORKFLOW_INTEGRATION.md) | Preview or install the six focused project skills. |
17
- | [Showcase](SHOWCASE.md) | See Project Kit, Context Lab, memory review, outcome feedback, and Live replay with synthetic data. |
18
-
19
- ## Architecture and evidence
20
-
21
- - [Component guide](COMPONENTS.md) maps the shared paths and retained modules.
22
- - [Agent memory approaches](COMPARISON.md) compares the documented architectures and tradeoffs of related systems.
23
- - [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)
24
- - [Research and acceptance plan](launch/RESEARCH_AND_PLAN_v7.1.4.md) records the research, implementation scope, and verification gates.
25
-
26
- ## Release and support
27
-
28
- - [7.1.4 release notes](launch/RELEASE_NOTES_v7.1.4.md) cover compatibility, the demo, commands, and MCP access.
29
- - [Changelog](../CHANGELOG.md) · [Historical versions](versions/README.md) · [7.0 migration notes](launch/RELEASE_NOTES_v7.0.0.md)
30
- - [Troubleshooting](TROUBLESHOOTING.md) covers installation, storage, context, and local activity checks.
31
- - [Open an issue](https://github.com/theihtishaam/agents-brain/issues) with the version, reproduction steps, and relevant diagnostics.
32
-
33
- [Project README](../README.md)
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,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,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.
package/docs/STATS.md CHANGED
@@ -1,21 +1,21 @@
1
- # Package and repository statistics
2
-
3
- Last successful refresh: **2026-11-13T10:46:49.286Z**. Counts are snapshots from public npm and GitHub APIs.
4
-
5
- | Metric | Count | Coverage |
6
- | --- | ---: | --- |
7
- | npm total downloads | **6,030** | 2026-04-10 through 2026-11-12, inclusive |
8
- | npm latest day | 79 | 2026-11-12 through 2026-11-12 |
9
- | npm last 7 days | 725 | 2026-11-06 through 2026-11-12 |
10
- | npm last 30 days | 819 | 2026-10-14 through 2026-11-12 |
11
- | GitHub stars | 0 | At refresh |
12
- | GitHub forks | 0 | At refresh |
13
- | GitHub watchers | 0 | At refresh |
14
-
15
- The package was created on 2026-04-10. The total sums non-overlapping ranges of at most 365 days from creation through the latest complete day returned by npm. This handles the API's 18-month request limit without silently truncating lifetime counts. npm counts downloads, including automated installs; these are not unique people or active users.
16
-
17
- The dedicated **README metrics** workflow refreshes this page and the total-download badge daily. A failed request preserves the last successful snapshot. Weekly and monthly README badges use Shields' live npm endpoints and may refresh at different times.
18
-
19
- [Raw snapshot and coverage](npm-metrics.json) · [npm download API documentation](https://github.com/npm/registry/blob/main/docs/download-counts.md) · [Package](https://www.npmjs.com/package/@theihtisham/agent-shadow-brain) · [Repository](https://github.com/theihtishaam/agents-brain)
20
-
21
- Historical snapshots in [stats-history.json](stats-history.json) come from the previous monitoring implementation and are not used to calculate this total.
1
+ # Package and repository statistics
2
+
3
+ Last successful refresh: **2026-11-14T11:49:13.195Z**. Counts are snapshots from public npm and GitHub APIs.
4
+
5
+ | Metric | Count | Coverage |
6
+ | --- | ---: | --- |
7
+ | npm total downloads | **6,229** | 2026-04-10 through 2026-11-13, inclusive |
8
+ | npm latest day | 199 | 2026-11-13 through 2026-11-13 |
9
+ | npm last 7 days | 923 | 2026-11-07 through 2026-11-13 |
10
+ | npm last 30 days | 1,018 | 2026-10-15 through 2026-11-13 |
11
+ | GitHub stars | 0 | At refresh |
12
+ | GitHub forks | 0 | At refresh |
13
+ | GitHub watchers | 0 | At refresh |
14
+
15
+ The package was created on 2026-04-10. The total sums non-overlapping ranges of at most 365 days from creation through the latest complete day returned by npm. This handles the API's 18-month request limit without silently truncating lifetime counts. npm counts downloads, including automated installs; these are not unique people or active users.
16
+
17
+ The dedicated **README metrics** workflow refreshes this page and the plain-text README total every two days. The npm README is a snapshot from the published release. A failed request preserves the last successful snapshot.
18
+
19
+ [Raw snapshot and coverage](npm-metrics.json) · [npm download API documentation](https://github.com/npm/registry/blob/main/docs/download-counts.md) · [Package](https://www.npmjs.com/package/@theihtisham/agent-shadow-brain) · [Repository](https://github.com/theihtishaam/agents-brain)
20
+
21
+ Historical snapshots in [stats-history.json](stats-history.json) come from the previous monitoring implementation and are not used to calculate this total.
@@ -0,0 +1,73 @@
1
+ # Brain Hub 7.22.0 visual guide
2
+
3
+ These captures are from the running local Hub with an isolated synthetic fixture. The dense fixture contains 580 stored memories and explicit recorded links. Scripted MCP clients produce the observed tool activity. The graph can display up to 500 memories, with project and author nodes in addition to that sample. The animation shows actual measured `context_pack` tool calls against the fixture.
4
+
5
+ ![Hub graph showing recorded memory links and animated MCP requests and results](assets/7.22.0-hub-exchanges.gif)
6
+
7
+ ## Inspect tools and reported workers
8
+
9
+ The tool activity panel shows recognizable local icons and a separate count of reporting MCP connections. Hover or focus a tool to inspect it; select it to keep its details open. Individual session chips retain different workers and models. A shared conversation receipt is not assigned to one worker by guessing. **Escape** closes the details and returns focus to its tool.
10
+
11
+ ![Running tool panel with a selected Codex session and its explicitly reported model and effort](assets/7.22.0-agent-dock.png)
12
+
13
+ This additional capture uses four initialized scripted MCP clients, five registered sessions and two synthetic model receipts in an isolated project. The icon identifies the client tool; the provider, model and effort fields retain their host-reported labels. It does not show native application or model execution.
14
+
15
+ ![Brief indicator response to a measured tool event in the test workspace](assets/7.22.0-agent-dock.gif)
16
+
17
+ Heartbeats renew every ten seconds and expire after thirty seconds. They update only the presence readout and never animate tool work. Missing metadata stays unavailable. Motion stops when paused, hidden or reduced-motion is requested.
18
+
19
+ <img src="assets/7.22.0-agent-dock-mobile.png" width="390" alt="Tool activity panel and readable session details on a narrow viewport">
20
+
21
+ ## Explore the memory graph
22
+
23
+ **Find node** lists visible records and searches stored memories in the selected scope. Pick a result to inspect its content, sources, and relations. **+**, **−**, and **Fit** control the graph view. Drag to pan after zooming. Use the relationship buttons to filter the visible edges by project membership, author, or recorded memory relation.
24
+
25
+ ![Dense memory graph and exchanges from three measured fixture sessions](assets/7.22.0-hub-graph.png)
26
+
27
+ ## Follow a measured exchange
28
+
29
+ **MCP exchanges** shows recent measured tool activity by client session. The incoming arrow marks a request the workspace observed. The outgoing arrow marks a result ready at the tool boundary. Select an exchange to inspect its timing, status, and matching request or result when both are in the loaded history. **Latest** returns to incoming activity. **Pause motion** keeps the view still.
30
+
31
+ ![Replay inspector showing the selected request and its paired result](assets/7.22.0-hub-exchange.png)
32
+
33
+ An empty memory store can still have real MCP activity. The graph count stays at zero and the exchange lanes show the measured calls.
34
+
35
+ <img src="assets/7.22.0-hub-mobile-empty.png" width="370" alt="Empty project memory graph with three measured MCP client sessions on mobile">
36
+
37
+ ## Teach the project from ordinary notes
38
+
39
+ In **Knowledge**, write “The cupboard is black” and select **Add to memory**. This directly saves a short note with its original source. For longer notes or changes before saving, choose **Review first**. Review each part, edit the wording if necessary, and select **Save to this project** or **Skip this part**.
40
+
41
+ ![Knowledge screen showing a plain-text fact saved with Add to memory](assets/7.22.0-teach-brain.png)
42
+
43
+ Open **Context**, describe your next task, and select **Find useful context**. The result shows the saved wording, why it matched, and an **Original source** button. The source view shows the original text and your approved correction together. Select **Review usefulness** to report whether a memory helped; rebuilding the same context can show a bounded feedback adjustment. These changes affect stored memory and retrieval, not model weights. The text and clicks above were verified with an isolated synthetic project; no external model response is implied.
44
+
45
+ ![Context source inspection showing the original saved cupboard fact](assets/7.22.0-plain-evidence.png)
46
+
47
+ Optional upload sections accept UTF-8 text, Markdown, or the supported JSON examples. The separate PDF workflow reviews extracted pages and cannot perform OCR. See [source intake](SOURCE_INTAKE.md) for formats, limits, privacy, and provenance details.
48
+
49
+ ## Keep and hand off a project session
50
+
51
+ **Sessions** lists project records and their reported status. Recent activity indicates a recent report, not proof that a native client is still running. A portal session is a manual record and does not start an AI model. Write a note, add your own handoff summary and next steps, then save the checkpoint. **Copy agent resume request** prepares the request for a connected host; **Continue in portal** creates a separate portal-owned session with the saved handoff. The original remains available.
52
+
53
+ ![Sessions page showing an approved transcript imported as a completed snapshot](assets/7.22.0-sessions.png)
54
+
55
+ The screenshot is from an isolated synthetic project. The imported transcript was explicitly selected and reviewed: the visible system label describes quoted source material, not an instruction with elevated authority. Only approved messages present at the first import are included; later imports reopen that snapshot. The portal flow and checkpoint continuation were checked in the browser; independent MCP host handoff was tested separately.
56
+
57
+ ## Set what the project shares
58
+
59
+ In **Setup → Project sharing**, set maximum estimated context tokens and entries. Choose a conversation to control sharing or assign its coordination role. **Tool participation** controls whether a client label can use this project’s Shadow Brain operations.
60
+
61
+ ![Project sharing controls with saved context limits, a private conversation, and one disabled tool in an isolated synthetic project](assets/7.22.0-project-controls.png)
62
+
63
+ **Context** previews the current delivery rules. **Sessions** retains local audit access and identifies conversations whose contents are withheld from connected agents.
64
+
65
+ ## Manage a generated project skill
66
+
67
+ Apply a project skill in **Knowledge** to create its local ownership receipt. In **Setup → Managed project skills**, review the exact paths before disabling, enabling, or removing the skill.
68
+
69
+ ![Managed project skill disable preview showing its original and disabled paths](assets/7.22.0-managed-skills.png)
70
+
71
+ The isolated browser fixture exercised creation, disable, enable, and removal. A separate skill that lacked a Project Kit ownership receipt retained its original bytes.
72
+
73
+ [Workspace guide](WORKSPACE.md)
@@ -6,7 +6,9 @@ Agent Shadow Brain 7.1.0 bundles practical guidance for coding agents. It helps
6
6
 
7
7
  From the project directory, launch `shadow-brain project workspace . --port 62595` and open `/hub`. Generate the client’s project-local recipe with `shadow-brain project config . --target codex` or the appropriate target. This routes the browser and host to the same project store.
8
8
 
9
- Compatible project-local MCP clients can use `hub_overview`, `hub_room_read`, `hub_room_create`, `hub_room_action`, and `hub_lesson_propose`. Approved PDF passages are available through normal memory and context tools. Confirm the tools the host actually exposes with its tool list. Room actions record the author and accept an operation key for safe retries. Host claims and artifact proposals carry revisions. The operator reviews evidence and controls lesson promotion and rollback. The service handles local state and tool responses. The host decides when to invoke a tool.
9
+ Compatible project-local MCP clients can read and create rooms, exchange recorded evidence, and propose lessons. Use `hub_artifact_read` with the room ID, artifact ID and recorded SHA-256 from `hub_room_read` to retrieve up to 32 KiB of immutable UTF-8 text. Larger or binary artifacts are available through the project workspace. Room actions record the author and accept an operation key for safe retries. Host claims and artifact proposals carry revisions. The operator reviews evidence and controls lesson promotion and rollback.
10
+
11
+ Project-local recall refreshes committed memory before each call and excludes archived, contested, and superseded records. The timeline and memory inspection retain those records for review. Approved PDF passages can be selected by project memory and context tools.
10
12
 
11
13
  ```mermaid
12
14
  flowchart LR