@vib795/agent-memory 0.1.14 → 0.1.15

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 (3) hide show
  1. package/HOWTO.md +15 -0
  2. package/README.md +24 -2
  3. package/package.json +1 -1
package/HOWTO.md CHANGED
@@ -170,6 +170,21 @@ You can also point it at something specific:
170
170
  **Don't bother remembering** anything the code already says. If someone can find it by
171
171
  opening a file, it does not need a note. Notes are for what lives in people's heads.
172
172
 
173
+ **You will also see it happen without you asking.** When a decision settles or a
174
+ constraint turns up mid-conversation, the assistant writes it down and tells you in
175
+ one line:
176
+
177
+ ```
178
+ captured 2 notes [decision, constraint]
179
+ ```
180
+
181
+ Then it carries on with whatever you were actually asking about. This is on purpose:
182
+ the fact worth keeping is usually the one nobody stops to write down. It costs you
183
+ nothing — your allowance is charged per message you send, not per thing the assistant
184
+ does while answering — and you can see everything it captured with `/recall` or
185
+ `agent-memory tree`. If it ever writes down something you did not want, the notes are
186
+ plain markdown files you can edit or delete.
187
+
173
188
  ### `/handoff` — for moving work between windows
174
189
 
175
190
  This one is not a chat summary. Summaries read nicely and still leave the next
package/README.md CHANGED
@@ -16,7 +16,7 @@ Three user-level Agent Skills over one local store:
16
16
  | Skill | What it does |
17
17
  |---|---|
18
18
  | `/handoff` | Writes a portable working-state file so another window can pick up this thread |
19
- | `/remember` | Captures durable knowledge into a cross-repo graph |
19
+ | `/remember` | Captures durable knowledge into a cross-repo graph — and fires on its own when a juncture passes |
20
20
  | `/recall` | Answers from that graph before deriving anything again |
21
21
 
22
22
  **New here? Read the [HOW-TO](HOWTO.md)** — install, first five minutes, and the
@@ -78,6 +78,14 @@ recursive CTE *is* the graph engine, and `UNION` plus a depth bound is what keep
78
78
  - **Staleness is visible at the moment of use.** Every note records the repo HEAD it
79
79
  was captured at. On recall, `get` prints `captured 47 commits ago — verify before
80
80
  trusting`. A note that quietly rots is worse than no note.
81
+ - **An empty graph says so.** Staleness cannot tell you a repo has nothing in it —
82
+ a repo nobody captured in has no stale notes either, so it reads as fully covered.
83
+ `tree` and `doctor` print `47 commits since anything was captured here` instead.
84
+ Silence has to mean covered, never empty.
85
+ - **Capture does not wait to be asked.** The agent invokes `/remember` itself when a
86
+ decision settles, a constraint surfaces or a root cause is found, and says so in one
87
+ line. Judged by the model in the turn where the context still exists — never on a
88
+ timer or a tool count, because volume is what makes a graph useless.
81
89
  - **Redaction is fail-closed.** Keys, tokens, connection strings, private keys,
82
90
  session cookies, internal hosts and foreign email addresses are replaced before any
83
91
  byte reaches disk — not to a note, not to a temp file, not to the index.
@@ -336,7 +344,21 @@ Mid-session, when something worth keeping has been established:
336
344
  ```
337
345
 
338
346
  Bare, it selects the durable knowledge itself. With an argument, it writes that and
339
- nothing else. Either way it makes one terminal call, and `write` reports each id:
347
+ nothing else.
348
+
349
+ You will also see it fire without being asked, when a decision settles, a constraint
350
+ surfaces, a root cause is found or a convention is agreed. It reports one line at the
351
+ end of whatever it was already answering and carries on:
352
+
353
+ ```
354
+ captured 2 notes [decision, constraint]
355
+ ```
356
+
357
+ That costs nothing — a request is charged per prompt, not per tool call, so capture
358
+ inside a turn you already paid for is free. Only typing `/remember` yourself spends
359
+ one.
360
+
361
+ Either way it makes one terminal call, and `write` reports each id:
340
362
 
341
363
  ```
342
364
  created auth-service [system]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vib795/agent-memory",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
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",