@theihtisham/agent-shadow-brain 6.3.0 → 7.1.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 (66) hide show
  1. package/CHANGELOG.md +420 -391
  2. package/LICENSE +21 -21
  3. package/README.md +450 -438
  4. package/dist/adapters/aider.js +13 -13
  5. package/dist/adapters/base-adapter.js +14 -14
  6. package/dist/adapters/codex.js +8 -8
  7. package/dist/adapters/roo-code.js +18 -18
  8. package/dist/brain/adr-engine.js +11 -11
  9. package/dist/brain/analyzer.js +30 -30
  10. package/dist/brain/auto-update.js +1 -1
  11. package/dist/brain/brain-portability.js +1 -1
  12. package/dist/brain/global-brain.d.ts +52 -63
  13. package/dist/brain/global-brain.d.ts.map +1 -1
  14. package/dist/brain/global-brain.js +577 -339
  15. package/dist/brain/global-brain.js.map +1 -1
  16. package/dist/brain/health-score.js +19 -19
  17. package/dist/brain/learning-engine.js +59 -59
  18. package/dist/brain/mcp-server.d.ts +3 -0
  19. package/dist/brain/mcp-server.d.ts.map +1 -1
  20. package/dist/brain/mcp-server.js +50 -6
  21. package/dist/brain/mcp-server.js.map +1 -1
  22. package/dist/brain/orchestrator.js +1 -1
  23. package/dist/brain/plugin-system.js +23 -23
  24. package/dist/brain/pr-generator.js +19 -19
  25. package/dist/brain/project-context.js +1 -1
  26. package/dist/brain/project-context.js.map +1 -1
  27. package/dist/brain/report-generator.js +270 -270
  28. package/dist/brain/task-workflow.d.ts +22 -0
  29. package/dist/brain/task-workflow.d.ts.map +1 -0
  30. package/dist/brain/task-workflow.js +182 -0
  31. package/dist/brain/task-workflow.js.map +1 -0
  32. package/dist/brain/workflow-skills.d.ts +86 -0
  33. package/dist/brain/workflow-skills.d.ts.map +1 -0
  34. package/dist/brain/workflow-skills.js +514 -0
  35. package/dist/brain/workflow-skills.js.map +1 -0
  36. package/dist/cli.js +107 -34
  37. package/dist/cli.js.map +1 -1
  38. package/dist/dashboard/server.js +1 -1
  39. package/dist/dashboard/v6-dashboard-html.d.ts +1 -1
  40. package/dist/dashboard/v6-dashboard-html.d.ts.map +1 -1
  41. package/dist/dashboard/v6-dashboard-html.js +5 -5
  42. package/dist/index.d.ts +6 -0
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +4 -0
  45. package/dist/index.js.map +1 -1
  46. package/dist/types.d.ts +28 -10
  47. package/dist/types.d.ts.map +1 -1
  48. package/dist/watchers/git-watcher.d.ts.map +1 -1
  49. package/dist/watchers/git-watcher.js +1 -1
  50. package/dist/watchers/git-watcher.js.map +1 -1
  51. package/dist/workflow-cli.d.ts +3 -0
  52. package/dist/workflow-cli.d.ts.map +1 -0
  53. package/dist/workflow-cli.js +100 -0
  54. package/dist/workflow-cli.js.map +1 -0
  55. package/docs/WORKFLOW_INTEGRATION.md +105 -0
  56. package/docs/launch/RELEASE_CHECKLIST_v7.0.0.md +24 -0
  57. package/docs/launch/RELEASE_NOTES_v7.0.0.md +44 -0
  58. package/docs/launch/RELEASE_NOTES_v7.1.0.md +32 -0
  59. package/package.json +213 -204
  60. package/skills/shadow-debug/SKILL.md +16 -0
  61. package/skills/shadow-implement/SKILL.md +16 -0
  62. package/skills/shadow-release/SKILL.md +16 -0
  63. package/skills/shadow-research/SKILL.md +12 -0
  64. package/skills/shadow-review/SKILL.md +14 -0
  65. package/skills/shadow-workflow/SKILL.md +31 -0
  66. package/docs/launch/README.md +0 -61
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-cli.js","sourceRoot":"","sources":["../src/workflow-cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,WAAW,EAAuB,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,gBAA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+ 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,24 @@
1
+ # 7.0.0 release checklist
2
+
3
+ ## Build and behavior
4
+
5
+ - Confirm package.json, lockfile root, CLI, update checker, MCP metadata, dashboard, README, and release notes agree on 7.0.0.
6
+ - Run `npm ci --ignore-scripts` from a clean checkout, then `npm run verify` and `npm run lint`.
7
+ - Verify independent-process writes survive, queued success follows persistence, failed changes remain retryable, external deletions are preserved, and invalid stores remain byte-for-byte unchanged.
8
+ - Verify unrelated agent notes cannot boost corroboration and every score is finite and explained.
9
+ - Run `npm audit --audit-level=high`; record counts with the validation date.
10
+ - Run `npm run test:package`; it packs the build, installs into a fresh temporary consumer, imports the public API, tests both new CLI commands, and verifies configuration isolation.
11
+
12
+ ## Publish the reviewed artifact
13
+
14
+ - Keep the original 6.3.0 tarball and exact source commit available for rollback comparison.
15
+ - Review `npm pack --dry-run --json` and allowlisted contents. Exclude personal state, node_modules, tests, temporary outputs, and configuration files.
16
+ - Commit the reviewed source and lockfile; push without rewriting existing remote history.
17
+ - Pack once, compute SHA-512/integrity, and publish that exact tarball with `npm publish <tarball> --access public --ignore-scripts` after local npm login by its owner.
18
+ - If npm requests browser authentication or a second factor, the user completes it directly. Never put authentication material into scripts, output, or chat.
19
+ - Verify registry 7.0.0 and `latest`, package integrity, and a fresh downloaded tarball. Publish the matching GitHub tag/release and attach the verified package.
20
+ - Confirm remote CI separately. Do not describe unrun OS/runtime combinations as tested.
21
+
22
+ ## Rollback
23
+
24
+ Use the preserved pre-upgrade store backup and install the previous package version if required. Stop all writers before restoring data. Published npm versions cannot be overwritten; release a corrective patch rather than silently replacing 7.0.0. Do not unpublish or move the latest tag without an explicit rollback decision.
@@ -0,0 +1,44 @@
1
+ # Agent Shadow Brain 7.0.0
2
+
3
+ Release date: 2026-11-11. Development used Astra for planning/review and GPT-6.1 SoL for core implementation. These are development roles, not newly bundled AI model services.
4
+
5
+ ## What changed
6
+
7
+ Concurrent agents now serialize memory commits and merge their pending additions, access changes, and registrations with the latest valid disk snapshot. Successful queued-write acknowledgements follow persistence. Failed changes remain pending for retry. Corrupt or future-schema stores produce explicit errors while preserving the original bytes.
8
+
9
+ Scored recall ranks the full matching pool, reports matched keywords and supporting agent identities, uses creation-age recency, and handles malformed numeric values without emitting NaN. Corroboration requires matching normalized content in the same project and category. Repeated text from different agent identities is a heuristic; it does not establish independent fact checking.
10
+
11
+ New CLI commands:
12
+
13
+ ```sh
14
+ shadow-brain storage-health --json
15
+ shadow-brain storage-health --db ./global.json --json
16
+ shadow-brain recall-explain "release verification" --limit 5
17
+ ```
18
+
19
+ The MCP `global_storage_health` tool exposes the active process's pending operations and latest storage error without starting or flushing a store. Existing `global_recall_scored` results include explanations. The library entry point exports GlobalBrain and associated types.
20
+
21
+ Installation no longer runs automatic agent setup. CLI help, version, storage-health, and recall-explain do not load provider settings. Dashboard activity rows escape memory text. Diagnostic output no longer prints key fragments. Dependencies are updated and promotional automation is manual-only.
22
+
23
+ ## Compatibility and migration
24
+
25
+ - Supported runtimes: Node 22.12+ within 22.x, 24.x, or 26+.
26
+ - Back up the store and stop older writers before upgrade. The new protocol cannot coordinate with an old writer that ignores its lock.
27
+ - Store schema remains version 1. Invalid stores must be repaired or restored explicitly; automatic reset is removed.
28
+ - `writeSync` stages an in-memory change. Use `await sync()` for persistence. A queued `write()` resolves after synchronization. A false result means queue rejection or failed persistence; accepted failed operations remain retryable.
29
+ - Recalls use the current process snapshot; a sync refreshes external changes. There is no instantaneous cross-process notification guarantee.
30
+ - Lock waits are bounded (default five seconds, configurable with `lockTimeoutMs`). Locks are never removed merely because they are old. After an interrupted process, inspect the writer and store before manually removing an abandoned `.lock` file.
31
+ - Atomic replacement protects against partial JSON visibility. This release does not claim power-loss durability on every filesystem or safe coordination on all network filesystems.
32
+ - Scores are heuristic rankings. Revisit application-specific `minConfidence` thresholds.
33
+ - New health timestamps refer to the current process, not a persisted lifetime history.
34
+ - Dependency major upgrades can affect applications importing re-exported Zod APIs; consult the upstream Zod 4 and simple-git 4 migration notes.
35
+
36
+ ## Source provenance
37
+
38
+ The original repository URL returned 404 during this upgrade. The source was recovered from public fork `shadrackohemeng/agent-shadow-brain` at commit `bec756e19647a11cad570f8ae3c363792de84856`, exactly matching npm 6.3.0's `gitHead`. The downloaded 6.3.0 tarball is retained separately as the comparison baseline. Original MIT licensing and history are preserved.
39
+
40
+ ## Validation
41
+
42
+ The release gate requires type-check/build, full tests, cross-process storage regressions, npm audit, fresh-consumer tarball installation, CLI/library smoke checks, package-content review, and Astra review. Remote CI results and publication status are recorded separately; prepared artifacts are not evidence of publication.
43
+
44
+ Upstream references: [Vitest migration](https://main.vitest.dev/guide/migration/), [simple-git changelog](https://github.com/steveukx/git-js/blob/main/simple-git/CHANGELOG.md), [Zod migration](https://zod.dev/v4/changelog).
@@ -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.