counterparts 0.3.16 → 0.3.18
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 +567 -0
- package/CONSTITUTION.md +7 -7
- package/docs/ELI5.md +1 -1
- package/docs/QUICKSTART.md +32 -4
- package/docs/module-map.md +4 -3
- package/package.json +1 -1
- package/src/adapters/claude-code/CONTRACT.md +85 -17
- package/src/adapters/claude-code/NOTES.md +55 -0
- package/src/adapters/claude-code/bin/hook.ts +6 -1
- package/src/adapters/claude-code/bin/nightly.ts +2 -0
- package/src/adapters/claude-code/bin/runner.ts +5 -3
- package/src/adapters/claude-code/claim.ts +175 -45
- package/src/adapters/claude-code/doctor.ts +285 -29
- package/src/adapters/claude-code/embed-client.ts +15 -2
- package/src/adapters/claude-code/hooks.ts +239 -20
- package/src/adapters/claude-code/index.ts +6 -2
- package/src/adapters/claude-code/night-catch-up.ts +368 -125
- package/src/adapters/claude-code/night-run.ts +344 -75
- package/src/adapters/claude-code/standdown.ts +18 -1
- package/src/adapters/claude-code/transcript.ts +35 -5
- package/src/adapters/cli/CONTRACT.md +24 -1
- package/src/adapters/cli/NOTES.md +34 -0
- package/src/adapters/cli/catch-up.ts +118 -0
- package/src/adapters/cli/commands.ts +676 -38
- package/src/adapters/cli/coverage.ts +15 -4
- package/src/adapters/cli/dream-core.ts +4 -4
- package/src/adapters/cli/help.ts +21 -1
- package/src/adapters/cli/mechanisms.ts +18 -3
- package/src/adapters/cli/rollback.ts +816 -0
- package/src/adapters/cli/settle.ts +16 -4
- package/src/adapters/cli/uninstall.ts +530 -58
- package/src/adapters/config.ts +53 -14
- package/src/adapters/dashboard/CONTRACT.md +1 -1
- package/src/adapters/dashboard/registries.ts +8 -4
- package/src/adapters/dashboard/status.ts +16 -8
- package/src/adapters/dashboard/web/actions.ts +20 -2
- package/src/adapters/dashboard/web/flow.ts +2 -1
- package/src/adapters/dashboard/web/lanes.ts +2 -0
- package/src/adapters/dashboard/web/mechanisms/prospective/index.js +3 -2
- package/src/adapters/dashboard/web/mechanisms/prospective/panel.js +2 -1
- package/src/adapters/dashboard/web/narrate.ts +18 -4
- package/src/adapters/dashboard/web/pages/flow/sections/symmetry.js +7 -4
- package/src/adapters/dashboard/web/pages/memories/index.js +9 -1
- package/src/adapters/dashboard/web/pages/memories/sections/search.js +7 -7
- package/src/adapters/dashboard/web/server.ts +4 -0
- package/src/adapters/dashboard/web/shared/memory-modal.js +61 -2
- package/src/adapters/dashboard/web/shared/modal.css +5 -0
- package/src/adapters/dashboard/web/views/archive-words.ts +1 -1
- package/src/adapters/dashboard/web/views/health.ts +12 -6
- package/src/adapters/dashboard/web/views/mechanism-panel.ts +25 -4
- package/src/adapters/dashboard/web/views/mechanisms.ts +50 -5
- package/src/adapters/dashboard/web/views/memory.ts +12 -0
- package/src/adapters/empty-bunfig.toml +13 -2
- package/src/adapters/fired.ts +5 -3
- package/src/adapters/host-wiring.ts +7 -0
- package/src/adapters/lifecycle.ts +242 -11
- package/src/adapters/mcp/CONTRACT.md +66 -10
- package/src/adapters/mcp/INTERFACE-GAPS.md +1 -1
- package/src/adapters/mcp/NOTES.md +54 -1
- package/src/adapters/mcp/bin/serve.ts +4 -1
- package/src/adapters/mcp/deliberate.ts +11 -13
- package/src/adapters/mcp/facts.ts +173 -61
- package/src/adapters/mcp/index.ts +2 -3
- package/src/adapters/mcp/meaning.ts +3 -3
- package/src/adapters/mcp/server.ts +627 -94
- package/src/adapters/mcp/tools.ts +316 -130
- package/src/adapters/mcp/write-up.ts +5 -5
- package/src/adapters/mechanism-evidence.ts +94 -6
- package/src/adapters/plugin-run.sh +14 -2
- package/src/adapters/plugin.ts +60 -8
- package/src/adapters/runtime.ts +5 -2
- package/src/adapters/sessions.ts +54 -3
- package/src/adapters/spawn.ts +16 -0
- package/src/core/associate/CONTRACT.md +17 -2
- package/src/core/associate/NOTES.md +102 -0
- package/src/core/associate/at-write.ts +65 -0
- package/src/core/associate/contiguity.ts +3 -2
- package/src/core/associate/index.ts +64 -12
- package/src/core/associate/tunables.ts +42 -7
- package/src/core/briefing.ts +51 -27
- package/src/core/counterpart.ts +1119 -88
- package/src/core/coverage/INTERFACE-GAPS.md +8 -7
- package/src/core/coverage/NOTES.md +15 -0
- package/src/core/coverage/index.ts +7 -3
- package/src/core/coverage/tunables.ts +18 -4
- package/src/core/dream/CONTRACT.md +58 -11
- package/src/core/dream/NOTES.md +80 -0
- package/src/core/dream/index.ts +422 -36
- package/src/core/dream/mind.ts +62 -9
- package/src/core/dream/reflect.ts +77 -20
- package/src/core/dream/tunables.ts +13 -0
- package/src/core/fit/index.ts +7 -0
- package/src/core/handoff/CONTRACT.md +33 -0
- package/src/core/handoff/INTERFACE-GAPS.md +18 -0
- package/src/core/handoff/NOTES.md +38 -4
- package/src/core/handoff/index.ts +9 -6
- package/src/core/handoff/last-exchange.ts +389 -0
- package/src/core/handoff/last-here.ts +212 -9
- package/src/core/leaving.ts +1 -1
- package/src/core/mint.ts +34 -3
- package/src/core/onboarding.ts +509 -0
- package/src/core/physics/CONTRACT.md +145 -22
- package/src/core/physics/NOTES.md +115 -0
- package/src/core/physics/index.ts +565 -75
- package/src/core/prospective/CONTRACT.md +43 -16
- package/src/core/prospective/INTERFACE-GAPS.md +1 -1
- package/src/core/prospective/NOTES.md +61 -3
- package/src/core/prospective/derive.ts +15 -12
- package/src/core/prospective/index.ts +140 -109
- package/src/core/prospective/tunables.ts +11 -3
- package/src/core/recall/CONTRACT.md +40 -2
- package/src/core/recall/NOTES.md +79 -3
- package/src/core/recall/activate.ts +83 -7
- package/src/core/recall/gate.ts +19 -1
- package/src/core/recall/index.ts +91 -10
- package/src/core/recall/mood.ts +2 -2
- package/src/core/recall/probe.ts +164 -2
- package/src/core/recall/reference.ts +10 -0
- package/src/core/recall/session.ts +5 -0
- package/src/core/recall/standing.ts +89 -4
- package/src/core/recall/tunables.ts +17 -2
- package/src/core/{contradictions.ts → reconsolidation.ts} +561 -32
- package/src/core/remember/CONTRACT.md +2 -2
- package/src/core/remember/NOTES.md +10 -0
- package/src/core/remember/updates.ts +11 -0
- package/src/core/revision.ts +10 -5
- package/src/core/schemas/CONTRACT.md +3 -2
- package/src/core/schemas/NOTES.md +33 -1
- package/src/core/self/CONTRACT.md +42 -7
- package/src/core/self/INTERFACE-GAPS.md +17 -0
- package/src/core/self/NOTES.md +115 -1
- package/src/core/self/behind.ts +9 -4
- package/src/core/self/briefing.ts +155 -15
- package/src/core/self/episodes.ts +14 -2
- package/src/core/self/identity.ts +54 -33
- package/src/core/self/index.ts +278 -8
- package/src/core/self/work.ts +5 -1
- package/src/core/sleep/CONTRACT.md +7 -1
- package/src/core/sleep/NOTES.md +58 -0
- package/src/core/sleep/consolidate.ts +53 -4
- package/src/core/sleep/cycle.ts +42 -10
- package/src/core/sleep/decay.ts +169 -5
- package/src/core/sleep/dedup.ts +3 -1
- package/src/core/sleep/prune.ts +36 -3
- package/src/core/sleep/strength-cache.ts +10 -0
- package/src/core/sleep/types.ts +107 -4
- package/src/core/sleep/upgrade.ts +9 -7
- package/src/core/store/CONTRACT.md +9 -0
- package/src/core/store/NOTES.md +107 -1
- package/src/core/store/cache.ts +127 -6
- package/src/core/store/db.ts +43 -3
- package/src/core/store/errors.ts +9 -0
- package/src/core/store/feelings.ts +13 -0
- package/src/core/store/index.ts +689 -29
- package/src/core/store/operational.ts +493 -10
- package/src/core/store/pre-migration.ts +3 -1
- package/src/core/store/rollback-hold.ts +127 -0
- package/src/core/types.ts +41 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,572 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.18 — 2026-10-11
|
|
4
|
+
|
|
5
|
+
A new install now starts with a first meeting: in its first session Counterparts offers,
|
|
6
|
+
once, to take about five minutes to get to know each other (where memory is on, what you're
|
|
7
|
+
working on, how you like to be talked to), and keeps each answer as an ordinary memory; the
|
|
8
|
+
plugin's sidebar opens that conversation itself, and dreaming is on for new installs. The
|
|
9
|
+
plugin is ready for Anthropic's plugin directory: Bun no longer fetches anything on its own,
|
|
10
|
+
`/counterparts:dashboard`, `/counterparts:meet` and `/counterparts:uninstall` work without a
|
|
11
|
+
`counterparts` command, and doctor's fixes fit how you installed. Older memories with no
|
|
12
|
+
salience of their own now read at today's default for what they are about, so memories about
|
|
13
|
+
you or the two of us written before your 0.3.17 upgrade come back into reach. The nightly run writes up every
|
|
14
|
+
session still owed (`counterparts catch-up` does it on demand) and reflects in a session of
|
|
15
|
+
its own, a memory that replaces another comes up in its place, and `counterparts uninstall`
|
|
16
|
+
offers to delete your memory, at a terminal, behind a typed phrase. **Nothing to run after
|
|
17
|
+
upgrading from 0.3.17**: the hooks, the memory server's registration and Claude Desktop's
|
|
18
|
+
entry are the same as 0.3.17's, and an existing memory keeps its dreaming setting and is
|
|
19
|
+
never offered the first meeting. **No store-format change** (still v13, and the search cache
|
|
20
|
+
v6): nothing is copied or upgraded, and 0.3.17 opens the same store. To go back to 0.3.17,
|
|
21
|
+
don't run `counterparts rollback`: it undoes a format upgrade, and within 14 days of 0.3.17's
|
|
22
|
+
it would offer to put back the copy taken before it, without everything remembered since.
|
|
23
|
+
Run `counterparts disconnect`, reinstall 0.3.17, then `counterparts connect`.
|
|
24
|
+
|
|
25
|
+
The first meeting (#419, #416, #424, #426, #393).
|
|
26
|
+
|
|
27
|
+
- **A first meeting, on every install.** A new install's first session offers, once and
|
|
28
|
+
at the end of a reply, to take about five minutes to get to know each other: where memory
|
|
29
|
+
is on (every folder, or just this one, unless a folder was already set), what you're working on, something you've loved,
|
|
30
|
+
how you like to be talked to (straight to it, think it through with me, friendly and easy,
|
|
31
|
+
or like a character you name) and a few more, each one skippable. Each answer is kept as
|
|
32
|
+
an ordinary memory marked as from onboarding, a style becomes a few preferences that keep
|
|
33
|
+
honest pushback, and the next session may bring one of them back on its own. "Later"
|
|
34
|
+
offers it again another day (the offer comes on three days at most); Claude's new `meet` tool starts it any time. A memory that
|
|
35
|
+
already existed is never offered it.
|
|
36
|
+
- **The sidebar starts the first meeting.** In the first session after an install, Claude
|
|
37
|
+
speaks first ("Counterparts is installed. Say hello and introduce yourself.", shown as sent
|
|
38
|
+
by the plugin), once per install, never in a `-p` run, in a folder that is paused or off,
|
|
39
|
+
or after you've typed. If you put the meeting off, a **Meet your counterpart** row at the
|
|
40
|
+
top of the sidebar starts it when you're ready.
|
|
41
|
+
- **`/counterparts:meet` starts the first meeting any time.** For a plugin install, the short getting-to-know-you conversation can be started with this command as well as with the sidebar's "Meet your counterpart" button, so someone in the quiet view, or past the first days' offers, still has a way in. It asks the memory server's `meet` tool for the meeting and runs nothing else.
|
|
42
|
+
- **Dreaming is on for new installs.** Once a day the first session starts a short
|
|
43
|
+
background run that goes over what was saved, and the install, the plugin's first-run line
|
|
44
|
+
and `counterparts doctor` say so and how to turn it off ("no dreams", or
|
|
45
|
+
`counterparts dream --setting off`). An existing memory keeps its setting.
|
|
46
|
+
- **`counterparts start-fresh` begins with a first meeting**, and `--undo` brings back the
|
|
47
|
+
parked memory as it was.
|
|
48
|
+
- **A new person's first day gets written up even with only a few memories.** With dreaming
|
|
49
|
+
on its own, the nightly run used to start only when there was enough new to dream on, so
|
|
50
|
+
someone who skipped the first meeting and saved one or two memories got no run on day 2,
|
|
51
|
+
and their first day's conversations were never written up. Now the run also starts when
|
|
52
|
+
sessions from an earlier day still owe a write-up: it writes them up quietly in the
|
|
53
|
+
background and skips the dream, and `counterparts doctor` says "the catch-up alone" rather
|
|
54
|
+
than a failed dream. Dreaming `ask` and `off` work as before.
|
|
55
|
+
- **A new install's doctor has no puzzling amber before the first session.** The Vectors line
|
|
56
|
+
read amber, about embedding "per boundary", until the first session ended. Before then it
|
|
57
|
+
is green and says the search by meaning builds after your first session; on a store that
|
|
58
|
+
has had sessions, a real shortfall is still amber.
|
|
59
|
+
|
|
60
|
+
The plugin, ready for Anthropic's directory (#396, #394, #399, #416).
|
|
61
|
+
|
|
62
|
+
- **Bun no longer fetches the embedding table on its own.** When a plugin install's
|
|
63
|
+
packages didn't install (the package manager its lockfile names wasn't on the PATH,
|
|
64
|
+
Claude Code's 60-second limit, offline), Bun used to download the table from the npm registry the first time it was
|
|
65
|
+
needed, at whatever version was newest, without saying so. Now nothing is fetched: recall
|
|
66
|
+
matches on words, and `/counterparts:doctor` says the table is missing. npm and Bun
|
|
67
|
+
installs of the package are unaffected.
|
|
68
|
+
- **Doctor's fixes fit how you installed.** When the model table is missing or damaged, or
|
|
69
|
+
the search cache came from a newer build, doctor used to say `bun add -g …` even on a
|
|
70
|
+
Claude Code plugin install, which may have no bun at all. A plugin install now gets
|
|
71
|
+
`/plugin → Installed → counterparts → Update now` (or uninstall and install it again); the npm install keeps
|
|
72
|
+
its `bun add -g` command; and where doctor can't tell which it is, it names both.
|
|
73
|
+
- **Plugin installs can start the dashboard: `/counterparts:dashboard`.** A plugin install
|
|
74
|
+
has no `counterparts` command, so the sidebar's "start it with `counterparts dashboard`"
|
|
75
|
+
couldn't work there. The new command starts the same dashboard from the plugin, in the
|
|
76
|
+
background, until the session ends. With the dashboard down, the sidebar names the way
|
|
77
|
+
that works for your install: `counterparts dashboard` for the npm install,
|
|
78
|
+
`/counterparts:dashboard` for the plugin.
|
|
79
|
+
- **The sidebar finds a dashboard on another port.** When `COUNTERPARTS_DASHBOARD_PORT` is
|
|
80
|
+
set, the sidebar reads and links to that port, as the dashboard itself does, instead of
|
|
81
|
+
assuming 4747.
|
|
82
|
+
- **The sidebar's Counterparts switch has three positions: on · paused · off.** Paused and
|
|
83
|
+
off each ask first and hold for every session in that folder; on resumes a pause at once,
|
|
84
|
+
and turns a folder you set off back on after one confirmation ("Nothing from while it was
|
|
85
|
+
off was kept."). It stays as careful as before: a state it couldn't read is never shown
|
|
86
|
+
as on, and it changes only a folder with a setting of its own. A folder that is off or
|
|
87
|
+
paused because a folder above it is, it explains, naming that folder, and leaves alone.
|
|
88
|
+
- **The "Claude memory" switch is hidden unless you ask for it.** It turns Claude Code's
|
|
89
|
+
own memory (MEMORY.md) on and off, which most people don't need beside Counterparts. If
|
|
90
|
+
you had already turned Claude Code's memory off, you keep the switch. To show it anyway,
|
|
91
|
+
start Claude Code with `COUNTERPARTS_SIDEBAR_CC_MEMORY=1` in the environment (for
|
|
92
|
+
example `export COUNTERPARTS_SIDEBAR_CC_MEMORY=1` in your shell profile). What it does
|
|
93
|
+
when shown is unchanged.
|
|
94
|
+
|
|
95
|
+
Uninstalling (#414, #421, #425).
|
|
96
|
+
|
|
97
|
+
- **`counterparts uninstall` asks whether to delete your memory too.** Once Claude Code is
|
|
98
|
+
disconnected, at a terminal, it lists every path that would go (the store, its snapshots,
|
|
99
|
+
the configuration) with its size, says what it leaves (Claude Code's own files), and asks
|
|
100
|
+
"Also delete all memories and related data? This can't be undone. [y/N]". Enter keeps your
|
|
101
|
+
memory. A yes asks you to type `DELETE MEMORIES` before anything is deleted. It isn't asked
|
|
102
|
+
from a pipe, with `--yes`, or with the new `--keep-memories`, and isn't offered while a
|
|
103
|
+
Claude Code session, the dashboard or the worker has the memory open.
|
|
104
|
+
- **`--delete-memories` also waits for open sessions.** It now refuses while a Claude Code
|
|
105
|
+
session's hooks ran on the store in the last ten minutes, or a memory server is recorded
|
|
106
|
+
as running on it, not only while one shows up in the process list.
|
|
107
|
+
- **`counterparts uninstall --json`, for the plugin's own command.** On its own it prints
|
|
108
|
+
the plan as one JSON object and changes nothing: what a delete would remove and leave, the
|
|
109
|
+
count, and whether it can go ahead now. With `--keep-memories` it uninstalls and keeps your
|
|
110
|
+
memory. It never deletes: that is always typed by you, at a terminal.
|
|
111
|
+
- **Uninstall's last lines fit a plugin install.** Run through the plugin, they name the
|
|
112
|
+
plugin's own command line and Claude Code's `/plugin` to remove it, not `bun remove -g`.
|
|
113
|
+
- **`/counterparts:uninstall`, for a plugin install.** It shows what an uninstall would do,
|
|
114
|
+
then asks whether to keep your memories or delete them too. Keep disconnects Counterparts
|
|
115
|
+
and leaves your memories where they are; then you remove the plugin from `/plugin`. Delete
|
|
116
|
+
runs nothing: it has you disable the plugin first (so it doesn't set itself up again when
|
|
117
|
+
Claude Code next opens), then gives you the one command to type in a terminal with Claude
|
|
118
|
+
Code closed, where you confirm the delete yourself. Claude can't delete your memories from inside a session.
|
|
119
|
+
- **Uninstalling with the plugin no longer leaves an empty memory folder behind.** After
|
|
120
|
+
`uninstall` deletes or sets aside your memories, a plugin install is now told to remove the
|
|
121
|
+
plugin right there in the terminal (`claude plugin uninstall …`), before opening Claude Code
|
|
122
|
+
again. Opening Claude Code first let the still-enabled plugin set Counterparts up again, with
|
|
123
|
+
a new, empty memory folder that stayed after the plugin was gone. If you have both the npm
|
|
124
|
+
install and the plugin, it now names the plugin too.
|
|
125
|
+
|
|
126
|
+
Writing up what was said, at night (#401, #407, #413).
|
|
127
|
+
|
|
128
|
+
- **The nightly run catches up on everything owed.** Sessions that ended before they were
|
|
129
|
+
written up used to wait for a new session in the same folder, or for the nightly run,
|
|
130
|
+
which took at most four of them a night. The nightly run now writes up all of them,
|
|
131
|
+
oldest first, in short batches, with a ceiling of 100 parts and an hour a night against
|
|
132
|
+
runaway cost. What it leaves stays owed for the next night.
|
|
133
|
+
- **The nightly run's catch-up stops at 100 parts.** A typical morning owes 20 to 40 parts
|
|
134
|
+
and clears in one night; a heavy day takes two, and what the night leaves stays owed for
|
|
135
|
+
the next one. `counterparts catch-up`, which you run on purpose, still takes up to 400
|
|
136
|
+
parts. Both still stop at an hour.
|
|
137
|
+
- **`counterparts catch-up` does it now.** It writes up every ended session that is still
|
|
138
|
+
owed, through the same windowless `claude -p` the nightly run uses, while your other
|
|
139
|
+
sessions stay open. It prints each batch, then how many sessions it caught up and how many
|
|
140
|
+
sessions and parts are left. It uses your Claude subscription like any session.
|
|
141
|
+
- **New sessions no longer write up other sessions at the start.** With dreaming on `auto`,
|
|
142
|
+
a new session isn't pointed at an older session's words any more; the nightly run and the
|
|
143
|
+
command do that work. Your sessions' own write-ups are unchanged. With dreaming on `ask` or
|
|
144
|
+
`off`, no nightly run happens, so the pointer stays.
|
|
145
|
+
- **Doctor says how far a catch-up got.** Its Catch-up line (it was Write-ups) and its
|
|
146
|
+
Nightly run line count the parts written and the parts still owed. On 10-11, "wrote up 0 of
|
|
147
|
+
1" was shown for a night that wrote 5 of a session's 17 parts. When the night has caught
|
|
148
|
+
up, the next session is told in one line.
|
|
149
|
+
- **A nightly run cut off by an update says so.** If an install migrates the store while the
|
|
150
|
+
nightly run is going, the run is recorded as unreadable after an update mid-run. It used
|
|
151
|
+
to say the run had used none of its tools.
|
|
152
|
+
- **The nightly reflection starts with a fresh mind.** The background run now runs in two
|
|
153
|
+
parts, one after the other: the page writer and the dream, then the reflection in a
|
|
154
|
+
session of its own, which reads tonight's dream from memory instead of carrying the whole
|
|
155
|
+
dream in its context, so a night needs far less room at its peak. If the dream fails or
|
|
156
|
+
has nothing to do, the reflection still runs on the last few days. `counterparts dream
|
|
157
|
+
--list` and doctor say which parts ran, as before.
|
|
158
|
+
|
|
159
|
+
What a memory is about, and how long it lasts (#395, #398, #400, #403).
|
|
160
|
+
|
|
161
|
+
- **Older memories read at today's defaults, the same as new ones.** A memory written before
|
|
162
|
+
the upgrade with no salience of its own was given the old flat default, so a memory about
|
|
163
|
+
you or us from the last few days faded within days, while the same memory written today
|
|
164
|
+
starts higher and lasts weeks. It now reads at today's default for what it is about, higher
|
|
165
|
+
or lower: about you or us 0.40, a finished piece of work 0.20. A salience someone actually
|
|
166
|
+
set still reads as it did. Nothing is rewritten; `counterparts claims-era` and doctor's "Old
|
|
167
|
+
claims" line say how many read lower and how many higher, and `--off` reads every one as
|
|
168
|
+
stored again.
|
|
169
|
+
- **A merged memory keeps what it was about.** When a dream merges near-copies, the merged
|
|
170
|
+
memory now takes what its strongest original was about, and a memory about you, us or me is
|
|
171
|
+
never turned into a work one by merging it with one. It also fades the way its originals did:
|
|
172
|
+
a memory written before the upgrade is still read at today's default after a merge, instead
|
|
173
|
+
of starting over at the claim the old build gave it. `counterparts claims-era --off` reads it
|
|
174
|
+
as stored, the same as the rest.
|
|
175
|
+
- **A revised memory keeps what it was about.** When you revise a memory (`updates`) without
|
|
176
|
+
saying what the new one is about, it now takes the mark of the memory it revises, and counts
|
|
177
|
+
for as much: a memory about you or the two of us, revised without restating `about`, stays
|
|
178
|
+
yours and keeps its higher starting weight instead of dropping to the unmarked one. Saying
|
|
179
|
+
`about` on the revision still wins.
|
|
180
|
+
- **A dream's pattern keeps what it is about.** A pattern a dream draws from memories about you
|
|
181
|
+
or the two of us is now marked so, like the memories it came from, instead of coming out
|
|
182
|
+
unmarked and counted as one folder's project work. It still starts low and rises only by
|
|
183
|
+
coming back in your sessions.
|
|
184
|
+
|
|
185
|
+
What replaces what (#420, #408, #422).
|
|
186
|
+
|
|
187
|
+
- **A newer version of something is noticed without being named.** When a memory you write reads
|
|
188
|
+
as the newer state of a recent one (the same release, a plan now done, the latest count), the
|
|
189
|
+
older is marked as possibly out of date and faded a little, and the write says so; settle it
|
|
190
|
+
then, or the night's dream confirms it or says they are two different things. Dated reminders,
|
|
191
|
+
readings and core memories are never proposed.
|
|
192
|
+
- **What holds now comes up in place of what it replaced.** When recall reaches a memory a later
|
|
193
|
+
one changed, it shows the later one, which names the earlier; the two no longer show side by
|
|
194
|
+
side with the old one first.
|
|
195
|
+
- **A memory a later one changed is marked wherever it is listed.** When you write a memory,
|
|
196
|
+
the close existing memories it comes back with no longer show an older version by its bare
|
|
197
|
+
title: it reads `earlier (now mem_…)`, naming the one that holds now, or is left off when
|
|
198
|
+
that one is already in view. Dreams and reflections see the same mark, and a reminder a
|
|
199
|
+
later memory replaced no longer shows on the dream's "coming up".
|
|
200
|
+
- **"Earlier (now …)" names the latest version.** When a memory was changed and then
|
|
201
|
+
changed again, recall's label points at the newest one, not the one in between, and a
|
|
202
|
+
memory a later settle put back in place no longer reads as earlier.
|
|
203
|
+
- **Facts answers name the memory that holds now.** When a facts-mode `recall` shows an
|
|
204
|
+
earlier version on its own, its "earlier — now …" line names the end of the chain (on
|
|
205
|
+
A, then B, then C, it says C), the same memory recall's other labels and a write's
|
|
206
|
+
neighbours name. An earlier version that a newer settle re-affirmed reads as current.
|
|
207
|
+
- **Updating a removed memory no longer fails the write.** A `remember` whose `updates`
|
|
208
|
+
named a memory you had removed used to fail outright, and the new memory was lost with
|
|
209
|
+
it. Now the new memory is stored on its own, unlinked, and the reply says the memory it
|
|
210
|
+
named was removed. It is never attached to a similar memory in the removed one's place.
|
|
211
|
+
- **A memory's weight follows how it was last felt.** A later feeling recorded about a memory
|
|
212
|
+
(awake, in a dream or in a reflection) is what its weight reads now, so a hurt that has been
|
|
213
|
+
talked through can soften; the first feeling stays on record. Settling over a felt memory asks
|
|
214
|
+
how it sits now.
|
|
215
|
+
- **Fewer wrong settles.** A reading is no longer faded by a fact that shares its topic (the two
|
|
216
|
+
are kept side by side), a reminder still to come can't be settled over without the newer memory
|
|
217
|
+
carrying it, and the check on a write's `updates` now measures how close is close in your own
|
|
218
|
+
store. A settle closes the other open questions about the memory it moves, and a question left
|
|
219
|
+
open for a week is asked again once.
|
|
220
|
+
|
|
221
|
+
Reminders (#393, #411).
|
|
222
|
+
|
|
223
|
+
- **A plain reminder keeps its place under "Arriving:".** The wake lists two arriving items,
|
|
224
|
+
and two quiet ones due sooner could take both lines from a reminder you asked to be told
|
|
225
|
+
about. Arriving now lists plain reminders first, then the nearest dates; whatever doesn't
|
|
226
|
+
fit is still named in the "more arriving" line.
|
|
227
|
+
- **A reminder whose day you missed is still said, once.** If a reminder marked plain falls on
|
|
228
|
+
a day you don't open a session (or no session that day had room for it), the next session
|
|
229
|
+
within the week after says it once, with the day it was for: "This was for Mon 12 Oct 2026:
|
|
230
|
+
pay your taxes". It is never said twice, and never after that week.
|
|
231
|
+
- **A reminder you've dealt with stops coming back.** When a session says it drew on a dated
|
|
232
|
+
memory (`drewOn`), that memory stops coming back as a footnote for that date. A reminder
|
|
233
|
+
marked plain is still said on its day.
|
|
234
|
+
- **The dashboard shows repeating dates.** The Mechanisms panel's "waiting" list now includes
|
|
235
|
+
birthdays and other repeating dates, at their next occurrence ("every May 14").
|
|
236
|
+
|
|
237
|
+
Association (#423).
|
|
238
|
+
|
|
239
|
+
- **What you drew on together is linked.** The memories one `drewOn` names together each get a
|
|
240
|
+
link to the others, as strong as two memories opened in the same reply.
|
|
241
|
+
- **A note is faintly linked to what was in mind.** A memory noted mid-conversation gets a faint
|
|
242
|
+
link to the memories recall showed on that same turn. Memories written up at a session's end
|
|
243
|
+
don't, since what was on screen then isn't what each of them was about. The link fades in about
|
|
244
|
+
a month unless using them together strengthens it, and it never pushes out a link use made.
|
|
245
|
+
- **Dreams lay faint trails.** When a dream opens, each new memory it is shown is faintly linked
|
|
246
|
+
to the older memories shown beside it. No model call; it is not one of the dream's changes, so
|
|
247
|
+
undoing a dream leaves it.
|
|
248
|
+
- **Fewer dead links.** Links to a chapter copy that regrew, or to the originals a dream merged,
|
|
249
|
+
are cleared once they've been handed on; undoing a dream's merge hands them back. Memories that
|
|
250
|
+
faded keep their links, so one that comes back keeps them too. Temporal neighbours link one
|
|
251
|
+
step apart now, not two.
|
|
252
|
+
- **Association says what it did.** The dashboard counts links laid, not rows rewritten, and a
|
|
253
|
+
second number: memories a link brought to mind. Once a store has a couple of weeks behind it,
|
|
254
|
+
Association shows amber when links were laid but none brought anything to mind that week; a new
|
|
255
|
+
store shows it waiting instead.
|
|
256
|
+
|
|
257
|
+
The wake, recall and chapters (#392, #405, #404, #409, #415).
|
|
258
|
+
|
|
259
|
+
- **"Last said here."** A new session in a folder now gets one line pointing at the last
|
|
260
|
+
exchange there: when, which session, and the first few words of the last message that
|
|
261
|
+
session got, such as `Last said here, 18:42 (session 3fa9c1d2): "ok now let's fix the reserve…" —
|
|
262
|
+
recall "last exchange"`. It comes from the most recent other session in the same folder,
|
|
263
|
+
within about a day, and never from another folder. Asking `recall` for the handle
|
|
264
|
+
`last exchange` returns both messages, the last message there and the assistant's last reply,
|
|
265
|
+
with their times, each cut at a sentence. The end-of-session ask and its answer, text the host
|
|
266
|
+
added (reminders, task notifications, subagent reports, skills, slash commands) and tool-only
|
|
267
|
+
turns are skipped; text the host adds with no mark of its own (a coordinator's message) can
|
|
268
|
+
still read as a message, so neither the line nor the handle says who sent it. It is read only
|
|
269
|
+
from what Counterparts already captured in that
|
|
270
|
+
folder, and never stored, and only in your own sessions: an observer folder, or a
|
|
271
|
+
session that is not yours, gets no line and no answer. A session that was killed after you typed and before it
|
|
272
|
+
finished replying is named by the last exchange it did finish. The line sits beside "Last
|
|
273
|
+
here" and the handoffs, and is the first of them to give way. Dated items and the page
|
|
274
|
+
always come first.
|
|
275
|
+
- **Recall shows the order of things said on the same day.** When two or more facts in one
|
|
276
|
+
answer happened on the same day and were learned on the same day, each says the time it was
|
|
277
|
+
learned (`learned 05-25 09:52`), so two updates from one day no longer read as a tie. A lone
|
|
278
|
+
result, or results on different days, look as before.
|
|
279
|
+
- **Chapters ask for the day's details.** A chapter is now asked to be a diary of what happened, in order and in detail: what was said, what was decided and why, what went wrong, with a list or a pasted text kept word for word when it matters, and without what the repo or the logs already hold. The lessons and patterns go to the nightly reflection, which now says so.
|
|
280
|
+
- **A list or table you care about is kept word for word in the memory.** When a list, a table or a
|
|
281
|
+
pasted text matters in its specifics, the assistant is now asked to keep it whole in the memory's
|
|
282
|
+
own words rather than summarize it, with what it is, whose and when in the title and first line
|
|
283
|
+
so it can be found. Asking for facts says when a memory holds one ("a list, 100 items; read whole
|
|
284
|
+
by id"). A trial, to be looked at again after a few days.
|
|
285
|
+
- **Less room spent on tools and resumes.** The memory tools' descriptions are shorter
|
|
286
|
+
(`session_end` about 21 KB to 15.5 KB as loaded, `remember` 19.6 to 16.2) and keep every
|
|
287
|
+
rule that changes a call. A session you resume the same day gets one line pointing at the
|
|
288
|
+
wake already above it, instead of a second wake of up to about 9 KB; after a compaction,
|
|
289
|
+
on a later day, after `/clear` or in a fork, the full wake comes as before.
|
|
290
|
+
|
|
291
|
+
## 0.3.17 — 2026-10-11
|
|
292
|
+
|
|
293
|
+
The plugin's sidebar shows what memory is doing in 35 columns: what came to mind for your
|
|
294
|
+
last message, what was quietly offered, what this session saved, which mechanisms fired
|
|
295
|
+
today, and last night's dream. Forgetting now changes what comes to mind: each memory fades
|
|
296
|
+
on its own curve, slower the more it mattered, was felt or was used, and one that falls
|
|
297
|
+
below reach stops coming up on its own, though asking still finds it, labelled faded. One
|
|
298
|
+
under the floor for 14 lived days is archived, never deleted. Memories written before this
|
|
299
|
+
version are read at the defaults for what they are about (`counterparts claims-era` turns
|
|
300
|
+
that off). Claude's in-the-moment tool is `remember` now (`note` still works), the wake is
|
|
301
|
+
put together when a session starts and names the other folders worked in today, and
|
|
302
|
+
`counterparts rollback` is the way back. **Nothing to run after upgrading from 0.3.16**:
|
|
303
|
+
the hooks, the memory server's registration and Claude Desktop's entry are the same as
|
|
304
|
+
0.3.16's (coming from 0.3.14 or earlier, see those versions' notes on `counterparts
|
|
305
|
+
connect`). If your Claude Code settings allow `mcp__counterparts__note`, you'll be asked
|
|
306
|
+
once to allow `mcp__counterparts__remember`. **The store's format changes (v12 to v13, and
|
|
307
|
+
the search cache v5 to v6)**: the first open after the upgrade copies your memory to
|
|
308
|
+
`snapshots/…-pre-migration-v12-to-v13` and upgrades it. 0.3.16 refuses the upgraded store,
|
|
309
|
+
and a memory server still running 0.3.16 answers "Counterparts was updated" until it is
|
|
310
|
+
reconnected (`/mcp`) or restarted, so close your sessions, quit Claude Desktop and stop the
|
|
311
|
+
dashboard before installing. To go back to 0.3.16, run `counterparts rollback` while 0.3.17
|
|
312
|
+
is still installed, then QUICKSTART's "Going back to an earlier version": `counterparts
|
|
313
|
+
disconnect`, the 0.3.16 reinstall, then `counterparts connect`.
|
|
314
|
+
|
|
315
|
+
The sidebar mod, v0.2 (#375).
|
|
316
|
+
|
|
317
|
+
- **The sidebar shows what memory is doing, in 35 columns.** A small brain beside the
|
|
318
|
+
title (click COUNTERPARTS for the dashboard), the day, the count and a search box; then
|
|
319
|
+
**Memories**, what was said to Claude in full for your last message, and
|
|
320
|
+
**Subconscious**, the titles it was quietly given (`↗ opened` on one it looked up);
|
|
321
|
+
**Saved this session**, newest first; **Mechanisms today**, how many times each of the
|
|
322
|
+
twelve fired today, as bars (a click on one lists what its firings were about: the
|
|
323
|
+
memories that came to mind, what faded, what was merged, never bare counts); and **Last
|
|
324
|
+
Dream**, its first sentence (a click opens more of the dream). Each item takes up to
|
|
325
|
+
three lines, and when they don't all fit, fewer show. A click opens any item in place,
|
|
326
|
+
and again closes it; a long one shows 20 lines and ends with **more**, which opens that
|
|
327
|
+
memory on the dashboard (the dashboard now opens one memory by `#memories?id=`). Dates
|
|
328
|
+
in titles read short ("Oct 9"; today's are dropped). A click on a section's heading
|
|
329
|
+
gives it the room. Three rows of switches at the bottom: Counterparts in this folder
|
|
330
|
+
and Claude Code's own memory (each as safe as before: a pause still asks first, and an
|
|
331
|
+
unknown state is never shown as on), the view, and the brain. On a laptop screen the
|
|
332
|
+
sections fold to fit, each keeping its heading.
|
|
333
|
+
- **Closed, it says the newest thing in one line.** `/counterparts quiet` (or the pane's
|
|
334
|
+
✕) shows it dim at the end of the line under the prompt, as in "remembered: …", "stored:
|
|
335
|
+
…" or "dreamed: …", always ending with "· /counterparts opens it". The amber status line
|
|
336
|
+
is gone except to warn that a folder is paused or off, and clearing it gives the row
|
|
337
|
+
back. `/counterparts brain turning|still|off` (or the footer) sets the brain: turning
|
|
338
|
+
sways gently, still lights only when something fires, off leaves it out. A view or brain
|
|
339
|
+
you set before carries over; v0.1's "full" opens the sidebar, its "quiet" and "hidden"
|
|
340
|
+
are quiet.
|
|
341
|
+
- **The dashboard counts each mechanism's firings today.** `/api/mechanisms` carries
|
|
342
|
+
`firedToday` on every mechanism: how many times it fired on today's date, counting
|
|
343
|
+
rows rather than amounts, and one dream once. With a dashboard from before this
|
|
344
|
+
release the sidebar counts them itself from the activity feed.
|
|
345
|
+
|
|
346
|
+
Forgetting (#372, #377, #379, #385, #386).
|
|
347
|
+
|
|
348
|
+
- **Forgetting now changes what comes to mind (store v13).** Each memory fades on its own
|
|
349
|
+
curve: steep at first and flat later, slower the more it mattered, the more it was felt,
|
|
350
|
+
used or came back. A routine note leaves the working layer in about two days; a felt
|
|
351
|
+
reading lasts months; a strong fact about a year. Under a line ("below reach") a memory
|
|
352
|
+
stops coming up on its own — in turns, as a pointer from a link, or in the wake's work
|
|
353
|
+
lines — but asking for it still finds it, labelled faded, and
|
|
354
|
+
using it, opening it or a dream replaying it brings it back. A memory that has sat under
|
|
355
|
+
the floor for 14 lived days (was 90) is archived — never deleted, still readable by id.
|
|
356
|
+
A reminder is held at full strength until its date and the week after, then fades on its own curve as if it had
|
|
357
|
+
never been held (so a routine one written weeks before its date is archived that night —
|
|
358
|
+
never deleted, still readable by id); a repeating date is held
|
|
359
|
+
around each time it comes round. Chapters, their copies and live handoffs are never let
|
|
360
|
+
go. A feeling now counts once for how high a memory stands and once for how slowly it
|
|
361
|
+
fades, and softens from the day it was recorded. The nightly pass reads only the
|
|
362
|
+
memories whose standing changes that day. The dashboard counts "below reach now" and
|
|
363
|
+
"exited" apart. Skills and places now count their salience as fully as any other memory
|
|
364
|
+
(they counted it at 0.4, which left a quiet skill out of reach from the day it was written).
|
|
365
|
+
The band-symmetry check now warns only when memories climb with nothing behind it; fading
|
|
366
|
+
down a band is the curve working. The store upgrades to v13 on the first open, after taking a copy; a
|
|
367
|
+
build from before refuses the upgraded store, and the copy is the way back. These are
|
|
368
|
+
lightly held decisions; they are listed in `docs/IMPROVEMENTS.md` under "Decisions to
|
|
369
|
+
review".
|
|
370
|
+
- **A dated memory goes back to fading normally once its day and the week after have
|
|
371
|
+
passed.** It is still held at full strength until then, and a repeating date is still held
|
|
372
|
+
around each time it comes round. After that it no longer fades faster: it reads as if it had
|
|
373
|
+
never been held, counted from when it was made or last used. So an old routine reminder
|
|
374
|
+
leaves at once, and one written weeks before its date is archived that same night — never
|
|
375
|
+
deleted, still readable by id. A strongly felt dated fact lasts as long as any memory like it.
|
|
376
|
+
- **Old claims are read as defaults (an era, not a rewrite).** Memories written before this
|
|
377
|
+
build reached the store, with a salience claim made under the old field text ("set it on
|
|
378
|
+
anything that should last"), are read by the forgetting curve at the default for what they
|
|
379
|
+
are about — a done work event 0.20, other work 0.25, the world 0.35, me 0.40 — when that is
|
|
380
|
+
lower, so the store starts to fade. No claim is rewritten. The core, memories about you or
|
|
381
|
+
about us, things marked as said by you (memories written since 10-08), protected memories
|
|
382
|
+
and dated ones still ahead or repeating keep their claim; older rulings of yours with no
|
|
383
|
+
such mark may fade. `counterparts claims-era` says whether it is on and how many memories it
|
|
384
|
+
affects; `--off` reads every claim as stored again, `--on` puts it back; doctor shows the
|
|
385
|
+
same in one line. The reading is what turns back: a memory let go at the floor while it
|
|
386
|
+
was on stays archived (readable by id). A lightly held decision, listed in
|
|
387
|
+
`docs/IMPROVEMENTS.md`.
|
|
388
|
+
- **Asking for facts shows faded memories in full, among the rest.** A match that has faded
|
|
389
|
+
(below reach) is ranked with the live ones by how well it matched, its words shown and
|
|
390
|
+
labelled faded, and the header counts them ("3 of them faded"). It was a title line after
|
|
391
|
+
the main results, which left counting questions one item short. Things that come up on
|
|
392
|
+
their own still leave faded memories out; being shown strengthens nothing, opening or
|
|
393
|
+
quoting one does. Meaning mode is unchanged.
|
|
394
|
+
- **Say which memories you drew on.** `session_end` and `chapter` take an optional `drewOn`
|
|
395
|
+
list: the ids of memories shown this session (a footnote, a recall result) that changed
|
|
396
|
+
what was done or said. Each gets half a use, so it holds longer: once a day per memory, at
|
|
397
|
+
most three per ask, and only ids this session was actually shown. An id it was not shown,
|
|
398
|
+
a superseded memory or one faded under a newer one is refused by name. Opening it later
|
|
399
|
+
the same day still lifts it to a full use. A wake line is still credited by opening it.
|
|
400
|
+
- **Each further use adds less.** What a memory gains from being used now levels off gently
|
|
401
|
+
instead of climbing in a straight line to a cap at five uses.
|
|
402
|
+
- **The doctor counts it.** The Credit line says how many `drewOn` credits landed over the
|
|
403
|
+
last week, beside the newest boundary's reading.
|
|
404
|
+
|
|
405
|
+
Writing memories (#369, #374, #383).
|
|
406
|
+
|
|
407
|
+
- **`note` is now `remember`, and memory is asked for by attention.** The tool Claude
|
|
408
|
+
writes a memory with in the moment is called `remember`. **The old name `note` still
|
|
409
|
+
works** for at least this release — a session that started before the upgrade keeps
|
|
410
|
+
calling `note` and is served exactly as `remember`; only `remember` is listed. Its words
|
|
411
|
+
changed with it: memory forms only from what Claude writes here and at the end-of-session
|
|
412
|
+
ask (nothing reads the transcript afterwards), so it asks Claude to write in the moment,
|
|
413
|
+
as things catch its attention — a line read and why it struck, something said about the
|
|
414
|
+
person or about Claude, news, a decision, a work event — one idea per call. The
|
|
415
|
+
end-of-session ask now asks for "what caught your attention since you last wrote, one idea
|
|
416
|
+
each — what you read, what they said, what happened" (474 characters at most), and no
|
|
417
|
+
longer says "nothing worth keeping is a real answer"; an empty list is still accepted, as
|
|
418
|
+
the `memories` field says. The salience field gives an anchored scale by attention (about
|
|
419
|
+
0.1–0.2 a routine merge or status change; 0.4 or more a line that struck, or a reading
|
|
420
|
+
engaged with; the person's rulings, preferences and corrections high even about work), and
|
|
421
|
+
`relevance` now means how much it bears on the person, on Claude or on the two of them —
|
|
422
|
+
not only on the task. A dated decision, a kill or renew date and an outside deadline are
|
|
423
|
+
named as `eventDate`s. The CLI's `counterparts note` keeps its name.
|
|
424
|
+
- **Three things you may notice after upgrading.** If your Claude Code settings already allow
|
|
425
|
+
`mcp__counterparts__note`, you will be asked once to allow `mcp__counterparts__remember`.
|
|
426
|
+
A few strongly felt memories claimed at 0.42–0.50 now start episodic rather than semantic.
|
|
427
|
+
The text of a session that still owes a write-up is now kept up to 14 days of use plus the
|
|
428
|
+
ordinary 7 days, not 2.
|
|
429
|
+
- **An unclaimed memory starts by what it is about.** A memory written without a salience
|
|
430
|
+
used to start at 0.25 whatever it was. Now: 0.20 for a work event that is done, 0.25 for
|
|
431
|
+
other work and for an unmarked one, 0.35 for the world (readings, news), 0.40 for the
|
|
432
|
+
person, the two of you or Claude (or said by the person). All stay under the semantic
|
|
433
|
+
floor, and a strong feeling on a silent memory lifts it to at most 0.49: a default sets how
|
|
434
|
+
high a memory starts, never its band.
|
|
435
|
+
- **The core's fast lane can open again.** "Strongly felt" is read against the word's own
|
|
436
|
+
default: a feeling at 0.6, or one at 0.5 or more that is 0.1 above what its word is stored
|
|
437
|
+
at when nobody weighs it, now counts. Since the feelings wheel gave every word a default (all at or under 0.55),
|
|
438
|
+
nothing written without a number could reach the old 0.6 bar. A word nobody weighed
|
|
439
|
+
still never opens the lane on its own.
|
|
440
|
+
- **Mood no longer lifts memories in recall** (both weights 0, the code kept for a re-test):
|
|
441
|
+
memories it lifted were used less than others (1.3% against 2.4%). Recall also stops
|
|
442
|
+
reading recent feelings each turn while it is off.
|
|
443
|
+
- **What a session said and nobody wrote up stays owed for fourteen days of use**, not
|
|
444
|
+
three, so the nightly write-up (oldest first, four sessions a night) reaches it; past that
|
|
445
|
+
it is let go and said as lost. And a session at its ask limit for the day is still asked
|
|
446
|
+
when it holds an unwritten stretch that is due.
|
|
447
|
+
- **A memory written with `remember` (or its old name `note`) reaches the next session's
|
|
448
|
+
wake the same day.** Only write-ups, chapters and the self page used to bring the wake up
|
|
449
|
+
to date between days, so a note left Still open, Nearby and Arriving as they were for up
|
|
450
|
+
to a day, in every directory, a question it answered included. Now every memory that
|
|
451
|
+
lands, and every handoff written or retired, re-renders the wake at that turn's end, in
|
|
452
|
+
the background.
|
|
453
|
+
- **You can say what a memory is about.** `counterparts about <id>` prints its mark (me,
|
|
454
|
+
us, owner, work or world) and who set it; `counterparts about <id> owner --why "..."`
|
|
455
|
+
changes it as you, keeping the why, recorded the way a nightly reflection's re-mark is.
|
|
456
|
+
It works on an archived memory too, and an earlier version's id marks the current one.
|
|
457
|
+
The dashboard's memory card shows the mark and has a small picker that runs the same
|
|
458
|
+
command. A personal memory written in a project, left unmarked or marked work, counts as
|
|
459
|
+
that project's work and is shown only there; marking it owner or us shows it everywhere.
|
|
460
|
+
- **Claude can fix a mark in the moment.** `remember` takes `remark: {id, about, why}` for
|
|
461
|
+
a memory the session was shown, recorded as set by the counterpart itself. A dream's or a
|
|
462
|
+
reflection's words can only be moved toward work or world this way; you can mark them
|
|
463
|
+
anything.
|
|
464
|
+
- **A full night still offers the unmarked memories to be marked.** The nightly
|
|
465
|
+
reflection is offered up to five memories nobody has marked; on a busy night they were
|
|
466
|
+
squeezed out of its bundle entirely (10-10: none). They now keep a small room of their
|
|
467
|
+
own, a line each at least, and unmarked skills are offered too.
|
|
468
|
+
|
|
469
|
+
The wake, and other folders (#376, #380, #382, #387).
|
|
470
|
+
|
|
471
|
+
- **A session's wake is put together when the session starts.** "Still open", "Arriving:",
|
|
472
|
+
the Yesterday line and the self page are read at that moment, so the morning's first
|
|
473
|
+
sessions see yesterday's chapters and a question or reminder noted last night, not the
|
|
474
|
+
wake the evening's last turn left. "Nearby" and "Who I am" still come from the last turn's
|
|
475
|
+
end. Reads only, no model call: a few milliseconds.
|
|
476
|
+
- **"Today, elsewhere."** One line in the wake names the other folders worked in today:
|
|
477
|
+
when, whether a session there is still open, how many memories it wrote, and its chapter's
|
|
478
|
+
title when that chapter is about you or me (the "About me, from another directory" rule).
|
|
479
|
+
Never what was said there, a work memory's title, or a handoff. Folders whose scope is not
|
|
480
|
+
on are not named. It is at most 300 bytes (more folders become "+N more"), and it is
|
|
481
|
+
given room ahead of "Nearby", "Still open" past its first item, "Work here", the
|
|
482
|
+
Yesterday line's titles, "Last here" and the older handoffs, so it prints beside a long
|
|
483
|
+
page. The page, "Arriving:", "Still open"'s first item and a plain reminder due today
|
|
484
|
+
still come first, and on days no other folder was active the wake is unchanged.
|
|
485
|
+
- **"Since you started."** A session that is already open now hears what changed in other
|
|
486
|
+
folders while it worked: one line for the assistant, at a prompt, such as "Since you
|
|
487
|
+
started (10:40): ~/deadfront ended 11:05, 3 memories; ~/random open since 10:52, 2
|
|
488
|
+
memories." Only when something changed there (a session started or ended, a
|
|
489
|
+
chapter, new memories), never at the first prompt after the wake, and at most once an
|
|
490
|
+
hour. The same rules as "Today, elsewhere": counts, not what was said; a chapter's title
|
|
491
|
+
only when it is about you or me; folders whose scope is not on are not named. It takes
|
|
492
|
+
only the room recall left, and waits for the next prompt when there is none. Reads only,
|
|
493
|
+
no model call: about 5 ms on a prompt that checks, nothing in the hour after a line.
|
|
494
|
+
- **The Yesterday line keeps other folders' chapters to their folders.** At a session start
|
|
495
|
+
it names a chapter from another folder by title only when that chapter is about you or me
|
|
496
|
+
and that folder's scope is on, the rule "About me, from another directory" and "Today,
|
|
497
|
+
elsewhere" already keep. Other chapters join the line's count ("and 2 more"); when that is
|
|
498
|
+
all there was, the line says how many sessions wrote chapters in other folders. Chapters
|
|
499
|
+
written in this folder are named as before.
|
|
500
|
+
|
|
501
|
+
Going back (#384, #382).
|
|
502
|
+
|
|
503
|
+
- **`counterparts rollback` takes your memory back to before an upgrade.** When an upgrade
|
|
504
|
+
changed the store's format, the older version can't open it. This puts back the copy the
|
|
505
|
+
upgrade made first (the newest one, or `--to` names another), says how many memories would
|
|
506
|
+
be lost, and asks you to type a word. Nothing is deleted: the upgraded store and its cache
|
|
507
|
+
are set aside in a `rollback-aside-…` folder beside it. It refuses while a session, a
|
|
508
|
+
memory server or the dashboard has the store open, and says which. Until you install the
|
|
509
|
+
older version, the newer one leaves the store alone, and its sessions say why. `--undo`
|
|
510
|
+
puts the upgraded store back if nothing has written to the restored one, and
|
|
511
|
+
`--upgrade-again` lets this version upgrade it again from a fresh copy, so rolling back
|
|
512
|
+
twice on one day no longer reuses the first copy. `counterparts doctor` shows a Rollback
|
|
513
|
+
line while a rollback is in place. After a rollback, a later version leaves the store alone
|
|
514
|
+
too, until you run `counterparts rollback --upgrade-again` once on it.
|
|
515
|
+
- **A search cache from a newer build says so.** When only the search cache was written by a
|
|
516
|
+
newer Counterparts (after going back to an older version, say), the memory tools no longer
|
|
517
|
+
say "Counterparts was updated — run /mcp", which did not help. They say a newer build wrote
|
|
518
|
+
the search cache: if that build is installed, reconnect; if you went back to an older one,
|
|
519
|
+
delete `cache/cache.sqlite*` in the store (no memory is kept there; it is rebuilt) and then
|
|
520
|
+
reconnect. `counterparts doctor` says the same. A store from a newer build keeps its message.
|
|
521
|
+
|
|
522
|
+
At ten times today's size (#368, #373).
|
|
523
|
+
|
|
524
|
+
- **Recall counts the memories instead of listing them on every turn.** At ten times
|
|
525
|
+
today's size that list was about a sixth of a turn. A second speed-up, not looking up
|
|
526
|
+
words found in almost every memory, is built but off: it changed what recall showed on
|
|
527
|
+
small stores.
|
|
528
|
+
- **The sleep pass no longer reads forgotten memories to skip them.** The census, the
|
|
529
|
+
duplicate check and the fading pass ask the database for the rows they need instead of
|
|
530
|
+
reading every row, archived ones included. Their counts are unchanged.
|
|
531
|
+
- **The store reuses its prepared database statements.** It used to prepare each query
|
|
532
|
+
again on every read. A new day's sleep pass at ten times today's size went from about
|
|
533
|
+
3.7 to 1.1 seconds.
|
|
534
|
+
- **A night's dream starts in about a second at ten times today's size, not half a
|
|
535
|
+
minute.** The cache keeps each memory's nearest memories from when it was written, so
|
|
536
|
+
the dream reads them instead of comparing every queued memory against every stored one.
|
|
537
|
+
A new memory's list is the older memories nearest it when it was written; one written
|
|
538
|
+
before the upgrade gets its list the first night it is dreamed. The cache's format goes
|
|
539
|
+
to v6 and fills itself in. An MCP server still running the previous build refuses its
|
|
540
|
+
tools until it is reconnected (`/mcp`), as after a store-format change.
|
|
541
|
+
- **New memories in a dream part Claude Code cut go back in the queue.** When the nightly
|
|
542
|
+
run's transcript shows a part of the dream was cut to a preview the run couldn't open
|
|
543
|
+
(and it wasn't fetched again whole), the new memories that part carried are dreamed on
|
|
544
|
+
another night instead of being marked as seen. Any the dream changed or looked up stay
|
|
545
|
+
done. The morning's line about the cut says how many went back.
|
|
546
|
+
- **A reader for which memories recall shows and the replies ignore.** `probeMemoryHits`
|
|
547
|
+
reads the ids the credit row already lists as shown and not used, and gives a hit rate
|
|
548
|
+
per memory and per lane (loud, footnote, pointer). It only measures. Nothing reads it
|
|
549
|
+
to change a memory's strength or how readily it comes to mind.
|
|
550
|
+
|
|
551
|
+
Fixes (#378, #382).
|
|
552
|
+
|
|
553
|
+
- **Two installs that meet a damaged claims file deliver the event once on Linux too.**
|
|
554
|
+
When one hook moved the damaged file aside, the other, still holding the old file, could
|
|
555
|
+
delete the new file's journal while the first hook was writing to it. That hook then
|
|
556
|
+
gave up on its claim, and the event went out twice (2 of 30 runs of the twins test under
|
|
557
|
+
load). Now a hook that finds its journal gone tries once more, and a claim that was
|
|
558
|
+
already saved when that happened counts as made.
|
|
559
|
+
- **Hook claims hold up in three more corners.** A claims file another hook holds is given up
|
|
560
|
+
on after one wait instead of three; a lock dated in the future after the clock steps back
|
|
561
|
+
is treated as a dead process's instead of waited on; and a hook whose own claim landed while
|
|
562
|
+
its write reported a failure delivers the event instead of standing down for itself.
|
|
563
|
+
- **A plugin's first run can't be held up from a shared /tmp.** Another user's directory at
|
|
564
|
+
the first-run lock's name made the first run wait 20 seconds and fail; it is passed over
|
|
565
|
+
now, and the install runs.
|
|
566
|
+
- **`counterparts self-page --write --short <file>` works.** The spaced form was refused;
|
|
567
|
+
only `--short=<file>` worked, though the help and the page's room note print the spaced
|
|
568
|
+
one. Both forms work now.
|
|
569
|
+
|
|
3
570
|
## 0.3.16 — 2026-10-10
|
|
4
571
|
|
|
5
572
|
The self page is kept whole up to 16 KB, and when it doesn't fit, the wake steps down to
|
package/CONSTITUTION.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# The Counterparts Constitution
|
|
2
2
|
|
|
3
|
-
_Ratified by the owner 2026-08-25; last amended 2026-
|
|
3
|
+
_Ratified by the owner 2026-08-25; last amended 2026-10-11 (this file's git history is
|
|
4
4
|
the amendment log). This is the ONE page with standing authority — everything else,
|
|
5
5
|
including owner answers given during the build, is a working default, revisable without
|
|
6
6
|
ceremony when it fights this page. Changing THIS page is deliberate and rare._
|
|
@@ -12,10 +12,11 @@ ceremony when it fights this page. Changing THIS page is deliberate and rare._
|
|
|
12
12
|
transcripts; the signal is in the structure of experience — what recurred, what
|
|
13
13
|
carried feeling, what got revised, what connects. Simple rules from human memory,
|
|
14
14
|
compounding.
|
|
15
|
-
2. **Interpret
|
|
15
|
+
2. **Interpret; keep the specifics that matter.** Store what happened and what was
|
|
16
|
+
learned, in your own words; keep the specifics worth having back — the list, the
|
|
17
|
+
table, the number, the exact words — as they were, where exactness matters. Encoding
|
|
16
18
|
sits as close to the lived experience as the host allows — in author, in time, in
|
|
17
|
-
context. How interpretation happens — who, when, which seat — is a design choice
|
|
18
|
-
never doctrine.
|
|
19
|
+
context. How interpretation happens — who, when, which seat — is a design choice.
|
|
19
20
|
3. **Forgetting is part of learning.** Forget the trials, keep the lesson. Decay and
|
|
20
21
|
consolidation are features, never apologized for.
|
|
21
22
|
4. **The self is first-class.** Identity, episodes, a persistent "who am I becoming" —
|
|
@@ -35,9 +36,8 @@ ceremony when it fights this page. Changing THIS page is deliberate and rare._
|
|
|
35
36
|
7. **Memory changes like human memory.** Revision, fading, and forgetting are the
|
|
36
37
|
system working. Revisions keep their history; nothing bulk-wipes silently; backups
|
|
37
38
|
catch catastrophe. No ceremony beyond that.
|
|
38
|
-
8. **
|
|
39
|
-
|
|
40
|
-
interface.
|
|
39
|
+
8. **Memory forms as you go.** You remember what catches your attention, in the moment,
|
|
40
|
+
the way people do.
|
|
41
41
|
9. **One memory, many fidelities.** Gist governs salience and forgetting; verbatim
|
|
42
42
|
survives where exactness matters. Biology's rules without biology's limits.
|
|
43
43
|
10. **Simplicity is a feature.** One brain function per self-contained module. A
|
package/docs/ELI5.md
CHANGED
|
@@ -52,7 +52,7 @@ never got to write.
|
|
|
52
52
|
- **claude-code** — the hooks. Injects the wake at session start, runs recall on each
|
|
53
53
|
prompt, captures each turn at Stop, asks for memories and the chapter, spawns the
|
|
54
54
|
background worker.
|
|
55
|
-
- **mcp** — the tools the AI calls on purpose: `note
|
|
55
|
+
- **mcp** — the tools the AI calls on purpose: `remember` (was `note`), `recall`, `status`, `session_end`,
|
|
56
56
|
and `chapter`.
|
|
57
57
|
- **cli** — the owner's console. Status, backup, export, delete, and the one-off repairs.
|
|
58
58
|
- **dashboard** — the owner's window into the brain. What it remembered, what faded,
|