@kynver-app/openclaw-agent-os 0.1.74 → 0.1.76
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 +288 -288
- package/SECURITY.md +14 -14
- package/analyst-market-readonly-tools.json +335 -335
- package/dist/index.js +18 -18
- package/openclaw.plugin.json +278 -266
- package/package.json +71 -71
- package/scripts/bootstrap-openclaw.mjs +156 -156
package/README.md
CHANGED
|
@@ -1,288 +1,288 @@
|
|
|
1
|
-
# @kynver-app/openclaw-agent-os
|
|
2
|
-
|
|
3
|
-
OpenClaw plugin that exposes Kynver AgentOS as first-class agent tools.
|
|
4
|
-
|
|
5
|
-
This package is the OpenClaw-native bridge for agents that use Kynver as their operating memory:
|
|
6
|
-
identity, goals, projects, contacts, sessions, daily logs, and long-term memory.
|
|
7
|
-
|
|
8
|
-
## What It Provides
|
|
9
|
-
|
|
10
|
-
- Explicit `agent_os_*` tools in the OpenClaw tool namespace covering identity, goals, projects, contacts, sessions, memory, skills, the durable task board, and first-class plans with version history.
|
|
11
|
-
- Direct Kynver HTTP transport for low-latency calls, with primary-slug auto-resolution via `GET /api/agent-os` so installs work without hardcoding a persona.
|
|
12
|
-
- `mcporter` fallback for compatibility with existing MCP setups.
|
|
13
|
-
- Optional OpenClaw session lifecycle hooks that automatically open/close AgentOS sessions.
|
|
14
|
-
- Runtime skill manifest injection: enabled Kynver skills are exposed to OpenClaw turns as metadata only, with full instructions fetched on demand by `agent_os_get_skill`.
|
|
15
|
-
- Continuity-guidance system context: a small, always-on system message teaching OpenClaw turns to use AgentOS (`agent_os_get_context`, `agent_os_search_memory`, `agent_os_write_memory`, session/project/goal tools) as the primary continuity store and to treat local markdown memory as fallback only.
|
|
16
|
-
- `agent_os_health_check` for setup verification.
|
|
17
|
-
|
|
18
|
-
## Install
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
openclaw plugins install @kynver-app/openclaw-agent-os@latest --force
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
If your OpenClaw install does not support package installs yet, install this package into the OpenClaw
|
|
25
|
-
extensions directory and enable the plugin from there. The runtime entry point is `dist/index.js`.
|
|
26
|
-
|
|
27
|
-
For a wiped machine or new-user setup, use the packaged bootstrap command:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
export KYNVER_API_URL="https://www.kynver.com"
|
|
31
|
-
export KYNVER_API_KEY="kynver_xxx"
|
|
32
|
-
export KYNVER_HARNESS_REPO="/path/to/Kynver" # optional, enables kynver_harness_* tools
|
|
33
|
-
|
|
34
|
-
npx -y -p @kynver-app/openclaw-agent-os@latest kynver-openclaw-agent-os-bootstrap
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
See the [Kynver help center](https://www.kynver.com/help) for the full
|
|
38
|
-
onboarding walkthrough.
|
|
39
|
-
|
|
40
|
-
## Configure
|
|
41
|
-
|
|
42
|
-
Recommended direct HTTP config:
|
|
43
|
-
|
|
44
|
-
```json
|
|
45
|
-
{
|
|
46
|
-
"plugins": {
|
|
47
|
-
"entries": {
|
|
48
|
-
"kynver-agent-os-tools": {
|
|
49
|
-
"enabled": true,
|
|
50
|
-
"config": {
|
|
51
|
-
"kynverApiUrl": "https://www.kynver.com",
|
|
52
|
-
"kynverApiKey": "kynver_xxx",
|
|
53
|
-
"enableDirectHttp": true,
|
|
54
|
-
"enableSessionLifecycle": true,
|
|
55
|
-
"enableRuntimeSkillManifest": true,
|
|
56
|
-
"enableContinuityGuidance": true,
|
|
57
|
-
"enableHarnessTools": true,
|
|
58
|
-
"harnessRepo": "/path/to/Kynver"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
Prefer OpenClaw secret references or environment-backed config for `kynverApiKey` when your install supports it.
|
|
67
|
-
|
|
68
|
-
By default, omit `agentOsSlug`. The plugin resolves the account's primary
|
|
69
|
-
AgentOS workspace from `GET /api/agent-os` so the same config works for every
|
|
70
|
-
user without hardcoding a persona. Set `agentOsSlug` only when you need to pin
|
|
71
|
-
a specific non-primary workspace.
|
|
72
|
-
|
|
73
|
-
Compatibility config through an existing `mcporter.json` still works:
|
|
74
|
-
|
|
75
|
-
```json
|
|
76
|
-
{
|
|
77
|
-
"plugins": {
|
|
78
|
-
"entries": {
|
|
79
|
-
"kynver-agent-os-tools": {
|
|
80
|
-
"enabled": true,
|
|
81
|
-
"config": {
|
|
82
|
-
"agentOsServer": "kynver-agent-os",
|
|
83
|
-
"mcporterConfigPath": "<home>/.openclaw/workspace/config/mcporter.json"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
Use your platform's real home directory path for `<home>`, for example
|
|
92
|
-
`/Users/me` on macOS or `C:\\Users\\me` on Windows.
|
|
93
|
-
|
|
94
|
-
## Verify
|
|
95
|
-
|
|
96
|
-
After changing config, restart the OpenClaw gateway/MCP host and start a fresh
|
|
97
|
-
assistant session. First verify the runtime-loaded plugin:
|
|
98
|
-
|
|
99
|
-
```bash
|
|
100
|
-
openclaw plugins inspect kynver-agent-os-tools --runtime --json
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
Expected plugin runtime response:
|
|
104
|
-
|
|
105
|
-
- `imported: true`
|
|
106
|
-
- `toolNames` includes `agent_os_get_context`
|
|
107
|
-
|
|
108
|
-
Do not use plain `openclaw plugins inspect kynver-agent-os-tools --json` as
|
|
109
|
-
the runtime check. That command is a metadata snapshot and can show
|
|
110
|
-
`imported: false` or empty `toolNames` even when the runtime plugin imports
|
|
111
|
-
successfully.
|
|
112
|
-
|
|
113
|
-
Then ask OpenClaw to run:
|
|
114
|
-
|
|
115
|
-
```text
|
|
116
|
-
Use agent_os_health_check with my AgentOS slug.
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
Expected healthy response:
|
|
120
|
-
|
|
121
|
-
- `ok: true`
|
|
122
|
-
- `status: "available"`
|
|
123
|
-
- `transport: "direct-http"` when `kynverApiUrl` is configured
|
|
124
|
-
- counts for goals/projects/contacts/memory stats
|
|
125
|
-
|
|
126
|
-
If runtime inspect is healthy but a fresh OpenClaw Codex session still has no
|
|
127
|
-
`agent_os_*` tools, use the MCP fallback config and report this as an OpenClaw
|
|
128
|
-
native Codex dynamic-tool bridge issue.
|
|
129
|
-
|
|
130
|
-
## Tools
|
|
131
|
-
|
|
132
|
-
- `agent_os_health_check`
|
|
133
|
-
- `agent_os_get_context`
|
|
134
|
-
- `agent_os_open_session`
|
|
135
|
-
- `agent_os_close_session`
|
|
136
|
-
- `agent_os_log_session_event`
|
|
137
|
-
- `agent_os_log_session`
|
|
138
|
-
- `agent_os_list_goals`
|
|
139
|
-
- `agent_os_update_goal`
|
|
140
|
-
- `agent_os_get_projects`
|
|
141
|
-
- `agent_os_create_project`
|
|
142
|
-
- `agent_os_update_project`
|
|
143
|
-
- `agent_os_search_memory`
|
|
144
|
-
- `agent_os_write_memory`
|
|
145
|
-
- `agent_os_update_memory`
|
|
146
|
-
- `agent_os_correct_memory`
|
|
147
|
-
- `agent_os_consolidate_memory`
|
|
148
|
-
- `agent_os_record_state`
|
|
149
|
-
- `agent_os_get_state`
|
|
150
|
-
- `agent_os_list_skills`
|
|
151
|
-
- `agent_os_get_skill`
|
|
152
|
-
- `agent_os_create_skill`
|
|
153
|
-
- `agent_os_update_skill`
|
|
154
|
-
- `agent_os_import_skills`
|
|
155
|
-
- `agent_os_bind_skill`
|
|
156
|
-
- `agent_os_write_skill_memory`
|
|
157
|
-
- `agent_os_get_contacts`
|
|
158
|
-
- `agent_os_create_contact`
|
|
159
|
-
- `agent_os_update_contact`
|
|
160
|
-
- `agent_os_plan_create`
|
|
161
|
-
- `agent_os_plan_list`
|
|
162
|
-
- `agent_os_plan_get`
|
|
163
|
-
- `agent_os_plan_update`
|
|
164
|
-
- `agent_os_plan_add_version`
|
|
165
|
-
- `agent_os_plan_mark_current`
|
|
166
|
-
- `agent_os_plan_add_link`
|
|
167
|
-
- `agent_os_plan_list_links`
|
|
168
|
-
- `agent_os_plan_list_versions`
|
|
169
|
-
- `agent_os_command_center_get`
|
|
170
|
-
- `agent_os_task_next_action`
|
|
171
|
-
- `agent_os_plan_progress_rows_list`
|
|
172
|
-
- `agent_os_plan_progress_rows_upsert`
|
|
173
|
-
- `agent_os_plan_progress_event_append`
|
|
174
|
-
|
|
175
|
-
`agent_os_command_center_get` returns the same unified Command Center rollup the
|
|
176
|
-
browser operator console uses (plan rollups, project hierarchy, action-required,
|
|
177
|
-
DQ inbox, goals, review lanes, harness summaries). It calls the by-id HTTP
|
|
178
|
-
surface and resolves `agentOsId` from the workspace slug when omitted.
|
|
179
|
-
|
|
180
|
-
`agent_os_task_next_action` posts harness completion signals to the deterministic
|
|
181
|
-
next-action router (review/fix/landing dispatch, close, or await-human).
|
|
182
|
-
|
|
183
|
-
Plan progress tools mirror the AgentOS MCP plan-progress surface for structured
|
|
184
|
-
checklist rows and role-lane events.
|
|
185
|
-
|
|
186
|
-
Plan tools manage first-class AgentOS plans — versioned operational artifacts
|
|
187
|
-
distinct from goals/projects/tasks. Each `AgentPlan` owns a chain of immutable
|
|
188
|
-
`AgentPlanVersion` snapshots (one stamped current at a time) and typed
|
|
189
|
-
`AgentPlanLink` rows pointing at goals, projects, tasks, memories, sessions,
|
|
190
|
-
plans, or remote refs (repo/branch/commit/PR/URL/markdown). The plan body is
|
|
191
|
-
immutable — to record a new snapshot call `agent_os_plan_add_version`, which
|
|
192
|
-
appends a version and (by default) advances `currentVersionId` atomically. To
|
|
193
|
-
attach a plan to its own stable slug within the workspace, pass `planSlug`
|
|
194
|
-
(the workspace `slug` argument is reserved for the AgentOS slug). All
|
|
195
|
-
workspace-owned link targets are validated against the same AgentOS workspace
|
|
196
|
-
server-side; remote refs carry metadata only and are not resolved.
|
|
197
|
-
|
|
198
|
-
`agent_os_write_memory` and `agent_os_update_memory` are the OpenClaw
|
|
199
|
-
memory-writer surface. They accept `sourceRefs` plus `memoryType`, `confidence`,
|
|
200
|
-
`reviewStatus`, `projectId`, `goalId`, `contactId`, and `skillId` so OpenClaw agents can
|
|
201
|
-
write durable memories with provenance, reliability, review state, and project
|
|
202
|
-
links. Use `reviewStatus: "needs_review"` for important memories that are
|
|
203
|
-
uncertain or likely to need human correction.
|
|
204
|
-
|
|
205
|
-
`agent_os_correct_memory` is the auditable correction path: it writes a new
|
|
206
|
-
`correction` memory whose machine-readable claim atomically supersedes the named
|
|
207
|
-
`targetSlug` (and any `alsoInvalidates` entries), flipping each to
|
|
208
|
-
`status: superseded` while preserving it for recovery. Prefer it over
|
|
209
|
-
`agent_os_update_memory` when a prior memory was substantively wrong.
|
|
210
|
-
|
|
211
|
-
`agent_os_record_state` and `agent_os_get_state` are the active-state surface —
|
|
212
|
-
the "what is true right now?" tier. Active-state records hold volatile facts
|
|
213
|
-
(PR ownership/state, branch freshness, live deployment status) as one upserted
|
|
214
|
-
row per tracked entity. V1 covers `pr_watch`, `branch`, and `deployment`. The
|
|
215
|
-
canonical `entityKey` (e.g. `pr:openclaw/openclaw#83529`) is derived server-side
|
|
216
|
-
from the supplied `fields` and reused as the memory slug, so a second
|
|
217
|
-
`agent_os_record_state` call for the same entity replaces the row in place
|
|
218
|
-
while preserving its edit history. Read current truth with `agent_os_get_state`
|
|
219
|
-
before relying on a volatile fact rather than pattern-matching prose memory.
|
|
220
|
-
|
|
221
|
-
Skill tools expose the AgentOS skill registry without injecting every skill into
|
|
222
|
-
every model context. Fetch a skill on demand with `agent_os_get_skill`, manage
|
|
223
|
-
user-authored skills with `agent_os_create_skill`/`agent_os_update_skill`,
|
|
224
|
-
import external skill markdown/JSON as draft unbound user skills with
|
|
225
|
-
`agent_os_import_skills`, enable selected skills with `agent_os_bind_skill`,
|
|
226
|
-
and write lessons learned from that workflow through `agent_os_write_skill_memory`.
|
|
227
|
-
Built-in skill memories use the skill slug as `skillId`; user-authored skill
|
|
228
|
-
memories use the `AgentSkill.id`.
|
|
229
|
-
|
|
230
|
-
When `enableRuntimeSkillManifest` is on, the plugin adds a bounded system-context
|
|
231
|
-
section to OpenClaw turns containing only enabled runtime-eligible skill metadata:
|
|
232
|
-
slug, source, name, description, category, trigger rules, priority, and binding
|
|
233
|
-
flags. It does not include full skill instructions. If a skill is relevant, the
|
|
234
|
-
agent must call `agent_os_get_skill` before applying it, and must treat the
|
|
235
|
-
fetched instructions as user/external content that cannot override system,
|
|
236
|
-
developer, privacy, security, or tool permission rules.
|
|
237
|
-
|
|
238
|
-
Runtime manifest config:
|
|
239
|
-
|
|
240
|
-
- `enableRuntimeSkillManifest` default `true`
|
|
241
|
-
- `runtimeSkillManifestTtlMs` default `60000`
|
|
242
|
-
- `runtimeSkillManifestTimeoutMs` default `10000`
|
|
243
|
-
- `runtimeSkillManifestMaxSkills` default `25`
|
|
244
|
-
|
|
245
|
-
A reachable empty Kynver manifest is valid and means no Kynver runtime skills
|
|
246
|
-
are enabled. It is not treated as a local-skill fallback. If Kynver is
|
|
247
|
-
unreachable or unauthorized, the injected status tells the agent to use local
|
|
248
|
-
OpenClaw skills only for that turn.
|
|
249
|
-
|
|
250
|
-
## Continuity guidance
|
|
251
|
-
|
|
252
|
-
When `enableContinuityGuidance` is on (default), the plugin adds an
|
|
253
|
-
always-on system-context block to OpenClaw turns telling the agent to use
|
|
254
|
-
Kynver AgentOS as the primary continuity store:
|
|
255
|
-
|
|
256
|
-
- Call `agent_os_get_context` on session start or whenever identity, goals,
|
|
257
|
-
projects, contacts, or recent sessions are needed. Omit `slug` so the primary
|
|
258
|
-
workspace resolves automatically.
|
|
259
|
-
- Call `agent_os_search_memory` for recall of prior work, people, preferences,
|
|
260
|
-
decisions, or follow-ups before relying on conversation or local files.
|
|
261
|
-
- Persist durable facts, decisions, preferences, project updates, and lessons
|
|
262
|
-
with `agent_os_write_memory` / `agent_os_update_memory`, including
|
|
263
|
-
`sourceRefs`, `memoryType`, `confidence`, and `reviewStatus`.
|
|
264
|
-
- Use `agent_os_update_project` / `agent_os_update_goal` for structured
|
|
265
|
-
status changes.
|
|
266
|
-
- Open/close OpenClaw sessions via `agent_os_open_session`,
|
|
267
|
-
`agent_os_log_session_event`, and `agent_os_close_session`.
|
|
268
|
-
- Treat local markdown (CLAUDE.md, AGENTS.md, `/memory`, scratch notes) as
|
|
269
|
-
fallback/cache only; do not expose AgentOS specifics in shared/group
|
|
270
|
-
contexts unless the user explicitly asks.
|
|
271
|
-
|
|
272
|
-
The guidance is metadata-only text. It does not call AgentOS during prompt
|
|
273
|
-
build and adds no per-turn network latency. Disable with
|
|
274
|
-
`enableContinuityGuidance: false` if a deployment prefers to inject its own
|
|
275
|
-
continuity instructions.
|
|
276
|
-
|
|
277
|
-
`agent_os_log_session_event` records structured events for open sessions. This
|
|
278
|
-
lets AgentOS close summaries use real topics, decisions, work completed, and
|
|
279
|
-
follow-ups rather than generic session-ended text.
|
|
280
|
-
|
|
281
|
-
## Development
|
|
282
|
-
|
|
283
|
-
```bash
|
|
284
|
-
npm run typecheck -w @kynver-app/openclaw-agent-os
|
|
285
|
-
npm run build -w @kynver-app/openclaw-agent-os
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
The plugin id remains `kynver-agent-os-tools` so existing OpenClaw configs continue to load the same tool surface.
|
|
1
|
+
# @kynver-app/openclaw-agent-os
|
|
2
|
+
|
|
3
|
+
OpenClaw plugin that exposes Kynver AgentOS as first-class agent tools.
|
|
4
|
+
|
|
5
|
+
This package is the OpenClaw-native bridge for agents that use Kynver as their operating memory:
|
|
6
|
+
identity, goals, projects, contacts, sessions, daily logs, and long-term memory.
|
|
7
|
+
|
|
8
|
+
## What It Provides
|
|
9
|
+
|
|
10
|
+
- Explicit `agent_os_*` tools in the OpenClaw tool namespace covering identity, goals, projects, contacts, sessions, memory, skills, the durable task board, and first-class plans with version history.
|
|
11
|
+
- Direct Kynver HTTP transport for low-latency calls, with primary-slug auto-resolution via `GET /api/agent-os` so installs work without hardcoding a persona.
|
|
12
|
+
- `mcporter` fallback for compatibility with existing MCP setups.
|
|
13
|
+
- Optional OpenClaw session lifecycle hooks that automatically open/close AgentOS sessions.
|
|
14
|
+
- Runtime skill manifest injection: enabled Kynver skills are exposed to OpenClaw turns as metadata only, with full instructions fetched on demand by `agent_os_get_skill`.
|
|
15
|
+
- Continuity-guidance system context: a small, always-on system message teaching OpenClaw turns to use AgentOS (`agent_os_get_context`, `agent_os_search_memory`, `agent_os_write_memory`, session/project/goal tools) as the primary continuity store and to treat local markdown memory as fallback only.
|
|
16
|
+
- `agent_os_health_check` for setup verification.
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
openclaw plugins install @kynver-app/openclaw-agent-os@latest --force
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
If your OpenClaw install does not support package installs yet, install this package into the OpenClaw
|
|
25
|
+
extensions directory and enable the plugin from there. The runtime entry point is `dist/index.js`.
|
|
26
|
+
|
|
27
|
+
For a wiped machine or new-user setup, use the packaged bootstrap command:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
export KYNVER_API_URL="https://www.kynver.com"
|
|
31
|
+
export KYNVER_API_KEY="kynver_xxx"
|
|
32
|
+
export KYNVER_HARNESS_REPO="/path/to/Kynver" # optional, enables kynver_harness_* tools
|
|
33
|
+
|
|
34
|
+
npx -y -p @kynver-app/openclaw-agent-os@latest kynver-openclaw-agent-os-bootstrap
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
See the [Kynver help center](https://www.kynver.com/help) for the full
|
|
38
|
+
onboarding walkthrough.
|
|
39
|
+
|
|
40
|
+
## Configure
|
|
41
|
+
|
|
42
|
+
Recommended direct HTTP config:
|
|
43
|
+
|
|
44
|
+
```json
|
|
45
|
+
{
|
|
46
|
+
"plugins": {
|
|
47
|
+
"entries": {
|
|
48
|
+
"kynver-agent-os-tools": {
|
|
49
|
+
"enabled": true,
|
|
50
|
+
"config": {
|
|
51
|
+
"kynverApiUrl": "https://www.kynver.com",
|
|
52
|
+
"kynverApiKey": "kynver_xxx",
|
|
53
|
+
"enableDirectHttp": true,
|
|
54
|
+
"enableSessionLifecycle": true,
|
|
55
|
+
"enableRuntimeSkillManifest": true,
|
|
56
|
+
"enableContinuityGuidance": true,
|
|
57
|
+
"enableHarnessTools": true,
|
|
58
|
+
"harnessRepo": "/path/to/Kynver"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Prefer OpenClaw secret references or environment-backed config for `kynverApiKey` when your install supports it.
|
|
67
|
+
|
|
68
|
+
By default, omit `agentOsSlug`. The plugin resolves the account's primary
|
|
69
|
+
AgentOS workspace from `GET /api/agent-os` so the same config works for every
|
|
70
|
+
user without hardcoding a persona. Set `agentOsSlug` only when you need to pin
|
|
71
|
+
a specific non-primary workspace.
|
|
72
|
+
|
|
73
|
+
Compatibility config through an existing `mcporter.json` still works:
|
|
74
|
+
|
|
75
|
+
```json
|
|
76
|
+
{
|
|
77
|
+
"plugins": {
|
|
78
|
+
"entries": {
|
|
79
|
+
"kynver-agent-os-tools": {
|
|
80
|
+
"enabled": true,
|
|
81
|
+
"config": {
|
|
82
|
+
"agentOsServer": "kynver-agent-os",
|
|
83
|
+
"mcporterConfigPath": "<home>/.openclaw/workspace/config/mcporter.json"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Use your platform's real home directory path for `<home>`, for example
|
|
92
|
+
`/Users/me` on macOS or `C:\\Users\\me` on Windows.
|
|
93
|
+
|
|
94
|
+
## Verify
|
|
95
|
+
|
|
96
|
+
After changing config, restart the OpenClaw gateway/MCP host and start a fresh
|
|
97
|
+
assistant session. First verify the runtime-loaded plugin:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
openclaw plugins inspect kynver-agent-os-tools --runtime --json
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Expected plugin runtime response:
|
|
104
|
+
|
|
105
|
+
- `imported: true`
|
|
106
|
+
- `toolNames` includes `agent_os_get_context`
|
|
107
|
+
|
|
108
|
+
Do not use plain `openclaw plugins inspect kynver-agent-os-tools --json` as
|
|
109
|
+
the runtime check. That command is a metadata snapshot and can show
|
|
110
|
+
`imported: false` or empty `toolNames` even when the runtime plugin imports
|
|
111
|
+
successfully.
|
|
112
|
+
|
|
113
|
+
Then ask OpenClaw to run:
|
|
114
|
+
|
|
115
|
+
```text
|
|
116
|
+
Use agent_os_health_check with my AgentOS slug.
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Expected healthy response:
|
|
120
|
+
|
|
121
|
+
- `ok: true`
|
|
122
|
+
- `status: "available"`
|
|
123
|
+
- `transport: "direct-http"` when `kynverApiUrl` is configured
|
|
124
|
+
- counts for goals/projects/contacts/memory stats
|
|
125
|
+
|
|
126
|
+
If runtime inspect is healthy but a fresh OpenClaw Codex session still has no
|
|
127
|
+
`agent_os_*` tools, use the MCP fallback config and report this as an OpenClaw
|
|
128
|
+
native Codex dynamic-tool bridge issue.
|
|
129
|
+
|
|
130
|
+
## Tools
|
|
131
|
+
|
|
132
|
+
- `agent_os_health_check`
|
|
133
|
+
- `agent_os_get_context`
|
|
134
|
+
- `agent_os_open_session`
|
|
135
|
+
- `agent_os_close_session`
|
|
136
|
+
- `agent_os_log_session_event`
|
|
137
|
+
- `agent_os_log_session`
|
|
138
|
+
- `agent_os_list_goals`
|
|
139
|
+
- `agent_os_update_goal`
|
|
140
|
+
- `agent_os_get_projects`
|
|
141
|
+
- `agent_os_create_project`
|
|
142
|
+
- `agent_os_update_project`
|
|
143
|
+
- `agent_os_search_memory`
|
|
144
|
+
- `agent_os_write_memory`
|
|
145
|
+
- `agent_os_update_memory`
|
|
146
|
+
- `agent_os_correct_memory`
|
|
147
|
+
- `agent_os_consolidate_memory`
|
|
148
|
+
- `agent_os_record_state`
|
|
149
|
+
- `agent_os_get_state`
|
|
150
|
+
- `agent_os_list_skills`
|
|
151
|
+
- `agent_os_get_skill`
|
|
152
|
+
- `agent_os_create_skill`
|
|
153
|
+
- `agent_os_update_skill`
|
|
154
|
+
- `agent_os_import_skills`
|
|
155
|
+
- `agent_os_bind_skill`
|
|
156
|
+
- `agent_os_write_skill_memory`
|
|
157
|
+
- `agent_os_get_contacts`
|
|
158
|
+
- `agent_os_create_contact`
|
|
159
|
+
- `agent_os_update_contact`
|
|
160
|
+
- `agent_os_plan_create`
|
|
161
|
+
- `agent_os_plan_list`
|
|
162
|
+
- `agent_os_plan_get`
|
|
163
|
+
- `agent_os_plan_update`
|
|
164
|
+
- `agent_os_plan_add_version`
|
|
165
|
+
- `agent_os_plan_mark_current`
|
|
166
|
+
- `agent_os_plan_add_link`
|
|
167
|
+
- `agent_os_plan_list_links`
|
|
168
|
+
- `agent_os_plan_list_versions`
|
|
169
|
+
- `agent_os_command_center_get`
|
|
170
|
+
- `agent_os_task_next_action`
|
|
171
|
+
- `agent_os_plan_progress_rows_list`
|
|
172
|
+
- `agent_os_plan_progress_rows_upsert`
|
|
173
|
+
- `agent_os_plan_progress_event_append`
|
|
174
|
+
|
|
175
|
+
`agent_os_command_center_get` returns the same unified Command Center rollup the
|
|
176
|
+
browser operator console uses (plan rollups, project hierarchy, action-required,
|
|
177
|
+
DQ inbox, goals, review lanes, harness summaries). It calls the by-id HTTP
|
|
178
|
+
surface and resolves `agentOsId` from the workspace slug when omitted.
|
|
179
|
+
|
|
180
|
+
`agent_os_task_next_action` posts harness completion signals to the deterministic
|
|
181
|
+
next-action router (review/fix/landing dispatch, close, or await-human).
|
|
182
|
+
|
|
183
|
+
Plan progress tools mirror the AgentOS MCP plan-progress surface for structured
|
|
184
|
+
checklist rows and role-lane events.
|
|
185
|
+
|
|
186
|
+
Plan tools manage first-class AgentOS plans — versioned operational artifacts
|
|
187
|
+
distinct from goals/projects/tasks. Each `AgentPlan` owns a chain of immutable
|
|
188
|
+
`AgentPlanVersion` snapshots (one stamped current at a time) and typed
|
|
189
|
+
`AgentPlanLink` rows pointing at goals, projects, tasks, memories, sessions,
|
|
190
|
+
plans, or remote refs (repo/branch/commit/PR/URL/markdown). The plan body is
|
|
191
|
+
immutable — to record a new snapshot call `agent_os_plan_add_version`, which
|
|
192
|
+
appends a version and (by default) advances `currentVersionId` atomically. To
|
|
193
|
+
attach a plan to its own stable slug within the workspace, pass `planSlug`
|
|
194
|
+
(the workspace `slug` argument is reserved for the AgentOS slug). All
|
|
195
|
+
workspace-owned link targets are validated against the same AgentOS workspace
|
|
196
|
+
server-side; remote refs carry metadata only and are not resolved.
|
|
197
|
+
|
|
198
|
+
`agent_os_write_memory` and `agent_os_update_memory` are the OpenClaw
|
|
199
|
+
memory-writer surface. They accept `sourceRefs` plus `memoryType`, `confidence`,
|
|
200
|
+
`reviewStatus`, `projectId`, `goalId`, `contactId`, and `skillId` so OpenClaw agents can
|
|
201
|
+
write durable memories with provenance, reliability, review state, and project
|
|
202
|
+
links. Use `reviewStatus: "needs_review"` for important memories that are
|
|
203
|
+
uncertain or likely to need human correction.
|
|
204
|
+
|
|
205
|
+
`agent_os_correct_memory` is the auditable correction path: it writes a new
|
|
206
|
+
`correction` memory whose machine-readable claim atomically supersedes the named
|
|
207
|
+
`targetSlug` (and any `alsoInvalidates` entries), flipping each to
|
|
208
|
+
`status: superseded` while preserving it for recovery. Prefer it over
|
|
209
|
+
`agent_os_update_memory` when a prior memory was substantively wrong.
|
|
210
|
+
|
|
211
|
+
`agent_os_record_state` and `agent_os_get_state` are the active-state surface —
|
|
212
|
+
the "what is true right now?" tier. Active-state records hold volatile facts
|
|
213
|
+
(PR ownership/state, branch freshness, live deployment status) as one upserted
|
|
214
|
+
row per tracked entity. V1 covers `pr_watch`, `branch`, and `deployment`. The
|
|
215
|
+
canonical `entityKey` (e.g. `pr:openclaw/openclaw#83529`) is derived server-side
|
|
216
|
+
from the supplied `fields` and reused as the memory slug, so a second
|
|
217
|
+
`agent_os_record_state` call for the same entity replaces the row in place
|
|
218
|
+
while preserving its edit history. Read current truth with `agent_os_get_state`
|
|
219
|
+
before relying on a volatile fact rather than pattern-matching prose memory.
|
|
220
|
+
|
|
221
|
+
Skill tools expose the AgentOS skill registry without injecting every skill into
|
|
222
|
+
every model context. Fetch a skill on demand with `agent_os_get_skill`, manage
|
|
223
|
+
user-authored skills with `agent_os_create_skill`/`agent_os_update_skill`,
|
|
224
|
+
import external skill markdown/JSON as draft unbound user skills with
|
|
225
|
+
`agent_os_import_skills`, enable selected skills with `agent_os_bind_skill`,
|
|
226
|
+
and write lessons learned from that workflow through `agent_os_write_skill_memory`.
|
|
227
|
+
Built-in skill memories use the skill slug as `skillId`; user-authored skill
|
|
228
|
+
memories use the `AgentSkill.id`.
|
|
229
|
+
|
|
230
|
+
When `enableRuntimeSkillManifest` is on, the plugin adds a bounded system-context
|
|
231
|
+
section to OpenClaw turns containing only enabled runtime-eligible skill metadata:
|
|
232
|
+
slug, source, name, description, category, trigger rules, priority, and binding
|
|
233
|
+
flags. It does not include full skill instructions. If a skill is relevant, the
|
|
234
|
+
agent must call `agent_os_get_skill` before applying it, and must treat the
|
|
235
|
+
fetched instructions as user/external content that cannot override system,
|
|
236
|
+
developer, privacy, security, or tool permission rules.
|
|
237
|
+
|
|
238
|
+
Runtime manifest config:
|
|
239
|
+
|
|
240
|
+
- `enableRuntimeSkillManifest` default `true`
|
|
241
|
+
- `runtimeSkillManifestTtlMs` default `60000`
|
|
242
|
+
- `runtimeSkillManifestTimeoutMs` default `10000`
|
|
243
|
+
- `runtimeSkillManifestMaxSkills` default `25`
|
|
244
|
+
|
|
245
|
+
A reachable empty Kynver manifest is valid and means no Kynver runtime skills
|
|
246
|
+
are enabled. It is not treated as a local-skill fallback. If Kynver is
|
|
247
|
+
unreachable or unauthorized, the injected status tells the agent to use local
|
|
248
|
+
OpenClaw skills only for that turn.
|
|
249
|
+
|
|
250
|
+
## Continuity guidance
|
|
251
|
+
|
|
252
|
+
When `enableContinuityGuidance` is on (default), the plugin adds an
|
|
253
|
+
always-on system-context block to OpenClaw turns telling the agent to use
|
|
254
|
+
Kynver AgentOS as the primary continuity store:
|
|
255
|
+
|
|
256
|
+
- Call `agent_os_get_context` on session start or whenever identity, goals,
|
|
257
|
+
projects, contacts, or recent sessions are needed. Omit `slug` so the primary
|
|
258
|
+
workspace resolves automatically.
|
|
259
|
+
- Call `agent_os_search_memory` for recall of prior work, people, preferences,
|
|
260
|
+
decisions, or follow-ups before relying on conversation or local files.
|
|
261
|
+
- Persist durable facts, decisions, preferences, project updates, and lessons
|
|
262
|
+
with `agent_os_write_memory` / `agent_os_update_memory`, including
|
|
263
|
+
`sourceRefs`, `memoryType`, `confidence`, and `reviewStatus`.
|
|
264
|
+
- Use `agent_os_update_project` / `agent_os_update_goal` for structured
|
|
265
|
+
status changes.
|
|
266
|
+
- Open/close OpenClaw sessions via `agent_os_open_session`,
|
|
267
|
+
`agent_os_log_session_event`, and `agent_os_close_session`.
|
|
268
|
+
- Treat local markdown (CLAUDE.md, AGENTS.md, `/memory`, scratch notes) as
|
|
269
|
+
fallback/cache only; do not expose AgentOS specifics in shared/group
|
|
270
|
+
contexts unless the user explicitly asks.
|
|
271
|
+
|
|
272
|
+
The guidance is metadata-only text. It does not call AgentOS during prompt
|
|
273
|
+
build and adds no per-turn network latency. Disable with
|
|
274
|
+
`enableContinuityGuidance: false` if a deployment prefers to inject its own
|
|
275
|
+
continuity instructions.
|
|
276
|
+
|
|
277
|
+
`agent_os_log_session_event` records structured events for open sessions. This
|
|
278
|
+
lets AgentOS close summaries use real topics, decisions, work completed, and
|
|
279
|
+
follow-ups rather than generic session-ended text.
|
|
280
|
+
|
|
281
|
+
## Development
|
|
282
|
+
|
|
283
|
+
```bash
|
|
284
|
+
npm run typecheck -w @kynver-app/openclaw-agent-os
|
|
285
|
+
npm run build -w @kynver-app/openclaw-agent-os
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
The plugin id remains `kynver-agent-os-tools` so existing OpenClaw configs continue to load the same tool surface.
|
package/SECURITY.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
# Security — @kynver-app/openclaw-agent-os
|
|
2
|
-
|
|
3
|
-
See the same guidance as `@kynver-app/mcp-agent-os` (`packages/kynver-mcp-agent-os/SECURITY.md`) for API keys and service secrets.
|
|
4
|
-
|
|
5
|
-
## Plugin-specific notes
|
|
6
|
-
|
|
7
|
-
- Prefer **direct HTTP** (`kynverApiUrl` + `kynverApiKey`) over mcporter when possible.
|
|
8
|
-
- Store `kynverApiKey` using **OpenClaw secret references**, not plain text in committed config.
|
|
9
|
-
- The mcporter fallback uses `execFile` with a fixed argument list; keep `agentOsServer` to alphanumeric/hyphen/underscore names only (enforced at config load).
|
|
10
|
-
- Tool names are fixed in code — the LLM cannot inject shell commands through tool selection.
|
|
11
|
-
|
|
12
|
-
## mcporter config path
|
|
13
|
-
|
|
14
|
-
Point `mcporterConfigPath` at a file you control (for example `~/.openclaw/workspace/config/mcporter.json`). Do not point it at world-writable directories.
|
|
1
|
+
# Security — @kynver-app/openclaw-agent-os
|
|
2
|
+
|
|
3
|
+
See the same guidance as `@kynver-app/mcp-agent-os` (`packages/kynver-mcp-agent-os/SECURITY.md`) for API keys and service secrets.
|
|
4
|
+
|
|
5
|
+
## Plugin-specific notes
|
|
6
|
+
|
|
7
|
+
- Prefer **direct HTTP** (`kynverApiUrl` + `kynverApiKey`) over mcporter when possible.
|
|
8
|
+
- Store `kynverApiKey` using **OpenClaw secret references**, not plain text in committed config.
|
|
9
|
+
- The mcporter fallback uses `execFile` with a fixed argument list; keep `agentOsServer` to alphanumeric/hyphen/underscore names only (enforced at config load).
|
|
10
|
+
- Tool names are fixed in code — the LLM cannot inject shell commands through tool selection.
|
|
11
|
+
|
|
12
|
+
## mcporter config path
|
|
13
|
+
|
|
14
|
+
Point `mcporterConfigPath` at a file you control (for example `~/.openclaw/workspace/config/mcporter.json`). Do not point it at world-writable directories.
|