openclaw-code-agent 4.3.7 → 4.4.0
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 +14 -9
- package/dist/index.js +207 -196
- package/openclaw.plugin.json +13 -9
- package/package.json +6 -4
- package/skills/code-agent-orchestration/SKILL.md +2 -1
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "openclaw-code-agent",
|
|
3
3
|
"name": "OpenClaw Code Agent",
|
|
4
4
|
"description": "Multi-session coding-agent orchestration from OpenClaw chat",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.4.0",
|
|
6
6
|
"contracts": {
|
|
7
7
|
"tools": [
|
|
8
8
|
"agent_launch",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"agent_output",
|
|
12
12
|
"agent_respond",
|
|
13
13
|
"agent_request_plan_approval",
|
|
14
|
+
"agent_request_worktree_decision",
|
|
14
15
|
"agent_send_plan_offer",
|
|
15
16
|
"agent_stats",
|
|
16
17
|
"agent_merge",
|
|
@@ -19,7 +20,8 @@
|
|
|
19
20
|
"agent_worktree_status",
|
|
20
21
|
"goal_launch",
|
|
21
22
|
"goal_status",
|
|
22
|
-
"goal_stop"
|
|
23
|
+
"goal_stop",
|
|
24
|
+
"goal_edit"
|
|
23
25
|
]
|
|
24
26
|
},
|
|
25
27
|
"configContracts": {
|
|
@@ -53,7 +55,8 @@
|
|
|
53
55
|
"agent_stats",
|
|
54
56
|
"goal",
|
|
55
57
|
"goal_status",
|
|
56
|
-
"goal_stop"
|
|
58
|
+
"goal_stop",
|
|
59
|
+
"goal_edit"
|
|
57
60
|
]
|
|
58
61
|
},
|
|
59
62
|
"setup": {
|
|
@@ -86,7 +89,8 @@
|
|
|
86
89
|
"sonnet",
|
|
87
90
|
"opus"
|
|
88
91
|
]
|
|
89
|
-
}
|
|
92
|
+
},
|
|
93
|
+
"opencode": {}
|
|
90
94
|
},
|
|
91
95
|
"additionalProperties": {
|
|
92
96
|
"type": "object",
|
|
@@ -94,7 +98,7 @@
|
|
|
94
98
|
"properties": {
|
|
95
99
|
"defaultModel": {
|
|
96
100
|
"type": "string",
|
|
97
|
-
"description": "Default model for this harness when agent_launch omits model."
|
|
101
|
+
"description": "Default model for this harness when agent_launch omits model. For experimental OpenCode, omit this to use OpenCode's configured provider default."
|
|
98
102
|
},
|
|
99
103
|
"allowedModels": {
|
|
100
104
|
"type": "array",
|
|
@@ -198,9 +202,9 @@
|
|
|
198
202
|
},
|
|
199
203
|
"defaultHarness": {
|
|
200
204
|
"type": "string",
|
|
201
|
-
"enum": ["claude-code", "codex"],
|
|
205
|
+
"enum": ["claude-code", "codex", "opencode"],
|
|
202
206
|
"default": "claude-code",
|
|
203
|
-
"description": "Default agent harness when agent_launch omits the harness parameter."
|
|
207
|
+
"description": "Default agent harness when agent_launch omits the harness parameter. OpenCode is available as an experimental harness."
|
|
204
208
|
},
|
|
205
209
|
"defaultWorktreeStrategy": {
|
|
206
210
|
"type": "string",
|
|
@@ -240,7 +244,7 @@
|
|
|
240
244
|
},
|
|
241
245
|
"harnesses": {
|
|
242
246
|
"label": "Harness configuration",
|
|
243
|
-
"help": "Per-harness defaults and model restrictions. Set harnesses.codex.fastMode=true to send service_tier=\"fast\" on Codex App Server thread/resume/turn payloads for Codex sessions. Default: {\"codex\":{\"defaultModel\":\"gpt-5.5\",\"allowedModels\":[\"gpt-5.5\",\"gpt-5.5-pro\"],\"reasoningEffort\":\"medium\",\"fastMode\":false},\"claude-code\":{\"defaultModel\":\"anthropic/claude-sonnet-4-7\",\"allowedModels\":[\"sonnet\",\"opus\"]}}.",
|
|
247
|
+
"help": "Per-harness defaults and model restrictions. Set harnesses.codex.fastMode=true to send service_tier=\"fast\" on Codex App Server thread/resume/turn payloads for Codex sessions. OpenCode is experimental; leave harnesses.opencode.defaultModel unset to use OpenCode's provider default, or pass provider/model explicitly. Default: {\"codex\":{\"defaultModel\":\"gpt-5.5\",\"allowedModels\":[\"gpt-5.5\",\"gpt-5.5-pro\"],\"reasoningEffort\":\"medium\",\"fastMode\":false},\"claude-code\":{\"defaultModel\":\"anthropic/claude-sonnet-4-7\",\"allowedModels\":[\"sonnet\",\"opus\"]},\"opencode\":{}}.",
|
|
244
248
|
"advanced": true
|
|
245
249
|
},
|
|
246
250
|
"maxSessions": {
|
|
@@ -255,7 +259,7 @@
|
|
|
255
259
|
},
|
|
256
260
|
"defaultHarness": {
|
|
257
261
|
"label": "Default harness",
|
|
258
|
-
"help": "Choose the harness you expect to use most often. Pick Codex only when the Codex command and local auth are ready on this machine.",
|
|
262
|
+
"help": "Choose the harness you expect to use most often. Pick Codex only when the Codex command and local auth are ready on this machine. Pick OpenCode only for experimental use when local opencode >= 1.16.2 and provider auth are ready.",
|
|
259
263
|
"placeholder": "claude-code"
|
|
260
264
|
},
|
|
261
265
|
"permissionMode": {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-code-agent",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"packageManager": "pnpm@10.30.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"audit:prod": "pnpm audit --prod",
|
|
9
|
-
"build": "esbuild index.ts --bundle --platform=node --target=node22 --format=esm --outfile=dist/index.js --minify --external:@anthropic-ai/claude-agent-sdk",
|
|
9
|
+
"build": "esbuild index.ts --bundle --platform=node --target=node22 --format=esm --outfile=dist/index.js --minify --charset=utf8 --pure:console.log --pure:console.warn --pure:console.info --pure:console.debug --external:@anthropic-ai/claude-agent-sdk --external:openclaw/plugin-sdk/plugin-entry",
|
|
10
10
|
"check-plugin-security": "node scripts/check-plugin-security.mjs",
|
|
11
11
|
"test": "node scripts/run-tests.mjs",
|
|
12
12
|
"test:serial": "node scripts/run-tests.mjs",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"smoke:codex-worktrees": "node scripts/run-tests.mjs tests/codex-harness.test.ts tests/session-bootstrap.test.ts tests/session-restore-service.test.ts",
|
|
17
17
|
"smoke:codex-live": "OPENCLAW_RUN_LIVE_CODEX_SMOKE=1 node scripts/run-tests.mjs tests/live-codex-app-server-smoke.test.ts",
|
|
18
18
|
"smoke:codex-release": "OPENCLAW_RUN_LIVE_CODEX_RELEASE_SMOKE=1 node scripts/run-tests.mjs tests/live-codex-app-server-smoke.test.ts",
|
|
19
|
+
"smoke:opencode-live": "OPENCLAW_RUN_LIVE_OPENCODE_SMOKE=1 node scripts/run-tests.mjs tests/live-opencode-server-smoke.test.ts",
|
|
19
20
|
"typecheck": "tsc -p tsconfig.typecheck.json --noEmit",
|
|
20
21
|
"validate:release-metadata": "node scripts/validate-release-metadata.mjs",
|
|
21
22
|
"verify": "pnpm typecheck && pnpm build && pnpm test"
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
"plugin",
|
|
62
63
|
"claude",
|
|
63
64
|
"claude-code",
|
|
65
|
+
"opencode",
|
|
64
66
|
"coding-agent",
|
|
65
67
|
"codex",
|
|
66
68
|
"ai",
|
|
@@ -85,7 +87,7 @@
|
|
|
85
87
|
"publishConfig": {
|
|
86
88
|
"access": "public"
|
|
87
89
|
},
|
|
88
|
-
"description": "An OpenClaw plugin that orchestrates coding agent sessions as managed background processes. Launch, monitor, and control coding agents (Claude Code, Codex, and more) directly from your AI gateway.",
|
|
90
|
+
"description": "An OpenClaw plugin that orchestrates coding agent sessions as managed background processes. Launch, monitor, and control coding agents (Claude Code, Codex, experimental OpenCode, and more) directly from your AI gateway.",
|
|
89
91
|
"peerDependencies": {
|
|
90
92
|
"openclaw": ">=2026.4.21"
|
|
91
93
|
},
|
|
@@ -112,7 +114,7 @@
|
|
|
112
114
|
"ip-address@<10.1.1": "10.1.1",
|
|
113
115
|
"fast-uri@<=3.1.1": "3.1.2",
|
|
114
116
|
"qs@<6.15.2": "6.15.2",
|
|
115
|
-
"hono@<4.12.
|
|
117
|
+
"hono@<4.12.21": "4.12.21"
|
|
116
118
|
}
|
|
117
119
|
}
|
|
118
120
|
}
|
|
@@ -16,7 +16,7 @@ metadata:
|
|
|
16
16
|
|
|
17
17
|
# Code Agent Orchestration
|
|
18
18
|
|
|
19
|
-
Use `openclaw-code-agent` to run Claude Code or
|
|
19
|
+
Use `openclaw-code-agent` to run Claude Code, Codex, or experimental OpenCode sessions as background coding jobs from chat.
|
|
20
20
|
|
|
21
21
|
## Launch
|
|
22
22
|
|
|
@@ -26,6 +26,7 @@ Use `openclaw-code-agent` to run Claude Code or Codex sessions as background cod
|
|
|
26
26
|
- Set `workdir` to the target repo.
|
|
27
27
|
- Use `permission_mode: "plan"` when the user wants a real review gate before implementation.
|
|
28
28
|
- Use `permission_mode: "bypassPermissions"` only for autonomous execution.
|
|
29
|
+
- Treat `harness: "opencode"` as experimental. Use it only when requested or configured and local `opencode >= 1.16.2` has provider auth ready.
|
|
29
30
|
- `defaultWorktreeStrategy` defaults to `delegate`, so new sessions normally use branch isolation and orchestrator-led follow-through. Use `worktree_strategy: "off"` only when the task must run in the main checkout or outside a git repo.
|
|
30
31
|
- In `plan` mode, the plan belongs in normal session output. Do not ask the coding agent to write plan docs or transcript artifacts unless the user explicitly asked for a file.
|
|
31
32
|
|