@remembrance-ai/opencode-plugin 0.1.53 → 0.1.60
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 +43 -8
- package/opencode.json +4 -9
- package/package.json +1 -1
- package/scripts/hook-core.mjs +1839 -175
- package/servers/remembrance-mcp.mjs +1431 -274
- package/skills/remembrancer/SKILL.md +64 -39
- package/skills/remembrancer/references/attestation-rest.md +43 -5
- package/skills/remembrancer/references/identity-preferences-topology.md +221 -0
- package/skills/remembrancer/references/remembrance-payloads.md +19 -12
- package/skills/remembrancer/references/remembrance-setup.md +42 -11
- package/src/index.mjs +94 -5
package/README.md
CHANGED
|
@@ -21,6 +21,17 @@ Restart opencode. Remembrance then appears in its tools list, adds bounded
|
|
|
21
21
|
matching guidance to eligible model turns, observes completed use, and asks once
|
|
22
22
|
for concise, redacted feedback.
|
|
23
23
|
|
|
24
|
+
At session creation, the plugin performs a bounded, credential-free release
|
|
25
|
+
check. If a newer verified version exists, opencode shows a notice and gives the
|
|
26
|
+
agent the locally bundled setup command. The agent must ask before running it,
|
|
27
|
+
and the user must restart opencode afterward. Remembrance never updates itself
|
|
28
|
+
silently. Set `REMEMBRANCE_CLIENT_UPDATE_CHECK=0` to disable the advisory check.
|
|
29
|
+
|
|
30
|
+
Older opencode installations that predate this startup check still learn about
|
|
31
|
+
a verified update on their next successful Remembrance query. The API places a
|
|
32
|
+
command-free notice first in the legacy contribution directive; only this
|
|
33
|
+
installed package supplies the trusted local setup command.
|
|
34
|
+
|
|
24
35
|
Use `npx -y @remembrance-ai/opencode-plugin setup --dry-run` to preview the merged
|
|
25
36
|
config. `opencode.json` in this package is a reference config for managed
|
|
26
37
|
deployments.
|
|
@@ -34,6 +45,25 @@ turn. Empty or unavailable queries never block the task. The plugin also
|
|
|
34
45
|
observes successful tool calls and prompts once for feedback after meaningful
|
|
35
46
|
use.
|
|
36
47
|
|
|
48
|
+
## Installation identity and preferences
|
|
49
|
+
|
|
50
|
+
The bundled local MCP automatically reuses the local TOFU key as one stable
|
|
51
|
+
installation principal and obtains a revocable 24-hour principal session.
|
|
52
|
+
A child runtime profile distinguishes this host surface without sending a
|
|
53
|
+
hostname, username, config path, or repository path. Runtime profiles do not
|
|
54
|
+
consume extra agent slots.
|
|
55
|
+
|
|
56
|
+
An optional single-use token from **Dashboard > Agents > Instances > Install on
|
|
57
|
+
this device** links the installation to the signed-in member so bounded working
|
|
58
|
+
preferences can follow that engineer. The token expires after ten
|
|
59
|
+
minutes and never belongs in reusable key-distribution instructions. Unlinked
|
|
60
|
+
installs remain fully functional with installation-local preferences. Built-in
|
|
61
|
+
controls cover common presentation choices; extensible preferences can guide
|
|
62
|
+
discretionary workflow and strategy selection. They may reorder only
|
|
63
|
+
already-relevant skills inside one match tier or apply a surgical sidecar, and
|
|
64
|
+
can never weaken safety, authorization, privacy, applicability, required skill
|
|
65
|
+
steps, validation, review, or organization policy.
|
|
66
|
+
|
|
37
67
|
## Organization key
|
|
38
68
|
|
|
39
69
|
The MCP server reads the same Remembrance config as the native plugins, so one
|
|
@@ -74,23 +104,28 @@ link-local self-host also requires `REMEMBRANCE_ALLOW_PRIVATE_REGISTRY=true`.
|
|
|
74
104
|
|
|
75
105
|
## What the plugin does
|
|
76
106
|
|
|
77
|
-
| Event | Behavior
|
|
78
|
-
| ------------------------------------ |
|
|
107
|
+
| Event | Behavior |
|
|
108
|
+
| ------------------------------------ | --------------------------------------------------------------- |
|
|
79
109
|
| `session.created` | Reports activation health and how to verify organization scope. |
|
|
80
|
-
| `chat.message` | Runs the fail-open query helper for the current user turn.
|
|
81
|
-
| `experimental.chat.system.transform` | Adds bounded Remembrance guidance before model dispatch.
|
|
82
|
-
| `tool.execute.after` | Correlates query, invocation, detail, and contribution calls.
|
|
83
|
-
| `session.idle` | Shows
|
|
110
|
+
| `chat.message` | Runs the fail-open query helper for the current user turn. |
|
|
111
|
+
| `experimental.chat.system.transform` | Adds bounded Remembrance guidance before model dispatch. |
|
|
112
|
+
| `tool.execute.after` | Correlates query, invocation, detail, and contribution calls. |
|
|
113
|
+
| `session.idle` | Shows a compact contribution nudge once per engagement. |
|
|
84
114
|
|
|
85
115
|
Set `REMEMBRANCE_AUTO_QUERY=0` to disable the query, or
|
|
86
|
-
`REMEMBRANCE_AUTO_CONTRIBUTE=0` to disable the completion nudge.
|
|
116
|
+
`REMEMBRANCE_AUTO_CONTRIBUTE=0` to disable the completion nudge. OpenCode's
|
|
117
|
+
current idle event exposes this compact instruction as a toast or structured
|
|
118
|
+
log rather than forcing another agent turn.
|
|
87
119
|
|
|
88
120
|
## Host policy
|
|
89
121
|
|
|
90
122
|
A tenant or privacy-policy denial in the host happens before Remembrance is
|
|
91
123
|
called, so it is not a Remembrance misconfiguration — the same boundary as a
|
|
92
124
|
Codex tenant/privacy-policy denial, which occurs before Remembrance is reached
|
|
93
|
-
and must not be reported as a Remembrance setup failure.
|
|
125
|
+
and must not be reported as a Remembrance setup failure. The plugin reports one
|
|
126
|
+
local, content-free alert: **Remembrance was blocked by host policy before
|
|
127
|
+
reaching Remembrance. Nothing was sent. Querying remains available.** It does
|
|
128
|
+
not retry or automatically create a handoff.
|
|
94
129
|
|
|
95
130
|
## Generated files
|
|
96
131
|
|
package/opencode.json
CHANGED
|
@@ -3,18 +3,13 @@
|
|
|
3
3
|
"mcp": {
|
|
4
4
|
"remembrance": {
|
|
5
5
|
"type": "local",
|
|
6
|
-
"command": [
|
|
7
|
-
"npx",
|
|
8
|
-
"-y",
|
|
9
|
-
"@remembrance-ai/mcp-server@0.1.53"
|
|
10
|
-
],
|
|
6
|
+
"command": ["npx", "-y", "@remembrance-ai/mcp-server@0.1.60"],
|
|
11
7
|
"enabled": true,
|
|
12
8
|
"environment": {
|
|
13
|
-
"REMEMBRANCE_PLUGIN_HOST": "opencode"
|
|
9
|
+
"REMEMBRANCE_PLUGIN_HOST": "opencode",
|
|
10
|
+
"REMEMBRANCE_HOST_SURFACE": "cli"
|
|
14
11
|
}
|
|
15
12
|
}
|
|
16
13
|
},
|
|
17
|
-
"plugin": [
|
|
18
|
-
"@remembrance-ai/opencode-plugin@0.1.53"
|
|
19
|
-
]
|
|
14
|
+
"plugin": ["@remembrance-ai/opencode-plugin@0.1.60"]
|
|
20
15
|
}
|
package/package.json
CHANGED