openclaw-code-agent 4.3.8 → 4.4.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.
@@ -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.3.8",
5
+ "version": "4.4.1",
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",
@@ -88,7 +89,8 @@
88
89
  "sonnet",
89
90
  "opus"
90
91
  ]
91
- }
92
+ },
93
+ "opencode": {}
92
94
  },
93
95
  "additionalProperties": {
94
96
  "type": "object",
@@ -96,7 +98,7 @@
96
98
  "properties": {
97
99
  "defaultModel": {
98
100
  "type": "string",
99
- "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."
100
102
  },
101
103
  "allowedModels": {
102
104
  "type": "array",
@@ -200,9 +202,9 @@
200
202
  },
201
203
  "defaultHarness": {
202
204
  "type": "string",
203
- "enum": ["claude-code", "codex"],
205
+ "enum": ["claude-code", "codex", "opencode"],
204
206
  "default": "claude-code",
205
- "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."
206
208
  },
207
209
  "defaultWorktreeStrategy": {
208
210
  "type": "string",
@@ -242,7 +244,7 @@
242
244
  },
243
245
  "harnesses": {
244
246
  "label": "Harness configuration",
245
- "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\":{}}.",
246
248
  "advanced": true
247
249
  },
248
250
  "maxSessions": {
@@ -257,7 +259,7 @@
257
259
  },
258
260
  "defaultHarness": {
259
261
  "label": "Default harness",
260
- "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.",
261
263
  "placeholder": "claude-code"
262
264
  },
263
265
  "permissionMode": {
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "openclaw-code-agent",
3
- "version": "4.3.8",
3
+ "version": "4.4.1",
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
+ "check-static-guardrails": "node scripts/check-static-guardrails.mjs",
10
11
  "check-plugin-security": "node scripts/check-plugin-security.mjs",
11
12
  "test": "node scripts/run-tests.mjs",
12
13
  "test:serial": "node scripts/run-tests.mjs",
@@ -16,9 +17,10 @@
16
17
  "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
18
  "smoke:codex-live": "OPENCLAW_RUN_LIVE_CODEX_SMOKE=1 node scripts/run-tests.mjs tests/live-codex-app-server-smoke.test.ts",
18
19
  "smoke:codex-release": "OPENCLAW_RUN_LIVE_CODEX_RELEASE_SMOKE=1 node scripts/run-tests.mjs tests/live-codex-app-server-smoke.test.ts",
20
+ "smoke:opencode-live": "OPENCLAW_RUN_LIVE_OPENCODE_SMOKE=1 node scripts/run-tests.mjs tests/live-opencode-server-smoke.test.ts",
19
21
  "typecheck": "tsc -p tsconfig.typecheck.json --noEmit",
20
22
  "validate:release-metadata": "node scripts/validate-release-metadata.mjs",
21
- "verify": "pnpm typecheck && pnpm build && pnpm test"
23
+ "verify": "pnpm check-static-guardrails && pnpm typecheck && pnpm build && pnpm test"
22
24
  },
23
25
  "openclaw": {
24
26
  "extensions": [
@@ -61,6 +63,7 @@
61
63
  "plugin",
62
64
  "claude",
63
65
  "claude-code",
66
+ "opencode",
64
67
  "coding-agent",
65
68
  "codex",
66
69
  "ai",
@@ -85,7 +88,7 @@
85
88
  "publishConfig": {
86
89
  "access": "public"
87
90
  },
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.",
91
+ "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
92
  "peerDependencies": {
90
93
  "openclaw": ">=2026.4.21"
91
94
  },
@@ -16,7 +16,7 @@ metadata:
16
16
 
17
17
  # Code Agent Orchestration
18
18
 
19
- Use `openclaw-code-agent` to run Claude Code or Codex sessions as background coding jobs from chat.
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