@theihtisham/agent-shadow-brain 7.0.0 → 7.1.3

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 (130) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +47 -385
  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 +314 -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-integrations.d.ts +61 -0
  22. package/dist/brain/client-integrations.d.ts.map +1 -0
  23. package/dist/brain/client-integrations.js +98 -0
  24. package/dist/brain/client-integrations.js.map +1 -0
  25. package/dist/brain/context-assembly.d.ts +76 -0
  26. package/dist/brain/context-assembly.d.ts.map +1 -0
  27. package/dist/brain/context-assembly.js +305 -0
  28. package/dist/brain/context-assembly.js.map +1 -0
  29. package/dist/brain/feature-settings.d.ts +58 -0
  30. package/dist/brain/feature-settings.d.ts.map +1 -0
  31. package/dist/brain/feature-settings.js +241 -0
  32. package/dist/brain/feature-settings.js.map +1 -0
  33. package/dist/brain/global-brain.d.ts +7 -0
  34. package/dist/brain/global-brain.d.ts.map +1 -1
  35. package/dist/brain/global-brain.js +19 -4
  36. package/dist/brain/global-brain.js.map +1 -1
  37. package/dist/brain/mcp-server.d.ts +23 -1
  38. package/dist/brain/mcp-server.d.ts.map +1 -1
  39. package/dist/brain/mcp-server.js +224 -24
  40. package/dist/brain/mcp-server.js.map +1 -1
  41. package/dist/brain/mcp-stdio.d.ts +12 -0
  42. package/dist/brain/mcp-stdio.d.ts.map +1 -0
  43. package/dist/brain/mcp-stdio.js +134 -0
  44. package/dist/brain/mcp-stdio.js.map +1 -0
  45. package/dist/brain/memory-annotations.d.ts +97 -0
  46. package/dist/brain/memory-annotations.d.ts.map +1 -0
  47. package/dist/brain/memory-annotations.js +388 -0
  48. package/dist/brain/memory-annotations.js.map +1 -0
  49. package/dist/brain/memory-graph.d.ts.map +1 -1
  50. package/dist/brain/memory-graph.js +12 -23
  51. package/dist/brain/memory-graph.js.map +1 -1
  52. package/dist/brain/memory-sources.d.ts +8 -0
  53. package/dist/brain/memory-sources.d.ts.map +1 -0
  54. package/dist/brain/memory-sources.js +27 -0
  55. package/dist/brain/memory-sources.js.map +1 -0
  56. package/dist/brain/orchestrator.js +1 -1
  57. package/dist/brain/subconscious.d.ts +21 -24
  58. package/dist/brain/subconscious.d.ts.map +1 -1
  59. package/dist/brain/subconscious.js +82 -218
  60. package/dist/brain/subconscious.js.map +1 -1
  61. package/dist/brain/task-workflow.d.ts +22 -0
  62. package/dist/brain/task-workflow.d.ts.map +1 -0
  63. package/dist/brain/task-workflow.js +182 -0
  64. package/dist/brain/task-workflow.js.map +1 -0
  65. package/dist/brain/workflow-skills.d.ts +86 -0
  66. package/dist/brain/workflow-skills.d.ts.map +1 -0
  67. package/dist/brain/workflow-skills.js +514 -0
  68. package/dist/brain/workflow-skills.js.map +1 -0
  69. package/dist/cli.js +21 -2
  70. package/dist/cli.js.map +1 -1
  71. package/dist/context-cli.d.ts +3 -0
  72. package/dist/context-cli.d.ts.map +1 -0
  73. package/dist/context-cli.js +56 -0
  74. package/dist/context-cli.js.map +1 -0
  75. package/dist/curation-cli.d.ts +4 -0
  76. package/dist/curation-cli.d.ts.map +1 -0
  77. package/dist/curation-cli.js +118 -0
  78. package/dist/curation-cli.js.map +1 -0
  79. package/dist/dashboard/live-workspace-html.d.ts +2 -0
  80. package/dist/dashboard/live-workspace-html.d.ts.map +1 -0
  81. package/dist/dashboard/live-workspace-html.js +893 -0
  82. package/dist/dashboard/live-workspace-html.js.map +1 -0
  83. package/dist/dashboard/server.d.ts +1 -0
  84. package/dist/dashboard/server.d.ts.map +1 -1
  85. package/dist/dashboard/server.js +53 -18
  86. package/dist/dashboard/server.js.map +1 -1
  87. package/dist/dashboard/v6-dashboard-html.d.ts +1 -1
  88. package/dist/dashboard/v6-dashboard-html.d.ts.map +1 -1
  89. package/dist/dashboard/v6-dashboard-html.js +7 -29
  90. package/dist/dashboard/v6-dashboard-html.js.map +1 -1
  91. package/dist/dashboard/workspace-api.d.ts +16 -0
  92. package/dist/dashboard/workspace-api.d.ts.map +1 -0
  93. package/dist/dashboard/workspace-api.js +309 -0
  94. package/dist/dashboard/workspace-api.js.map +1 -0
  95. package/dist/dashboard/workspace-html.d.ts +2 -0
  96. package/dist/dashboard/workspace-html.d.ts.map +1 -0
  97. package/dist/dashboard/workspace-html.js +2132 -0
  98. package/dist/dashboard/workspace-html.js.map +1 -0
  99. package/dist/index.d.ts +14 -0
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/index.js +10 -0
  102. package/dist/index.js.map +1 -1
  103. package/dist/integration-cli.d.ts +3 -0
  104. package/dist/integration-cli.d.ts.map +1 -0
  105. package/dist/integration-cli.js +14 -0
  106. package/dist/integration-cli.js.map +1 -0
  107. package/dist/types.d.ts +12 -3
  108. package/dist/types.d.ts.map +1 -1
  109. package/dist/workflow-cli.d.ts +3 -0
  110. package/dist/workflow-cli.d.ts.map +1 -0
  111. package/dist/workflow-cli.js +100 -0
  112. package/dist/workflow-cli.js.map +1 -0
  113. package/docs/WORKFLOW_INTEGRATION.md +105 -0
  114. package/docs/WORKSPACE.md +111 -0
  115. package/docs/assets/context-flow-v7.2.png +0 -0
  116. package/docs/assets/live-v7.1.3.png +0 -0
  117. package/docs/assets/memory-detail-v7.1.3.png +0 -0
  118. package/docs/assets/overview-v7.1.3.png +0 -0
  119. package/docs/assets/workspace-graph-v7.2.png +0 -0
  120. package/docs/assets/workspace-overview-v7.2.png +0 -0
  121. package/docs/launch/RELEASE_NOTES_v7.1.0.md +32 -0
  122. package/docs/launch/RELEASE_NOTES_v7.1.3.md +40 -0
  123. package/docs/launch/RELEASE_NOTES_v7.2.0.md +24 -0
  124. package/package.json +112 -207
  125. package/skills/shadow-debug/SKILL.md +16 -0
  126. package/skills/shadow-implement/SKILL.md +16 -0
  127. package/skills/shadow-release/SKILL.md +16 -0
  128. package/skills/shadow-research/SKILL.md +12 -0
  129. package/skills/shadow-review/SKILL.md +14 -0
  130. package/skills/shadow-workflow/SKILL.md +31 -0
@@ -0,0 +1,105 @@
1
+ # Focused workflows and project skills
2
+
3
+ Agent Shadow Brain 7.1.0 bundles practical guidance for coding agents. It helps the host select an appropriate workflow, avoid unnecessary extra work, and check the requested result. It does not call a model or run the task on its own. Your host agent supplies the reasoning, tools, permissions, and execution.
4
+
5
+ ## Choose a client and install
6
+
7
+ Use Node 22.12+ within 22.x, Node 24.x, or Node 26+. Install the package, move to the project root, and preview the files:
8
+
9
+ ```bash
10
+ npm install -g @theihtisham/agent-shadow-brain
11
+ shadow-brain skills install . --target codex
12
+ shadow-brain skills install . --target codex --apply
13
+ ```
14
+
15
+ | Target | Skill directory | Project instructions |
16
+ | --- | --- | --- |
17
+ | `codex` | `.agents/skills/<name>/SKILL.md` | `AGENTS.md` |
18
+ | `claude-code` | `.claude/skills/<name>/SKILL.md` | `CLAUDE.md` |
19
+ | `opencode` | `.opencode/skills/<name>/SKILL.md` | `AGENTS.md` |
20
+ | `deepseek-harness` | `.dsh/skills/<name>/SKILL.md` | `AGENTS.md` |
21
+ | `portable` (default) | `.agents/skills/<name>/SKILL.md` | `AGENTS.md` |
22
+
23
+ Use a comma-separated target list or `--target all` for the four native layouts. Existing identical destinations are deduplicated. Prefer only the targets you use: some hosts can discover several compatible roots. Select a smaller catalog with `--skills shadow-workflow,shadow-debug`. `skills targets` prints the supported mappings; `skills show shadow-debug` prints the complete bundled skill.
24
+
25
+ The managed project-instruction section points relevant tasks to the installed skills and defers to user and project constraints. Skill discovery remains a host feature: restart or reload the client if its documentation requires it. For DeepSeek Harness, install at its actual project root (nearest `.git` ancestor, or working directory if there is no repository). Enable the host's filesystem skill provider, registry and skill tool, plus agent-instruction context if you want the `AGENTS.md` pointer. This installer does not change host plugin configuration.
26
+
27
+ Other clients can use the portable layout if they support it, or read an installed `SKILL.md` explicitly. An MCP-capable client can retrieve the same guidance through the tools below. There is no claim that every client automatically discovers these files.
28
+
29
+ ## What each skill contributes
30
+
31
+ | Skill | Purpose |
32
+ | --- | --- |
33
+ | `shadow-workflow` | Understand the outcome and constraints, choose the relevant guidance, and scale planning and verification. |
34
+ | `shadow-implement` | Inspect relevant code, make the requested change, and verify affected behavior. |
35
+ | `shadow-debug` | Isolate a failure using evidence; fix it when requested; confirm the original failure is resolved. |
36
+ | `shadow-review` | Report actionable findings with evidence; edit only when the requested scope includes fixes. |
37
+ | `shadow-research` | Check relevant sources, separate facts from inference, and answer the user's question. |
38
+ | `shadow-release` | Prepare and verify an artifact, perform an authorized release, and independently check the destination. |
39
+
40
+ Skills keep trivial questions direct, respect planning/diagnosis/review-only requests, and avoid unrelated rewrites, audits, documents, and tests. They ask for missing input only when it materially blocks correct work. Prior authorization counts; a routine second approval is not required. Available memory can supply fallible context, but memory writes are not compulsory. A useful plan states actions and verification, not private reasoning transcripts.
41
+
42
+ ## Preview, updates, and conflicts
43
+
44
+ Without `--apply`, installation performs no writes. The plan shows destination paths, content, actions, hashes, and warnings (`--json` gives the full structure). Application recomputes and validates the plan and checks existing content before changing files.
45
+
46
+ Skills are allowlisted bundled files. Differing unowned files, locally edited managed files or blocks, malformed instruction markers, unsafe paths, and stale previews are rejected. Bytes outside the managed instruction block are preserved. A project-local `.shadow-brain/workflow-skills.json` receipt records ownership hashes so later package upgrades can distinguish managed content from local edits. Commit it with the installed skills if your team shares the installation.
47
+
48
+ Managed updates save original files under `.shadow-brain/workflow-backups/`. Caught write errors trigger best-effort rollback where the files still match this attempt; the installer reports failures instead of silently overwriting concurrent edits. It uses an exclusive project installation lock. Process termination can leave a partial installation and lock; arbitrary concurrent editors are not transactional. Rerun preview after resolving a reported conflict. Do not delete an active lock. After an interrupted process, confirm no installer is running before manually removing an abandoned `.shadow-brain/workflow-skills.lock`.
49
+
50
+ There is no force-overwrite or uninstall command. To remove the integration, review the receipt and installed paths, remove only the selected managed skill files and delimited instruction blocks, and preserve your own additions. Keep backups until the update has been checked. Do not remove a whole shared skills directory.
51
+
52
+ The installer never changes global client settings, selects providers/models, reads authentication stores, starts hosts, or executes skill commands. Installing or upgrading the npm package itself does not install skills into projects.
53
+
54
+ ## Advisory request analysis
55
+
56
+ ```bash
57
+ shadow-brain workflow analyze "Fix the failing CSV export" --json
58
+ shadow-brain workflow analyze "Plan a storage migration; do not edit files" --json
59
+ shadow-brain workflow analyze "Review this change" --type review --mode plan-only --json
60
+ shadow-brain workflow analyze --request-file ./task.txt --type implement --complexity complex --json
61
+ ```
62
+
63
+ Options are `--mode auto|plan-only|execute`, `--type auto|implement|debug|review|research|release`, and `--complexity auto|simple|complex`. Request files must be at most 64 KiB. The router returns task type, mode, relevant skills, bounded steps with completion checks, reasons, authorization categories, and limitations. It does not save requests or create plan files.
64
+
65
+ Automatic classification is a deterministic English-language heuristic, not a language model. Ambiguous, quoted, complex negation, or non-English text may require explicit options and host interpretation. Its suggestions do not grant permission. `requiresAuthorization` identifies external-action categories for the host to check against the user's existing authorization, not an instruction to ask again. Explicit user boundaries remain authoritative even when an execution override is supplied.
66
+
67
+ ## Library and MCP
68
+
69
+ ```js
70
+ import {
71
+ analyzeTask,
72
+ listBundledSkills,
73
+ getBundledSkill,
74
+ listWorkflowTargets,
75
+ planSkillInstall,
76
+ applySkillInstall,
77
+ } from '@theihtisham/agent-shadow-brain';
78
+
79
+ const workflow = analyzeTask('Diagnose the timeout without changing code');
80
+ const catalog = listBundledSkills();
81
+ const content = getBundledSkill('shadow-debug').content;
82
+ const targets = listWorkflowTargets();
83
+ const plan = planSkillInstall({ projectDir: process.cwd(), targets: ['codex'] });
84
+ // When installation has been requested and the plan is acceptable:
85
+ const installed = applySkillInstall(plan);
86
+ ```
87
+
88
+ Plans and installation results are synchronous. An apply failure throws; do not treat it as a successful installation. Keep the plan unchanged between preview and apply. Public type exports describe the options and results.
89
+
90
+ Existing Shadow Brain MCP connections expose two additional read-only tools:
91
+
92
+ - `workflow_analyze`: `{ "request": "...", "mode": "auto", "taskType": "auto", "complexity": "auto" }`.
93
+ - `workflow_skills`: `{}` lists names and descriptions; `{ "name": "shadow-debug" }` returns full guidance.
94
+
95
+ These tools do not install files, execute tasks, or call providers. Skill file installation also does not automatically configure MCP or start the memory service. The existing memory tools remain separately available through an explicitly configured integration.
96
+
97
+ ## Compatibility evidence
98
+
99
+ These layouts were checked against the official sources below on 2026-11-11. Automated tests validate package contents, installation, preservation, and advisory behavior. They do not establish that a particular running client loaded a skill or that a model followed every instruction.
100
+
101
+ - [Codex skills documentation](https://learn.chatgpt.com/docs/build-skills): project `.agents/skills` discovery and skill frontmatter.
102
+ - [Claude Code skills](https://code.claude.com/docs/en/skills): project `.claude/skills` and on-demand guidance.
103
+ - [OpenCode skills](https://opencode.ai/docs/skills/): native and compatible roots.
104
+ - [DeepSeek Harness filesystem skill provider](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/skill/skill-filesystem/README.md): roots, priority, project-root detection, one-level bundles, and required plugins.
105
+ - [DeepSeek Harness project context](https://github.com/deepseek-ai/deepseek-harness/blob/master/packages/context/README.md): agent-instruction context.
@@ -0,0 +1,111 @@
1
+ # Workspace guide
2
+
3
+ Start the local workspace from your project directory.
4
+
5
+ ```bash
6
+ shadow-brain dash . --no-analysis
7
+ ```
8
+
9
+ The CLI binds to `127.0.0.1:7341` by default and opens the workspace. Use `--no-open` to open the printed address yourself, or `--port` to choose another port. `--no-analysis` starts the UI and API without background project analysis.
10
+
11
+ **Overview** shows the memory count, project inventory, and recent activity. **Memories** lets you search and inspect a memory's recorded sources, review history, and links. **Graph** shows project membership, recording agents, and explicit links between memories. **Context** builds a pack for the task at hand. **Integrations** shows available client features and local checks. **Features** changes the runtime controls.
12
+
13
+ The workspace uses up to 2,500 recent memories for its inventory and filter lists. Text search ranks matching records in the selected scope and returns up to 2,500 results. The graph displays up to 180 memories plus their project and agent nodes. The workspace indicates when it is showing a partial view.
14
+
15
+ Visit `/advanced` for the previous dashboard and its existing tools. Its Features page links to the current controls.
16
+
17
+ ## Follow live operations
18
+
19
+ Open `/live` on the dashboard address. Select a session to follow its activity network and event timeline. The charts summarize matched, measured tool calls in the loaded window. The portal marks incomplete windows when older events have been dropped.
20
+
21
+ The standalone MCP service measures its own session and tool boundaries. A host can explicitly report phases such as planning or verification, or tool start and end events from its own integration. The portal labels those events **Host-reported** and keeps them separate from measured timing.
22
+
23
+ ```bash
24
+ shadow-brain activity report phase --project-id PROJECT_ID --session SESSION_ID --agent codex --phase verify
25
+ shadow-brain activity tail --project-id PROJECT_ID
26
+ ```
27
+
28
+ Use a shared `--correlation` ID on tool start and end reports. The end report also takes `--outcome` and `--duration-ms`. Use the previous tail result's `cursor` and `journalId` with `--cursor` and `--journal-id` to read the next page. Set `--db <path>` to use the journal next to a particular memory store.
29
+
30
+ The local `activity-journal.json` retains the latest 500 events. It stores short labels, source, phase, tool name, outcome, and timing. Keep prompts, arguments, file paths, memory content, and credentials out of reports. A demo label identifies scripted sample events.
31
+
32
+ ## Build context for the task
33
+
34
+ Choose a project and enter a task or a few search terms. Review the selected memories, their recorded references, and the reasons entries were skipped before copying the pack.
35
+
36
+ ```bash
37
+ shadow-brain context-pack "trace retry behavior in the importer" --project . --token-budget 1200 --json
38
+ ```
39
+
40
+ The assembler excludes archived, contested, and superseded memories before ranking. It considers up to 200 eligible candidates and selects up to 12 entries by default. The library supports a maximum of 30 entries. It groups exact content matches within a project after normalizing case and whitespace, keeps the highest-ranked representative, and carries forward bounded source references and explicit links with their originating memory IDs. Distinct statements remain separate. A recorded contradiction is called out in the pack so the agent can check it.
41
+
42
+ The size limit applies to the complete Markdown, including labels and references. Long text can appear as a labeled excerpt. The assembler skips oversized entries and checks the remaining candidates. The token estimate is the rendered JavaScript string length divided by four, rounded up. It is a rough sizing guide because model tokenizers count text differently.
43
+
44
+ Context stays within the selected project unless you enable `crossProjectContext` and explicitly request other projects using the workspace option, `--cross-project`, or the MCP/library option. Broader packs label each memory's project. Recorded references come from saved memory metadata. Check them against current sources before relying on a claim.
45
+
46
+ Session-start briefings use the same assembler and budget. They respect the current task, project, allowed agents, runtime controls, and annotation revision. A task can still recall an older relevant lesson.
47
+
48
+ ## Review and connect memories
49
+
50
+ Open a memory from **Memories** or **Graph** to inspect its saved content, references, and review history. Set its review state to **Active**, **Archived**, or **Contested**. The review records your judgment. Check important claims against their sources.
51
+
52
+ Use an explicit link to relate, support, contradict, or supersede another memory in the same project. For a supersession, choose the replacement first and the older memory second. A superseded memory stays out of context if its replacement disappears. Remove the supersession link to restore the older memory's prior review state.
53
+
54
+ For CLI use, substitute the IDs shown in the workspace or the JSON output from `context-pack`.
55
+
56
+ ```bash
57
+ shadow-brain curate show MEMORY_ID --project-id PROJECT_ID
58
+ shadow-brain curate review MEMORY_ID contested --project-id PROJECT_ID --note "Check the current retry test"
59
+ shadow-brain curate link REPLACEMENT_ID MEMORY_ID supersedes --project-id PROJECT_ID
60
+ shadow-brain curate unlink LINK_ID --project-id PROJECT_ID
61
+ ```
62
+
63
+ The commands return JSON. Write commands accept `--revision` to reject updates based on an older annotation revision. Use `--db <path>` for an explicit memory store and `--annotations <path>` to select a separate annotation file. By default the commands use `memory-annotations.json` next to the memory store.
64
+
65
+ The annotation file holds up to 5,000 reviews, 5,000 links, and the latest 500 audit events, with a 16 MiB file limit. Notes are capped at 1,000 characters. The original `global.json` remains separate. Curation applies to context packs and automatic briefings. Memory inspection remains available for reviewing earlier records.
66
+
67
+ ## Change the runtime controls
68
+
69
+ Set features in the workspace or through the CLI.
70
+
71
+ ```bash
72
+ shadow-brain features list
73
+ shadow-brain features set automaticBriefing off
74
+ shadow-brain features set automaticBriefing on
75
+ ```
76
+
77
+ | ID | Default | What it controls |
78
+ | --- | --- | --- |
79
+ | `contextAssembly` | On | Builds context packs, including the memory context used by session briefings. |
80
+ | `crossProjectContext` | Off | Permits a context request to include other projects when the caller explicitly selects it. |
81
+ | `automaticBriefing` | On | Generates session-start briefings for eligible agents. Turning it off also suppresses previously cached briefings. |
82
+ | `liveActivity` | On | Shows live operations and serves dashboard activity updates and backlog. Turning it off also hides CLI activity tail output. |
83
+ | `activityRecording` | On | Appends measured service activity and explicit host reports. Turning it off stops new records. Existing history remains available while live activity is enabled. |
84
+
85
+ Settings persist in `~/.shadow-brain/feature-settings.json` and take effect on the next relevant operation. The workspace writes validated changes and checks the settings revision before saving. If another client changes the settings first, review the refreshed values and try again. CLI commands accept `--settings <path>` for an explicitly selected file.
86
+
87
+ ## Integrate with a client
88
+
89
+ Configure a compatible MCP client to launch `shadow-brain mcp --stdio`. The service offers nine read-only memory and workflow tools. When activity recording is enabled, it also records measured session and tool timing. The separate `activity_report` tool explicitly writes host-reported metadata to the journal. The service handles MCP messages without loading provider configuration. Use `--db <path>` and `--settings <path>` to point an isolated client at its own files.
90
+
91
+ The MCP tools `context_pack` and `feature_flags` provide context assembly and current feature states. `context_pack` accepts `projectId`, optional `query`, `tokenBudget`, and `includeCrossProject`. Inspect or change reviews through the workspace or `curate` commands.
92
+
93
+ The library exports `assembleContext`, `MemoryAnnotationsStore`, `FeatureSettingsStore`, and their types. Pass a recall source, current feature settings, and an annotation snapshot to `assembleContext`. Context assembly uses stored memories and recorded references without making model calls.
94
+
95
+ The **Integrations** view checks the project skill files in a selected directory and shows runtime and storage status. Host-side skill discovery and MCP configuration are separate steps. DeepSeek Harness needs its filesystem skill and MCP client plugins enabled. [Skill integration guide](WORKFLOW_INTEGRATION.md)
96
+
97
+ The local dashboard uses these HTTP endpoints.
98
+
99
+ | Method and route | Purpose |
100
+ | --- | --- |
101
+ | `GET /api/workspace/overview` | Workspace totals, projects, recent memories, and current activity state. |
102
+ | `GET /api/workspace/memories` | Filter and page through saved memories. |
103
+ | `GET /api/workspace/graph` | Get project, agent, and memory nodes and their relationships. |
104
+ | `POST /api/workspace/context` | Send a project ID, query, budget, and cross-project choice. |
105
+ | `GET /api/workspace/activity` | Read the activity feed when enabled. |
106
+ | `GET /api/workspace/telemetry` | Read a page of journal events, with `project`, `cursor`, `journalId`, and `limit` options. |
107
+ | `POST /api/workspace/activity-report` | Write an explicit host report with a project, session, agent, and event kind. |
108
+ | `GET /api/workspace/features` | Read feature settings and their revision. |
109
+ | `POST /api/workspace/features` | Send a boolean `patch` and optional `expectedRevision`. |
110
+
111
+ Install the [bundled workflow skills](WORKFLOW_INTEGRATION.md) separately to give compatible clients task guidance.
Binary file
Binary file
@@ -0,0 +1,32 @@
1
+ # Agent Shadow Brain 7.1.0
2
+
3
+ This release adds focused task guidance and project skill installation on top of 7.0.0's durable memory and explained recall.
4
+
5
+ ## Changes
6
+
7
+ - Six bundled skills: workflow selection, implementation, debugging, review, research, and release.
8
+ - Project skill layouts for Codex, Claude Code, OpenCode, and DeepSeek Harness; portable files for other compatible clients.
9
+ - Preview-first installation that preserves project instruction text, detects local edits, validates destinations and stale plans, records ownership, and backs up managed updates.
10
+ - CLI skill catalog/install commands and advisory request analysis with explicit overrides.
11
+ - Read-only MCP guidance tools and public library functions/types.
12
+
13
+ The intended workflow is understand, plan when useful, execute authorized work, and verify. A small question stays a small answer. Plan-only, diagnosis-only, and review-only instructions keep their scope. No provider/model setup, credentials, new runtime dependencies, or global configuration changes are required.
14
+
15
+ ## Start
16
+
17
+ ```bash
18
+ npm install -g @theihtisham/agent-shadow-brain@7.1.0
19
+ # Run in the project root:
20
+ shadow-brain skills install . --target codex
21
+ shadow-brain skills install . --target codex --apply
22
+ ```
23
+
24
+ Choose `claude-code`, `opencode`, `deepseek-harness`, `portable`, or `all` instead as appropriate. See the [integration guide](../WORKFLOW_INTEGRATION.md) for host requirements, updates, conflicts, and examples.
25
+
26
+ ## Verification and limits
27
+
28
+ The release gate covers TypeScript, regression tests, installer preservation/failure scenarios, representative task-routing scenarios, skill frontmatter validation, and an installed npm tarball in a clean consumer project. CI runs on Windows and Linux with Node 22, 24, and 26. Final run counts and publication evidence are recorded in the release report.
29
+
30
+ The router is a deterministic English-language heuristic; host interpretation and explicit options handle ambiguity. The package provides guidance, not autonomous task execution or authorization. Documented host layouts and automated installation tests do not prove that a running host discovered or followed a skill. DeepSeek Harness needs its skill/context plugins enabled.
31
+
32
+ This is an additive 7.x release. No memory-store schema migration is introduced; retain the 7.0.0 upgrade guidance when coming from 6.x.
@@ -0,0 +1,40 @@
1
+ # Agent Shadow Brain 7.1.3
2
+
3
+ Version 7.1.3 connects memory review, the workspace graph, and the context handed to an agent. The new live operations portal shows recorded agent activity and tool timing.
4
+
5
+ ## Live operations
6
+
7
+ Open `/live` on the dashboard address for the session list, activity network, charts, and event timeline. Measured activity comes from the local MCP service. Hosts can explicitly report task phases and tool spans. The portal labels the two sources and uses matched, measured calls for timing metrics.
8
+
9
+ The shared local journal keeps the latest 500 metadata events. It tracks sequence and journal identity so readers can continue from a cursor and detect gaps or a restarted journal. `activityRecording` controls new records and `liveActivity` controls visibility. Both are enabled by default and can be changed with the other three runtime controls. Use `activity report` to send a host report and `activity tail` to inspect the journal.
10
+
11
+ ## Memory review and relations
12
+
13
+ Open a memory in the workspace to see its content, recorded references, current review, and history. Set its state to active, archived, or contested. Record a same-project link of type related, supports, contradicts, or supersedes. Supersession links point from the replacement to the older memory.
14
+
15
+ Context assembly filters inactive memories before ranking, preserves relevant relation and source provenance when collapsing duplicates, and labels recorded contradictions. If a replacement disappears, its older memory stays superseded until you remove the relation. Manual reviews and links record decisions to inspect against the underlying evidence.
16
+
17
+ The `curate show`, `curate review`, `curate link`, and `curate unlink` commands use the same annotation store as the workspace. The store validates project identities, revisions, duplicate relations, and supersession cycles. It keeps an audit trail alongside the existing memory store.
18
+
19
+ ## Connect a client
20
+
21
+ The workspace's Integrations view shows project skill-file presence, supported client capabilities, and local runtime and storage checks. Codex, Claude Code, OpenCode, and DeepSeek Harness can use their documented project skill layouts. Host-side discovery depends on client configuration.
22
+
23
+ The standalone MCP service now runs over standard input and output.
24
+
25
+ ```bash
26
+ shadow-brain mcp --stdio
27
+ ```
28
+
29
+ Configure this command as the executable and arguments in a compatible client. The service exposes nine read-only memory, context, and workflow tools plus the explicit `activity_report` write tool. Activity recording uses a separate journal from the memory store. DeepSeek Harness needs its MCP client and filesystem skill plugins enabled. See the [workspace guide](../WORKSPACE.md) and [skill integration guide](../WORKFLOW_INTEGRATION.md).
30
+
31
+ ## Upgrade
32
+
33
+ ```bash
34
+ npm install -g @theihtisham/agent-shadow-brain@7.1.3
35
+ shadow-brain dash . --no-analysis
36
+ ```
37
+
38
+ Existing memories retain schema version 1. Keep `global.json` and the separate `memory-annotations.json` when backing up your memory and review state. Follow the [7.0 migration notes](RELEASE_NOTES_v7.0.0.md) if you are upgrading from 6.x.
39
+
40
+ This upgrade uses the maintainer-requested version **7.1.3**, published after 7.2.0. It is assigned the npm `latest` tag, but semver update tools may still prefer 7.2.0. Use the exact install command above.
@@ -0,0 +1,24 @@
1
+ # Agent Shadow Brain 7.2.0
2
+
3
+ Version 7.2 makes it easier to see what agents have saved and choose what to hand to a new session. The default local workspace has five views for overview, memory search, the project and agent graph, context assembly, and feature controls. The previous dashboard remains available at `/advanced`.
4
+
5
+ ## What changed
6
+
7
+ - Context packs rank memories for the selected project and task, collapse exact duplicates, retain recorded source provenance, and explain what fits the rendered budget. Cross-project context requires both a setting and explicit opt-in.
8
+ - Session briefings use the same assembler. Cached briefings follow the current task and feature settings. Disabling automatic briefings suppresses both new and cached output.
9
+ - Four persistent switches control context packs, cross-project access within context packs, automatic briefings, and dashboard activity. The settings store validates updates, detects revision conflicts, and replaces saved settings atomically.
10
+ - The CLI adds `context-pack` and `features list|set`. MCP clients can call `context_pack` and `feature_flags`. Library consumers can import the assembler and settings store directly.
11
+ - The README includes a conceptual memory-flow illustration and screenshots from the running workspace with synthetic data.
12
+
13
+ ## Start the workspace
14
+
15
+ ```bash
16
+ npm install -g @theihtisham/agent-shadow-brain@7.2.0
17
+ shadow-brain dash . --no-analysis
18
+ ```
19
+
20
+ From a second terminal, run `shadow-brain context-pack "import retry behavior" --project . --token-budget 1200` to inspect what an agent would receive for that task.
21
+
22
+ Memory storage keeps schema version 1. The six bundled skills and the existing skill install workflow remain available. If you are coming from 6.x, follow the [7.0 migration notes](RELEASE_NOTES_v7.0.0.md).
23
+
24
+ [Workspace guide](../WORKSPACE.md) · [Skill integration guide](../WORKFLOW_INTEGRATION.md)