grok-delegate-mcp 0.0.0-stage → 4.0.0-rc.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/CHANGELOG.md ADDED
@@ -0,0 +1,1250 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/), and the project adheres to
5
+ [Semantic Versioning](https://semver.org/).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [3.5.0] - 2026-12-01
10
+
11
+ ### Fixed
12
+
13
+ - Delegations run on Grok Build 2.0, the CLI `cursor-agent` launches once the Cursor CLI has
14
+ switched to it. 3.4.0 ended each one with
15
+ `Invalid params (session/set_config_option JSON-RPC -32602)`.
16
+ - `mode: plan` on Grok Build returns the plan the agent hands over in `_x.ai/exit_plan_mode`.
17
+ - Resuming a session Grok Build no longer has starts a fresh session and says so in
18
+ `protocolWarnings`.
19
+
20
+ ### Changed
21
+
22
+ - An agent error carries the reason from `error.data.detail` or a string `error.data`.
23
+ - On Grok Build `fast` and `context` come back in `protocolWarnings` as options the model does
24
+ not have, `effort` fails before the prompt, and the todo list arrives as `plan.entries`.
25
+
26
+ ## [3.4.0] - 2026-11-25
27
+
28
+ ### Added
29
+
30
+ - `doctor` reports whether `cursor-agent` is logged in (`auth.status`, from `cursor-agent status`),
31
+ the subscription tier (`auth.plan`) and a newer CLI release (`agent.latestVersion`, from
32
+ `cursor-agent about`), and takes a `workspace` argument it checks and opens the deep session in.
33
+ - `doctor deep` checks that the account offers the default model.
34
+ - `doctor` lists what needs action in `warnings`: launcher missing or silent, not logged in, a
35
+ newer CLI, a missing workspace, a failed handshake, a default model the account lacks.
36
+
37
+ ### Changed
38
+
39
+ - `doctor` output follows the shape shared with `codex-delegate-mcp` and `agy-delegate-mcp`.
40
+ `agent.handshake` is replaced by top-level `session` (`ok`, `error`, `modes`) and `models`
41
+ (`default`, `defaultAvailable`, `current`, `available`, `currentModelOptions`).
42
+ - `doctor` leaves out what rarely changes a diagnosis: the client's capabilities, the runtime
43
+ section, the agent's ACP protocol version and capabilities, and unset environment variables.
44
+ - The package, plugin and server descriptions present the plugin as bringing Composer and Grok
45
+ into a council: second opinions first, then handoff.
46
+
47
+ ## [3.3.0] - 2026-11-25
48
+
49
+ ### Added
50
+
51
+ - Server info carries a title, a description and the repository URL, and each tool has a title.
52
+ The server advertises `tools.listChanged: false`.
53
+
54
+ ### Changed
55
+
56
+ - `delegate`, `cancel` and `doctor` reject an unknown input field instead of dropping it. A
57
+ misspelled `resumeSessionId` started a new session.
58
+ - The delegate skill covers second opinions and model comparisons as well as handoff, at about a
59
+ third of its former length. It no longer scales delegation by task size or carries a Security
60
+ section. `reference.md` keeps result fields and failure reasons; the effort-option rules, the
61
+ progress format and the timeout overrides moved to TECHNICAL.md, and the `contextFiles` trust
62
+ note to SECURITY.md.
63
+ - The `delegate` description and the server instructions open with asking Cursor as well as
64
+ delegating to it: `mode: "ask"` gives a second opinion, and parallel calls with the same brief
65
+ compare views.
66
+ - The plugin, marketplace, npm and MCP Registry descriptions name both uses.
67
+ - The MCP SDK is pinned to 2.4.0.
68
+
69
+ ### Fixed
70
+
71
+ - The README's MCP Registry badge points at the v0.1 search, and `server.json` is indented
72
+ consistently.
73
+
74
+ ## [3.2.0] - 2026-11-24
75
+
76
+ ### Changed
77
+
78
+ - A stop kills cursor-agent's process tree once and waits up to 5 s for cursor-agent to exit; on
79
+ Windows `taskkill` first gets up to 5 s of its own. A stop that cannot confirm the exit is final,
80
+ and the result warns `the bridge stopped cursor-agent (pid <pid>) but could not confirm that
81
+ cursor-agent and its processes exited; they may still be running.`, where it said the bridge did
82
+ not see cursor-agent exit and a later stop tried again.
83
+ - A force cancel whose kill cannot confirm the exit reports `cancelled`, and the session is no
84
+ longer kept for another force.
85
+ - Shutdown stops every agent, waits for the stops, and exits with the code of whatever triggered it
86
+ first. SIGINT, SIGTERM and SIGHUP trigger it on Windows too. A later signal waits for the same
87
+ stop, where a second signal killed each agent's process group and exited at once.
88
+ - A stopped task's status message carries a note only when the run started a fresh session after a
89
+ failed resume. A stop that cannot confirm cursor-agent exited is reported in the delegate result's
90
+ `protocolWarnings`.
91
+ - An `agent-error` message ends with the request and JSON-RPC code cursor-agent answered with, as in
92
+ `(session/new JSON-RPC -32603)`, and so does the note of a resume that failed for a session that
93
+ still exists. The skill reference describes `agent-error` as an error answer named with its code,
94
+ where it called every such code a rejected argument.
95
+ - The `model` field and the skill reference name only the default model and point to
96
+ `doctor deep:true` for the ids an account offers.
97
+
98
+ ### Removed
99
+
100
+ - `CURSOR_DELEGATE_IDLE_MS`, the opt-in mid-turn idle guard (off by default), and its `idle-timeout`
101
+ reason. doctor no longer reports it.
102
+ - `ACP_LOG_SIZE`. The flight recorder keeps exactly the frames `CURSOR_DELEGATE_TRANSCRIPT` shows,
103
+ and records only while it is set. doctor no longer reports it.
104
+ - The protocol warning for each malformed plan or todo value. A plan entry or todo without string
105
+ content is still dropped, and a priority or status outside the ACP values still removed.
106
+
107
+ ### Fixed
108
+
109
+ - On Windows a `taskkill` that fails or runs past 5 s is followed by a kill of the launcher by its
110
+ handle, and the result warns that cursor-agent and its processes may still be running. A failed
111
+ `taskkill` went unreported.
112
+ - `resumeSessionId` is trimmed, and a blank one starts a new session, as in agy-delegate-mcp. Both
113
+ were sent to cursor-agent as given.
114
+
115
+ ### Internal
116
+
117
+ - `src/proc.js` and `src/shutdown.js` are the same in agy-delegate-mcp, cursor-delegate-mcp and
118
+ codex-delegate-mcp.
119
+ - `npm test` runs the test files named on the command line, without a deadline.
120
+ - The result and doctor shapes the tests check are in `test/output-shapes.js`.
121
+ - Tests of limits, options and source layout the code no longer has are removed.
122
+
123
+ ## [3.1.1] - 2026-11-24
124
+
125
+ ### Changed
126
+
127
+ - A finished task is kept for its hour however many finish, where only the last 100 were kept.
128
+ - `cancel` tells every session the server has seen from an unknown id, where only the last 500
129
+ sessions were kept.
130
+
131
+ ### Fixed
132
+
133
+ - The server shuts down, stopping its agents, when its stdio transport closes. When the server's
134
+ stdout broke, as it does when the host dies, the transport paused stdin, no stdin EOF arrived,
135
+ and the server and the agent kept running.
136
+ - A completed task's result carries `resultType: "complete"`, as the `tools/call` result it stands
137
+ for, which the tasks extension's client schema requires.
138
+ - A task id resumes its session for as long as the server runs, not only for the hour its task is
139
+ kept.
140
+ - A finished task's status message is its error, or none, instead of its last progress line.
141
+ - `tasks/update` refuses a request with no `inputResponses`.
142
+
143
+ ## [3.1.0] - 2026-11-24
144
+
145
+ ### Changed
146
+
147
+ - A stopped task's status message stays `cancelled; resume with resumeSessionId <id>` after the
148
+ run ends, where it became the run's `delegate failed [aborted]` error. It gains a note when the
149
+ run had started a fresh session after a failed resume, or when the stop did not see cursor-agent
150
+ exit.
151
+ - A process the server would start after shutdown began fails with `spawn-failed` instead of
152
+ starting.
153
+ - A stop counts as done once cursor-agent's exit was seen and its tree kill finished. On Windows it
154
+ waits for `taskkill` to finish with the tree.
155
+ - A shutdown signal that arrives after stdin closed sets the exit code and waits for the agents to
156
+ be stopped, where it exited at once. Only a second signal skips that wait.
157
+ - An aborted `doctor` version probe returns once its stop saw the probe exit: up to 4 s, where it
158
+ was 2 s.
159
+
160
+ ### Fixed
161
+
162
+ - A shutdown signal during `doctor` with `deep: true` stops the agent doctor starts for its
163
+ handshake, rather than exiting with it running.
164
+ - A delegation that fails, times out or is aborted during setup sends cursor-agent nothing more: a
165
+ reply that arrives afterwards no longer goes on to change the session's model, effort or mode, or
166
+ to send the prompt. In task mode a handshake timeout fails the call, rather than answering it
167
+ with a task id.
168
+ - A cancel before the prompt ends the delegation at once with `stopReason: "cancelled"`, rather
169
+ than waiting on the setup request in flight.
170
+ - A delegation aborted or timed out during setup sends no progress notifications after its call
171
+ returned.
172
+ - Text cursor-agent sends while `contextFiles` are read stays out of `result`.
173
+ - The note that cursor-agent may still be running and the resume hint reach the caller whatever
174
+ cursor-agent's side threw, a frozen error or a value that is not an Error included.
175
+
176
+ ## [3.0.1] - 2026-11-23
177
+
178
+ ### Fixed
179
+
180
+ - A delegation stopped with TaskStop in Claude Code can be resumed: `resumeSessionId` takes the
181
+ task's server-side id, the only id Claude Code tells the model. `cancel` takes it too and
182
+ reaches only that task's turn.
183
+
184
+ ### Changed
185
+
186
+ - The `aborted` error drops the last tool call, frame age, todos and edited files: no host
187
+ receives a response to a request it cancelled. The skill reference no longer lists `aborted`.
188
+
189
+ ## [3.0.0] - 2026-11-23
190
+
191
+ `delegate` no longer holds your agent while Cursor works. In an interactive Claude Code CLI session
192
+ it runs as an MCP task, and the Antigravity plugin runs it in the background: your agent stays free
193
+ to plan, review or start the next delegation, and Cursor's result arrives when its turn ends. Codex
194
+ and other hosts keep the blocking call. One thing changes on upgrade in Claude Code: the
195
+ `delegate` call returns before Cursor has finished, and its result comes back as a task
196
+ notification.
197
+
198
+ ### Added
199
+
200
+ - The server serves the MCP Tasks extension (`io.modelcontextprotocol/tasks`, 2026-07-28) to a
201
+ request that lists it: `tasks/get`, `tasks/update` and `tasks/cancel`. A finished task's result
202
+ is kept for an hour, up to 100 tasks.
203
+
204
+ ### Changed
205
+
206
+ - **Breaking: in an interactive Claude Code CLI session, `delegate` runs as an MCP task.** The call
207
+ returns once cursor-agent has the prompt, and the same result arrives as a task notification
208
+ when the turn ends. Progress shows as the task's status message in `/tasks`, and stopping the
209
+ task cancels the turn and stops cursor-agent. An argument cursor-agent rejects still fails the
210
+ call before the prompt. A request that does not list the extension, as Codex's and
211
+ Antigravity's do not, is answered with the result, as before.
212
+ `CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND=1` makes Claude Code wait for the result in the call.
213
+ - The Antigravity plugin runs `delegate` in the background (`tools.delegate.background: "always"`):
214
+ Antigravity hands the call back to the model at once and wakes it with the result.
215
+ `timeoutSeconds` still bounds the call.
216
+
217
+ ## [2.11.0] - 2026-11-23
218
+
219
+ ### Added
220
+
221
+ - `doctor` reports `client.protocolVersion`: `2026-07-28`, or the 2025-era revision the host
222
+ negotiated.
223
+
224
+ ### Changed
225
+
226
+ - MCP SDK v2 (`@modelcontextprotocol/server` 2.4.0): the server takes 2025-era and 2026-07-28
227
+ hosts. The runtime dependencies are this package and `zod`.
228
+ - A delegation returns once cursor-agent has exited, about 0.1 s after the turn ends. A host that
229
+ closes stdin on the result, as a one-shot run does, exits the server, which on Windows left a
230
+ cursor-agent still being killed running.
231
+
232
+ ### Fixed
233
+
234
+ - An agent whose exit is not seen after the kill is killed once more, by the delegation and by
235
+ server shutdown. A delegation that still sees no exit says so in `protocolWarnings` or its
236
+ error.
237
+ - `cancel` reports `not-running` for a turn that has ended while its agent is being stopped, and
238
+ leaves its result alone. `force` leaves a turn that ends during its grace to that turn's own
239
+ teardown.
240
+ - `doctor` on a 2025-era connection reports the identity and revision from `initialize`, even
241
+ when a request carries per-request envelope keys.
242
+ - On Windows, quotes and empty arguments in `ACP_AGENT_ARGS` reach cursor-agent when
243
+ `cursor-agent.cmd` forwards to its `.ps1` through Windows PowerShell 5.1.
244
+ - The Claude plugin manifest names its image `icon`, the field Anthropic's plugin directory reads.
245
+
246
+ ## [2.10.0] - 2026-11-22
247
+
248
+ ### Changed
249
+
250
+ - On Windows, `cursor-agent` starts without cmd.exe. `cursor-agent.cmd` (and its copy `agent.cmd`)
251
+ only forwards to `cursor-agent.ps1`, which the bridge now runs through `powershell.exe -File`, so
252
+ `!`, `%VAR%`, `^` and quotes in `ACP_AGENT_ARGS` reach the agent unchanged.
253
+
254
+ ### Fixed
255
+
256
+ - Progress lines and stall errors name the command or path of the last tool call, which
257
+ cursor-agent sends on the `tool_call_update`, capped at 200 characters.
258
+ - Windows launch:
259
+ - A launcher path or `ACP_AGENT_ARGS` argument with spaces arrives whole, including a quoted
260
+ section inside an argument (`--log-file="C:\a b\x.log"`).
261
+ - A `.ps1` `ACP_AGENT_COMMAND` runs through PowerShell instead of opening with its file
262
+ association.
263
+ - A Store app execution alias on `PATH`, such as `pwsh`, is found.
264
+ - Node 24 prints no DEP0190 deprecation warning.
265
+ - `doctor` reports the agent's version for a launcher prefix such as `node index.js acp`, and for a
266
+ `.ps1` launcher.
267
+ - `doctor` stops its version probe and handshake when the host aborts and returns once they have
268
+ exited. A server shutdown stops them too.
269
+ - `cancel`:
270
+ - a cancel during session setup keeps the prompt from being sent;
271
+ - `force` kills only the turns running when it arrived, not a resume that started during its
272
+ grace;
273
+ - a blank `sessionId` is rejected, and surrounding whitespace is trimmed.
274
+ - On SIGHUP (a closed terminal) the server stops its agents before exiting. The stdin close that
275
+ follows a hangup does not cut that wait short.
276
+ - The SessionStart hook sends npm's output to stderr, keeping the install summary out of the
277
+ session context.
278
+
279
+ ### Internal
280
+
281
+ - Lockfile: hono 4.13.18.
282
+
283
+ ## [2.9.0] - 2026-11-22
284
+
285
+ ### Fixed
286
+
287
+ - A missing cursor-agent on Windows is reported as `spawn-failed` with the install hint, and
288
+ `doctor` reports `found: false`. Launched through cmd.exe it read as `agent-exit` quoting cmd's
289
+ "is not recognized" line, and `doctor` reported `found: true`.
290
+ - `cancel` with `force` returns as soon as the turn settles, in about 60 ms, instead of waiting out
291
+ its 5 s grace.
292
+
293
+ ## [2.8.0] - 2026-11-08
294
+
295
+ ### Added
296
+
297
+ - Antigravity plugin, listed as Delegate to Cursor:
298
+ `agy plugin install https://github.com/andreilungeanu/cursor-delegate-mcp`. It sets
299
+ `timeoutSeconds` to 21660 s, a minute past the hard cap; Antigravity otherwise ends a tool call
300
+ after 180 s.
301
+
302
+ ### Changed
303
+
304
+ - Copilot CLI installs from the plugin marketplace:
305
+ `copilot plugin marketplace add andreilungeanu/cursor-delegate-mcp`, then
306
+ `copilot plugin install cursor-delegate@cursor-delegate-mcp`. Copilot deprecates direct
307
+ repository installs. Copilot's manifest moved from the repository root to
308
+ `.github/plugin/plugin.json`.
309
+
310
+ ### Fixed
311
+
312
+ - The Copilot plugin's server starts. Copilot runs it inside the plugin folder, a copy of this
313
+ repository, where `npx -y cursor-delegate-mcp@X.Y.Z` matched the pin to the folder's own
314
+ `package.json` and failed with `'cursor-delegate-mcp' is not recognized`. The Copilot, Codex and
315
+ Antigravity configs pin `npm:cursor-delegate-mcp@X.Y.Z`, which npx always fetches. Existing
316
+ installs pick it up with `copilot plugin update cursor-delegate`.
317
+
318
+ ### Internal
319
+
320
+ - The test suite passes under Windows' default PowerShell execution policy and removes its
321
+ temporary plugin folders.
322
+
323
+ ## [2.7.0] - 2026-11-07
324
+
325
+ ### Changed
326
+
327
+ - The default hard cap on a single delegation (`CURSOR_DELEGATE_HARD_CAP_MS`) is 6 h, up from 1 h,
328
+ so long research and refactor runs fit in one call. Longer work continues in another run with
329
+ `resumeSessionId`.
330
+
331
+ ### Fixed
332
+
333
+ - Codex lets a `delegate` call run to the hard cap. Codex times an MCP tool call by wall clock,
334
+ 300 s by default, whatever progress the server reports; the Codex plugin now sets
335
+ `tool_timeout_sec` to 21660 s, a minute past the hard cap, so the bridge's `hard-cap` error
336
+ arrives first. A server added by hand under `[mcp_servers.cursor-delegate]` in Codex's
337
+ `config.toml` takes the same key. Reported in #20.
338
+
339
+ ### Security
340
+
341
+ - Lockfile bumps of `zod` to 4.6.7, `body-parser` to 2.4.0, `fast-uri` to 3.1.9, `ip-address` to
342
+ 10.7.6, `qs` to 6.17.1 and `@hono/node-server` to 2.1.6, clearing the high advisories
343
+ GHSA-mrhx-c7xc-m3w5 and GHSA-27r3-jxmh-p828, the moderate GHSA-rmxm-3fg6-px4f,
344
+ GHSA-w74x-v6f9-j3xg, GHSA-wjr9-j795-jxcr, GHSA-rxp7-6hxx-x8q5 and GHSA-6pq8-jhm2-2vcw, and the
345
+ low GHSA-333x-w4r6-6crp and GHSA-xhq7-xmqj-769h.
346
+
347
+ ## [2.6.0] - 2026-10-22
348
+
349
+ ### Fixed
350
+
351
+ - `/cursor-delegate:delegate` loads the delegate skill. Claude Code loaded a slash command of the same
352
+ name instead, and that command only pointed back to the skill, so the workflow never reached the
353
+ caller. The command is removed; the skill takes the task as its argument.
354
+
355
+ ### Security
356
+
357
+ - Lockfile bumps of the MCP SDK to 1.32.1 and `hono` to 4.13.13, clearing the high advisories
358
+ GHSA-22jm-h49p-29qw and GHSA-46jr-4wx8-v453 and the moderate GHSA-6prh-2h8m-c8cw,
359
+ GHSA-rvq5-wwqv-78pq and GHSA-5r4p-p66f-jhc7.
360
+
361
+ ## [2.5.2] - 2026-10-15
362
+
363
+ 2.5.1 was tagged but not published: its release run failed the dependency audit. Its fix
364
+ ships in this release.
365
+
366
+ ### Security
367
+
368
+ - Lockfile bump of `proxy-addr` to 2.0.8, clearing the critical audit advisory
369
+ GHSA-jqcg-44mw-7w3h in the MCP SDK's dependencies.
370
+
371
+ ### Internal
372
+
373
+ - The release workflow also retries the MCP Registry publish on registry 5xx responses.
374
+ 2.5.0 reached npm but not the MCP Registry after a 504.
375
+
376
+ ## [2.5.1] - 2026-10-15
377
+
378
+ ### Fixed
379
+
380
+ - Hooks run on Windows under a Git Bash host. cursor-agent writes hooks as PowerShell but ran
381
+ them in Git Bash when it inherited `MSYSTEM` or `SHELL`, so every hooked tool call failed as
382
+ blocked. On win32 both are dropped from the agent's environment; it uses PowerShell.
383
+
384
+ ## [2.5.0] - 2026-10-05
385
+
386
+ ### Changed
387
+
388
+ - Zod 4. The minimum supported `@modelcontextprotocol/sdk` is now 1.23.0, the first
389
+ release that accepts Zod 4 schemas; 1.22.x requires Zod 3.
390
+
391
+ ### Security
392
+
393
+ - Lockfile bumps of `fast-uri` to 3.1.8 and `ip-address` to 10.7.3, clearing the two
394
+ moderate audit advisories in the MCP SDK's dependencies.
395
+
396
+ ### Internal
397
+
398
+ - Lockfile bumps of `@modelcontextprotocol/sdk` to 1.31.0 and the dev dependency
399
+ `@types/node` to 26.6.4.
400
+ - The release workflow retries the MCP Registry publish while npm is still processing
401
+ the new version, instead of failing the run. npm serves a new version a minute or two
402
+ after accepting it, and the registry validates against npm.
403
+
404
+ ## [2.4.0] - 2026-10-05
405
+
406
+ ### Added
407
+
408
+ - `effectiveEffort` in the delegate result: the current value of each option recognized as
409
+ effort, keyed by option id, as the agent reported it when the prompt went out. It is
410
+ present even when `effort` is omitted, because the model then runs at the level Cursor
411
+ saved for it, and absent when no reply confirmed a value. Read from replies the bridge
412
+ already receives, so it adds no ACP requests.
413
+ - `doctor` with `deep: true` reports each `currentModelOptions` entry's `name`, ACP
414
+ `category` and `currentValue` when the agent sends them as strings. The id and values
415
+ alone could not show that grok-4.7's `reasoning_effort` is its effort setting, or which
416
+ level Cursor had saved for it.
417
+
418
+ ### Fixed
419
+
420
+ - `effort` reaches a model that advertises it under an unfamiliar id. An option the agent
421
+ marks with ACP's `thought_level` category counts as effort whatever its id or name, and
422
+ the fallback for agents that send no category also knows `reasoning_effort` and names
423
+ containing "effort". grok-4.7 declares `reasoning_effort` ("Effort"), which was missed, so
424
+ `effort: "high"` failed with `invalid-effort` claiming the model had no effort setting.
425
+ - `invalid-effort` no longer says `Accepted: none` when no option is recognized as effort.
426
+ Missing an option is not proof the model has none, so the error lists the options the
427
+ model advertised, with their names, categories and values.
428
+
429
+ ### Security
430
+
431
+ - Lockfile bump of `hono` to 4.13.7, clearing a moderate audit advisory.
432
+
433
+ ### Internal
434
+
435
+ - Lockfile bumps of `@modelcontextprotocol/sdk` to 1.30.1 and the dev dependency
436
+ `@types/node` to 26.6.3.
437
+
438
+ ## [2.3.0] - 2026-09-06
439
+
440
+ ### Fixed
441
+
442
+ - JSON that is not an object is ignored on the ACP stream. `null` threw in the frame
443
+ reader — an uncaught exception that took down the server — and arrays or primitives
444
+ counted as activity, holding the idle guard open the way a launcher banner used to.
445
+ - Malformed tool `content` blocks are dropped and reported once in `protocolWarnings`.
446
+ A null block, a block with no string `type`, or a `diff` whose `path` is missing or
447
+ not a string threw in the update handler or recorded a non-path in `touchedFiles`.
448
+ - `cursor/update_todos` sent as a JSON-RPC notification is merged and not answered. A
449
+ reply to a notification is invalid JSON-RPC and aborted the turn.
450
+ - An image `contextFile` that cannot be read is skipped with a warning. A permission
451
+ error or a locked file used to fail the whole delegation after the other attachments
452
+ were already accepted.
453
+ - The Codex plugin `interface` drops `supportURL`. Codex's validator rejects unknown
454
+ keys, so a listing that kept that field would not validate.
455
+
456
+ ### Changed
457
+
458
+ - README usage copy names the Cursor Models pool and links Cursor's usage-limits help
459
+ instead of calling the allowance generous enough that most people never hit it.
460
+
461
+ ### Internal
462
+
463
+ - The production `npm audit` CI step retries three times with a five-minute timeout, so
464
+ a registry blip no longer fails the whole test workflow.
465
+
466
+ ## [2.2.1] - 2026-09-04
467
+
468
+ ### Changed
469
+
470
+ - README client snippets that shared a config shape now point at one example.
471
+ - Skill defaults table dropped duplicated field notes; security wording tightened.
472
+
473
+ ## [2.2.0] - 2026-09-03
474
+
475
+ ### Added
476
+
477
+ - Registry and protocol icons: `server.json` `icons[]` and the MCP `initialize` payload
478
+ advertise the light and dark logos as HTTPS URLs (SEP-973). Codex `interface.logoDark`.
479
+
480
+ ### Changed
481
+
482
+ - README client list checked against vendor docs (3 Sep 2026): OpenCode and Google
483
+ Antigravity added; Kiro, Kilo Code, and Zed no longer share one portable snippet;
484
+ Visual Studio covers 2022 17.14+ and 2026. npm description/keywords and
485
+ `llms-install.md` match that list; OpenCode, Kilo Code, and Zed are called out
486
+ as not using `mcpServers`.
487
+
488
+ ## [2.1.1] - 2026-09-03
489
+
490
+ ### Fixed
491
+
492
+ - Transitive `fast-uri` and `qs` advisories that failed `npm audit --audit-level=high`.
493
+ - Stderr capture slices an oversized first pipe read so retained memory stays one cap.
494
+
495
+ ## [2.1.0] - 2026-09-03
496
+
497
+ ### Fixed
498
+
499
+ - `cancel` with `force: true` can be retried after a kill that did not observe an exit. `stop()`
500
+ no longer memoizes that `false`, which had made every later force a no-op.
501
+ - Force-kill unregisters only the handles it actually stopped, so a resume that registers during
502
+ teardown stays cancellable instead of running untracked.
503
+ - Todo `cancelled` is kept and counted in `todoProgress.cancelled` instead of being stripped.
504
+ - `contextFiles` aliases (Win32 case, `realpath`) are sent once.
505
+ - `doctor` reports `agent.error` when `--version` exits non-zero, probes `.mjs`/`.cjs` launchers
506
+ with Node, quotes the resolved command, and includes launcher/timeout env knobs.
507
+
508
+ ### Changed
509
+
510
+ - Permission notes in `TECHNICAL.md` match the router: no allow option → `cancelled`, never the
511
+ first offered reject.
512
+
513
+ ## [2.0.0] - 2026-08-21
514
+
515
+ One thing changes on upgrade: pass `workspace` on every call, resumes included.
516
+
517
+ ### Changed
518
+
519
+ - **Breaking: `workspace` is required on every call** — `agent`, `plan`, `ask`, and every
520
+ resume. An omitted `workspace` used to mean the server's own working directory, which under
521
+ `npx` or a plugin install is a cache folder or your home directory, so a defaulted call put
522
+ an auto-approved agent to work on a tree nobody named.
523
+ - **Breaking: `result` comes back at full length.** The 10MB cap and its
524
+ `[output truncated at 10MB]` marker are gone. The stream is the model's own message, bounded
525
+ by its output limit; a byte cap here handed back a partial answer as if it were the whole one.
526
+ - An `agent-exit` failure carries the whole captured `stderr` rather than its last 2000
527
+ characters. This is the one string that says why the agent died, and the part naming the
528
+ rejected model, the exhausted quota or the expired login can sit anywhere in it. The 64KB
529
+ ring buffer is the bound.
530
+ - `CHANGELOG.md` ships in the npm artifact.
531
+
532
+ ### Added
533
+
534
+ - `-v` is accepted alongside `--version`.
535
+ - A `logo` field on the Claude and Agent plugin manifests, pointing at `assets/logo-light.png`.
536
+ With no `.cursor-plugin/` directory in the repository, those are the manifests Cursor reads, and
537
+ `logo` is the field its marketplace tile draws an icon from.
538
+
539
+ ### Fixed
540
+
541
+ - **The Claude Code plugin installs its dependencies on Windows.** `npm` is a shell script
542
+ there, so the bootstrap spawn could not find it and a fresh plugin install had no working
543
+ delegation at all.
544
+ - The bootstrap install runs unless every declared dependency is present. It used to skip on
545
+ finding the first one, leaving a partial `node_modules` in place.
546
+ - An error on the readline interface reading the agent is handled. Unhandled, it was an
547
+ uncaught exception that took down the MCP server and every concurrent delegation with it.
548
+ - A malformed ACP frame is dropped and reported in `protocolWarnings`. A non-array `content`
549
+ threw inside the readline callback — the whole server, not one turn, and the reply on the
550
+ next line went unread so the turn hung to its cap. A non-array plan `entries` threw in the
551
+ sanitizer after the turn's work was done.
552
+ - A permission request that offers no allow option is answered `cancelled`. The router used to
553
+ fall back to the first option offered, returning a reject id under a `selected` outcome,
554
+ which the agent reads as approval of the denial.
555
+ - A router bug is reported as `-32603`. It used to send `-32000`, which ACP assigns to
556
+ `auth_required`, sending the agent down a recovery path that cannot work.
557
+ - The host going away — `SIGINT`, `SIGTERM`, or stdin closing — kills in-flight delegations and
558
+ gives them time to land before the server exits. A delegation still inside its handshake is
559
+ reached too: the agent process exists about 3.4s before its session id does.
560
+ - The signal handler records the exit code as it runs and schedules the exit off the kill's
561
+ settlement stack, so a loop that runs dry on its own still dies with the code the signal
562
+ asked for.
563
+ - On Windows the kill runs only while the child is alive. `taskkill /T` walks parent links an
564
+ exited leader no longer has, and a reaped pid can already belong to somebody else.
565
+ - Only a parsed ACP frame counts as agent activity. A launcher writing to stderr used to hold
566
+ the idle guard open and made "Last ACP frame Ns ago" report a stderr byte.
567
+ - The version probe drains the agent's stderr, so a launcher noisy enough to fill the pipe
568
+ reports its version instead of reading out as a timeout.
569
+ - A resumed session moves back to the recent end of the session history, so `cancel` no longer
570
+ answers `not-found` for a live, resumable session that aged out on insertion order.
571
+ - A multi-line tool title is reported as one line. A terminal tool's title is the command the
572
+ agent sent, and a multi-line script arrives with its newlines.
573
+ - A non-numeric `CURSOR_DELEGATE_TRANSCRIPT` reads as on at 50 frames rather than off.
574
+ `Number("true")` is `NaN`, so the most natural way to ask for a transcript disabled the one
575
+ thing it was asking for — in the recorder and again where the frames are appended.
576
+ - A stale non-terminal update for a finished tool call is ignored. It used to restart result
577
+ collection, so the turn's final message came back as `discardedResult` under
578
+ `resultSource: "pre-tool-fallback"` — a clean answer labelled an unreliable preamble.
579
+
580
+ ### Documentation
581
+
582
+ - The delegate reference records that `effectiveModel` reports no model for `default` (Auto).
583
+ - The Codex plugin manifest and the host-compatibility issue template drop their remaining
584
+ read-only claims.
585
+
586
+ ### Internal
587
+
588
+ - The release workflow is gated on the full test workflow rather than one `npm test` leg.
589
+ - Coverage for the `allow_once` fallback, the doctor option list, the peer error frame, the
590
+ bare-`{}` ack methods, and the stderr ring-buffer trim driven through a real spawn.
591
+
592
+ ## [1.22.0] - 2026-08-13
593
+
594
+ ### Added
595
+
596
+ - **`cursor-delegate-mcp --version` prints the version and exits.** The flag previously fell
597
+ through to the stdio transport, which owns stdout and waits on stdin, so an install could only
598
+ be confirmed after it was wired into a host. The version is read from the `package.json` beside
599
+ the running code, so it reports what is executing rather than what a manifest pinned.
600
+
601
+ ### Removed
602
+
603
+ - **Breaking: `spec` is sent as written. A `spec` that is a file path is no longer read as the
604
+ brief.** The bridge guessed which of the two a caller meant by sniffing the string for path
605
+ shape, so the meaning depended on whether a matching file existed. Orchestrators write the
606
+ brief and attach files with `contextFiles`, leaving nothing to disambiguate. A caller passing a
607
+ bare path now gets that path as the prompt text, with no error. `invalid-spec` fires only on a
608
+ blank `spec`.
609
+
610
+ ### Fixed
611
+
612
+ - **The documented `cancel` vocabulary matches what 1.21.0 shipped.** The skill reference said a
613
+ forced cancel reports `killed`; since 1.21.0 that requires an observed exit, and a force that
614
+ cannot confirm one reports `cancelled` and keeps the session cancellable. It also called
615
+ `not-found` an id never seen by this process, which stops holding past the 500-session history
616
+ cap.
617
+
618
+ ### Changed
619
+
620
+ - **The handshake skips config round-trips that would set what is already set.**
621
+ `session/set_model` goes only when the session did not open on the requested model, and
622
+ `session/set_config_option { configId: "fast" }` only when the session did not open on that
623
+ model *at* that tier — Cursor persists both, and persists the tier per model, so the values
624
+ `session/new` and `session/load` report are what the turn would otherwise re-assert. Anything
625
+ that reads the reply still sends it: an `effort` to validate, or `model: "default"`, whose
626
+ served id is only visible there. A value the agent does not report reads as a mismatch and
627
+ sends, and any model change re-applies the tier rather than trusting the previous model's. Two
628
+ delegations on the same model and tier now spend ~3.4 s in setup instead of ~5.5 s; a first
629
+ call, or one that switches model or tier, is unchanged.
630
+ - **The ACP flight recorder records only when a transcript is asked for.** Every frame in and out
631
+ was retained whenever `ACP_LOG_SIZE` was above 0, which is the default, while the only consumer
632
+ is `CURSOR_DELEGATE_TRANSCRIPT` — unset by default. `ACP_LOG_SIZE` still bounds retention and
633
+ still disables at `0`.
634
+ - **Three skill and reference facts now match the code.** `doctor deep` documents
635
+ `currentModelOptions`, including that it describes `currentModel` only — any other model needs a
636
+ `set_model` the handshake does not send. The skill's discovery description no longer calls `ask`
637
+ read-only. `TECHNICAL.md` lists the routing the request router performs.
638
+
639
+ ## [1.21.0] - 2026-08-13
640
+
641
+ ### Fixed
642
+
643
+ - **Teardown reaches the agent's descendants on POSIX.** `treeKill` sent `SIGKILL` to a single
644
+ pid, so commands the agent spawned outlived cancel-with-force, a host abort, a handshake
645
+ timeout and doctor's version probe; `taskkill /T` already took the tree on Windows. The agent
646
+ now leads its own process group and the group is killed. Because that also removes the agent
647
+ from this process's group, `SIGINT` and `SIGTERM` sweep registered delegations explicitly
648
+ rather than relying on the terminal to reach the child.
649
+
650
+ ### Changed
651
+
652
+ - **Explicit effort is validated against the selected model's live options before the prompt.**
653
+ Invalid values name the accepted set, models without configurable effort tell callers to omit
654
+ the field, and unavailable capability data fails as `effort-options-unavailable`. Calls that
655
+ omit `effort` are unchanged.
656
+ - **`cancel` reports `killed` only when the agent process was observed to exit.** `treeKill`
657
+ resolves whether or not the kill landed, so the status was untruthful. A forced cancel that
658
+ cannot confirm an exit answers `cancelled` and keeps the session registered, so force can be
659
+ retried rather than answering `not-found`.
660
+
661
+ ## [1.20.0] - 2026-08-13
662
+
663
+ ### Fixed
664
+
665
+ - **An async rejection no longer exits the server.** The progress callback wrapped
666
+ `sendNotification` in `try`/`catch`, but the SDK declares it `async`: the returned promise was
667
+ never awaited, so a transport rejection settled outside the `catch` and reached the process,
668
+ which under Node's default `--unhandled-rejections=throw` took every concurrent delegation down
669
+ with it. Two more instances of the same shape are closed: the ACP request router's discarded
670
+ promise, and `stdout`, which had no `error` listener where `stdin` and `stderr` both did.
671
+ - **A host abort during spec resolution is no longer lost.** The pre-flight check ran before the
672
+ spec was read and the abort listener was registered after it, and `addEventListener` does not
673
+ replay an abort that already fired — so an abort landing in that window was dropped and the turn
674
+ ran to completion against an aborted signal.
675
+ - **A failed resume no longer silently starts a fresh session.** Every `session/load` error fell
676
+ back, so a transient failure ran the whole task without the context the caller asked for and
677
+ reported it as a warning on a successful result. Only a session the agent does not have falls
678
+ back now.
679
+ - **Every failure that leaves a live session names the id to resume.** The session id is assigned
680
+ at `session/new`, before the model and config calls, so an unknown model or a rejected config
681
+ value abandoned a resumable session without naming it. The hint was previously reserved for
682
+ stalls, aborts and exits.
683
+
684
+ ### Added
685
+
686
+ - **`resume-failed`** — a resume that fails for any reason other than the agent not having that
687
+ session. Nothing is started, so the caller can retry or omit `resumeSessionId` deliberately.
688
+ - **`invalid-spec` and `invalid-workspace` are documented.** Both were already raised; neither
689
+ appeared in the failure table the skill points at for every reason.
690
+
691
+ ### Changed
692
+
693
+ - **`handshake-timeout` no longer tells hosts there is nothing to resume.** Setup continues past
694
+ `session/new`, so the session often exists; the error already named it while the skill said to
695
+ abandon it.
696
+ - **`doctor` verification points at the call that proves login.** The install guide credited the
697
+ shallow probe, which only resolves `cursor-agent` on PATH — login shows up in the `deep: true`
698
+ handshake.
699
+ - **`plan` and `ask` read as instructed behavior in the skill's parameter table**, matching what
700
+ the same file already says about modes not being enforced.
701
+
702
+ ### Removed
703
+
704
+ - **The `reasoning` input is gone from the schema.** 1.19.0 kept it declared solely to reject it,
705
+ so every caller read a field it must never use. Callers read the live schema and pass `effort`,
706
+ so the stale-caller it guarded against is hypothetical. A `reasoning` key is now dropped by
707
+ schema validation without comment.
708
+
709
+ ## [1.19.0] - 2026-08-12
710
+
711
+ ### Changed
712
+
713
+ - **`reasoning` is now `effort`.** Config option ids differ per model — gpt-5.x declares
714
+ `reasoning`, grok and gemini declare `effort`, Claude declares `thinking` and `effort` together,
715
+ `composer-2.5` declares none — so one hardcoded id could not reach them all, and `reasoning`
716
+ silently did nothing on three families. `effort` resolves against the ids the agent reports for
717
+ the model in use, read from the `configOptions` the `fast` reply already carries; models that
718
+ refuse `fast` — `claude-haiku-4-5`, `claude-sonnet-5`, `gemini-3.6-flash` — report the list on a
719
+ re-assert of the model just set. A model whose only thought-level option is boolean
720
+ (`claude-haiku-4-5` declares just `thinking`) is never sent a level, since that is a guaranteed
721
+ invalid value and would fail the run. Passing
722
+ `reasoning` is rejected before the agent is spawned, naming `effort`; it is not accepted as an
723
+ alias, because an undeclared argument would be stripped and the requested effort lost silently.
724
+ - **The ignored-effort warning no longer misstates the model's capability.** It said "model X has
725
+ no reasoning option" — false for every model that declares effort under a different id. It now
726
+ names the ids the model does declare.
727
+
728
+ ### Added
729
+
730
+ - **`doctor` with `deep: true` reports `currentModelOptions`** — option ids and allowed values for
731
+ the model the session opened with. `session/new` already returned these; other models would each
732
+ need a `set_model` first and are not reported.
733
+
734
+ ## [1.18.1] - 2026-08-09
735
+
736
+ ### Changed
737
+
738
+ - **`workspace` guidance now has a floor.** "Smallest directory that fits" had no lower bound, so
739
+ callers invented throwaway directories for runs touching no files. The skill and the parameter
740
+ description now name the floor — smallest directory holding the task's files, never one created
741
+ for the call — and state that scoping bounds writes, not reads.
742
+
743
+ ## [1.18.0] - 2026-08-07
744
+
745
+ Findable, and answerable. The server can now be published to the official MCP Registry — the
746
+ metadata source the VS Code gallery and most aggregators read from — and the repository finally
747
+ carries the contribution and issue surfaces GitHub expects. No runtime behaviour changes.
748
+
749
+ ### Added
750
+
751
+ - **`server.json`** declaring the registry record, and **`mcpName`** in `package.json`. The
752
+ registry verifies ownership by matching the two, so both are covered by `version-sync.test.js`
753
+ along with the version they each pin.
754
+ - **Registry publishing from the release workflow.** A `registry` job runs after `publish`,
755
+ because ownership is verified against the package that must already be on npm.
756
+ - **`CONTRIBUTING.md` and issue templates** at the repository root: installation problems, host
757
+ compatibility reports, and successful delegation reports. The project ships no telemetry, so
758
+ those reports are the only signal that a real run worked somewhere else.
759
+
760
+ ### Changed
761
+
762
+ - **The npm description leads with the outcome** rather than the protocol, and the keyword list
763
+ covers Composer, delegation, and coding-agent terms.
764
+
765
+ ## [1.17.0] - 2026-08-07
766
+
767
+ Every answer, once. 1.16.0 stopped `delegate` and `doctor` sending their payload twice; this
768
+ release clears the three places a response still said the same thing twice. Nothing the
769
+ orchestrator has to read is lost — only the second copy.
770
+
771
+ ### Changed
772
+
773
+ - **`cancel` returns one compact JSON text block**, `{"status":…,"sessionId":…}`, and declares
774
+ no `outputSchema` — matching `delegate` and `doctor`. The prose text block is gone and the
775
+ status vocabulary lives in the tool description. Callers reading `structuredContent` must read
776
+ `content[0].text` and parse it.
777
+ - **`plan` is no longer returned in `plan`/`ask` mode**, where `result` is already the agent's
778
+ own plan message and the plan itself lives in the agent's session — which is what a
779
+ resume-to-implement reads. Agent mode is unchanged: there the implementation report and the
780
+ plan are separate artifacts and both stay.
781
+ - **Skipped `contextFiles` collapse into one warning** naming the workspace root once instead of
782
+ repeating it per file. Twenty missing attachments: 1,961 bytes of warnings down to ~455.
783
+
784
+ ## [1.16.0] - 2026-08-07
785
+
786
+ `delegate` and `doctor` now answer once instead of twice. The fields they report are unchanged.
787
+
788
+ ### Changed
789
+
790
+ - **`delegate` and `doctor` no longer return `structuredContent`.** The result is a single
791
+ compact JSON text block. Both previously sent the same payload twice — pretty-printed text
792
+ *and* `structuredContent` — which a host reading both (Codex does) loaded into the model's
793
+ context twice. Hosts that read the text block are unaffected; a host wired to
794
+ `structuredContent` for these two tools must read `content[0].text` and parse it. `cancel`
795
+ still returns `structuredContent`.
796
+ - `TECHNICAL.md` is tracked at the repo root and its stale contract corrected;
797
+ `skills/delegate/reference.md` is the single source of truth for `delegate` and `doctor`
798
+ fields.
799
+
800
+ ### Security
801
+
802
+ - Lockfile-only dependency bump clearing the high-severity audit advisories.
803
+
804
+ ### Internal
805
+
806
+ - Test suite: the ACP client stub is declared once instead of in 19 hand-rolled copies, and
807
+ tests left behind by deleted heuristics are collapsed or removed. Two regression tests
808
+ covering `delegate` behaviour moved out of `session-supervisor.test.js` and are named for
809
+ what they assert rather than for a retired bug label.
810
+ - Code comments state the constraint that still holds rather than the change history behind it.
811
+ Every protocol fact, agent quirk and probe measurement is retained; `git log` keeps the rest.
812
+
813
+ ## [1.15.0] - 2026-08-07
814
+
815
+ ### Changed
816
+
817
+ - The plugin is renamed `cursor-delegate-mcp` → `cursor-delegate`, so the selector reads
818
+ `cursor-delegate@cursor-delegate-mcp` instead of repeating itself. Claude Code v2.1.193+
819
+ migrates existing installs through the marketplace's new `renames` map; elsewhere,
820
+ reinstall once. Update permission rules to `mcp__plugin_cursor-delegate_cursor-delegate__*`.
821
+
822
+ Marketplace, MCP server key and npm package names are unchanged, as are standalone installs.
823
+
824
+ ## [1.14.0] - 2026-07-25
825
+
826
+ A correctness, performance and tooling pass. `delegate`'s contract is unchanged. `doctor` gains
827
+ `agent.error` and now advertises `agent.command`, `agent.version` and the deep `handshake`, which
828
+ previously reached hosts undeclared.
829
+
830
+ ### Fixed
831
+
832
+ - `doctor` no longer hangs forever on a launcher that accepts `--version` and never answers.
833
+ The probe is time-boxed (10s) and reports `agent.error` instead — the deep handshake was
834
+ already guarded; the shallow probe that runs on every call was not.
835
+ - `cancel` no longer reports a running turn as already ended. Two delegations can share a
836
+ session id (a resume racing the turn it resumes), and whichever finished first used to
837
+ deregister the other.
838
+ - A non-positive or malformed `CURSOR_DELEGATE_HARD_CAP_MS` / `CURSOR_DELEGATE_HANDSHAKE_MS`
839
+ falls back to its default instead of arming a zero-length deadline that failed every call
840
+ instantly. `0` still disables the idle guard, the one knob where it is documented to.
841
+ - A malformed `ACP_LOG_SIZE` keeps the 2000-frame default rather than silently disabling the
842
+ transcript. Explicit `0` still disables it.
843
+ - A permission request carrying no options is answered `cancelled` rather than with a
844
+ selection that names no option.
845
+ - ACP frames arriving after the prompt settles no longer fold into a result that is still
846
+ being assembled.
847
+ - A JSON-RPC reply whose `id` echoes back as a string now resolves its request instead of
848
+ leaving it pending until a timeout.
849
+ - Agent stderr is decoded incrementally, so a multi-byte character split across pipe reads no
850
+ longer reaches the error message as a replacement character.
851
+ - Writes to the agent's stdin after the process is gone can no longer surface as an unhandled
852
+ error event.
853
+
854
+ ### Performance
855
+
856
+ - The ACP frame log is trimmed in batches instead of shifting a 2000-entry array on every
857
+ frame: 100k inbound frames went from 588ms to 84ms, against a 71ms no-logging floor.
858
+ - Agent stderr is accumulated in chunks rather than rebuilding a 64KB string per write.
859
+ - The spec and context files are read asynchronously, so a large brief or an inline image no
860
+ longer blocks concurrent delegations and their progress notifications.
861
+
862
+ ### Internal
863
+
864
+ - Turn state moved into `src/turn-state.js` behind a single `reset()`, replacing a
865
+ hand-maintained block that cleared thirteen variables before each prompt — a field added
866
+ without a matching line there leaked the previous turn's data into a resumed result.
867
+ - Every tagged failure is raised through one shared `makeError`.
868
+ - Plan and todo enums have a single source (`src/acp-enums.js`) instead of four hand-synced
869
+ copies across the sanitizers and the zod schemas.
870
+ - The advertised output schemas are exported as shapes so tests parse every `delegate` and
871
+ `doctor` result against a `.strict()` copy: the production schemas are passthrough, so a
872
+ field added to a result but not to its schema would otherwise never reach hosts and no test
873
+ would fail. `doctor` had drifted that way — it declared only `agent.found`, leaving
874
+ `command`, `version`, `error` and the deep `handshake` undeclared.
875
+ - Type checking with `tsc --checkJs`, plus CI gates for types, a coverage floor and
876
+ `npm audit`. The lockfile moved to clear a high-severity `fast-uri` advisory.
877
+
878
+ ## [1.13.0] - 2026-07-24
879
+
880
+ Leaner, more honest results: four low-signal surfaces dropped, and the plan/ask reply now
881
+ comes back as the agent's own words. All breaking, all output-contract.
882
+
883
+ ### Changed
884
+
885
+ - **Breaking**: in `plan`/`ask`, `result` is the agent's own message **verbatim** — the bridge
886
+ no longer promotes the filed plan into it or folds a chat reply under a separator, and
887
+ `resultSource: "plan-detail"` is gone. The plan travels as `plan.entries` and lives in the
888
+ session; resume to act on it.
889
+
890
+ ### Removed
891
+
892
+ - **Breaking**: `cursor/ask_question` elicitation, with `questionsAsked`, `autoAnswered`, and
893
+ `fallbackAnswers`. cursor-agent never sends it over ACP — clarifying questions arrive as prose
894
+ in `result`; resume with free text in `spec` to answer.
895
+ - **Breaking**: `writeCapableActivity`. It could not tell a read (`ls`) from a write, so it only
896
+ ever cried wolf; review the git diff, which is authoritative on every run.
897
+ - **Breaking**: `modeChanged`. A `plan` run can write without a mode-switch frame, so its
898
+ absence proved nothing and its presence just echoed the diff review you already owe every run.
899
+ - **Breaking**: the `maxResultChars` input. The always-on 10MB streaming ceiling still guards
900
+ runaways; shape reply length through the spec.
901
+
902
+ ## [1.12.0] - 2026-07-23
903
+
904
+ ### Changed
905
+
906
+ - **Breaking**: the plugin-bundled MCP server key is renamed `cursor-delegate-mcp` →
907
+ `cursor-delegate`, removing the duplicated `cursor-delegate-mcp:cursor-delegate-mcp`
908
+ label. Update permission rules from `mcp__plugin_cursor-delegate-mcp_cursor-delegate-mcp__*`
909
+ to `mcp__plugin_cursor-delegate-mcp_cursor-delegate__*` and restart Claude Code.
910
+ Standalone installs (`claude mcp add` / project `.mcp.json`) are unaffected.
911
+ - **Breaking**: `filesReportedByAgent` is renamed `filesReportedByEditTools`, naming what
912
+ it is built from — edit-tool diff events — and it is omitted when empty instead of
913
+ returned as `[]`. Absence means no edit tool reported a change, not that nothing
914
+ changed; the git diff remains authoritative.
915
+ - **Breaking**: `resultSource` is emitted only as a caveat (`pre-tool-fallback`,
916
+ `plan-detail`, `none`) and `resumed` only when a resume actually took;
917
+ `finalMessageAvailable` is dropped — it restated `resultSource` as a boolean.
918
+ - **Breaking**: `sessionTitle` is no longer in the result — it arrived after the turn and
919
+ could contradict the answer. It now shows as a `turn titled: …` progress notification
920
+ while the turn runs; timeout forensics still name it.
921
+ - **Breaking**: `todos` is returned only when `todoProgress` shows unfinished work; on a
922
+ fully-completed turn `todoProgress` alone carries the counts. Timeout forensics and the
923
+ `todo i/n` heartbeat are unchanged.
924
+ - The skill reference is trimmed to contract facts per the 2026-07-23 audit ruling; all
925
+ tables are unchanged.
926
+
927
+ ### Fixed
928
+
929
+ - Skill reference: the `stopReason` and `plan.detail` rows now match the 1.11.x omission
930
+ behavior, and the `cancel` status list includes `not-running` (added in 1.11.0).
931
+ - The `writeCapableActivity` warning no longer says "the diff for what changed" when no
932
+ entry reported a path — it now says to check the diff to confirm nothing changed.
933
+ - Idle-timeout failures now advise raising `CURSOR_DELEGATE_IDLE_MS` instead of
934
+ `CURSOR_DELEGATE_HARD_CAP_MS`, which does nothing for the idle guard.
935
+ - Spawn failures are tagged `[spawn-failed]` like every other failure class, instead of a
936
+ bare `delegate failed:` with no reason.
937
+
938
+ ## [1.11.1] - 2026-07-22
939
+
940
+ ### Changed
941
+
942
+ - `plan.detail` handling is now a one-plan contract: in `plan`/`ask` it is dropped when
943
+ `result` is a real plan message, or folded into `result` (reported as
944
+ `resultSource: "plan-detail"`) when the message is too terse to be the plan; in `agent` mode
945
+ it is kept alongside the implementation report. Replaces the earlier length comparison.
946
+ - Documented that `writeCapableActivity` `kind` is what a tool could do, not proof it wrote (an
947
+ `execute` entry may be read-only), and that `ask` holds across models where `plan` compliance
948
+ varies.
949
+
950
+ ## [1.11.0] - 2026-07-22
951
+
952
+ ### Added
953
+
954
+ - `maxResultChars` delegate input caps the returned result: a longer result is truncated
955
+ with a marker and a `protocolWarning`, so a runaway reply cannot blow up the caller's
956
+ context and the cut is never mistaken for a complete answer.
957
+ - `cancel` reports `not-running` for a session whose turn has ended (still resumable via
958
+ `resumeSessionId`), distinct from `not-found` for an id never seen this process — the two
959
+ used to look identical.
960
+
961
+ ### Changed
962
+
963
+ - The response drops fields that carried no signal: `stopReason` is omitted unless it is
964
+ something other than the usual `end_turn`, and `questionsAsked` is omitted until
965
+ elicitation actually populates it.
966
+ - `plan.detail` is no longer returned when `result` already carries the plan — it duplicated
967
+ the same prose. It is kept only when `result` is too terse to be the plan itself;
968
+ `plan.entries` and `plan.overview` are unchanged.
969
+ - `contextFiles` are deduplicated by resolved path, so equivalent entries are sent once.
970
+ - The session id is emitted in an early progress notification, giving a host that can call
971
+ tools concurrently an id to pass to `cancel` while the turn is still running.
972
+ - **Breaking:** a blank or whitespace-only `spec` is rejected before a session starts,
973
+ instead of spending a live turn on a "No prompt content provided" reply.
974
+
975
+ ### Fixed
976
+
977
+ - `doctor` reads the plugin version fresh on each call instead of a value captured at process
978
+ start, so it reflects an in-place upgrade rather than reporting the old version until a
979
+ full client restart.
980
+
981
+ ## [1.10.0] - 2026-07-21
982
+
983
+ Two input validations change behavior: calls that used to succeed by accident now fail
984
+ instead. They are called out as breaking below.
985
+
986
+ ### Added
987
+
988
+ - `contextFiles` delegate input: paths attached to the prompt instead of pasted into `spec`.
989
+ Text files are sent as `resource_link` blocks the agent may open; images (png/jpg/gif/webp
990
+ under 5MB) are sent inline, gated on the agent advertising `promptCapabilities.image`.
991
+ Relative paths resolve against `workspace` but are not confined to it, and anything skipped
992
+ lands in `protocolWarnings`.
993
+ - `writeCapableActivity` — write-capable tool calls (`edit`/`delete`/`move`/`execute`) made
994
+ during a `plan` or `ask` turn, each with the path when a diff frame named one, plus a
995
+ `protocolWarning`. It records what the agent **ran**, not what changed: a shell command is
996
+ not a change list, and an entry without a path may be a no-op or a retry. Not populated in
997
+ `agent` mode, where every turn would fill it and it would carry no signal.
998
+
999
+ ### Changed
1000
+
1001
+ - **Breaking:** `workspace` must exist and be a directory. A missing path was accepted and
1002
+ then created by the agent's first write, so a typo silently spawned a parallel empty tree
1003
+ that looked like success at every layer.
1004
+ - **Breaking:** a `spec` that is a bare path now fails when nothing is there or it is not a
1005
+ file, instead of being handed to the agent as literal prompt text and spending a live turn.
1006
+ Prose that merely names a file ("fix the bug in src/api.js") is unaffected.
1007
+ - `SERVER_INSTRUCTIONS` no longer claims `modeChanged` is the signal that a mode was ignored.
1008
+ It fires only on a formal mode switch, and an agent that writes while staying in `plan`
1009
+ sends no such frame — so the field cannot detect the case it was cited for. The skill and
1010
+ its reference say the same.
1011
+ - Failure messages no longer carry the raw ACP transcript: up to 40 frames of JSON-RPC in the
1012
+ caller's context on every failure, none of it actionable beside the structured forensics.
1013
+ Set `CURSOR_DELEGATE_TRANSCRIPT=<frames>` to append it when debugging the bridge itself.
1014
+ - The delegate skill asks Cursor to run tests as it works instead of discouraging it, and
1015
+ briefs now ask for gaps back: unmet acceptance criteria and assumptions made.
1016
+ - Documented that ACP model ids are the bare family (`grok-4.5`), not the CLI's tier-suffixed
1017
+ `--list-models` strings, which `session/set_model` rejects. Over ACP the tier is `fast` or
1018
+ `reasoning`, so the CLI's `gpt-5.4-high` is `model: "gpt-5.4"` with `reasoning: "high"`.
1019
+ - The skill and its reference document the surface added since 1.7.0, and correct three
1020
+ things they described wrongly: `protocolWarnings` is a general soft-diagnostic channel,
1021
+ `plan`/`ask` are requests to the agent rather than boundaries, and `questionsAsked` is
1022
+ effectively always empty.
1023
+
1024
+ ### Fixed
1025
+
1026
+ - A turn whose final message is followed by one more tool call no longer returns `""` shaped
1027
+ like success. The discarded message comes back as `resultSource: "pre-tool-fallback"` with
1028
+ a `protocolWarning`, and a real final message always wins over it. A turn that emitted no
1029
+ message at all still returns `""`, now with a warning rather than silence.
1030
+ - A handshake timeout now names the frame age and the resumable `sessionId`. The session
1031
+ exists before `set_model`, `set_config_option` and `set_mode`, any of which can hang, so
1032
+ callers were losing resumable work. It does not get the long-running-command advice — no
1033
+ prompt was ever sent.
1034
+ - `cancel` no longer drops its session handle on the non-force path, which made the natural
1035
+ escalation — cancel, wait, cancel with `force` — report `not-found` while the agent was
1036
+ still alive.
1037
+
1038
+ ## [1.9.0] - 2026-07-21
1039
+
1040
+ ### Added
1041
+
1042
+ - `reasoning` and `context` delegate inputs, forwarded as ACP config options (gpt-5.x
1043
+ accepts `none`/`low`/`medium`/`high`/`extra-high` and `272k`/`1m`). Which options a
1044
+ model offers is not discoverable up front, so the bridge asks and reads the rejection:
1045
+ a model without the knob yields a `protocolWarnings` note, an invalid value still errors.
1046
+ - `sessionTitle` — the short title the agent gives the turn, also named in timeout errors.
1047
+ - `modeChanged` — set when the agent switches itself out of the requested mode, e.g. a
1048
+ plan-mode run that becomes write-capable.
1049
+
1050
+ ### Changed
1051
+
1052
+ - `fast` is offered to every model instead of only bare `composer-*` ids, and is always
1053
+ sent so `false` can turn it off on a resumed session. Models without the toggle report
1054
+ it as ignored rather than silently dropping it.
1055
+ - A failed resume no longer starts a fresh session silently: the reason lands in
1056
+ `protocolWarnings`, and timeout errors say the earlier work was never in context.
1057
+ - Delegate failures are tagged with their reason, e.g. `delegate failed [agent-error]: …`,
1058
+ so a rejected argument is distinguishable from a timeout without parsing prose.
1059
+
1060
+ ### Fixed
1061
+
1062
+ - JSON-RPC errors keep the error code and the nested `data.message`, so a rejection reads
1063
+ as `Invalid params: Unknown model config option: reasoning` instead of `Invalid params`.
1064
+ - Frames replayed by `session/load` are ignored until the prompt is in flight — a resume
1065
+ no longer reports the previous turn's tool calls and edits as if they were happening now.
1066
+ - Multi-select `ask_question` (`allowMultiple`) is answered with every option the user
1067
+ names, comma-separated; single-select labels containing a comma still match whole; a
1068
+ question with no options answers empty instead of emitting a null option id.
1069
+
1070
+ ## [1.8.0] - 2026-07-21
1071
+
1072
+ ### Added
1073
+
1074
+ - Delegate results carry `todos` and `todoProgress`: the agent's own task list,
1075
+ accumulated from `cursor/update_todos`, also surfaced in progress updates and the
1076
+ heartbeat so a long run shows what is left rather than only that it is alive.
1077
+ - `doctor --deep` reports the negotiated capability matrix — protocol version, agent
1078
+ capabilities, available models and modes.
1079
+
1080
+ ### Changed
1081
+
1082
+ - **Timeouts.** The prompt-phase idle timer is gone: cursor-agent emits no ACP frames
1083
+ while a shell command runs, so a healthy 2-minute test suite was indistinguishable
1084
+ from a hang and got killed after the work was done. It is replaced by a 60s handshake
1085
+ deadline covering spawn through session setup, where silence really does mean a wedged
1086
+ agent; the 1h hard cap and agent-exit detection are unchanged. A periodic
1087
+ `still working — <elapsed>, last agent frame <age> ago, running: <tool>` heartbeat
1088
+ makes a long command visible, and timeout errors name the last tool call and how long
1089
+ the wire has been quiet. New overrides: `CURSOR_DELEGATE_HANDSHAKE_MS`,
1090
+ `CURSOR_DELEGATE_HARD_CAP_MS`, `CURSOR_DELEGATE_IDLE_MS` (unset or `0` disables
1091
+ mid-turn idle detection).
1092
+ - `touchedFiles` is replaced by `filesReportedByAgent`, built from the agent's own ACP
1093
+ diff events instead of inferred from the working tree — no false positives from
1094
+ unrelated edits, and nothing reported that the agent did not claim.
1095
+ - An unknown `model` is rejected before the turn starts, naming the ids the agent
1096
+ actually offers, instead of failing later inside `session/set_model`.
1097
+ - Process termination uses an immediate cross-platform tree kill instead of a
1098
+ signal-escalation ladder, so no orphaned child survives a cancel on Windows.
1099
+
1100
+ ## [1.7.0] - 2026-07-16
1101
+
1102
+ ### Added
1103
+
1104
+ - Delegate results now carry `cancelRequested: true` when a cancel was issued
1105
+ mid-run, so hosts can tell a genuinely clean finish from one where the agent
1106
+ ignored the cancel and completed the turn anyway.
1107
+ - `cancel` tool gains a `force` option: after sending `session/cancel`, it waits
1108
+ a short grace period and, if the turn is still running, kills the agent process
1109
+ (tree-kill on Windows). Reports `status: "killed"` when it does.
1110
+
1111
+ ### Changed
1112
+
1113
+ - Aborting the MCP delegate request (host interrupt, e.g. Esc in Claude Code)
1114
+ now terminates the agent process instead of leaving it running until the idle
1115
+ timeout. The delegation rejects promptly with reason `aborted`.
1116
+ - `cancel` tool description states the honest contract: `session/cancel` is
1117
+ best-effort and the agent may finish the turn; serialized MCP hosts cannot run
1118
+ it while a delegation is in flight.
1119
+
1120
+ ### Fixed
1121
+
1122
+ - Empty or whitespace-only `model` values are rejected with a clear validation
1123
+ error before any agent process starts, instead of failing mid-handshake with a
1124
+ transcript dump. Provided model ids are trimmed.
1125
+
1126
+ ## [1.6.0] - 2026-07-11
1127
+
1128
+ ### Changed
1129
+
1130
+ - Default ACP launcher is `cursor-agent acp` instead of bare `agent acp`, avoiding
1131
+ PATH collisions with other CLIs (e.g. Grok Build) that also ship an `agent` command.
1132
+ Error messages and docs now reference `cursor-agent` throughout.
1133
+
1134
+ ## [1.5.0] - 2026-07-11
1135
+
1136
+ ### Added
1137
+
1138
+ - ChatGPT/Codex and GitHub Copilot plugin manifests and marketplace catalogs,
1139
+ alongside the existing Claude Code plugin. Non-Claude installs launch the
1140
+ published npm package through `npx`.
1141
+ - MCP server instructions, formal tool output schemas with `structuredContent`,
1142
+ tool annotations, and `doctor` runtime diagnostics (Node version, platform,
1143
+ arch, cwd, transport).
1144
+ - `protocolWarnings` in delegate results: malformed ACP plan frames and
1145
+ non-string stop reasons are dropped with an explicit diagnostic instead of
1146
+ failing the MCP call after the delegation already ran.
1147
+ - CI: cross-platform test matrix plus a minimum-dependency job that runs the
1148
+ suite against the declared `@modelcontextprotocol/sdk` floor.
1149
+
1150
+ ### Changed
1151
+
1152
+ - Claude-only configuration moved out of cross-host auto-discovery paths:
1153
+ the plugin MCP config lives at `.claude-plugin/mcp.json` and the SessionStart
1154
+ hook config at `.claude-plugin/hooks.json`, both referenced from the plugin
1155
+ manifest. This keeps Copilot from picking up the bundled-server config and
1156
+ Codex from auto-discovering the Claude bootstrap hook.
1157
+ - Minimum `@modelcontextprotocol/sdk` raised to `^1.22.0`; older versions
1158
+ cannot serialize the tool output schemas.
1159
+ - The npm package is runtime-only (`src/`, README, LICENSE, legal files);
1160
+ plugin manifests, skills, and assets ship via Git installs.
1161
+
1162
+ ### Documentation
1163
+
1164
+ - Setup paths for Codex, GitHub Copilot, VS Code, JetBrains AI Assistant,
1165
+ Windsurf, Visual Studio, and Cursor, with host statuses stated factually
1166
+ (packaged and contract-tested vs. documented configuration).
1167
+
1168
+ ## [1.4.0] - 2026-07-10
1169
+
1170
+ ### Fixed
1171
+
1172
+ - `result` no longer mixes mid-task code and narration into the final response.
1173
+ Turns that used tools return only the agent's message after its last tool
1174
+ call; tool-free turns still return the complete response.
1175
+
1176
+ ### Added
1177
+
1178
+ - `resultSource` (`"post-tool"`, `"tool-free-stream"`, or `"none"`) and
1179
+ `finalMessageAvailable` response fields. When the agent finishes its tools
1180
+ without a final message, `result` is empty — check `touchedFiles` and the
1181
+ diff instead of trusting intermediate text.
1182
+
1183
+ ## [1.3.0] - 2026-07-03
1184
+
1185
+ ### Changed
1186
+
1187
+ - Progress notifications are now readable status lines: streamed thinking and
1188
+ response chunks are assembled into complete sentences (cursor-agent emits
1189
+ back-to-back sentences with no separator), each stream reports at most one
1190
+ line per ~2s (newest wins), and markdown structure (table rows, headings,
1191
+ fences, bullets) is filtered out of progress.
1192
+ - `running:` progress lines include the tool's file path when cursor-agent
1193
+ provides a location (it currently sends none; ready for when it does).
1194
+
1195
+ ### Fixed
1196
+
1197
+ - Progress messages are no longer silently dropped: the server-side 100ms
1198
+ notification throttle discarded the newest status line when updates arrived
1199
+ in bursts.
1200
+
1201
+ ## [1.2.0] - 2026-07-01
1202
+
1203
+ ### Fixed
1204
+
1205
+ - Windows: successful delegations no longer leave an orphaned cursor-agent
1206
+ process behind — `stop()` now kills the full process tree (previously only the
1207
+ shell wrapper died; tree-kill applied only on timeout escalation).
1208
+
1209
+ ### Changed
1210
+
1211
+ - `delegate` tool `fast` parameter is now a real boolean (was the string enum
1212
+ `"false"`/`"true"`); conversion to the string ACP expects happens at the
1213
+ protocol boundary.
1214
+
1215
+ ### Added
1216
+
1217
+ - `fallbackAnswers` result field: when a free-text elicitation answer matches no
1218
+ offered option, the first option is submitted and the mismatch is reported
1219
+ (`prompt`, `given`, `chosen`) instead of being silently discarded.
1220
+ - `ACP_AGENT_ARGS` supports quoted arguments containing spaces; environment
1221
+ variables are now documented in the README.
1222
+ - Clear startup error on unsupported Node versions (requires Node 22+).
1223
+
1224
+ ## [1.1.0] - 2026-06-29
1225
+
1226
+ ### Added
1227
+
1228
+ - Distributable as a standalone MCP server via `npx cursor-delegate-mcp` (`bin`
1229
+ entry) for any compatible client, alongside the Claude Code plugin.
1230
+ - Auto-answer fallback for clients without MCP elicitation: the recommended option
1231
+ is selected and reported in the new `autoAnswered` result field.
1232
+
1233
+ ## [1.0.0] - 2026-06-28
1234
+
1235
+ First public release.
1236
+
1237
+ ### Added
1238
+
1239
+ - Claude Code plugin that delegates coding tasks to **cursor-agent** over the
1240
+ [Agent Client Protocol](https://cursor.com/docs/cli/acp).
1241
+ - **`delegate`** tool — spec file or inline task, agent/plan/ask modes, session
1242
+ resume, structured result (`touchedFiles`, `sessionId`, optional `plan`).
1243
+ - **`doctor`** tool — plugin and cursor-agent setup diagnostics.
1244
+ - **`cancel`** tool — best-effort cancellation of an in-flight delegation.
1245
+ - Default model **Composer 2.5** standard tier (`fast: false`); other Cursor models
1246
+ available on request.
1247
+ - Auto-approved file writes; `cursor/ask_question` surfaced via MCP elicitation.
1248
+ - Git-derived `touchedFiles` when the workspace is a repo; ephemeral progress for
1249
+ thinking and tool activity.
1250
+ - **`delegate`** plugin skill — orchestration playbook for Claude (when to delegate, plan/resume workflow, verification).