openclaw-code-agent 4.0.1 → 4.1.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 +39 -15
- package/dist/index.js +167 -165
- package/openclaw.plugin.json +36 -12
- package/package.json +11 -7
- package/skills/code-agent-orchestration/SKILL.md +2 -0
package/openclaw.plugin.json
CHANGED
|
@@ -2,8 +2,28 @@
|
|
|
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.1.1",
|
|
6
|
+
"contracts": {
|
|
7
|
+
"tools": [
|
|
8
|
+
"agent_launch",
|
|
9
|
+
"agent_sessions",
|
|
10
|
+
"agent_kill",
|
|
11
|
+
"agent_output",
|
|
12
|
+
"agent_respond",
|
|
13
|
+
"agent_request_plan_approval",
|
|
14
|
+
"agent_send_monitor_report",
|
|
15
|
+
"agent_stats",
|
|
16
|
+
"agent_merge",
|
|
17
|
+
"agent_pr",
|
|
18
|
+
"agent_worktree_cleanup",
|
|
19
|
+
"agent_worktree_status",
|
|
20
|
+
"goal_launch",
|
|
21
|
+
"goal_status",
|
|
22
|
+
"goal_stop"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
6
25
|
"activation": {
|
|
26
|
+
"onStartup": true,
|
|
7
27
|
"onCommands": [
|
|
8
28
|
"agent",
|
|
9
29
|
"agent_kill",
|
|
@@ -67,9 +87,11 @@
|
|
|
67
87
|
"enum": [
|
|
68
88
|
"low",
|
|
69
89
|
"medium",
|
|
70
|
-
"high"
|
|
90
|
+
"high",
|
|
91
|
+
"xhigh",
|
|
92
|
+
"max"
|
|
71
93
|
],
|
|
72
|
-
"description": "Harness-specific reasoning effort.
|
|
94
|
+
"description": "Harness-specific reasoning effort. Used by Codex and passed to Claude Code when configured."
|
|
73
95
|
}
|
|
74
96
|
}
|
|
75
97
|
}
|
|
@@ -87,13 +109,15 @@
|
|
|
87
109
|
"enum": [
|
|
88
110
|
"low",
|
|
89
111
|
"medium",
|
|
90
|
-
"high"
|
|
112
|
+
"high",
|
|
113
|
+
"xhigh",
|
|
114
|
+
"max"
|
|
91
115
|
],
|
|
92
116
|
"description": "Deprecated legacy Codex reasoning effort. Use harnesses.codex.reasoningEffort instead."
|
|
93
117
|
},
|
|
94
118
|
"defaultWorkdir": {
|
|
95
119
|
"type": "string",
|
|
96
|
-
"description": "Default working directory for new sessions"
|
|
120
|
+
"description": "Default working directory for new sessions. Because the default worktree strategy is 'delegate', this should normally be a git repository root unless defaultWorktreeStrategy is changed to 'off'."
|
|
97
121
|
},
|
|
98
122
|
"idleTimeoutMinutes": {
|
|
99
123
|
"type": "number",
|
|
@@ -138,13 +162,13 @@
|
|
|
138
162
|
},
|
|
139
163
|
"planApproval": {
|
|
140
164
|
"type": "string",
|
|
141
|
-
"default": "
|
|
165
|
+
"default": "delegate",
|
|
142
166
|
"enum": [
|
|
143
167
|
"approve",
|
|
144
168
|
"ask",
|
|
145
169
|
"delegate"
|
|
146
170
|
],
|
|
147
|
-
"description": "Plan approval behavior. '
|
|
171
|
+
"description": "Plan approval behavior. 'delegate' (default): orchestrator must review the full plan, then approve low-risk plans or escalate to the user. 'ask': always forwards plans to the user for approval. 'approve': orchestrator can auto-approve after verification."
|
|
148
172
|
},
|
|
149
173
|
"defaultHarness": {
|
|
150
174
|
"type": "string",
|
|
@@ -154,9 +178,9 @@
|
|
|
154
178
|
},
|
|
155
179
|
"defaultWorktreeStrategy": {
|
|
156
180
|
"type": "string",
|
|
157
|
-
"default": "
|
|
181
|
+
"default": "delegate",
|
|
158
182
|
"enum": ["off", "manual", "ask", "delegate", "auto-merge", "auto-pr"],
|
|
159
|
-
"description": "Default worktree strategy for all new sessions when agent_launch omits worktree_strategy. '
|
|
183
|
+
"description": "Default worktree strategy for all new sessions when agent_launch omits worktree_strategy. 'delegate' (default) creates an isolated worktree and wakes the orchestrator to decide follow-through autonomously. 'off' = no worktree. 'manual' = create worktree, no automatic action. 'ask' = push branch and notify the user with inline buttons (Merge locally / Create PR). 'auto-merge' = auto-merge to base branch on completion. 'auto-pr' = auto-create or update a GitHub PR on completion."
|
|
160
184
|
},
|
|
161
185
|
"worktreeDir": {
|
|
162
186
|
"type": "string",
|
|
@@ -185,7 +209,7 @@
|
|
|
185
209
|
},
|
|
186
210
|
"defaultWorkdir": {
|
|
187
211
|
"label": "Default working directory",
|
|
188
|
-
"help": "Base directory used for new sessions when agent_launch does not provide a workdir.",
|
|
212
|
+
"help": "Base directory used for new sessions when agent_launch does not provide a workdir. With the default delegated worktree strategy, choose a git repository root; use the advanced worktree strategy setting to disable worktrees for non-git directories.",
|
|
189
213
|
"placeholder": "/home/user/project"
|
|
190
214
|
},
|
|
191
215
|
"harnesses": {
|
|
@@ -215,12 +239,12 @@
|
|
|
215
239
|
},
|
|
216
240
|
"planApproval": {
|
|
217
241
|
"label": "Plan approval policy",
|
|
218
|
-
"help": "Choose whether plans are
|
|
242
|
+
"help": "Choose whether plans are delegated to the orchestrator for full-plan review first (`delegate`, default), always sent to the user with Approve/Revise/Reject buttons, or auto-approved.",
|
|
219
243
|
"advanced": true
|
|
220
244
|
},
|
|
221
245
|
"defaultWorktreeStrategy": {
|
|
222
246
|
"label": "Default worktree strategy",
|
|
223
|
-
"help": "Applies to all sessions that don't specify worktree_strategy explicitly. '
|
|
247
|
+
"help": "Applies to all sessions that don't specify worktree_strategy explicitly. 'delegate' (default) creates a worktree and wakes the orchestrator to decide follow-through. 'off' disables worktrees globally. 'ask' sends inline Merge locally / Create PR buttons on completion. 'auto-merge' and 'auto-pr' are fully automated.",
|
|
224
248
|
"advanced": true
|
|
225
249
|
}
|
|
226
250
|
},
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-code-agent",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.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
|
|
9
|
+
"build": "esbuild index.ts --bundle --platform=node --target=node22 --format=esm --outfile=dist/index.js --minify --external:@anthropic-ai/claude-agent-sdk",
|
|
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",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"minGatewayVersion": "2026.4.21"
|
|
30
30
|
},
|
|
31
31
|
"build": {
|
|
32
|
-
"openclawVersion": "2026.4
|
|
33
|
-
"pluginSdkVersion": "2026.4
|
|
32
|
+
"openclawVersion": "2026.5.4",
|
|
33
|
+
"pluginSdkVersion": "2026.5.4"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@types/node": "^25.5.2",
|
|
50
50
|
"esbuild": "^0.28.0",
|
|
51
51
|
"nanoid": "^5.1.7",
|
|
52
|
-
"openclaw": "2026.4
|
|
52
|
+
"openclaw": "2026.5.4",
|
|
53
53
|
"tsx": "^4.21.0",
|
|
54
54
|
"typescript": "^6.0.2"
|
|
55
55
|
},
|
|
@@ -87,7 +87,8 @@
|
|
|
87
87
|
"openclaw": ">=2026.4.21"
|
|
88
88
|
},
|
|
89
89
|
"overrides": {
|
|
90
|
-
"basic-ftp": "5.3.0"
|
|
90
|
+
"basic-ftp": "5.3.0",
|
|
91
|
+
"ip-address@<10.1.1": "10.1.1"
|
|
91
92
|
},
|
|
92
93
|
"pnpm": {
|
|
93
94
|
"onlyBuiltDependencies": [
|
|
@@ -105,7 +106,10 @@
|
|
|
105
106
|
"protobufjs@>=7 <7.5.5": "7.5.5",
|
|
106
107
|
"brace-expansion@>=4.0.0 <5.0.5": ">=5.0.5",
|
|
107
108
|
"path-to-regexp@>=8.0.0 <8.4.0": ">=8.4.0",
|
|
108
|
-
"fast-xml-parser@>=5.0.0 <5.7.0": ">=5.7.0"
|
|
109
|
+
"fast-xml-parser@>=5.0.0 <5.7.0": ">=5.7.0",
|
|
110
|
+
"@anthropic-ai/sdk@<0.91.1": "0.91.1",
|
|
111
|
+
"@anthropic-ai/vertex-sdk>google-auth-library": "10.6.2",
|
|
112
|
+
"ip-address@<10.1.1": "10.1.1"
|
|
109
113
|
}
|
|
110
114
|
}
|
|
111
115
|
}
|
|
@@ -77,6 +77,8 @@ Treat these wake fields as authoritative state when present:
|
|
|
77
77
|
|
|
78
78
|
Use those deterministic fields instead of inferring behavior from transcript fragments.
|
|
79
79
|
|
|
80
|
+
When OpenClaw exposes managed TaskFlow state for a session, treat it as a high-level progress mirror of the plugin session. The plugin session state, `agent_sessions`, `agent_output`, and `agent_worktree_status` remain the authoritative operational surfaces for follow-up decisions.
|
|
81
|
+
|
|
80
82
|
Approval/execution meanings:
|
|
81
83
|
|
|
82
84
|
- `approved_then_implemented`: normal approved execution
|