threadnote 0.2.2 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -11
- package/dist/mcp_server.cjs +594 -407
- package/dist/threadnote.cjs +4286 -4105
- package/docs/agent-instructions.md +7 -2
- package/docs/migration.md +13 -5
- package/docs/rollout.md +1 -1
- package/docs/security.md +4 -4
- package/docs/troubleshooting.md +22 -1
- package/package.json +16 -4
- package/scripts/install.sh +1 -0
- package/docs/demo.md +0 -279
package/README.md
CHANGED
|
@@ -28,8 +28,8 @@ Threadnote keeps that memory local and searchable without editing unrelated repo
|
|
|
28
28
|
- Redaction: known config files such as `.mcp.json`, `config.toml`, and settings JSON are copied through a redactor
|
|
29
29
|
before import.
|
|
30
30
|
- Secret scanning: candidate files are skipped if common token or private-key patterns remain after redaction.
|
|
31
|
-
- User instructions: `install` upserts a managed Threadnote block in `~/.codex/AGENTS.md
|
|
32
|
-
without replacing existing personal instructions.
|
|
31
|
+
- User instructions: `install` upserts a managed Threadnote block in `~/.codex/AGENTS.md`, `~/.claude/CLAUDE.md`, and
|
|
32
|
+
`~/.cursor/rules/threadnote.md` without replacing existing personal instructions.
|
|
33
33
|
- Agent config changes are explicit: `mcp-install` prints commands and snippets by default; use `--apply` to run them.
|
|
34
34
|
|
|
35
35
|
## Install
|
|
@@ -70,13 +70,15 @@ threadnote doctor --dry-run
|
|
|
70
70
|
|
|
71
71
|
### MCP
|
|
72
72
|
|
|
73
|
-
Make the agents you use aware of Threadnote. Use only the MCP install lines for agents you actually use. Open a fresh
|
|
73
|
+
Make the agents you use aware of Threadnote. Use only the MCP install lines for agents you actually use. Open a fresh
|
|
74
|
+
agent session after installing MCP so the new server registration is loaded.
|
|
74
75
|
|
|
75
76
|
Dry-run examples:
|
|
76
77
|
|
|
77
78
|
```bash
|
|
78
79
|
threadnote mcp-install codex
|
|
79
80
|
threadnote mcp-install claude
|
|
81
|
+
threadnote mcp-install cursor
|
|
80
82
|
```
|
|
81
83
|
|
|
82
84
|
Apply after review:
|
|
@@ -84,10 +86,12 @@ Apply after review:
|
|
|
84
86
|
```bash
|
|
85
87
|
threadnote mcp-install codex --apply
|
|
86
88
|
threadnote mcp-install claude --apply
|
|
89
|
+
threadnote mcp-install cursor --apply
|
|
87
90
|
```
|
|
88
91
|
|
|
89
92
|
Claude installs at `user` scope by default so the same OpenViking MCP server is available from any repo or worktree.
|
|
90
93
|
Use `--scope local` or `--scope project` only when you intentionally want repo-scoped Claude MCP config.
|
|
94
|
+
Cursor installs by updating the global `~/.cursor/mcp.json` file.
|
|
91
95
|
|
|
92
96
|
If the package or checkout that originally installed `threadnote` has moved, run repair:
|
|
93
97
|
|
|
@@ -106,6 +110,8 @@ codex mcp add threadnote -- threadnote-mcp-server
|
|
|
106
110
|
claude mcp add threadnote -- threadnote-mcp-server
|
|
107
111
|
```
|
|
108
112
|
|
|
113
|
+
Cursor uses the equivalent entry in `~/.cursor/mcp.json`.
|
|
114
|
+
|
|
109
115
|
If a future OpenViking build exposes a healthy native endpoint, install it explicitly:
|
|
110
116
|
|
|
111
117
|
```bash
|
|
@@ -146,7 +152,7 @@ This is it! Start working with your agents as usual. The agent will automaticall
|
|
|
146
152
|
- `doctor`: checks prerequisites, the generated command shim, manifest shape, templates, and local OpenViking health.
|
|
147
153
|
- `install`: installs `openviking[local-embed]==0.3.12` if missing, creates `~/.openviking` config files if absent,
|
|
148
154
|
writes the command shim, and upserts user-level agent instructions.
|
|
149
|
-
- `repair`: fixes install/config/shim/manifest/server health issues and rewrites Codex/Claude MCP configs from the
|
|
155
|
+
- `repair`: fixes install/config/shim/manifest/server health issues and rewrites Codex/Claude/Cursor MCP configs from the
|
|
150
156
|
current checkout.
|
|
151
157
|
- `start`: starts `openviking-server` on `127.0.0.1:1933`.
|
|
152
158
|
- `stop`: stops the detached server pid or macOS LaunchAgent.
|
|
@@ -156,7 +162,7 @@ This is it! Start working with your agents as usual. The agent will automaticall
|
|
|
156
162
|
- `seed`: imports curated repo guidance and docs from the manifest.
|
|
157
163
|
- `seed-skills`: imports global and repo-local `SKILL.md` files as a searchable resource catalog. Use
|
|
158
164
|
`seed-skills --native` only after configuring a working VLM provider.
|
|
159
|
-
- `mcp-install codex|claude`: installs or prints OpenViking MCP configuration for Codex or
|
|
165
|
+
- `mcp-install codex|claude|cursor`: installs or prints OpenViking MCP configuration for Codex, Claude, or Cursor.
|
|
160
166
|
- `remember`: stores a durable memory.
|
|
161
167
|
- `recall`: searches shared OpenViking context. It infers repo or skill scope from queries like
|
|
162
168
|
`skills for api service`; use `--uri` or `--no-infer-scope` to override.
|
|
@@ -168,6 +174,9 @@ This is it! Start working with your agents as usual. The agent will automaticall
|
|
|
168
174
|
|
|
169
175
|
## Source Checkout
|
|
170
176
|
|
|
177
|
+
TypeScript sources live under `src/`; `src/threadnote.ts` is the CLI entrypoint and `src/mcp_server.ts` is the stdio MCP
|
|
178
|
+
adapter entrypoint.
|
|
179
|
+
|
|
171
180
|
For local development from this repo:
|
|
172
181
|
|
|
173
182
|
```bash
|
|
@@ -178,7 +187,8 @@ npm run threadnote -- install
|
|
|
178
187
|
```
|
|
179
188
|
|
|
180
189
|
`install` writes a small command shim to `~/.local/bin/threadnote` by default and upserts user-level agent guidance in
|
|
181
|
-
`~/.codex/AGENTS.md
|
|
190
|
+
`~/.codex/AGENTS.md`, `~/.claude/CLAUDE.md`, and `~/.cursor/rules/threadnote.md`. After that, use the short command from
|
|
191
|
+
any repo or working directory:
|
|
182
192
|
|
|
183
193
|
```bash
|
|
184
194
|
threadnote doctor --dry-run
|
|
@@ -218,9 +228,6 @@ only occurs when another process already owns the same host and port. If that ha
|
|
|
218
228
|
See `docs/migration.md` for switching an existing repo workflow to `threadnote` without deleting canonical
|
|
219
229
|
`AGENTS.md`, `CLAUDE.md`, `.claude/`, or `.agents/` files.
|
|
220
230
|
|
|
221
|
-
See `docs/demo.md` for an engineer-facing demo script that shows recall, read, remember, handoff, and repair across
|
|
222
|
-
agents or worktrees.
|
|
223
|
-
|
|
224
231
|
See `docs/agent-instructions.md` for the user-level agent guidance installed by `threadnote install`.
|
|
225
232
|
|
|
226
233
|
## Recall And Read
|
|
@@ -234,5 +241,6 @@ threadnote read viking://agent/threadnote/memories/.abstract.md
|
|
|
234
241
|
threadnote list viking://agent/threadnote/memories --all --recursive
|
|
235
242
|
```
|
|
236
243
|
|
|
237
|
-
When MCP is installed, the agent should use
|
|
238
|
-
|
|
244
|
+
When MCP is installed, the agent should use Threadnote MCP `recall_context`, then `read_context` or `list_context`.
|
|
245
|
+
Agents must pass JSON arguments, for example `recall_context({"query":"agent context"})`. Older adapters expose
|
|
246
|
+
`search`, `read`, and `list` aliases. The CLI commands are the fallback path.
|