@theihtisham/agent-shadow-brain 7.1.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.
- package/CHANGELOG.md +22 -0
- package/README.md +47 -407
- package/dist/activity-cli.d.ts +3 -0
- package/dist/activity-cli.d.ts.map +1 -0
- package/dist/activity-cli.js +78 -0
- package/dist/activity-cli.js.map +1 -0
- package/dist/adapters/index.d.ts +2 -1
- package/dist/adapters/index.d.ts.map +1 -1
- package/dist/adapters/index.js +3 -2
- package/dist/adapters/index.js.map +1 -1
- package/dist/brain/activity-journal.d.ts +82 -0
- package/dist/brain/activity-journal.d.ts.map +1 -0
- package/dist/brain/activity-journal.js +314 -0
- package/dist/brain/activity-journal.js.map +1 -0
- package/dist/brain/activity-reporting.d.ts +14 -0
- package/dist/brain/activity-reporting.d.ts.map +1 -0
- package/dist/brain/activity-reporting.js +17 -0
- package/dist/brain/activity-reporting.js.map +1 -0
- package/dist/brain/auto-update.js +1 -1
- package/dist/brain/brain-portability.js +1 -1
- package/dist/brain/client-integrations.d.ts +61 -0
- package/dist/brain/client-integrations.d.ts.map +1 -0
- package/dist/brain/client-integrations.js +98 -0
- package/dist/brain/client-integrations.js.map +1 -0
- package/dist/brain/context-assembly.d.ts +76 -0
- package/dist/brain/context-assembly.d.ts.map +1 -0
- package/dist/brain/context-assembly.js +305 -0
- package/dist/brain/context-assembly.js.map +1 -0
- package/dist/brain/feature-settings.d.ts +58 -0
- package/dist/brain/feature-settings.d.ts.map +1 -0
- package/dist/brain/feature-settings.js +241 -0
- package/dist/brain/feature-settings.js.map +1 -0
- package/dist/brain/global-brain.d.ts +7 -0
- package/dist/brain/global-brain.d.ts.map +1 -1
- package/dist/brain/global-brain.js +19 -4
- package/dist/brain/global-brain.js.map +1 -1
- package/dist/brain/mcp-server.d.ts +21 -1
- package/dist/brain/mcp-server.d.ts.map +1 -1
- package/dist/brain/mcp-server.js +191 -25
- package/dist/brain/mcp-server.js.map +1 -1
- package/dist/brain/mcp-stdio.d.ts +12 -0
- package/dist/brain/mcp-stdio.d.ts.map +1 -0
- package/dist/brain/mcp-stdio.js +134 -0
- package/dist/brain/mcp-stdio.js.map +1 -0
- package/dist/brain/memory-annotations.d.ts +97 -0
- package/dist/brain/memory-annotations.d.ts.map +1 -0
- package/dist/brain/memory-annotations.js +388 -0
- package/dist/brain/memory-annotations.js.map +1 -0
- package/dist/brain/memory-graph.d.ts.map +1 -1
- package/dist/brain/memory-graph.js +12 -23
- package/dist/brain/memory-graph.js.map +1 -1
- package/dist/brain/memory-sources.d.ts +8 -0
- package/dist/brain/memory-sources.d.ts.map +1 -0
- package/dist/brain/memory-sources.js +27 -0
- package/dist/brain/memory-sources.js.map +1 -0
- package/dist/brain/orchestrator.js +1 -1
- package/dist/brain/subconscious.d.ts +21 -24
- package/dist/brain/subconscious.d.ts.map +1 -1
- package/dist/brain/subconscious.js +82 -218
- package/dist/brain/subconscious.js.map +1 -1
- package/dist/brain/workflow-skills.d.ts +5 -5
- package/dist/cli.js +19 -2
- package/dist/cli.js.map +1 -1
- package/dist/context-cli.d.ts +3 -0
- package/dist/context-cli.d.ts.map +1 -0
- package/dist/context-cli.js +56 -0
- package/dist/context-cli.js.map +1 -0
- package/dist/curation-cli.d.ts +4 -0
- package/dist/curation-cli.d.ts.map +1 -0
- package/dist/curation-cli.js +118 -0
- package/dist/curation-cli.js.map +1 -0
- package/dist/dashboard/live-workspace-html.d.ts +2 -0
- package/dist/dashboard/live-workspace-html.d.ts.map +1 -0
- package/dist/dashboard/live-workspace-html.js +893 -0
- package/dist/dashboard/live-workspace-html.js.map +1 -0
- package/dist/dashboard/server.d.ts +1 -0
- package/dist/dashboard/server.d.ts.map +1 -1
- package/dist/dashboard/server.js +53 -18
- package/dist/dashboard/server.js.map +1 -1
- package/dist/dashboard/v6-dashboard-html.d.ts +1 -1
- package/dist/dashboard/v6-dashboard-html.d.ts.map +1 -1
- package/dist/dashboard/v6-dashboard-html.js +7 -29
- package/dist/dashboard/v6-dashboard-html.js.map +1 -1
- package/dist/dashboard/workspace-api.d.ts +16 -0
- package/dist/dashboard/workspace-api.d.ts.map +1 -0
- package/dist/dashboard/workspace-api.js +309 -0
- package/dist/dashboard/workspace-api.js.map +1 -0
- package/dist/dashboard/workspace-html.d.ts +2 -0
- package/dist/dashboard/workspace-html.d.ts.map +1 -0
- package/dist/dashboard/workspace-html.js +2132 -0
- package/dist/dashboard/workspace-html.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/integration-cli.d.ts +3 -0
- package/dist/integration-cli.d.ts.map +1 -0
- package/dist/integration-cli.js +14 -0
- package/dist/integration-cli.js.map +1 -0
- package/dist/types.d.ts +12 -3
- package/dist/types.d.ts.map +1 -1
- package/docs/WORKSPACE.md +111 -0
- package/docs/assets/context-flow-v7.2.png +0 -0
- package/docs/assets/live-v7.1.3.png +0 -0
- package/docs/assets/memory-detail-v7.1.3.png +0 -0
- package/docs/assets/overview-v7.1.3.png +0 -0
- package/docs/assets/workspace-graph-v7.2.png +0 -0
- package/docs/assets/workspace-overview-v7.2.png +0 -0
- package/docs/launch/RELEASE_NOTES_v7.1.3.md +40 -0
- package/docs/launch/RELEASE_NOTES_v7.2.0.md +24 -0
- package/package.json +20 -121
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [7.1.3] - 2026-11-11 - Live activity and curated memory
|
|
4
|
+
|
|
5
|
+
This release follows 7.2.0 using the version number requested by the maintainer. Install `@7.1.3` explicitly when upgrading from 7.2.0.
|
|
6
|
+
|
|
7
|
+
- Added a live portal with an event-driven session network, measured tool charts, host-reported phases, timeline, pause, and reduced motion.
|
|
8
|
+
- Added a bounded cross-process activity journal, cursor and reset detection, metadata-only MCP instrumentation, host reporting, and separate recording and visibility controls.
|
|
9
|
+
- Added memory review, typed relations, audit history, and project-scoped curation through the workspace and CLI.
|
|
10
|
+
- Excluded archived, contested, and superseded memories before context ranking; briefings refresh when reviews change.
|
|
11
|
+
- Added standard MCP stdio, client capability checks, project skill diagnostics, and generated launch configuration.
|
|
12
|
+
- Improved workspace navigation, source coverage, graph filtering, context explanations, dark mode, and mobile layouts.
|
|
13
|
+
- Fixed empty-project graph scope, preservation of pending writes during read refresh, and per-client attach/detach targeting.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [7.2.0] - 2026-11-11 - Context Packs and Workspace
|
|
17
|
+
|
|
18
|
+
- Make the local workspace the default dashboard with overview, searchable memories, graph, context, and feature controls. Keep the previous dashboard at `/advanced`.
|
|
19
|
+
- Build size-bounded, project-scoped context packs with ranked memory selection, duplicate handling, recorded source provenance, and selection explanations.
|
|
20
|
+
- Use context packs for session briefings. Key cached results to the task and current settings, and check enablement before reading or returning a briefing.
|
|
21
|
+
- Persist four validated feature settings for context assembly, explicit cross-project context, automatic briefings, and dashboard activity delivery.
|
|
22
|
+
- Add `context-pack` and `features list|set` commands, read-only `context_pack` and `feature_flags` MCP tools, and public context and settings APIs.
|
|
23
|
+
- Refresh the README and workspace guide with a concept illustration and dashboard screenshots.
|
|
24
|
+
|
|
3
25
|
## [7.1.0] - 2026-11-11 - Focused Workflows and Portable Skills
|
|
4
26
|
|
|
5
27
|
- Bundle six reusable skills for proportionate planning, implementation, diagnosis, review, research, and release work.
|
package/README.md
CHANGED
|
@@ -1,450 +1,90 @@
|
|
|
1
1
|
# Agent Shadow Brain
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Agent Shadow Brain gives coding agents a shared local memory and a workspace you can inspect. Keep project decisions and sources together, review what is still useful, and build focused context for the next task. The live portal shows recorded sessions, tool calls, and host-reported task phases.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+

|
|
6
6
|
|
|
7
|
+
*Concept illustration of the memory and context flow.*
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
## Get started
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
## What's New in 7.1.0
|
|
13
|
-
|
|
14
|
-
Six built-in skills help an agent understand the request, plan in proportion to the work, carry out authorized changes, and verify the result. Simple answers stay simple. Planning-only, diagnosis-only, and review-only requests keep their boundaries; existing authorization carries forward.
|
|
15
|
-
|
|
16
|
-
- **Focused skills:** `shadow-workflow`, `shadow-implement`, `shadow-debug`, `shadow-review`, `shadow-research`, and `shadow-release`.
|
|
17
|
-
- **Project integrations:** Codex, Claude Code, OpenCode, and DeepSeek Harness skill directories, plus a portable option. Preview installation first; preserve existing project instructions and locally edited skills.
|
|
18
|
-
- **Workflow guidance:** CLI, library, and MCP interfaces suggest steps and relevant skills. Routing is a local English-language heuristic with explicit overrides. The host agent interprets the request and performs the work.
|
|
19
|
-
- **No provider setup required:** skills and workflow analysis run locally without model calls, credentials, background agents, or global configuration changes.
|
|
20
|
-
|
|
21
|
-
Run these commands **from your project root**:
|
|
11
|
+
Use Node.js 22.12+ within 22.x, Node.js 24.x, or Node.js 26+.
|
|
22
12
|
|
|
23
13
|
```bash
|
|
24
|
-
shadow-brain
|
|
25
|
-
shadow-brain
|
|
26
|
-
shadow-brain skills install . --target codex --apply
|
|
27
|
-
shadow-brain workflow analyze "Investigate and fix the failing export" --json
|
|
14
|
+
npm install -g @theihtisham/agent-shadow-brain@7.1.3
|
|
15
|
+
shadow-brain dash . --no-analysis
|
|
28
16
|
```
|
|
29
17
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
See the [integration guide](docs/WORKFLOW_INTEGRATION.md) for selection, preservation behavior, library/MCP examples, and compatibility sources; [7.1 release notes](docs/launch/RELEASE_NOTES_v7.1.0.md) describe the scope.
|
|
33
|
-
|
|
34
|
-
## Memory improvements in 7.0.0
|
|
35
|
-
|
|
36
|
-
- **Durable multi-agent memory.** Saves lock, reload, and merge the latest store so independent agents cannot replace each other's new memories. Queued writes acknowledge success after persistence. Failed operations remain retryable and visible in storage health.
|
|
37
|
-
- **Explainable recall.** Results include matched keywords, score components, and identities reporting the same normalized content within the same project and category. Unrelated notes no longer inflate scores. Scores are ranking heuristics, not probabilities of truth or proof of independent verification.
|
|
38
|
-
- **Storage diagnostics.** Use `shadow-brain storage-health --json` or MCP `global_storage_health` to inspect errors and pending operations. Invalid or unsupported stores fail explicitly and remain unchanged.
|
|
39
|
-
- **Safer setup and packaging.** Installation no longer edits agent settings. Help, version, and memory diagnostics do not load provider configuration. Dependencies are refreshed, activity-log text is escaped, and package tests install a real tarball into a fresh consumer project.
|
|
40
|
-
|
|
41
|
-
### Upgrade from 6.x
|
|
18
|
+
Run the dashboard command from your project directory. It opens the local workspace and skips background project analysis. Open the printed address if the browser does not start automatically. Use a second terminal for other commands while the dashboard is running.
|
|
42
19
|
|
|
43
|
-
|
|
20
|
+
## Watch activity as it happens
|
|
44
21
|
|
|
45
|
-
|
|
22
|
+
Open **Live** in the workspace, or add `/live` to its address. Select a session to inspect its event network, reported phases, and timeline. Charts summarize tool throughput, errors, and measured duration in the loaded window. Pause updates or reduce motion at any time.
|
|
46
23
|
|
|
47
|
-
|
|
24
|
+

|
|
48
25
|
|
|
49
|
-
|
|
50
|
-
shadow-brain storage-health --json
|
|
51
|
-
shadow-brain storage-health --db ./global.json --json
|
|
52
|
-
shadow-brain recall-explain "deployment rollback" --limit 5
|
|
53
|
-
shadow-brain recall-explain "database migration" --project . --min-confidence 0.4
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
`storage-health` validates readability and schema, reports JSON even on failure, and exits with code 1 for an invalid store. It does not repair or rewrite an existing store; when checking a missing store it may create its parent directory. `lastSuccessfulSync` describes the current process only. The MCP health tool inspects existing process state without initializing or flushing it.
|
|
57
|
-
|
|
58
|
-
The library exports `GlobalBrain`, `getGlobalBrain`, and their public types:
|
|
59
|
-
|
|
60
|
-
```js
|
|
61
|
-
import { getGlobalBrain } from '@theihtisham/agent-shadow-brain';
|
|
62
|
-
const brain = getGlobalBrain({ dbPath: './global.json' });
|
|
63
|
-
await brain.init();
|
|
64
|
-
console.log(brain.recallScored({ keywords: ['deployment'], limit: 5 }));
|
|
65
|
-
console.log(brain.getStorageHealth());
|
|
66
|
-
await brain.shutdown();
|
|
67
|
-
```
|
|
26
|
+
*Running portal with scripted local MCP clients and synthetic data. Client labels in this demonstration do not prove native client installation or model connectivity.*
|
|
68
27
|
|
|
69
|
-
|
|
28
|
+
The standalone MCP service measures calls made through it. A connected host can explicitly report phases or its own tool events; these remain labeled **Host-reported**. Activity recording stores bounded metadata, not prompts, tool arguments, or memory content. The latest 500 events are retained, with visible notices for incomplete windows.
|
|
70
29
|
|
|
71
|
-
##
|
|
30
|
+
## Review the context your agent uses
|
|
72
31
|
|
|
73
|
-
- **
|
|
74
|
-
- **
|
|
75
|
-
- **
|
|
76
|
-
- **
|
|
77
|
-
- **
|
|
78
|
-
- **
|
|
32
|
+
- **Overview** shows project inventory, review states, recorded-source coverage, and recent activity.
|
|
33
|
+
- **Memories** lets you inspect content, sources, review history, and links. Mark entries active, archived, or contested.
|
|
34
|
+
- **Graph** connects projects, agents, and memories, including explicit support, contradiction, and replacement links.
|
|
35
|
+
- **Context** builds a copyable project pack and explains what was selected or excluded.
|
|
36
|
+
- **Integrations** shows client capabilities, project skill-file presence, and safe local diagnostics.
|
|
37
|
+
- **Features** controls context packs, cross-project context, automatic briefings, activity visibility, and activity recording separately.
|
|
79
38
|
|
|
39
|
+

|
|
80
40
|
|
|
81
|
-
|
|
41
|
+

|
|
82
42
|
|
|
83
|
-
|
|
84
|
-
- Recalls memories by project, agent, category, and keywords.
|
|
85
|
-
- Generates source-backed resume packs for fresh sessions, account switches, context compaction, and handoffs.
|
|
86
|
-
- Audits memory quality: source coverage, stale entries, duplicates, low-quality notes, recall health.
|
|
87
|
-
- Creates verified memory seed drafts from dashboard/API, then requires user, agent, or dual approval before writing to durable memory.
|
|
88
|
-
- Exports JSONL rows for evals, distillation, or local fine-tuning pipelines.
|
|
89
|
-
- Provides CLI, dashboard API, and MCP tool surfaces.
|
|
90
|
-
- Includes safety helpers such as hook audit, detach, and action firewall checks.
|
|
91
|
-
- Works without telemetry and without an API key for local memory features.
|
|
43
|
+
*Workspace screenshots use synthetic memories. Recorded references and manual reviews help you check a claim; they do not establish its truth.*
|
|
92
44
|
|
|
93
|
-
|
|
45
|
+
Open **Advanced tools** or visit `/advanced` for the previous dashboard. [Workspace guide](docs/WORKSPACE.md)
|
|
94
46
|
|
|
95
|
-
|
|
96
|
-
- It does not guarantee perfect recall.
|
|
97
|
-
- It does not replace project docs, tests, source control, or human review.
|
|
98
|
-
- It does not make every listed agent automatically available. Agent support depends on local installation and hook/config compatibility.
|
|
99
|
-
- It does not publish or sync data unless you explicitly use export, sync, or other sharing commands.
|
|
100
|
-
|
|
101
|
-
## Install
|
|
47
|
+
## Build a context pack
|
|
102
48
|
|
|
103
49
|
```bash
|
|
104
|
-
|
|
50
|
+
shadow-brain context-pack "import retry behavior" --project . --token-budget 1200
|
|
51
|
+
shadow-brain features list
|
|
52
|
+
shadow-brain features set automaticBriefing off
|
|
105
53
|
```
|
|
106
54
|
|
|
107
|
-
|
|
55
|
+
A pack starts with the selected project's memories, excludes archived, contested, and superseded entries before ranking, collapses exact duplicates, and fits the rendered text to a size budget. Add `--json` to see selection reasons, sources, and recorded relationships. Cross-project context requires both an enabled feature setting and an explicit request. Token counts are estimates.
|
|
108
56
|
|
|
109
|
-
|
|
110
|
-
shadow-brain --help
|
|
111
|
-
asb --help
|
|
112
|
-
```
|
|
57
|
+
Automatic briefings use the same context selection. Cached briefings follow the current task, feature settings, and memory reviews. Inspect and change reviews in the workspace or with `shadow-brain curate --help`.
|
|
113
58
|
|
|
114
|
-
|
|
59
|
+
## Connect your coding client
|
|
115
60
|
|
|
116
61
|
```bash
|
|
117
|
-
|
|
62
|
+
shadow-brain clients config
|
|
63
|
+
shadow-brain mcp --stdio
|
|
118
64
|
```
|
|
119
65
|
|
|
120
|
-
|
|
66
|
+
`clients config` prints a launch configuration for the installed CLI. Add it to a compatible MCP client. The stdio service provides nine read-only memory and workflow tools plus an explicit `activity_report` tool for host reports. It runs without loading provider configuration. Configure your client to use `context_pack` for curated context.
|
|
121
67
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
```bash
|
|
125
|
-
shadow-brain audit-hooks .
|
|
126
|
-
shadow-brain live-brain status .
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
Only attach after you review what will be changed:
|
|
130
|
-
|
|
131
|
-
```bash
|
|
132
|
-
shadow-brain attach-all .
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
Detach later if needed:
|
|
136
|
-
|
|
137
|
-
```bash
|
|
138
|
-
shadow-brain detach-all .
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
## v6.0.3: Live Brain
|
|
142
|
-
|
|
143
|
-
The 6.0.3 release focuses on practical long-memory improvement for agents.
|
|
144
|
-
|
|
145
|
-
### Live Brain Status
|
|
146
|
-
|
|
147
|
-
```bash
|
|
148
|
-
shadow-brain live-brain status .
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
Shows:
|
|
152
|
-
|
|
153
|
-
- memory count
|
|
154
|
-
- average memory quality
|
|
155
|
-
- source coverage
|
|
156
|
-
- stale memories
|
|
157
|
-
- duplicate clusters
|
|
158
|
-
- recall eval score
|
|
159
|
-
- recommended cleanup actions
|
|
160
|
-
|
|
161
|
-
JSON output:
|
|
162
|
-
|
|
163
|
-
```bash
|
|
164
|
-
shadow-brain live-brain status . --json
|
|
165
|
-
```
|
|
68
|
+
Codex, Claude Code, OpenCode, and DeepSeek Harness have documented integration paths. DeepSeek Harness requires its MCP client and filesystem skill plugins. The Integrations view checks project skill files; loading them in a host is a separate step. [Connection and activity guide](docs/WORKSPACE.md)
|
|
166
69
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
Generate a markdown briefing for a fresh agent session:
|
|
170
|
-
|
|
171
|
-
```bash
|
|
172
|
-
shadow-brain live-brain brief . -o SHADOW_BRAIN_AGENT_BRIEF.md
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
The briefing includes:
|
|
176
|
-
|
|
177
|
-
- rules for agents
|
|
178
|
-
- top source-backed memories
|
|
179
|
-
- memory warnings
|
|
180
|
-
- recall health
|
|
181
|
-
- commands agents should run next
|
|
182
|
-
|
|
183
|
-
### Recall Eval
|
|
184
|
-
|
|
185
|
-
Check whether the brain can retrieve useful memories for common agent tasks:
|
|
186
|
-
|
|
187
|
-
```bash
|
|
188
|
-
shadow-brain live-brain eval .
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
Custom eval queries use pipe separators:
|
|
192
|
-
|
|
193
|
-
```bash
|
|
194
|
-
shadow-brain live-brain eval . --queries "current blocker|do not repeat|verified command"
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
### Memory Hygiene
|
|
198
|
-
|
|
199
|
-
List concrete cleanup and learning actions:
|
|
200
|
-
|
|
201
|
-
```bash
|
|
202
|
-
shadow-brain live-brain hygiene .
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
This highlights missing sources, stale memories, duplicates, weak recall, and missing project-scoped memories.
|
|
206
|
-
|
|
207
|
-
### Training/Eval Export
|
|
208
|
-
|
|
209
|
-
Export source-backed memories as JSONL:
|
|
210
|
-
|
|
211
|
-
```bash
|
|
212
|
-
shadow-brain live-brain train-pack . --out shadow-brain-training.jsonl
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
This is useful for:
|
|
216
|
-
|
|
217
|
-
- retrieval evals
|
|
218
|
-
- local distillation experiments
|
|
219
|
-
- supervised fine-tuning datasets
|
|
220
|
-
- memory regression tests
|
|
221
|
-
|
|
222
|
-
The export is only data preparation. You choose the downstream training/eval tool.
|
|
223
|
-
|
|
224
|
-
## Core Memory Commands
|
|
225
|
-
|
|
226
|
-
Recall from the global brain:
|
|
227
|
-
|
|
228
|
-
```bash
|
|
229
|
-
shadow-brain global recall --query "current blocker next step" --json --limit 8
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
Show global stats:
|
|
233
|
-
|
|
234
|
-
```bash
|
|
235
|
-
shadow-brain global stats
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
Create a source-backed resume seed:
|
|
239
|
-
|
|
240
|
-
```bash
|
|
241
|
-
shadow-brain resume-seed . -o SHADOW_BRAIN_RESUME_SEED.md
|
|
242
|
-
```
|
|
70
|
+
## Add skills to a project
|
|
243
71
|
|
|
244
|
-
|
|
72
|
+
Six bundled skills cover workflow selection, implementation, debugging, review, research, and release. They help a client focus on the requested work, plan when useful, and verify the result.
|
|
245
73
|
|
|
246
74
|
```bash
|
|
247
|
-
shadow-brain
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
Create a cross-agent handoff packet:
|
|
251
|
-
|
|
252
|
-
```bash
|
|
253
|
-
shadow-brain handoff codex claude-code . --task "continue release verification"
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
Record a durable memory from a script:
|
|
257
|
-
|
|
258
|
-
```bash
|
|
259
|
-
node tools/record-global-memory.mjs ^
|
|
260
|
-
--project-dir "." ^
|
|
261
|
-
--project-name "my-project" ^
|
|
262
|
-
--agent codex ^
|
|
263
|
-
--category "project.lesson" ^
|
|
264
|
-
--importance 0.8 ^
|
|
265
|
-
--tags "memory,release" ^
|
|
266
|
-
--sources "README.md,CHANGELOG.md" ^
|
|
267
|
-
--content "Keep release notes source-backed and verify npm metadata before publish."
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
## Dashboard
|
|
271
|
-
|
|
272
|
-
Start the local dashboard:
|
|
273
|
-
|
|
274
|
-
```bash
|
|
275
|
-
shadow-brain dash . --no-open --port 7341
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
For a fast UI/API-only launch on a large repo:
|
|
279
|
-
|
|
280
|
-
```bash
|
|
281
|
-
shadow-brain dash . --no-open --no-analysis --host 127.0.0.1 --port 7341
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
Open:
|
|
285
|
-
|
|
286
|
-
```text
|
|
287
|
-
http://127.0.0.1:7341
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
The v6 dashboard includes a **Live Brain** tab for memory health, source coverage, recall evals, hygiene actions, top memories, and the generated agent briefing.
|
|
291
|
-
|
|
292
|
-
It also includes:
|
|
293
|
-
|
|
294
|
-
- **Memory Browser intelligence cards** for total memories, source coverage, fresh learning, seed queue, top categories, agent coverage, and top tags.
|
|
295
|
-
- **Memory Seeder** for controlled research-to-memory workflows. Drafts stay out of the global brain until approval is complete.
|
|
296
|
-
- **Token Economy accuracy split**: current runtime agent is shown separately from historical model spend, so old Claude/Cursor spend records do not imply the dashboard is running that agent.
|
|
297
|
-
|
|
298
|
-
### Realtime Activity (new in 6.1.0)
|
|
299
|
-
|
|
300
|
-
The dashboard now streams brain activity live over its WebSocket instead of polling. Memory writes, dreams, seed drafts/commits, collisions, sub-agent spawns, and consolidation cycles appear the instant they happen.
|
|
301
|
-
|
|
302
|
-
- **Live Pulse** card on the Overview with a streaming mini-feed and an events/min rate.
|
|
303
|
-
- **Activity Log** tab with filter chips, a pulsing LIVE badge, pause/resume, clear, search, and an events/min sparkline.
|
|
304
|
-
- **Connection indicator** in the header — green when the realtime socket is live, amber while reconnecting.
|
|
305
|
-
- **Cross-process aware**: a memory written by an agent in a *different* terminal is picked up by watching `~/.shadow-brain/global.json`, so the feed reflects the whole machine, not just this process.
|
|
306
|
-
|
|
307
|
-
Polling remains as a 15-second reconciliation fallback; live events arrive in well under a second.
|
|
308
|
-
|
|
309
|
-
### Intelligence Hub — Memory Constellation (new in 6.2.0)
|
|
310
|
-
|
|
311
|
-
A new **Intelligence** tab turns the brain into an interactive graph. Every memory, project, agent, and tag is a node in a force-directed **Memory Constellation**, sized by importance (PageRank blended with each memory's own score) and linked by project, author, tags, and shared-tag relatedness.
|
|
312
|
-
|
|
313
|
-
- **Interactive**: scroll to zoom, drag to pan, click a node to focus its neighborhood and open a detail drawer; hover for a tooltip.
|
|
314
|
-
- **Filters + search** by node type (memory / project / agent / tag).
|
|
315
|
-
- **Live**: new memories pulse into the graph over the realtime stream.
|
|
316
|
-
- **Analytics strip**: source-coverage gauge, agent-contribution and category charts, tag cloud, and a recent-memory feed.
|
|
317
|
-
- Works instantly on your existing `~/.shadow-brain/global.json` — no project analysis or setup step.
|
|
318
|
-
|
|
319
|
-
Several previously sparse tabs were also rebuilt with real visualizations: **Pre-Mortem** (risk matrix + failure cards), **Attention** (weighted heat bars), **Calibration** (Brier/trust chart), **Reputation** (trust rings), **Causal Chains** (node-link DAG), and **Branch Brains** (stat cards).
|
|
320
|
-
|
|
321
|
-
Constellation API:
|
|
322
|
-
|
|
323
|
-
```text
|
|
324
|
-
GET /api/v6/memory-graph
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
Memory seeding API:
|
|
329
|
-
|
|
330
|
-
```text
|
|
331
|
-
GET /api/v6/seed-drafts
|
|
332
|
-
POST /api/v6/seed-draft
|
|
333
|
-
POST /api/v6/seed-approve
|
|
334
|
-
POST /api/v6/seed-reject
|
|
335
|
-
POST /api/v6/seed-commit
|
|
336
|
-
GET /api/v6/memory-intelligence
|
|
337
|
-
```
|
|
338
|
-
|
|
339
|
-
Useful API endpoints:
|
|
340
|
-
|
|
341
|
-
```text
|
|
342
|
-
GET/POST /api/v6/live-brain
|
|
343
|
-
GET/POST /api/v6/resume-pack
|
|
344
|
-
GET/POST /api/v6/ww2br-recall
|
|
345
|
-
GET/POST /api/v6/memory-browser
|
|
346
|
-
```
|
|
347
|
-
|
|
348
|
-
Example:
|
|
349
|
-
|
|
350
|
-
```bash
|
|
351
|
-
curl "http://127.0.0.1:7341/api/v6/live-brain?projectDir=C:/path/to/project"
|
|
352
|
-
```
|
|
353
|
-
|
|
354
|
-
## MCP Tools
|
|
355
|
-
|
|
356
|
-
The MCP server exposes memory and agent-control tools for compatible clients.
|
|
357
|
-
|
|
358
|
-
New in 6.3.0:
|
|
359
|
-
|
|
360
|
-
- `global_recall_scored` — recall with a per-memory confidence score (recency, author importance, cross-agent corroboration, prior usage, keyword relevance). Results are ranked by confidence so agents can weight memories instead of trusting every hit equally. Supports `minConfidence` to drop low-trust hits.
|
|
361
|
-
|
|
362
|
-
New in 6.0.3:
|
|
363
|
-
|
|
364
|
-
- `live_brain_status`
|
|
365
|
-
- `live_brain_brief`
|
|
366
|
-
- `live_brain_train_pack`
|
|
367
|
-
|
|
368
|
-
Existing useful tools include:
|
|
369
|
-
|
|
370
|
-
- `global_recall`
|
|
371
|
-
- `global_recall_scored`
|
|
372
|
-
- `global_stats`
|
|
373
|
-
- `global_timeline`
|
|
374
|
-
- `subconscious_inject`
|
|
375
|
-
- `agent_handoff`
|
|
376
|
-
- `firewall_check`
|
|
377
|
-
|
|
378
|
-
Start MCP from the dashboard API or existing CLI/server integration, depending on your setup.
|
|
379
|
-
|
|
380
|
-
## How Agents Should Use It
|
|
381
|
-
|
|
382
|
-
Recommended workflow for complex work:
|
|
383
|
-
|
|
384
|
-
1. Run `shadow-brain live-brain status <project>`.
|
|
385
|
-
2. Generate or read a live briefing.
|
|
386
|
-
3. Verify current project docs and source files.
|
|
387
|
-
4. Work normally.
|
|
388
|
-
5. Record only durable, source-backed lessons after proof.
|
|
389
|
-
6. Run recall evals when memory quality starts to drift.
|
|
390
|
-
|
|
391
|
-
Good memories are short, action-oriented, and source-backed:
|
|
392
|
-
|
|
393
|
-
```text
|
|
394
|
-
[lesson:release-readme-v1] Before publishing, verify package.json version, package-lock root version, README install commands, build output, and npm pack contents.
|
|
395
|
-
Sources: package.json; package-lock.json; README.md
|
|
396
|
-
Tags: release,npm,verification
|
|
397
|
-
```
|
|
398
|
-
|
|
399
|
-
Bad memories are vague:
|
|
400
|
-
|
|
401
|
-
```text
|
|
402
|
-
Make project better.
|
|
403
|
-
```
|
|
404
|
-
|
|
405
|
-
## Local Data
|
|
406
|
-
|
|
407
|
-
Default global brain:
|
|
408
|
-
|
|
409
|
-
```text
|
|
410
|
-
~/.shadow-brain/global.json
|
|
411
|
-
```
|
|
412
|
-
|
|
413
|
-
Project-local generated files may include:
|
|
414
|
-
|
|
415
|
-
```text
|
|
416
|
-
SHADOW_BRAIN_AGENT_BRIEF.md
|
|
417
|
-
SHADOW_BRAIN_RESUME_SEED.md
|
|
418
|
-
shadow-brain-training.jsonl
|
|
419
|
-
```
|
|
420
|
-
|
|
421
|
-
Do not store secrets, API keys, passwords, private keys, or raw credentials in memory content, metadata, tags, prompts, reports, or exported training data.
|
|
422
|
-
|
|
423
|
-
## Development
|
|
424
|
-
|
|
425
|
-
```bash
|
|
426
|
-
npm ci --ignore-scripts
|
|
427
|
-
npm run verify
|
|
428
|
-
npm run test:package
|
|
429
|
-
```
|
|
430
|
-
|
|
431
|
-
Focused tests:
|
|
432
|
-
|
|
433
|
-
```bash
|
|
434
|
-
npx vitest run tests/brain/live-brain.test.ts tests/brain/context-continuity.test.ts
|
|
75
|
+
shadow-brain skills list
|
|
76
|
+
shadow-brain skills install . --target codex
|
|
77
|
+
shadow-brain skills install . --target codex --apply
|
|
435
78
|
```
|
|
436
79
|
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
```powershell
|
|
440
|
-
npm.cmd run build
|
|
441
|
-
npx.cmd vitest run tests\brain\live-brain.test.ts
|
|
442
|
-
```
|
|
80
|
+
The first install command previews the files. The second applies the install and preserves your existing project instructions. Choose `claude-code`, `opencode`, `deepseek-harness`, or `portable` for other clients. Discovery depends on each client's skill support. [Skill integration guide](docs/WORKFLOW_INTEGRATION.md)
|
|
443
81
|
|
|
444
|
-
##
|
|
82
|
+
## Upgrade and reference
|
|
445
83
|
|
|
446
|
-
|
|
84
|
+
If you are upgrading from 6.x, back up `~/.shadow-brain/global.json` and stop older writers before using 7.x. The 7.x writers use a new lock protocol and keep memory schema version 1. [7.0 migration notes](docs/launch/RELEASE_NOTES_v7.0.0.md)
|
|
447
85
|
|
|
448
|
-
|
|
86
|
+
Version **7.1.3** is the requested release number for this upgrade, published after 7.2.0. Install it explicitly as shown above: semver-based update tools may otherwise prefer 7.2.0.
|
|
449
87
|
|
|
450
|
-
|
|
88
|
+
- [7.1.3 release notes](docs/launch/RELEASE_NOTES_v7.1.3.md)
|
|
89
|
+
- [Earlier CLI, MCP, seeding, and export guide](https://github.com/ihtishaam-dev/agent-shadow-brain/blob/v7.1.0/README.md)
|
|
90
|
+
- [Changelog](CHANGELOG.md) · [MIT license](LICENSE)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-cli.d.ts","sourceRoot":"","sources":["../src/activity-cli.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAyDpC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA2C/D"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as os from 'node:os';
|
|
2
|
+
import * as path from 'node:path';
|
|
3
|
+
import { Command } from 'commander';
|
|
4
|
+
import { activityJournalFor } from './brain/activity-journal.js';
|
|
5
|
+
import { reportAgentActivity } from './brain/activity-reporting.js';
|
|
6
|
+
import { FEATURE_SETTINGS_FILENAME, FeatureSettingsStore } from './brain/feature-settings.js';
|
|
7
|
+
function stores(opts) {
|
|
8
|
+
const dbPath = path.resolve(opts.db ?? path.join(os.homedir(), '.shadow-brain', 'global.json'));
|
|
9
|
+
const settings = new FeatureSettingsStore({
|
|
10
|
+
filePath: opts.settings ?? (opts.db ? path.join(path.dirname(dbPath), FEATURE_SETTINGS_FILENAME) : undefined),
|
|
11
|
+
});
|
|
12
|
+
return { brain: { dbPath }, settings };
|
|
13
|
+
}
|
|
14
|
+
function storeOptions(command) {
|
|
15
|
+
return command.option('--db <path>', 'Use the activity journal adjacent to this memory store')
|
|
16
|
+
.option('--settings <path>', 'Explicit feature-settings file');
|
|
17
|
+
}
|
|
18
|
+
function cursorNumber(input) {
|
|
19
|
+
if (input === undefined)
|
|
20
|
+
return undefined;
|
|
21
|
+
if (!/^\d+$/.test(input) || !Number.isSafeInteger(Number(input))) {
|
|
22
|
+
throw new TypeError('Activity cursor must be a nonnegative integer.');
|
|
23
|
+
}
|
|
24
|
+
return Number(input);
|
|
25
|
+
}
|
|
26
|
+
function durationNumber(input) {
|
|
27
|
+
if (input === undefined)
|
|
28
|
+
return undefined;
|
|
29
|
+
const value = Number(input);
|
|
30
|
+
if (!/^\d+(?:\.\d+)?$/.test(input) || !Number.isFinite(value) || value > Number.MAX_SAFE_INTEGER) {
|
|
31
|
+
throw new TypeError('Activity duration must be a nonnegative number of milliseconds.');
|
|
32
|
+
}
|
|
33
|
+
return value;
|
|
34
|
+
}
|
|
35
|
+
export function registerActivityCommands(program) {
|
|
36
|
+
const activity = new Command('activity').description('Report or read bounded local activity metadata');
|
|
37
|
+
storeOptions(activity.command('report').description('Record an explicitly reported session, phase, or tool event'))
|
|
38
|
+
.argument('<kind>', 'session-start, phase, tool-start, tool-end, or session-end')
|
|
39
|
+
.requiredOption('--project-id <id>', 'Project label')
|
|
40
|
+
.requiredOption('--session <id>', 'Host session label')
|
|
41
|
+
.requiredOption('--agent <id>', 'Agent label')
|
|
42
|
+
.option('--phase <phase>', 'understand, plan, work, or verify')
|
|
43
|
+
.option('--tool <name>', 'Tool label')
|
|
44
|
+
.option('--correlation <id>', 'Shared ID for the tool start and end')
|
|
45
|
+
.option('--outcome <outcome>', 'success, error, or cancelled')
|
|
46
|
+
.option('--duration-ms <number>', 'Host-reported tool duration in milliseconds')
|
|
47
|
+
.action(async (kind, opts) => {
|
|
48
|
+
const durationMs = durationNumber(opts.durationMs);
|
|
49
|
+
const { brain, settings } = stores(opts);
|
|
50
|
+
const result = await reportAgentActivity(brain, settings, {
|
|
51
|
+
kind, projectId: opts.projectId, sessionId: opts.session, agent: opts.agent,
|
|
52
|
+
phase: opts.phase, tool: opts.tool, correlationId: opts.correlation, outcome: opts.outcome, durationMs,
|
|
53
|
+
});
|
|
54
|
+
console.log(JSON.stringify(result, null, 2));
|
|
55
|
+
});
|
|
56
|
+
storeOptions(activity.command('tail').description('Read a page of recent activity or continue from a cursor'))
|
|
57
|
+
.option('--project-id <id>', 'Filter by recorded project label')
|
|
58
|
+
.option('--cursor <number>', 'Continue after this event sequence')
|
|
59
|
+
.option('--journal-id <id>', 'Journal ID paired with a previous cursor')
|
|
60
|
+
.action((opts) => {
|
|
61
|
+
const { brain, settings } = stores(opts);
|
|
62
|
+
const flags = settings.get().features;
|
|
63
|
+
const enabled = { liveEnabled: flags.liveActivity, recordingEnabled: flags.activityRecording };
|
|
64
|
+
if (!flags.liveActivity) {
|
|
65
|
+
console.log(JSON.stringify({
|
|
66
|
+
...enabled, events: [], journalId: null, revision: 0, oldestSequence: null, latestSequence: 0,
|
|
67
|
+
nextAfterSequence: 0, cursor: 0, hasMore: false, gap: false, reset: false, retainedCount: 0, droppedCount: 0,
|
|
68
|
+
}, null, 2));
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
const page = activityJournalFor(brain).read({
|
|
72
|
+
projectId: opts.projectId, afterSequence: cursorNumber(opts.cursor), journalId: opts.journalId, limit: 200,
|
|
73
|
+
});
|
|
74
|
+
console.log(JSON.stringify({ ...enabled, ...page, cursor: page.nextAfterSequence }, null, 2));
|
|
75
|
+
});
|
|
76
|
+
program.addCommand(activity);
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=activity-cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-cli.js","sourceRoot":"","sources":["../src/activity-cli.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAwB9F,SA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,EAAE,YAAY,EAAE,CAAC;aAC7G,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YACb,OAAO;QACT,CAAC;QACD,MAAM,IAAI,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC;YAC1C,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,aAAa,EAAE,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,GAAG;SAC3G,CAAC,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAChG,CAAC,CAAC,CAAC;IACL,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;AAC/B,CAAC"}
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -9,7 +9,8 @@ import { AiderAdapter } from './aider.js';
|
|
|
9
9
|
import { CursorAdapter } from './cursor.js';
|
|
10
10
|
import { WindsurfAdapter } from './windsurf.js';
|
|
11
11
|
import { CopilotAdapter } from './copilot.js';
|
|
12
|
-
|
|
12
|
+
/** File adapters are distinct from clients that connect through MCP and skills. */
|
|
13
|
+
export declare const ALL_ADAPTERS: Record<Exclude<AgentTool, 'deepseek-harness'>, () => AgentAdapter>;
|
|
13
14
|
export declare function createAdapter(tool: AgentTool): AgentAdapter;
|
|
14
15
|
export declare function detectRunningAgents(projectDir: string): Promise<AgentAdapter[]>;
|
|
15
16
|
export { ClaudeCodeAdapter, KiloCodeAdapter, ClineAdapter, OpenCodeAdapter, CodexAdapter, RooCodeAdapter, AiderAdapter, CursorAdapter, WindsurfAdapter, CopilotAdapter, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapters/index.ts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