threadnote 0.7.5 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -10
- package/dist/mcp_server.cjs +776 -36
- package/dist/threadnote.cjs +815 -145
- package/docs/agent-instructions.md +24 -5
- package/docs/migration.md +4 -2
- package/package.json +1 -1
|
@@ -8,9 +8,11 @@ Use OpenViking through Threadnote as a shared local context and memory layer. Re
|
|
|
8
8
|
follow the nearest `AGENTS.md`, `CLAUDE.md`, or other checked-in instruction file first.
|
|
9
9
|
|
|
10
10
|
When OpenViking MCP tools are available, use them directly. Prefer Threadnote-named MCP tools when present:
|
|
11
|
-
`recall_context`, `read_context`, `list_context`, `remember_context`, and `share_publish`. Always
|
|
12
|
-
MCP tools
|
|
13
|
-
|
|
11
|
+
`recall_context`, `read_context`, `list_context`, `remember_context`, `compact_context`, and `share_publish`. Always
|
|
12
|
+
pass JSON arguments to MCP tools. When a recall query says "current repo" or "this branch", include the current
|
|
13
|
+
workspace path as `callerCwd`, for example
|
|
14
|
+
`recall_context({"query":"current repo latest handoff","callerCwd":"/absolute/workspace/path"})`. Older Threadnote MCP
|
|
15
|
+
adapters may expose `search`, `read`, `list`, and `store` instead.
|
|
14
16
|
|
|
15
17
|
If MCP is unavailable, use the `threadnote` CLI fallback.
|
|
16
18
|
|
|
@@ -88,8 +90,19 @@ threadnote remember --kind durable --project my-repo --topic active-bug --text "
|
|
|
88
90
|
threadnote handoff --project my-repo --topic active-bug --task "..." --tests "..."
|
|
89
91
|
```
|
|
90
92
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
+
Bare `threadnote handoff` stores the current repo/current branch handoff by default. Use `threadnote handoff
|
|
94
|
+
--timestamped` only when you intentionally want a historical note instead of updating the active branch handoff.
|
|
95
|
+
|
|
96
|
+
When recall/read surfaces several memories that describe the same durable fact, incident, branch, or handoff, run a
|
|
97
|
+
scoped hygiene dry-run before deciding what to change:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
threadnote compact --project my-repo --topic active-bug --dry-run
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
```text
|
|
104
|
+
compact_context({"project":"my-repo","topic":"active-bug","dryRun":true})
|
|
105
|
+
```
|
|
93
106
|
|
|
94
107
|
- Store one concise replacement memory that preserves the current status, the important facts, and the source `viking://`
|
|
95
108
|
URIs you merged.
|
|
@@ -97,6 +110,8 @@ them when it is safe:
|
|
|
97
110
|
no unique useful detail.
|
|
98
111
|
- Use `threadnote archive <uri>` instead of `forget` when the old handoff still has provenance value but should no
|
|
99
112
|
longer be treated as current context.
|
|
113
|
+
- Keep hygiene scoped to the current project/topic. Do not run global cleanup.
|
|
114
|
+
- For cross-repo features, link related durable memories explicitly in the body so recall can bridge the projects.
|
|
100
115
|
- If the memories disagree or you are not sure what can be deleted, keep them and mention the possible cleanup instead.
|
|
101
116
|
|
|
102
117
|
Never compact secrets, credentials, customer data, raw production logs, or checked-in canonical docs into memory.
|
|
@@ -142,6 +157,9 @@ Before pausing, switching agents, or ending meaningful work with local changes,
|
|
|
142
157
|
- blockers;
|
|
143
158
|
- next suggested step.
|
|
144
159
|
|
|
160
|
+
If you wrote or read multiple memories for the same project/topic during the task, run a scoped hygiene dry-run before
|
|
161
|
+
the handoff. Do not do global memory cleanup.
|
|
162
|
+
|
|
145
163
|
Do not store long diffs, secrets, raw logs, or customer data in handoffs.
|
|
146
164
|
|
|
147
165
|
## CLI Fallback
|
|
@@ -157,6 +175,7 @@ threadnote list viking://agent/threadnote/memories --all --recursive
|
|
|
157
175
|
threadnote remember --kind durable --project example --topic workflow --text "Durable engineering note..."
|
|
158
176
|
threadnote remember --kind durable --project example --topic active-issue --text "Feature knowledge..."
|
|
159
177
|
threadnote remember --replace viking://user/example/memories/durable/projects/example/workflow.md --text "Updated durable engineering note..."
|
|
178
|
+
threadnote compact --project example --topic active-issue --dry-run
|
|
160
179
|
threadnote archive viking://user/example/memories/handoffs/active/example/old-issue.md
|
|
161
180
|
threadnote forget viking://user/example/memories/events/duplicate.md
|
|
162
181
|
threadnote handoff --project example --topic active-issue --task "short task summary" --tests "checks run" --next-step "what to do next"
|
package/docs/migration.md
CHANGED
|
@@ -187,8 +187,9 @@ Preferred agent behavior is automatic after `threadnote install` has updated the
|
|
|
187
187
|
`remember --replace <uri>` instead of burying that knowledge only in a handoff.
|
|
188
188
|
- When current status changes, update the active handoff with the same project/topic or `handoff --replace <uri>` instead
|
|
189
189
|
of creating another near-duplicate progress memory.
|
|
190
|
-
- When recall surfaces clearly duplicate or stale memories,
|
|
191
|
-
|
|
190
|
+
- When recall surfaces clearly duplicate or stale memories, run `threadnote compact --project <name> --topic <topic>
|
|
191
|
+
--dry-run` or `compact_context({"project":"<name>","topic":"<topic>","dryRun":true})`. Keep cleanup scoped to the
|
|
192
|
+
current project/topic; archive stale handoffs by default and forget only exact redundant duplicates.
|
|
192
193
|
- Before pausing, switching agents, or finishing meaningful code changes, store a concise handoff with status, tests,
|
|
193
194
|
blockers, and next steps.
|
|
194
195
|
|
|
@@ -199,6 +200,7 @@ threadnote recall --query "last handoff for this branch"
|
|
|
199
200
|
threadnote recall --query "durable feature knowledge for this branch"
|
|
200
201
|
threadnote remember --kind durable --project example --topic active-feature --text "Feature knowledge..."
|
|
201
202
|
threadnote remember --replace viking://user/example/memories/events/current.md --text "Updated durable engineering note..."
|
|
203
|
+
threadnote compact --project example --topic active-feature --dry-run
|
|
202
204
|
threadnote handoff --project example --topic active-feature --task "short task summary" --tests "checks run" --next-step "what the next agent should do"
|
|
203
205
|
```
|
|
204
206
|
|