@aistastudio/myc 0.2.0 → 0.2.1

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/README.md +28 -0
  2. package/dist/myc.js +278 -269
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -94,6 +94,34 @@ cheaper than a miss — 252× in the run of 2026-09-07, ≈27 000× for embeddin
94
94
  the ratio is wall-clock and moves with the machine. The ranking does not: same
95
95
  MRR to three decimals, zero rank differences.
96
96
 
97
+ **Memory survives context compaction.** `myc wire` installs a pre-compact hook,
98
+ so the moment before an agent's context is squeezed the session episode is
99
+ written to disk — raw, `L0`, `acl private`, secrets masked — and a rescue
100
+ packet is printed back into the context that survives. Distillation is queued,
101
+ never done on the write path. The episode is on disk before anything else is
102
+ attempted, so exceeding the hook's timeout costs the summary, not the record:
103
+
104
+ ```
105
+ $ myc absorb-session --reason manual --transcript … --agent claude
106
+ # myc: контекст сжимается — вот что нельзя потерять
107
+ эпизод sess-5jh8je4g050m сохранён (265 Б)
108
+ ДАЛЬШЕ myc show sess-5jh8je4g050m · myc ready --claim
109
+ ```
110
+
111
+ **Memory is separated by session, and the separation is visible.** Every note
112
+ carries a reach: `session` (this conversation) or `project` (everyone). The
113
+ automatic context packet — `prime` — only carries the current session's notes;
114
+ another agent's session does not leak into yours. An explicit `myc recall`
115
+ still finds them, because hiding knowledge is not the same as scoping it, and
116
+ marks each row for what it is: `ses` own session, `ses*` someone else's, `prj`
117
+ project-wide.
118
+
119
+ ```
120
+ $ MYC_SESSION_ID=s1 myc recall "ретраи" $ MYC_SESSION_ID=s2 myc recall "ретраи"
121
+ 1.30 … ses сессионное: ретраи… 1.30 … ses* сессионное: ретраи…
122
+ 1.10 … ses* в сессии один: ретраи… 1.10 … ses* в сессии один: ретраи…
123
+ ```
124
+
97
125
  **Memory has three independent axes**, and the surface says what it hid:
98
126
  tier (project vs personal), session reach, repository reach. `prime` prints
99
127
  `N notes from other repositories hidden` rather than quietly narrowing results.