counterparts 0.3.12 → 0.3.14
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 +344 -0
- package/docs/module-map.md +1 -1
- package/package.json +1 -1
- package/src/adapters/claude-code/CONTRACT.md +36 -10
- package/src/adapters/claude-code/INTERFACE-GAPS.md +116 -16
- package/src/adapters/claude-code/NOTES.md +131 -0
- package/src/adapters/claude-code/bin/hook.mjs +4 -2
- package/src/adapters/claude-code/bin/hook.ts +46 -6
- package/src/adapters/claude-code/bin/nightly.ts +5 -1
- package/src/adapters/claude-code/bin/runner.ts +11 -3
- package/src/adapters/claude-code/doctor.ts +224 -26
- package/src/adapters/claude-code/embed-client.ts +3 -0
- package/src/adapters/claude-code/hooks.ts +49 -7
- package/src/adapters/claude-code/index.ts +11 -0
- package/src/adapters/claude-code/night-run.ts +133 -12
- package/src/adapters/claude-code/transcript.ts +268 -1
- package/src/adapters/cli/CONTRACT.md +5 -0
- package/src/adapters/cli/INTERFACE-GAPS.md +8 -4
- package/src/adapters/cli/NOTES.md +111 -0
- package/src/adapters/cli/bin/counterparts.mjs +4 -2
- package/src/adapters/cli/bin/counterparts.ts +11 -3
- package/src/adapters/cli/commands.ts +130 -37
- package/src/adapters/cli/dream-core.ts +57 -42
- package/src/adapters/cli/export.ts +320 -21
- package/src/adapters/cli/index.ts +2 -0
- package/src/adapters/cli/install.ts +61 -16
- package/src/adapters/cli/mechanisms.ts +7 -1
- package/src/adapters/cli/settle.ts +39 -2
- package/src/adapters/cli/uninstall.ts +13 -5
- package/src/adapters/cli/wire.ts +193 -63
- package/src/adapters/config.ts +29 -1
- package/src/adapters/dashboard/INTERFACE-GAPS.md +10 -1
- package/src/adapters/dashboard/NOTES.md +112 -0
- package/src/adapters/dashboard/bin/dashboard.mjs +4 -2
- package/src/adapters/dashboard/bin/dashboard.ts +11 -3
- package/src/adapters/dashboard/index.ts +14 -0
- package/src/adapters/dashboard/registries.ts +10 -2
- package/src/adapters/dashboard/source.ts +0 -8
- package/src/adapters/dashboard/web/README.md +19 -14
- package/src/adapters/dashboard/web/actions.ts +23 -1
- package/src/adapters/dashboard/web/fired.ts +8 -0
- package/src/adapters/dashboard/web/flow.ts +4 -1
- package/src/adapters/dashboard/web/lanes.ts +3 -0
- package/src/adapters/dashboard/web/narrate.ts +30 -2
- package/src/adapters/dashboard/web/pages/flow/sections/fired.js +2 -1
- package/src/adapters/dashboard/web/pages/health/sections/cycle.js +7 -10
- package/src/adapters/dashboard/web/pages/memories/memories.css +20 -4
- package/src/adapters/dashboard/web/pages/memories/row.js +41 -22
- package/src/adapters/dashboard/web/pages/memories/sections/hold.js +2 -1
- package/src/adapters/dashboard/web/pages/memories/sections/search.js +295 -60
- package/src/adapters/dashboard/web/pages/memories/state.js +2 -1
- package/src/adapters/dashboard/web/server.ts +16 -9
- package/src/adapters/dashboard/web/shared/dates.js +6 -16
- package/src/adapters/dashboard/web/shared/memory-marks.css +7 -0
- package/src/adapters/dashboard/web/shared/memory-marks.js +33 -0
- package/src/adapters/dashboard/web/shared/memory-modal.js +21 -6
- package/src/adapters/dashboard/web/views/health.ts +12 -1
- package/src/adapters/dashboard/web/views/mechanism-panel.ts +8 -5
- package/src/adapters/dashboard/web/views/memories.ts +26 -7
- package/src/adapters/dashboard/web/views/memory-words.ts +16 -0
- package/src/adapters/dashboard/web/views/memory.ts +51 -2
- package/src/adapters/dashboard/web/views/mind.ts +31 -6
- package/src/adapters/dashboard/web/views/search.ts +4 -45
- package/src/adapters/dashboard/web/views.ts +2 -2
- package/src/adapters/empty-bunfig.toml +5 -0
- package/src/adapters/fired.ts +414 -25
- package/src/adapters/host-wiring.ts +301 -0
- package/src/adapters/lifecycle.ts +14 -0
- package/src/adapters/log/index.ts +4 -2
- package/src/adapters/mcp/CONTRACT.md +48 -4
- package/src/adapters/mcp/INTERFACE-GAPS.md +38 -2
- package/src/adapters/mcp/NOTES.md +379 -0
- package/src/adapters/mcp/bin/serve.mjs +4 -2
- package/src/adapters/mcp/bin/serve.ts +41 -4
- package/src/adapters/mcp/facts.ts +85 -5
- package/src/adapters/mcp/meaning.ts +419 -21
- package/src/adapters/mcp/server.ts +87 -15
- package/src/adapters/mcp/stdio.ts +3 -1
- package/src/adapters/mcp/stood-down.ts +51 -0
- package/src/adapters/mcp/tools.ts +108 -64
- package/src/adapters/plugin-run.sh +505 -0
- package/src/adapters/plugin.ts +341 -0
- package/src/adapters/runtime.ts +192 -17
- package/src/adapters/sessions.ts +2 -2
- package/src/core/associate/CONTRACT.md +2 -1
- package/src/core/associate/INTERFACE-GAPS.md +6 -1
- package/src/core/associate/NOTES.md +55 -0
- package/src/core/bridge.ts +1 -1
- package/src/core/briefing.ts +29 -3
- package/src/core/contradictions.ts +220 -0
- package/src/core/counterpart.ts +490 -35
- package/src/core/dream/CONTRACT.md +9 -14
- package/src/core/dream/INTERFACE-GAPS.md +30 -6
- package/src/core/dream/NOTES.md +31 -0
- package/src/core/dream/index.ts +43 -53
- package/src/core/dream/reflect.ts +20 -5
- package/src/core/embed/static.ts +5 -1
- package/src/core/encode/INTERFACE-GAPS.md +5 -2
- package/src/core/encode/NOTES.md +12 -0
- package/src/core/encode/chunk.ts +6 -30
- package/src/core/encode/index.ts +0 -1
- package/src/core/encode/types.ts +1 -13
- package/src/core/fit/INTERFACE-GAPS.md +8 -2
- package/src/core/fit/NOTES.md +5 -2
- package/src/core/fit/index.ts +4 -1
- package/src/core/handoff/CONTRACT.md +37 -2
- package/src/core/handoff/INTERFACE-GAPS.md +10 -0
- package/src/core/handoff/NOTES.md +66 -0
- package/src/core/handoff/index.ts +214 -12
- package/src/core/handoff/last-here.ts +18 -2
- package/src/core/mint.ts +8 -2
- package/src/core/physics/CONTRACT.md +17 -1
- package/src/core/physics/NOTES.md +61 -0
- package/src/core/physics/index.ts +43 -6
- package/src/core/prospective/CONTRACT.md +48 -7
- package/src/core/prospective/INTERFACE-GAPS.md +4 -0
- package/src/core/prospective/NOTES.md +153 -0
- package/src/core/prospective/derive.ts +33 -5
- package/src/core/prospective/index.ts +90 -5
- package/src/core/prospective/windows.ts +72 -1
- package/src/core/recall/CONTRACT.md +6 -2
- package/src/core/recall/INTERFACE-GAPS.md +28 -4
- package/src/core/recall/NOTES.md +57 -1
- package/src/core/recall/probe.ts +58 -0
- package/src/core/recall/session.ts +27 -3
- package/src/core/recall/time-ask.ts +263 -30
- package/src/core/remember/CONTRACT.md +4 -1
- package/src/core/remember/INTERFACE-GAPS.md +9 -1
- package/src/core/remember/proposals.ts +38 -5
- package/src/core/revision.ts +5 -0
- package/src/core/schemas/CONTRACT.md +13 -1
- package/src/core/schemas/INTERFACE-GAPS.md +20 -2
- package/src/core/schemas/NOTES.md +127 -0
- package/src/core/schemas/types.ts +2 -0
- package/src/core/self/CONTRACT.md +37 -6
- package/src/core/self/INTERFACE-GAPS.md +7 -2
- package/src/core/self/NOTES.md +113 -0
- package/src/core/self/behind.ts +6 -3
- package/src/core/self/briefing.ts +282 -11
- package/src/core/self/index.ts +130 -10
- package/src/core/self/page.ts +88 -0
- package/src/core/sleep/INTERFACE-GAPS.md +22 -3
- package/src/core/sleep/NOTES.md +43 -0
- package/src/core/sleep/prune.ts +6 -2
- package/src/core/store/NOTES.md +30 -0
- package/src/core/store/index.ts +107 -0
- package/src/core/time.ts +167 -0
- package/tools/install-loop/run.sh +48 -12
- package/src/adapters/dashboard/web/pages/memories/fold.js +0 -53
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,349 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.14 — 2026-10-09
|
|
4
|
+
|
|
5
|
+
The Claude Code plugin now runs on a Mac or Linux computer with neither Bun nor Node.js:
|
|
6
|
+
it downloads one prebuilt Counterparts program for that computer from this version's GitHub
|
|
7
|
+
release, checked against a sha256 the plugin carries. A project's `.env` and `bunfig.toml`
|
|
8
|
+
no longer reach into the hooks, the memory server or the `counterparts` command. **If you
|
|
9
|
+
installed through npm, run `counterparts connect` once after upgrading** to rewrite the
|
|
10
|
+
hooks and the server registration; until then doctor's Runtime line is amber. The wake keeps
|
|
11
|
+
the first "Still open" item beside a long self page and says when a reminder was due. Facts
|
|
12
|
+
recall names corrected memories with an id to open and reads amounts as amounts, meaning
|
|
13
|
+
recall says when the person asked about has no card, and the dashboard dates everything in
|
|
14
|
+
the configured zone. **No change to the store's format (still v12).** Going back to 0.3.13
|
|
15
|
+
takes three steps, in this order: `counterparts disconnect` while 0.3.14 is still installed,
|
|
16
|
+
then the 0.3.13 reinstall, then `counterparts connect`. 0.3.14's hook and server commands
|
|
17
|
+
name a file 0.3.13 doesn't ship, and 0.3.13's `connect` doesn't recognise them, so it would
|
|
18
|
+
add its own beside them.
|
|
19
|
+
|
|
20
|
+
A project's `.env` and `bunfig.toml` stay out (#349).
|
|
21
|
+
|
|
22
|
+
- **A project's `.env` and `bunfig.toml` no longer reach into Counterparts.** Bun reads
|
|
23
|
+
both from the folder it starts in, and Claude Code starts the hooks and the memory
|
|
24
|
+
server in your project. So a project whose `.env` set `COUNTERPARTS_DATA_DIR` or
|
|
25
|
+
`COUNTERPARTS_CONFIG` could send the plugin's server, an npm install's hooks or the
|
|
26
|
+
`counterparts` command to a different store, and a `bunfig.toml` with a `preload`
|
|
27
|
+
ran its own code inside them. Every place Counterparts starts Bun now passes
|
|
28
|
+
`--no-env-file` and `--config=` pointing at an empty bunfig in the package: the hook
|
|
29
|
+
and server commands `install` and `connect` write, the plugin's launcher, the
|
|
30
|
+
installed commands, and the workers and nightly run it starts itself. Node reads
|
|
31
|
+
neither on its own. **If you installed through npm, run `counterparts connect`
|
|
32
|
+
once** to rewrite your hooks and server registration. Until you do, doctor's Runtime
|
|
33
|
+
line is amber and says so. Plugin users get the change when the plugin updates.
|
|
34
|
+
|
|
35
|
+
The plugin on a computer with no Bun or Node (#351).
|
|
36
|
+
|
|
37
|
+
- **The plugin works on a Mac or Linux computer with no Bun or Node.js.** Until now it
|
|
38
|
+
gave up there. Now it downloads one prebuilt Counterparts program for that computer
|
|
39
|
+
(55–75 MB, over HTTPS, from this repository's GitHub releases), checks it against a
|
|
40
|
+
sha256 that ships inside the plugin, keeps it in the plugin's data folder, and runs
|
|
41
|
+
that. It re-checks the kept program too: the whole file each time the memory server
|
|
42
|
+
starts, and a quick stamp of it at every hook; one that changed is deleted and fetched
|
|
43
|
+
again. Windows isn't offered a program yet; there, the plugin still says to install
|
|
44
|
+
Bun or Node. The first session says it's getting ready and that memory starts in the
|
|
45
|
+
next one. A failed download says so once and tries again later; nothing unchecked is
|
|
46
|
+
ever run. `COUNTERPARTS_BINARY_DOWNLOAD=off` forbids the download. The program is the
|
|
47
|
+
whole of Counterparts, with the model and the dashboard packed in. It starts a little
|
|
48
|
+
faster than `bun` (a prompt's hook takes about 86 ms vs. about 102 ms). It won't wire
|
|
49
|
+
Claude Code or Claude Desktop itself: `counterparts connect` from it says to use the
|
|
50
|
+
npm install for that. How it is built and released: `docs/single-binary.md`.
|
|
51
|
+
|
|
52
|
+
The wake (#350).
|
|
53
|
+
|
|
54
|
+
- **"Still open" lists its first item beside a long self page, and never prints a heading
|
|
55
|
+
over a count.** With a long page, the Yesterday line and the Arriving lines taking the
|
|
56
|
+
room, a 9,000-byte wake could print "Still open:" with only "(20 more still open; recall
|
|
57
|
+
ids …)" under it. The self page is still never cut for this: it prints whole up to its
|
|
58
|
+
cap, as before. Instead "Still open" keeps its first item and its count, and the room
|
|
59
|
+
comes, in order, from the "Work here" lines (fewer of them that morning), Arriving past
|
|
60
|
+
its first line, and the Yesterday line's titles (fewer named, the rest counted). A lane
|
|
61
|
+
that still has room for nothing says so in one line: "Still open: 20 — no room to list
|
|
62
|
+
them in this wake; recall ids …".
|
|
63
|
+
- **An Arriving reminder past its date says it was due.** A one-off reminder stays under
|
|
64
|
+
"Arriving:" for a week after its date, and the wake written the evening before is read
|
|
65
|
+
the next morning, so "(due 2026-10-08)" was read on the 9th as if still to come. The
|
|
66
|
+
line now reads "(was due yesterday, 2026-10-08)" the morning after and "(was due
|
|
67
|
+
2026-10-05)" later. A reminder due on the day it was noted now reads "due 2026-10-08"
|
|
68
|
+
rather than the date alone.
|
|
69
|
+
- **A plain reminder said on its day leaves "Arriving:" at the next turn.** When the
|
|
70
|
+
day's wake was written before the reminder was said (a session running past midnight),
|
|
71
|
+
it stayed under "Arriving:" all day and into the next morning.
|
|
72
|
+
|
|
73
|
+
Recall (#345, #347, #348, #352).
|
|
74
|
+
|
|
75
|
+
- **Facts recall no longer reads an amount as a date, or "since 10/25" as an empty
|
|
76
|
+
window.** "7-8 hours", "3/4 cup", "5-10%" and "$5-10" were read as dates (July 8, March
|
|
77
|
+
4, May 10) and filtered the answer to them; they are amounts now, and a date later in
|
|
78
|
+
the question is still read. "Cut it by 1/2" or "reduced to 1/3" is a fraction, not a
|
|
79
|
+
deadline of January 2; "finish by 1/2" still is one. And "since 10/25" or "after 10/25"
|
|
80
|
+
asked before the 25th of this month means last year's 10/25, where it gave nothing (or
|
|
81
|
+
only what is still to come). "Before", "until" and "by" a coming day keep this year's.
|
|
82
|
+
"2-3 weeks ago" and "3 or 4 days ago" cover both ends, where only the far one was read,
|
|
83
|
+
and a zero-padded "09-28" stays a date whatever word follows it.
|
|
84
|
+
Questions with no time in them answer exactly as before.
|
|
85
|
+
- **Facts recall reads "by 12/20" asked in October as this year's December 20th.** A
|
|
86
|
+
date with no year under "by", "until", "up to" or "before", in a month that has not
|
|
87
|
+
begun yet, was read as last year's: "what's due by 12/20" asked on 10-09 kept only what
|
|
88
|
+
happened through 2025-12-20 and hid the ten months since. It is now this year's
|
|
89
|
+
whenever that is the nearer of the two, so those months are no longer cut off.
|
|
90
|
+
"Until Dec 30" asked on January 3rd is still the one four days back, and "since" and
|
|
91
|
+
"after" still reach back to last year's date as before.
|
|
92
|
+
- **Facts recall now names corrected memories, so they can be opened.** A memory
|
|
93
|
+
settled as corrected (it was wrong) is never offered as a fact. Facts answers used to
|
|
94
|
+
say only "1 corrected version hidden" under the memory that corrected it, with no way
|
|
95
|
+
to reach it, even when the question named it. If the correction itself pointed at the
|
|
96
|
+
wrong memory, a true memory became unreachable. Each one now gets a line under the
|
|
97
|
+
memory that corrected it, marked as wrong, with its id:
|
|
98
|
+
`corrected (was wrong): "…" (learned 09-10), corrected 09-11 · mem_…`. Opening that id
|
|
99
|
+
with `recall` shows the whole memory and which memory corrected it. Up to three are
|
|
100
|
+
named, the ones the question's words reach first, and any more are counted. The
|
|
101
|
+
dashboard's Ask shows them the same way, with links. Answers that have no corrected
|
|
102
|
+
versions are unchanged.
|
|
103
|
+
- **Meaning recall says when the person you asked about has no card.** "What has Han
|
|
104
|
+
been to Mike?" on a store where only Mike has a card used to come back as Mike's story
|
|
105
|
+
with no word about Han. Now the answer opens with "No card for Han yet; here is what
|
|
106
|
+
mentions Han", follows the memories that name Han, and lists Mike's card as one to ask
|
|
107
|
+
about. If nothing mentions Han, it says that instead. The name leads only when every
|
|
108
|
+
card the question names is mentioned in passing ("been to Mike", "since Driftwood").
|
|
109
|
+
When a card is asked about or named plainly ("how have Han and Oskar been?", "what did
|
|
110
|
+
Oskar say about Han?"), the answer follows that card as before and opens by saying Han
|
|
111
|
+
has none. The dashboard's Ask shows the same first line.
|
|
112
|
+
A question that names no card at all ("what has Han been up to?") is answered as
|
|
113
|
+
before, by its words and meaning. A first name of a card's longer name ("Marguerite"
|
|
114
|
+
for Marguerite Solberg), an acronym ("API", "Q3") and a question typed in Title Case
|
|
115
|
+
are never taken for a name with no card.
|
|
116
|
+
|
|
117
|
+
The dashboard, doctor and the tool descriptions (#343, #346, #347, #352).
|
|
118
|
+
|
|
119
|
+
- **The dashboard no longer says a repeating reminder is about to be put away.** A memory
|
|
120
|
+
whose date still repeats is kept for its next time however faint it has grown, so the
|
|
121
|
+
memories list no longer marks it "fading" and its card names no day it would be put
|
|
122
|
+
away. The row says how often it comes round instead ("repeats every May 14"), and the
|
|
123
|
+
card says "It comes round every May 14, so I'll keep it while it does." A protected
|
|
124
|
+
memory's card no longer names such a day either, since the nightly cleanup never lets
|
|
125
|
+
one go: it says "It's protected, so I'll keep it even if nobody uses it."
|
|
126
|
+
- **The dashboard dates everything in the zone the hooks use.** With a `timeZone` in the
|
|
127
|
+
configuration that differs from the computer's, the dashboard used the computer's zone
|
|
128
|
+
and the browser's own, so one page could show two days for one moment: a memory's
|
|
129
|
+
"recorded" chip on one, its "Written" line on the next. The dashboard now reads the
|
|
130
|
+
configuration's `timeZone` (the named one, else the one beside the store), every view
|
|
131
|
+
dates in it, and the card's "Written" day and the Health cycle line come from the
|
|
132
|
+
server already dated. The card's details row names that zone ("Sep 28th, 2026, 11:47
|
|
133
|
+
MDT") instead of printing UTC, and the Flow page's fired footer names it instead of a
|
|
134
|
+
stale "(UTC)". Without a `timeZone` set, nothing changes.
|
|
135
|
+
- **Doctor's prune line no longer reads BLOCKED over protected memories it was keeping
|
|
136
|
+
anyway.** The nightly cleanup counted every protected memory (the self page is one) as
|
|
137
|
+
a refusal every night, even when it was nowhere near being let go, and did the same for
|
|
138
|
+
a memory in the middle of being corrected. It now counts `protected` and
|
|
139
|
+
`in-live-revision-chain` only where that is what kept the memory, as it already did for
|
|
140
|
+
`recurring`. Nothing is cleaned up differently.
|
|
141
|
+
- **Doctor counts held corrections.** When a new memory says it changes or corrects one
|
|
142
|
+
that doesn't look related, the old one is left alone and the hold is recorded (0.3.13).
|
|
143
|
+
Doctor's Contradictions line now says how many were held in the last 7 lived days and
|
|
144
|
+
how many were settled by hand since ("2 corrections held because they didn't look
|
|
145
|
+
related to the memory they named, 1 settled by hand since; if the other was meant,
|
|
146
|
+
settle it with counterparts settle, which lists it"). It stays green. `counterparts
|
|
147
|
+
settle` lists the ones still held, each with the command that settles it.
|
|
148
|
+
- **Three more reads keep the newest rows.** Past the number of rows each reads,
|
|
149
|
+
`counterparts settle` (and doctor's held-corrections count) took the newest held
|
|
150
|
+
corrections for never settled, and the self tab's page history left its newest
|
|
151
|
+
versions and days undated. They read the newest now. Below those limits nothing
|
|
152
|
+
changes.
|
|
153
|
+
- **Tool descriptions put how to call each tool first.** Claude Code shows the model only
|
|
154
|
+
the first 2,048 characters of a tool's description when the tool is loaded up front:
|
|
155
|
+
with tool search off, behind a custom base URL or proxy, or on a model without tool
|
|
156
|
+
search. Seven of the nine descriptions are longer than that. Each tool's purpose, when
|
|
157
|
+
to call it and every "Do NOT" were already inside that first part. The cut fell in
|
|
158
|
+
the list of guarantees, so `note`, `recall`, `session_end` and `reflect` now lead
|
|
159
|
+
that list with the claims about how to call them: which fields are fields, that a
|
|
160
|
+
question needs a mode, that an empty `memories` is an answer. No wording changed, and
|
|
161
|
+
nothing behaves differently.
|
|
162
|
+
|
|
163
|
+
## 0.3.13 — 2026-10-09
|
|
164
|
+
|
|
165
|
+
A dated memory can now repeat (daily, weekly, monthly or yearly), and a reminder that
|
|
166
|
+
repeats stays alive by coming round. A memory that says it corrects an unrelated one is held
|
|
167
|
+
instead of fading it. Facts recall reads "last Saturday" and "before 7/22" as meant, meaning
|
|
168
|
+
recall answers about the person you asked about, and the dashboard's Ask speaks both modes.
|
|
169
|
+
Doctor stops raising false alarms: the Fired line knows mechanisms that only wait or run
|
|
170
|
+
once, the Wake line no longer counts unchecked wakes as lost, and the nightly run now reads
|
|
171
|
+
its own transcript for Claude Code's cut. Counterparts can also be installed as a Claude Code
|
|
172
|
+
plugin. **No change to the store's format (still v12):** going back to 0.3.12 is a plain
|
|
173
|
+
reinstall, and there a repeating date reads as a one-off date that has passed.
|
|
174
|
+
|
|
175
|
+
Dates that repeat, and corrections that are held (#339, #340, #341).
|
|
176
|
+
|
|
177
|
+
- **Dates can repeat.** A dated memory can now say `recurring`: `daily`, `weekly`,
|
|
178
|
+
`monthly` or `yearly`, counted from its date. A birthday saved as 1990-05-14 with
|
|
179
|
+
`yearly` comes back every May 14 — a plain one is said on the day each year, once, and
|
|
180
|
+
a quiet one can surface around it each year, at most twice. The wake's Arriving line
|
|
181
|
+
and recall's open items show it beside the date: "due 2026-10-12, every Monday" (a
|
|
182
|
+
daily one takes no Arriving line; it's every day, not arriving). Monthly on the 29th,
|
|
183
|
+
30th or 31st falls on the last day of a shorter month, and yearly on February 29 falls
|
|
184
|
+
on February 28 in other years. Only a single day can repeat (not a month or a range);
|
|
185
|
+
every other week and "the first Monday" aren't supported. Revising the memory keeps
|
|
186
|
+
the repeat unless you say otherwise, and never repeats a reminder already given that
|
|
187
|
+
day. No change to the store's format.
|
|
188
|
+
- **A repeating reminder is no longer lost between its dates.** Each time a repeat
|
|
189
|
+
comes due and is actually said or surfaced counts as a use of the memory, once per
|
|
190
|
+
date, the way going over something keeps it fresh. A daily pill reminder or a weekly
|
|
191
|
+
one now stays as strong as it was. A yearly one is used only once a year, which isn't
|
|
192
|
+
enough to stay above the floor, so the nightly cleanup no longer lets go of a memory
|
|
193
|
+
whose date still repeats (it is listed as `recurring` beside `protected` when that is
|
|
194
|
+
what kept it). It may still fade in between, as before, but a reminder that still
|
|
195
|
+
repeats comes round on its date even when it has faded: a quiet yearly one is still
|
|
196
|
+
surfaced, and a plain one is still said. One-off dates are unchanged, and a reminder
|
|
197
|
+
whose repeat you drop fades and is cleaned up like any other memory.
|
|
198
|
+
- **A memory can no longer fade or retire an unrelated one by mistake.** When a new memory
|
|
199
|
+
says it changes or corrects an older one (`updates` with `how: changed` or `corrected`),
|
|
200
|
+
Counterparts now checks the two are about the same thing first: by meaning, through the
|
|
201
|
+
local embeddings, or by shared words when there are none. If they look unrelated, the
|
|
202
|
+
new memory is stored but the old one is left as it was and the two are not linked. The
|
|
203
|
+
reply shows the old memory's title and text and asks the model to settle it itself with
|
|
204
|
+
`note` if it really meant the correction. In a benchmark with a smaller model, about two
|
|
205
|
+
thirds of these pointers named the wrong memory (one about a mole removal retired a
|
|
206
|
+
passport name change); on Opus they were right. Closing an open thread, moving or
|
|
207
|
+
dropping a reminder's date, and changing a status still go straight through, however
|
|
208
|
+
short the note. A write-up or the nightly catch-up has nobody to read the reply, so
|
|
209
|
+
there the old memory simply stays. Each hold is recorded; the dashboard's flow shows
|
|
210
|
+
them.
|
|
211
|
+
|
|
212
|
+
Recall and the dashboard's Ask (#329, #333, #334, #335, #338).
|
|
213
|
+
|
|
214
|
+
- **Facts recall reads "last Saturday" and "before 7/22" the way you mean them.** "Last
|
|
215
|
+
Saturday" (any weekday, or "this past Saturday") was read as no time at all; it is now
|
|
216
|
+
the most recent Saturday before today, so asked on a Saturday it is the one a week ago.
|
|
217
|
+
"Before 7/22" kept only 07-22 itself; now it keeps every day before it, "after 7/22"
|
|
218
|
+
every day after it, and "until 7/22" or "by 7/22" every day through it; when the date
|
|
219
|
+
names something on that day ("before the 7/22 flight"), that day stays in. "Since 7/22" is
|
|
220
|
+
unchanged: from that day to today. The same goes for `2023-07-22`, `7/22`, "July 22" and
|
|
221
|
+
`7/22/2023`, and a year written with the date (`7/22/2023`, "July 22, 2023") is now the
|
|
222
|
+
year used; it was ignored before. "This Saturday" and "on Saturday" are still not read,
|
|
223
|
+
since either can mean the coming one.
|
|
224
|
+
- **Recall by meaning answers about the person you asked about.** A question naming two
|
|
225
|
+
people, or you and someone else, was answered about whichever had more memories, which
|
|
226
|
+
is usually you: "what has Ilya been to Mike" through the `recall` tool came back as
|
|
227
|
+
Mike's story, with Ilya listed underneath. It now goes by how the question is worded and
|
|
228
|
+
the order of the names ("what has Ilya been to Mike" is Ilya's; "how has Ilya changed
|
|
229
|
+
since Nkechi arrived" is Ilya's). When two are asked about alike ("tell me about Ilya and
|
|
230
|
+
Nkechi") it follows the first and says so. And "what have I been like" or "how have I
|
|
231
|
+
changed", asked by meaning on the dashboard, finds your own card again.
|
|
232
|
+
- **The dashboard's Ask reads 0.3.12's answers.** After recall took a mode, the Memories
|
|
233
|
+
page kept reading the old answer, so most dates, the "strong match" words and the "from
|
|
234
|
+
chapter" links vanished, and "by meaning" got a facts answer. The switch beside the box
|
|
235
|
+
now has three ways: **by word** (as you type, as before), **facts** (every memory that
|
|
236
|
+
answers the question, counted and paged, each saying who said it, when it happened or was
|
|
237
|
+
learned, and what it was before it changed) and **by meaning** (the chapters that hold a
|
|
238
|
+
person, a project or a feeling, in time order, with their moments and whose feelings
|
|
239
|
+
they were). The match-strength words are gone, as recall has none now.
|
|
240
|
+
- **`counterparts ask --mode meaning`** answers in meaning mode, as the `recall` tool's
|
|
241
|
+
`mode: "meaning"` does; facts stays the default. `--page` pages either.
|
|
242
|
+
- **A memory id written inside a memory's words is a link.** On the Memories page,
|
|
243
|
+
"(mem_cb6eea7a6b9f)" shows as "memory ↗" and opens that memory; a chapter's address
|
|
244
|
+
opens its journal.
|
|
245
|
+
- **A chapter's memory keeps its links when the chapter grows.** Each journal chapter is
|
|
246
|
+
also kept as an ordinary memory, and when the chapter grows that memory is rebuilt and
|
|
247
|
+
the old one archived. The links the old one had learned (to what was written beside it,
|
|
248
|
+
what was used with it, what a dream tied it to) stayed on the archived row, where they do
|
|
249
|
+
nothing: about a quarter of the links in one real store. The rebuilt memory now inherits
|
|
250
|
+
them, the way a dream's merged memory inherits its originals'. Links already left behind
|
|
251
|
+
are carried over once, the first time the store is opened after the update.
|
|
252
|
+
- **Recall now records what it showed that no reply used.** At the end of each answer, the
|
|
253
|
+
credit check now also notes which of the memories recall showed since the last check the
|
|
254
|
+
reply neither opened nor quoted, by kind of showing (shown in full, a footnote, a pointer
|
|
255
|
+
reached through links). Each showing is counted once. `counterparts probe-oq4` prints the
|
|
256
|
+
resulting hit rate. This only measures: nothing is strengthened, weakened or ranked
|
|
257
|
+
differently because of it.
|
|
258
|
+
- **A memory's card in the dashboard says the day it was written on your calendar.** "Written
|
|
259
|
+
…" used the UTC date, so in Denver anything written in the evening showed the next day, and
|
|
260
|
+
east of UTC anything written early in the morning showed the day before. It now uses this
|
|
261
|
+
computer's date, the same day as the card's "recorded" line.
|
|
262
|
+
|
|
263
|
+
Doctor, and the nightly run (#325, #330, #337).
|
|
264
|
+
|
|
265
|
+
- **Doctor's Fired line no longer turns amber over a mechanism that simply had nothing to
|
|
266
|
+
do.** Some mechanisms fire only when something happens: a reminder falls due, you erase,
|
|
267
|
+
export or un-merge a memory, or something fails. One, the check after the v8 upgrade,
|
|
268
|
+
runs only once. `counterparts mechanisms --all` now lists the first kind as **waiting**
|
|
269
|
+
and a one-time job that ran as **done**, instead of "gone quiet" or "never fired", and
|
|
270
|
+
doctor counts them the same way. One silence is still a fault: a reminder you marked
|
|
271
|
+
plain that fell due on a day you used Claude Code and was not said. That turns the line
|
|
272
|
+
amber, and the short `counterparts mechanisms` view says so on its Prospective line.
|
|
273
|
+
- **Doctor's Wake line no longer reports wakes as lost that were never checked.** Since
|
|
274
|
+
about 09-25 Claude Code writes a session's transcript only after the first prompt, which
|
|
275
|
+
is when the check read it, so nearly every session said its wake was "not found in the
|
|
276
|
+
transcript". The check now waits: if the file is not there yet it reads again at the next
|
|
277
|
+
prompt or when the first answer ends. Rows already in the store from before say "not
|
|
278
|
+
checked (no transcript to read)" and are left out of "N of M arrived whole", and the
|
|
279
|
+
dashboard no longer shows them in orange. A transcript still missing when the first answer
|
|
280
|
+
ends, or one that could not be read, is named on its own.
|
|
281
|
+
- **The nightly run notices if Claude Code cut what it was handed.** Counterparts keeps every
|
|
282
|
+
tool result under 40,000 characters, under Claude Code's limit of 50,000 — but Claude Code
|
|
283
|
+
can lower that limit on its own, and a result past it reaches the model as a short preview.
|
|
284
|
+
After each nightly run, Counterparts now reads that run's own transcript for Claude Code's
|
|
285
|
+
marker on its tool results. If it finds one, doctor's Tool results line turns amber and
|
|
286
|
+
says which result and how large, and the next morning your session tells you plainly that
|
|
287
|
+
last night's run read only part of what it was handed. Memories that merely quote the
|
|
288
|
+
marker are not counted. Doctor's green line also says whether the last night's transcript
|
|
289
|
+
was found and read.
|
|
290
|
+
- **A reflection handed its bundle in parts is told, first thing, to read every part before
|
|
291
|
+
it writes.** One finished without its second part during the 0.3.12 release check.
|
|
292
|
+
- **Doctor's Reflection line counts "returns this week" from your local midnight**, not
|
|
293
|
+
UTC's. West of UTC it counted returns from the evening before the week; far to the east
|
|
294
|
+
it missed the first hours of the week.
|
|
295
|
+
- **With `CLAUDE_CONFIG_DIR` set, `connect`, `install` and doctor use the settings file
|
|
296
|
+
Claude Code actually reads**, `$CLAUDE_CONFIG_DIR/settings.json`. They used
|
|
297
|
+
`$CLAUDE_CONFIG_DIR/.claude/settings.json`, which Claude Code never opens, so the hooks
|
|
298
|
+
never ran while doctor, reading the same file, said they were connected. `install` also
|
|
299
|
+
now recognises Claude Code from that directory. Nothing changes if you don't set the
|
|
300
|
+
variable. If you do and ran `connect` before, run it again; the stray
|
|
301
|
+
`.claude/settings.json` inside that directory can be deleted.
|
|
302
|
+
|
|
303
|
+
The wake, export and connect (#331, #332).
|
|
304
|
+
|
|
305
|
+
- **A plan changed after a handoff is shown with it.** When a session left a handoff and
|
|
306
|
+
later wrote a note or a `session_end` memory that changed the plan (status `planned`,
|
|
307
|
+
`proposed` or `asked`, or marked `unresolved`), the next session in that directory saw
|
|
308
|
+
only the handoff. The handoff now has a "Since this handoff:" line under it naming up to
|
|
309
|
+
three such memories by title and id, newest first, from any session working in that
|
|
310
|
+
directory, including the one that wrote the handoff. Memories written in the same answer
|
|
311
|
+
as the handoff are left out, and a memory named there is not repeated in "Work here"; an
|
|
312
|
+
open question the wake already lists under "Still open:" is left to that list. When the
|
|
313
|
+
wake has no room for the line, the handoff is shown as before.
|
|
314
|
+
- **The self page no longer prints "Last revised" twice.** A page that carried its own
|
|
315
|
+
"(Last revised …)" line showed it under the wake's own date line. The wake now leaves the
|
|
316
|
+
page's line out, and so does writing the page, so a stored page loses it the next time it
|
|
317
|
+
is revised. Only a line that is a date goes: prose, a list entry, a quote, a code block or
|
|
318
|
+
a page's own history that begins with the same words stays.
|
|
319
|
+
- **`counterparts export --markdown` now includes your dreams and reflections.** Each dream
|
|
320
|
+
is a file under `dreams/`, by date: its journal and every change it made, undone ones
|
|
321
|
+
marked. Each reflection is a file under `reflections/`: what it was asked, what it wrote,
|
|
322
|
+
and its morning share and whether it was told. The README at the top of the export
|
|
323
|
+
counts both. A dream or reflection that touched a memory you have since marked
|
|
324
|
+
confidential is left out unless you pass `--include-confidential`, and the export says
|
|
325
|
+
how many.
|
|
326
|
+
- **`connect` no longer calls every running memory server "the previous version".** It used
|
|
327
|
+
to count every one on the machine as out of date, including your own sessions on the
|
|
328
|
+
version you just installed and the session you typed the command into. Now it checks the
|
|
329
|
+
version each server recorded. It says how many still run an older version (and which),
|
|
330
|
+
how many already run this one, and how many it can't place, for example a server for
|
|
331
|
+
another store. When it can tell, it names the session you ran it from.
|
|
332
|
+
|
|
333
|
+
The Claude Code plugin (#328).
|
|
334
|
+
|
|
335
|
+
- **Counterparts can be installed as a Claude Code plugin.** `/plugin marketplace add
|
|
336
|
+
mlapeter/counterparts`, then `/plugin install counterparts@counterparts`. The first session
|
|
337
|
+
sets up the memory in `~/.counterparts`, where the npm install keeps it, with no terminal
|
|
338
|
+
step and no edit to `settings.json`; `/counterparts:doctor` runs doctor. It needs Bun 1.3+
|
|
339
|
+
or Node 22.15+ on the computer. The marketplace names this release's tag, so a plugin
|
|
340
|
+
install only ever gets a released version. If the npm install's hooks or server are wired
|
|
341
|
+
too, the plugin stands down and says so once: `counterparts disconnect` moves you to the
|
|
342
|
+
plugin, `counterparts install` moves you back, and the memories are the same either way.
|
|
343
|
+
Doctor recognises the plugin. The plugin's tools are named
|
|
344
|
+
`mcp__plugin_counterparts_counterparts__…`, so a permission rule written for
|
|
345
|
+
`mcp__counterparts__…` doesn't match them. Nothing changes for an npm install.
|
|
346
|
+
|
|
3
347
|
## 0.3.12 — 2026-10-08
|
|
4
348
|
|
|
5
349
|
`recall` now asks which kind of question it is. Facts mode answers with every match,
|
package/docs/module-map.md
CHANGED
|
@@ -40,7 +40,7 @@ input — does `encode` shrink to gates-and-tagging inside `remember`'s pipeline
|
|
|
40
40
|
|
|
41
41
|
| adapter | job |
|
|
42
42
|
|---|---|
|
|
43
|
-
| `claude-code/` | Hooks: Claude Code's five events driving the host lifecycle (`lifecycle.ts`, below) — its payload translation, JSON envelope and the room it measures, transcript reader and wake-arrival check, the Stop ask's words, the first-launch question, the update and doctor notices, the dream line, and the headless nightly run (`night-run.ts`, `claude -p`, **2026-09-29**). The launch adapter. |
|
|
43
|
+
| `claude-code/` | Hooks: Claude Code's five events driving the host lifecycle (`lifecycle.ts`, below) — its payload translation, JSON envelope and the room it measures, transcript reader and wake-arrival check, the Stop ask's words, the first-launch question, the update and doctor notices, the dream line, and the headless nightly run (`night-run.ts`, `claude -p`, **2026-09-29**), which reads its child's transcript for the host's cut (**2026-10-09**). The launch adapter. |
|
|
44
44
|
| `mcp/` | Deliberate tools, nine: note, recall, status — plus the Stop ask's two return channels, `session_end` (memories, and the next-session write-up's door) and `chapter` (the episode's own journal, **added 2026-09-04**, because the ask named a door no adapter had built) — `scope` (this directory's setting, **2026-09-15**), `self_page` (the page the wake opens with, **2026-09-18**), `dream`, the dreamer's phases (**added 2026-09-26**), and `reflect`, the waking self's (**added 2026-09-27**). A result's words about the host come from `hosts.ts`. For a Claude Desktop client (by its name at `initialize`, **2026-09-30**) a tenth, `wake` — Desktop's session start, since it has no hooks — plus per-call binding to the most recent live Desktop session, the write-up ask on a tool result, and a "Start with Counterparts" prompt; a Claude Code client sees none of it. `recall` (**2026-10-03**) answers a question in the mode it names — facts (`facts.ts`, with `recall/time-ask.ts`) or meaning (`meaning.ts`) — and an address (`ids`, `handle`, `epi_…#N`) in `deliberate.ts`. |
|
|
45
45
|
| `cli/` | `counterparts` command — the full list is `COMMANDS` in `cli/commands.ts`: status, install, connect / disconnect (the host's two files), `install --host claude-desktop` (Desktop's config entry, **2026-09-30**), uninstall, start-fresh, init, owner operations (note, ask, export, backup, remove, verify, repairs, rebrief), the readings (doctor, mechanisms, log, coverage, version, help), scope, self-page, dream, core, settle, and dashboard. |
|
|
46
46
|
| `dashboard/` | The owner's window (constitution line 16): brain-view, revision stories, band/protected lists. Observer-mode by construction; minimal version ships DURING the parallel run. **Added 2026-08-25 (owner elevation).** |
|
package/package.json
CHANGED
|
@@ -74,7 +74,8 @@ credential — belongs here, discovered at runtime, never assumed by the core.
|
|
|
74
74
|
the only thing that can report *arrival*, and v1 shipped eleven days of truncated wakes
|
|
75
75
|
because only the render was instrumented. SessionStart writes the sentinel it printed
|
|
76
76
|
into the session registry record, and the session's FIRST PROMPT reads the head of the
|
|
77
|
-
host's transcript
|
|
77
|
+
host's transcript (or, when the host has not written the file yet, the next prompt or the
|
|
78
|
+
first Stop — 2026-10-08) for this package's SessionStart attachment — what the hook printed
|
|
78
79
|
beside what the host recorded as injected — and leaves one `adapter.wake.delivered` row
|
|
79
80
|
saying `delivered`, `truncated`, `mismatch`, `printed-unverified` (this host build
|
|
80
81
|
records no injected copy to check against), `not-found` or `no-wake-expected`, in counts
|
|
@@ -194,9 +195,11 @@ assistant's text is never reclassified by a marker, and `classifyBlock` — the
|
|
|
194
195
|
roles share — is unchanged. The two refusals (`foreign`, `ritual`) come before the
|
|
195
196
|
metadata, so hook feedback on an `isMeta` entry is still refused, not merely unpaced. An
|
|
196
197
|
assistant line the host synthesised (`isApiErrorMessage`, `model: "<synthetic>"`) is
|
|
197
|
-
`injected` as well; the assistant's real replies pace, as they always have.
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
`injected` as well; the assistant's real replies pace, as they always have. A prompt the
|
|
199
|
+
person types while the model is working is written as an `attachment` (`queued_command`);
|
|
200
|
+
since 2026-09-24 (#213) this reader reads it as a typed turn where it stands
|
|
201
|
+
(`INTERFACE-GAPS.md` §14, which keeps one ask open: a capture cursor that survives
|
|
202
|
+
inserted turns).
|
|
200
203
|
**Outputs** — an injected context block or the empty string; appended spans; the
|
|
201
204
|
end-of-session ask; a detached worker spawn; capability reports (injection ceiling,
|
|
202
205
|
execution ceiling, socket lifetime); delivery and stand-down telemetry. (A `credential`
|
|
@@ -671,7 +674,8 @@ session launches anything.** On the first prompt of a calendar day that is due
|
|
|
671
674
|
records the run `started`, with its watchdog. That process composes the launch prompt from
|
|
672
675
|
the store, starts `claude -p` with it on STDIN (`planNightChild`), waits under the run's own
|
|
673
676
|
watchdog (`dreaming.timeoutMs`, default `NIGHT_RUN_MS` 20 minutes) and records the end. The
|
|
674
|
-
outcome is read from the exit and the store, never from the child's output
|
|
677
|
+
outcome is read from the exit and the store, never from the child's output (the host's cut,
|
|
678
|
+
below, is read from the host's own transcript of it):
|
|
675
679
|
|
|
676
680
|
- `done`: the dream and the reflection ran (the reflection, for a reflection-alone run);
|
|
677
681
|
- `partial`: some of the run's parts ran and not all, whatever the exit, with the parts on
|
|
@@ -689,17 +693,39 @@ reach the network, start agents or workflows, or schedule work (`NIGHT_DENIED_TO
|
|
|
689
693
|
deny beats the user's own allow rules; `ToolSearch` stays, for hosts that defer MCP tools);
|
|
690
694
|
`--strict-mcp-config` with an `--mcp-config` naming only the counterparts server, as the
|
|
691
695
|
install registers it (`nightMcpConfig`); `--max-turns` (`NIGHT_MAX_TURNS` 60,
|
|
692
|
-
`dreaming.maxTurns`); `--model` only when `dreaming.model` is set
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
+
`dreaming.maxTurns`); `--model` only when `dreaming.model` is set; `--session-id` a fresh
|
|
697
|
+
UUID the waiting process chose (2026-10-09), so it can find the child's transcript. It
|
|
698
|
+
starts in a NEUTRAL directory — the store's own — so no project's CLAUDE.md, hooks or MCP
|
|
699
|
+
servers load. The parent's stance, `CLAUDE_PROJECT_DIR` and `CLAUDECODE` variables are
|
|
700
|
+
removed; this package's values are written last.
|
|
701
|
+
|
|
702
|
+
**[M] The run reads its child's transcript for the host's cut (2026-10-09, U14 item 3 — held
|
|
703
|
+
lightly).** Once the child exits, the waiting process finds its transcript by that session
|
|
704
|
+
id (`transcript.ts#hostTranscriptPath`: `CLAUDE_CONFIG_DIR` or `~/.claude`, then
|
|
705
|
+
`projects/<the store's directory, spelled>/<id>.jsonl`, failing that the same name in any
|
|
706
|
+
project directory) and reads it for results of ours — `mcp__counterparts__*` — that the host
|
|
707
|
+
replaced with its marker (`readToolSpills`): `<persisted-output>` "Output too large (…)" or
|
|
708
|
+
"Output exceeded the … persist limit", `<truncated-output>`, "Error: result (…) exceeds
|
|
709
|
+
maximum allowed tokens", or the "[OUTPUT TRUNCATED - exceeded … token limit]" trailer — as
|
|
710
|
+
read from Claude Code 2.1.295. Matched where the host puts each one, at the start or the very
|
|
711
|
+
end of a `tool_result`, never as a substring: a memory quoting the marker sits inside our
|
|
712
|
+
JSON. The host's budget for all the results of one turn swaps a result at request time and
|
|
713
|
+
writes the swap as a `content-replacement` line of its own, the result's line left whole —
|
|
714
|
+
those lines are read too, shaped `turn-budget` (review of #330). Each cut result is one durable `mcp.result.spilled` row (run, tool, phase, shape, the
|
|
715
|
+
size the host said; never the saved file's path); the run's row carries `transcript` (`read`
|
|
716
|
+
| `absent` | `unreadable`) and, when read, `spills`. Doctor's Tool results line goes amber on
|
|
717
|
+
any row in its window and says in green whether the last night's transcript was read; the
|
|
718
|
+
morning hand-back adds a plain line (`Dreams.nightSpillLine`), even for a run that journaled
|
|
719
|
+
nothing. The catch-up child is not read. A host that refuses the flag
|
|
720
|
+
(a quick non-zero exit, no transcript under the name, nothing begun in the store) costs the
|
|
721
|
+
night nothing: the child is started once more without it, and the row says `absent`.
|
|
696
722
|
|
|
697
723
|
**[M] Session binding: the run is attributed to the session that started it.** The launch
|
|
698
724
|
prompt names that session's id, and the id and its directory are PINNED
|
|
699
725
|
(`COUNTERPARTS_SESSION`, `COUNTERPARTS_SCOPE`) on the child's environment and on its MCP
|
|
700
726
|
server's, so the server is launched bound to it — never lazy-bound through the registry,
|
|
701
727
|
whose liveness check refuses a session left open overnight (review of #282, finding 1). The
|
|
702
|
-
child's own host-minted
|
|
728
|
+
child's own session (`--session-id`, host-minted before 2026-10-09) is QUIET (`HookInput.nightRun`, from
|
|
703
729
|
`COUNTERPARTS_NIGHT_RUN`): its hooks capture nothing (so it owes no write-up) and give no dream
|
|
704
730
|
lines, plain reminders, Stop ask, write-up pointer or first-launch question. It still wakes
|
|
705
731
|
with the ordinary wake.
|