@vib795/agent-memory 0.5.2 → 0.6.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.
package/README.md CHANGED
@@ -1,17 +1,45 @@
1
1
  # agent-memory
2
2
 
3
- [![npm](https://img.shields.io/npm/v/@vib795/agent-memory)](https://www.npmjs.com/package/@vib795/agent-memory)
4
- [![test](https://github.com/vib795/agent-memory/actions/workflows/test.yml/badge.svg)](https://github.com/vib795/agent-memory/actions/workflows/test.yml)
5
- [![release](https://github.com/vib795/agent-memory/actions/workflows/release.yml/badge.svg)](https://github.com/vib795/agent-memory/actions/workflows/release.yml)
6
- [![provenance](https://img.shields.io/badge/provenance-attested-brightgreen)](https://www.npmjs.com/package/@vib795/agent-memory)
7
- [![node](https://img.shields.io/badge/node-%3E%3D22.5-brightgreen)](https://nodejs.org)
8
- [![dependencies](https://img.shields.io/badge/runtime%20dependencies-0-brightgreen)](package.json)
9
- [![license](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
3
+ **Durable memory for Claude Code and GitHub Copilot — that survives an IT security review.**
4
+
5
+ Your agent forgets everything between windows. Most tools that fix that cannot be
6
+ installed where you actually work.
7
+
8
+ This one has **zero runtime dependencies, zero dev dependencies, and no install
9
+ script**. Nothing runs when you install it; granting it your agents is a second,
10
+ separate command. It has been [independently scanned](#independently-scanned) and
11
+ passed. `npm ls -g --depth 0` shows nothing underneath it, because there is nothing
12
+ underneath it.
10
13
 
11
- Give **GitHub Copilot** and **Claude Code** a memory that outlives the window, the
12
- repository, and the week — using nothing an IT security review would need to approve.
14
+ ## Install
13
15
 
14
- Three user-level Agent Skills over one local store:
16
+ Two commands, and the second one is not optional — it creates the store and installs
17
+ into every agent on the machine, in whatever format that tool reads:
18
+
19
+ ```bash
20
+ npm install -g @vib795/agent-memory
21
+ agent-memory setup
22
+ ```
23
+
24
+ Node >= 22.5, and nothing else.
25
+
26
+ In Claude Code you can take the three skills as a plugin instead of letting `setup`
27
+ link them:
28
+
29
+ ```
30
+ /plugin marketplace add vib795/agent-memory
31
+ /plugin install agent-memory@vib795
32
+ ```
33
+
34
+ The plugin carries the skills; `npm` carries the store. You want both — the skills
35
+ will tell you so if you only have one.
36
+
37
+ Behind a proxy that quarantines npm, or want the GitHub Packages mirror?
38
+ [Every install path is here](#install-1).
39
+
40
+ ## What you get
41
+
42
+ Three user-level Agent Skills over one local markdown store:
15
43
 
16
44
  | Skill | What it does |
17
45
  |---|---|
@@ -19,9 +47,23 @@ Three user-level Agent Skills over one local store:
19
47
  | `/remember` | Captures durable knowledge into a cross-repo graph — and fires on its own when a juncture passes |
20
48
  | `/recall` | Answers from that graph before deriving anything again |
21
49
 
22
- **New here? Read the [HOW-TO](HOWTO.md)** — install, first five minutes, and the
23
- per-tool notes for Claude Code, Codex and Copilot, written for people who do not
24
- want to read the rest of this file.
50
+ The store is plain markdown in `~/.agents/memory/`, outside every repository — which
51
+ is what lets a note written in one project be read from another. Nothing leaves the
52
+ machine: no daemon, no scheduled task, no telemetry.
53
+
54
+ **New here?** [HOWTO.md](HOWTO.md) — install, first five minutes, and the per-tool
55
+ notes for Claude Code, Codex and Copilot.
56
+
57
+ **How does it work?** [ARCHITECTURE.md](ARCHITECTURE.md) — the source-of-truth split,
58
+ the write and read paths, the tiered context cost, and the invariants underneath.
59
+
60
+ [![npm](https://img.shields.io/npm/v/@vib795/agent-memory)](https://www.npmjs.com/package/@vib795/agent-memory)
61
+ [![test](https://github.com/vib795/agent-memory/actions/workflows/test.yml/badge.svg)](https://github.com/vib795/agent-memory/actions/workflows/test.yml)
62
+ [![release](https://github.com/vib795/agent-memory/actions/workflows/release.yml/badge.svg)](https://github.com/vib795/agent-memory/actions/workflows/release.yml)
63
+ [![provenance](https://img.shields.io/badge/provenance-attested-brightgreen)](https://www.npmjs.com/package/@vib795/agent-memory)
64
+ [![node](https://img.shields.io/badge/node-%3E%3D22.5-brightgreen)](https://nodejs.org)
65
+ [![dependencies](https://img.shields.io/badge/runtime%20dependencies-0-brightgreen)](package.json)
66
+ [![license](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
25
67
 
26
68
  ## Why this exists
27
69
 
@@ -472,7 +514,7 @@ Claude Code can take the same three as a plugin:
472
514
 
473
515
  ```
474
516
  /plugin marketplace add vib795/agent-memory
475
- /plugin install agent-memory@agent-memory
517
+ /plugin install agent-memory@vib795
476
518
  ```
477
519
 
478
520
  The same caveat applies: the plugin carries the skills, `npm` carries the store.
@@ -499,7 +541,7 @@ is generated state, and the committed value is only a placeholder.
499
541
 
500
542
  Needs Node 22.5 or newer; `doctor` says so plainly if the version is too old.
501
543
 
502
- Run `npm test` for the suite (88 tests, no dependencies). CI runs it on Linux,
544
+ Run `npm test` for the suite (91 tests, no dependencies). CI runs it on Linux,
503
545
  macOS and Windows across Node 22 and 24, and separately installs the packed tarball
504
546
  and exercises it end to end on all three.
505
547
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vib795/agent-memory",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "description": "Durable cross-repo knowledge graph for GitHub Copilot and Claude Code. Markdown source of truth, disposable SQLite index, zero runtime dependencies.",
5
5
  "keywords": [
6
6
  "github-copilot",
package/src/cli.js CHANGED
@@ -75,7 +75,7 @@ function git(args, cwd = process.cwd()) {
75
75
  const USAGE = `agent-memory — durable cross-repo knowledge for coding agents
76
76
 
77
77
  setup link all three skills, build the store
78
- (runs automatically on npm install)
78
+ (run this once, by hand, after install)
79
79
  uninstall remove the skill links; keeps every note
80
80
  init [--skills "<p1>,<p2>"] create the store; register skill files
81
81
  index rebuild index.db from notes/
package/src/promptfile.js CHANGED
@@ -15,7 +15,7 @@ export const GENERATED_MARKER =
15
15
 
16
16
  /** Split a leading `---` frontmatter block from the body. */
17
17
  function splitFrontmatter(text) {
18
- const src = String(text).replace(/^/, '').replace(/\r\n/g, '\n');
18
+ const src = String(text).replace(/^\uFEFF/, '').replace(/\r\n/g, '\n');
19
19
  if (!src.startsWith('---')) return { head: '', body: src.trim() };
20
20
  const end = src.indexOf('\n---', 3);
21
21
  if (end === -1) return { head: '', body: src.trim() };
package/src/store.js CHANGED
Binary file