cursor-delegate-mcp 1.22.0 → 2.0.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/CHANGELOG.md ADDED
@@ -0,0 +1,746 @@
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
+ ## [2.0.0] - 2026-08-21
10
+
11
+ One thing changes on upgrade: pass `workspace` on every call, resumes included.
12
+
13
+ ### Changed
14
+
15
+ - **Breaking: `workspace` is required on every call** — `agent`, `plan`, `ask`, and every
16
+ resume. An omitted `workspace` used to mean the server's own working directory, which under
17
+ `npx` or a plugin install is a cache folder or your home directory, so a defaulted call put
18
+ an auto-approved agent to work on a tree nobody named.
19
+ - **Breaking: `result` comes back at full length.** The 10MB cap and its
20
+ `[output truncated at 10MB]` marker are gone. The stream is the model's own message, bounded
21
+ by its output limit; a byte cap here handed back a partial answer as if it were the whole one.
22
+ - An `agent-exit` failure carries the whole captured `stderr` rather than its last 2000
23
+ characters. This is the one string that says why the agent died, and the part naming the
24
+ rejected model, the exhausted quota or the expired login can sit anywhere in it. The 64KB
25
+ ring buffer is the bound.
26
+ - `CHANGELOG.md` ships in the npm artifact.
27
+
28
+ ### Added
29
+
30
+ - `-v` is accepted alongside `--version`.
31
+ - A `logo` field on the Claude and Agent plugin manifests, pointing at `assets/logo-light.png`.
32
+ With no `.cursor-plugin/` directory in the repository, those are the manifests Cursor reads, and
33
+ `logo` is the field its marketplace tile draws an icon from.
34
+
35
+ ### Fixed
36
+
37
+ - **The Claude Code plugin installs its dependencies on Windows.** `npm` is a shell script
38
+ there, so the bootstrap spawn could not find it and a fresh plugin install had no working
39
+ delegation at all.
40
+ - The bootstrap install runs unless every declared dependency is present. It used to skip on
41
+ finding the first one, leaving a partial `node_modules` in place.
42
+ - An error on the readline interface reading the agent is handled. Unhandled, it was an
43
+ uncaught exception that took down the MCP server and every concurrent delegation with it.
44
+ - A malformed ACP frame is dropped and reported in `protocolWarnings`. A non-array `content`
45
+ threw inside the readline callback — the whole server, not one turn, and the reply on the
46
+ next line went unread so the turn hung to its cap. A non-array plan `entries` threw in the
47
+ sanitizer after the turn's work was done.
48
+ - A permission request that offers no allow option is answered `cancelled`. The router used to
49
+ fall back to the first option offered, returning a reject id under a `selected` outcome,
50
+ which the agent reads as approval of the denial.
51
+ - A router bug is reported as `-32603`. It used to send `-32000`, which ACP assigns to
52
+ `auth_required`, sending the agent down a recovery path that cannot work.
53
+ - The host going away — `SIGINT`, `SIGTERM`, or stdin closing — kills in-flight delegations and
54
+ gives them time to land before the server exits. A delegation still inside its handshake is
55
+ reached too: the agent process exists about 3.4s before its session id does.
56
+ - The signal handler records the exit code as it runs and schedules the exit off the kill's
57
+ settlement stack, so a loop that runs dry on its own still dies with the code the signal
58
+ asked for.
59
+ - On Windows the kill runs only while the child is alive. `taskkill /T` walks parent links an
60
+ exited leader no longer has, and a reaped pid can already belong to somebody else.
61
+ - Only a parsed ACP frame counts as agent activity. A launcher writing to stderr used to hold
62
+ the idle guard open and made "Last ACP frame Ns ago" report a stderr byte.
63
+ - The version probe drains the agent's stderr, so a launcher noisy enough to fill the pipe
64
+ reports its version instead of reading out as a timeout.
65
+ - A resumed session moves back to the recent end of the session history, so `cancel` no longer
66
+ answers `not-found` for a live, resumable session that aged out on insertion order.
67
+ - A multi-line tool title is reported as one line. A terminal tool's title is the command the
68
+ agent sent, and a multi-line script arrives with its newlines.
69
+ - A non-numeric `CURSOR_DELEGATE_TRANSCRIPT` reads as on at 50 frames rather than off.
70
+ `Number("true")` is `NaN`, so the most natural way to ask for a transcript disabled the one
71
+ thing it was asking for — in the recorder and again where the frames are appended.
72
+ - A stale non-terminal update for a finished tool call is ignored. It used to restart result
73
+ collection, so the turn's final message came back as `discardedResult` under
74
+ `resultSource: "pre-tool-fallback"` — a clean answer labelled an unreliable preamble.
75
+
76
+ ### Documentation
77
+
78
+ - The delegate reference records that `effectiveModel` reports no model for `default` (Auto).
79
+ - The Codex plugin manifest and the host-compatibility issue template drop their remaining
80
+ read-only claims.
81
+
82
+ ### Internal
83
+
84
+ - The release workflow is gated on the full test workflow rather than one `npm test` leg.
85
+ - Coverage for the `allow_once` fallback, the doctor option list, the peer error frame, the
86
+ bare-`{}` ack methods, and the stderr ring-buffer trim driven through a real spawn.
87
+
88
+ ## [1.22.0] - 2026-08-13
89
+
90
+ ### Added
91
+
92
+ - **`cursor-delegate-mcp --version` prints the version and exits.** The flag previously fell
93
+ through to the stdio transport, which owns stdout and waits on stdin, so an install could only
94
+ be confirmed after it was wired into a host. The version is read from the `package.json` beside
95
+ the running code, so it reports what is executing rather than what a manifest pinned.
96
+
97
+ ### Removed
98
+
99
+ - **Breaking: `spec` is sent as written. A `spec` that is a file path is no longer read as the
100
+ brief.** The bridge guessed which of the two a caller meant by sniffing the string for path
101
+ shape, so the meaning depended on whether a matching file existed. Orchestrators write the
102
+ brief and attach files with `contextFiles`, leaving nothing to disambiguate. A caller passing a
103
+ bare path now gets that path as the prompt text, with no error. `invalid-spec` fires only on a
104
+ blank `spec`.
105
+
106
+ ### Fixed
107
+
108
+ - **The documented `cancel` vocabulary matches what 1.21.0 shipped.** The skill reference said a
109
+ forced cancel reports `killed`; since 1.21.0 that requires an observed exit, and a force that
110
+ cannot confirm one reports `cancelled` and keeps the session cancellable. It also called
111
+ `not-found` an id never seen by this process, which stops holding past the 500-session history
112
+ cap.
113
+
114
+ ### Changed
115
+
116
+ - **The handshake skips config round-trips that would set what is already set.**
117
+ `session/set_model` goes only when the session did not open on the requested model, and
118
+ `session/set_config_option { configId: "fast" }` only when the session did not open on that
119
+ model *at* that tier — Cursor persists both, and persists the tier per model, so the values
120
+ `session/new` and `session/load` report are what the turn would otherwise re-assert. Anything
121
+ that reads the reply still sends it: an `effort` to validate, or `model: "default"`, whose
122
+ served id is only visible there. A value the agent does not report reads as a mismatch and
123
+ sends, and any model change re-applies the tier rather than trusting the previous model's. Two
124
+ delegations on the same model and tier now spend ~3.4 s in setup instead of ~5.5 s; a first
125
+ call, or one that switches model or tier, is unchanged.
126
+ - **The ACP flight recorder records only when a transcript is asked for.** Every frame in and out
127
+ was retained whenever `ACP_LOG_SIZE` was above 0, which is the default, while the only consumer
128
+ is `CURSOR_DELEGATE_TRANSCRIPT` — unset by default. `ACP_LOG_SIZE` still bounds retention and
129
+ still disables at `0`.
130
+ - **Three skill and reference facts now match the code.** `doctor deep` documents
131
+ `currentModelOptions`, including that it describes `currentModel` only — any other model needs a
132
+ `set_model` the handshake does not send. The skill's discovery description no longer calls `ask`
133
+ read-only. `TECHNICAL.md` lists the routing the request router performs.
134
+
135
+ ## [1.21.0] - 2026-08-13
136
+
137
+ ### Fixed
138
+
139
+ - **Teardown reaches the agent's descendants on POSIX.** `treeKill` sent `SIGKILL` to a single
140
+ pid, so commands the agent spawned outlived cancel-with-force, a host abort, a handshake
141
+ timeout and doctor's version probe; `taskkill /T` already took the tree on Windows. The agent
142
+ now leads its own process group and the group is killed. Because that also removes the agent
143
+ from this process's group, `SIGINT` and `SIGTERM` sweep registered delegations explicitly
144
+ rather than relying on the terminal to reach the child.
145
+
146
+ ### Changed
147
+
148
+ - **Explicit effort is validated against the selected model's live options before the prompt.**
149
+ Invalid values name the accepted set, models without configurable effort tell callers to omit
150
+ the field, and unavailable capability data fails as `effort-options-unavailable`. Calls that
151
+ omit `effort` are unchanged.
152
+ - **`cancel` reports `killed` only when the agent process was observed to exit.** `treeKill`
153
+ resolves whether or not the kill landed, so the status was untruthful. A forced cancel that
154
+ cannot confirm an exit answers `cancelled` and keeps the session registered, so force can be
155
+ retried rather than answering `not-found`.
156
+
157
+ ## [1.20.0] - 2026-08-13
158
+
159
+ ### Fixed
160
+
161
+ - **An async rejection no longer exits the server.** The progress callback wrapped
162
+ `sendNotification` in `try`/`catch`, but the SDK declares it `async`: the returned promise was
163
+ never awaited, so a transport rejection settled outside the `catch` and reached the process,
164
+ which under Node's default `--unhandled-rejections=throw` took every concurrent delegation down
165
+ with it. Two more instances of the same shape are closed: the ACP request router's discarded
166
+ promise, and `stdout`, which had no `error` listener where `stdin` and `stderr` both did.
167
+ - **A host abort during spec resolution is no longer lost.** The pre-flight check ran before the
168
+ spec was read and the abort listener was registered after it, and `addEventListener` does not
169
+ replay an abort that already fired — so an abort landing in that window was dropped and the turn
170
+ ran to completion against an aborted signal.
171
+ - **A failed resume no longer silently starts a fresh session.** Every `session/load` error fell
172
+ back, so a transient failure ran the whole task without the context the caller asked for and
173
+ reported it as a warning on a successful result. Only a session the agent does not have falls
174
+ back now.
175
+ - **Every failure that leaves a live session names the id to resume.** The session id is assigned
176
+ at `session/new`, before the model and config calls, so an unknown model or a rejected config
177
+ value abandoned a resumable session without naming it. The hint was previously reserved for
178
+ stalls, aborts and exits.
179
+
180
+ ### Added
181
+
182
+ - **`resume-failed`** — a resume that fails for any reason other than the agent not having that
183
+ session. Nothing is started, so the caller can retry or omit `resumeSessionId` deliberately.
184
+ - **`invalid-spec` and `invalid-workspace` are documented.** Both were already raised; neither
185
+ appeared in the failure table the skill points at for every reason.
186
+
187
+ ### Changed
188
+
189
+ - **`handshake-timeout` no longer tells hosts there is nothing to resume.** Setup continues past
190
+ `session/new`, so the session often exists; the error already named it while the skill said to
191
+ abandon it.
192
+ - **`doctor` verification points at the call that proves login.** The install guide credited the
193
+ shallow probe, which only resolves `cursor-agent` on PATH — login shows up in the `deep: true`
194
+ handshake.
195
+ - **`plan` and `ask` read as instructed behavior in the skill's parameter table**, matching what
196
+ the same file already says about modes not being enforced.
197
+
198
+ ### Removed
199
+
200
+ - **The `reasoning` input is gone from the schema.** 1.19.0 kept it declared solely to reject it,
201
+ so every caller read a field it must never use. Callers read the live schema and pass `effort`,
202
+ so the stale-caller it guarded against is hypothetical. A `reasoning` key is now dropped by
203
+ schema validation without comment.
204
+
205
+ ## [1.19.0] - 2026-08-12
206
+
207
+ ### Changed
208
+
209
+ - **`reasoning` is now `effort`.** Config option ids differ per model — gpt-5.x declares
210
+ `reasoning`, grok and gemini declare `effort`, Claude declares `thinking` and `effort` together,
211
+ `composer-2.5` declares none — so one hardcoded id could not reach them all, and `reasoning`
212
+ silently did nothing on three families. `effort` resolves against the ids the agent reports for
213
+ the model in use, read from the `configOptions` the `fast` reply already carries; models that
214
+ refuse `fast` — `claude-haiku-4-5`, `claude-sonnet-5`, `gemini-3.6-flash` — report the list on a
215
+ re-assert of the model just set. A model whose only thought-level option is boolean
216
+ (`claude-haiku-4-5` declares just `thinking`) is never sent a level, since that is a guaranteed
217
+ invalid value and would fail the run. Passing
218
+ `reasoning` is rejected before the agent is spawned, naming `effort`; it is not accepted as an
219
+ alias, because an undeclared argument would be stripped and the requested effort lost silently.
220
+ - **The ignored-effort warning no longer misstates the model's capability.** It said "model X has
221
+ no reasoning option" — false for every model that declares effort under a different id. It now
222
+ names the ids the model does declare.
223
+
224
+ ### Added
225
+
226
+ - **`doctor` with `deep: true` reports `currentModelOptions`** — option ids and allowed values for
227
+ the model the session opened with. `session/new` already returned these; other models would each
228
+ need a `set_model` first and are not reported.
229
+
230
+ ## [1.18.1] - 2026-08-09
231
+
232
+ ### Changed
233
+
234
+ - **`workspace` guidance now has a floor.** "Smallest directory that fits" had no lower bound, so
235
+ callers invented throwaway directories for runs touching no files. The skill and the parameter
236
+ description now name the floor — smallest directory holding the task's files, never one created
237
+ for the call — and state that scoping bounds writes, not reads.
238
+
239
+ ## [1.18.0] - 2026-08-07
240
+
241
+ Findable, and answerable. The server can now be published to the official MCP Registry — the
242
+ metadata source the VS Code gallery and most aggregators read from — and the repository finally
243
+ carries the contribution and issue surfaces GitHub expects. No runtime behaviour changes.
244
+
245
+ ### Added
246
+
247
+ - **`server.json`** declaring the registry record, and **`mcpName`** in `package.json`. The
248
+ registry verifies ownership by matching the two, so both are covered by `version-sync.test.js`
249
+ along with the version they each pin.
250
+ - **Registry publishing from the release workflow.** A `registry` job runs after `publish`,
251
+ because ownership is verified against the package that must already be on npm.
252
+ - **`CONTRIBUTING.md` and issue templates** at the repository root: installation problems, host
253
+ compatibility reports, and successful delegation reports. The project ships no telemetry, so
254
+ those reports are the only signal that a real run worked somewhere else.
255
+
256
+ ### Changed
257
+
258
+ - **The npm description leads with the outcome** rather than the protocol, and the keyword list
259
+ covers Composer, delegation, and coding-agent terms.
260
+
261
+ ## [1.17.0] - 2026-08-07
262
+
263
+ Every answer, once. 1.16.0 stopped `delegate` and `doctor` sending their payload twice; this
264
+ release clears the three places a response still said the same thing twice. Nothing the
265
+ orchestrator has to read is lost — only the second copy.
266
+
267
+ ### Changed
268
+
269
+ - **`cancel` returns one compact JSON text block**, `{"status":…,"sessionId":…}`, and declares
270
+ no `outputSchema` — matching `delegate` and `doctor`. The prose text block is gone and the
271
+ status vocabulary lives in the tool description. Callers reading `structuredContent` must read
272
+ `content[0].text` and parse it.
273
+ - **`plan` is no longer returned in `plan`/`ask` mode**, where `result` is already the agent's
274
+ own plan message and the plan itself lives in the agent's session — which is what a
275
+ resume-to-implement reads. Agent mode is unchanged: there the implementation report and the
276
+ plan are separate artifacts and both stay.
277
+ - **Skipped `contextFiles` collapse into one warning** naming the workspace root once instead of
278
+ repeating it per file. Twenty missing attachments: 1,961 bytes of warnings down to ~455.
279
+
280
+ ## [1.16.0] - 2026-08-07
281
+
282
+ `delegate` and `doctor` now answer once instead of twice. The fields they report are unchanged.
283
+
284
+ ### Changed
285
+
286
+ - **`delegate` and `doctor` no longer return `structuredContent`.** The result is a single
287
+ compact JSON text block. Both previously sent the same payload twice — pretty-printed text
288
+ *and* `structuredContent` — which a host reading both (Codex does) loaded into the model's
289
+ context twice. Hosts that read the text block are unaffected; a host wired to
290
+ `structuredContent` for these two tools must read `content[0].text` and parse it. `cancel`
291
+ still returns `structuredContent`.
292
+ - `TECHNICAL.md` is tracked at the repo root and its stale contract corrected;
293
+ `skills/delegate/reference.md` is the single source of truth for `delegate` and `doctor`
294
+ fields.
295
+
296
+ ### Security
297
+
298
+ - Lockfile-only dependency bump clearing the high-severity audit advisories.
299
+
300
+ ### Internal
301
+
302
+ - Test suite: the ACP client stub is declared once instead of in 19 hand-rolled copies, and
303
+ tests left behind by deleted heuristics are collapsed or removed. Two regression tests
304
+ covering `delegate` behaviour moved out of `session-supervisor.test.js` and are named for
305
+ what they assert rather than for a retired bug label.
306
+ - Code comments state the constraint that still holds rather than the change history behind it.
307
+ Every protocol fact, agent quirk and probe measurement is retained; `git log` keeps the rest.
308
+
309
+ ## [1.15.0] - 2026-08-07
310
+
311
+ ### Changed
312
+
313
+ - The plugin is renamed `cursor-delegate-mcp` → `cursor-delegate`, so the selector reads
314
+ `cursor-delegate@cursor-delegate-mcp` instead of repeating itself. Claude Code v2.1.193+
315
+ migrates existing installs through the marketplace's new `renames` map; elsewhere,
316
+ reinstall once. Update permission rules to `mcp__plugin_cursor-delegate_cursor-delegate__*`.
317
+
318
+ Marketplace, MCP server key and npm package names are unchanged, as are standalone installs.
319
+
320
+ ## [1.14.0] - 2026-07-25
321
+
322
+ A correctness, performance and tooling pass. `delegate`'s contract is unchanged. `doctor` gains
323
+ `agent.error` and now advertises `agent.command`, `agent.version` and the deep `handshake`, which
324
+ previously reached hosts undeclared.
325
+
326
+ ### Fixed
327
+
328
+ - `doctor` no longer hangs forever on a launcher that accepts `--version` and never answers.
329
+ The probe is time-boxed (10s) and reports `agent.error` instead — the deep handshake was
330
+ already guarded; the shallow probe that runs on every call was not.
331
+ - `cancel` no longer reports a running turn as already ended. Two delegations can share a
332
+ session id (a resume racing the turn it resumes), and whichever finished first used to
333
+ deregister the other.
334
+ - A non-positive or malformed `CURSOR_DELEGATE_HARD_CAP_MS` / `CURSOR_DELEGATE_HANDSHAKE_MS`
335
+ falls back to its default instead of arming a zero-length deadline that failed every call
336
+ instantly. `0` still disables the idle guard, the one knob where it is documented to.
337
+ - A malformed `ACP_LOG_SIZE` keeps the 2000-frame default rather than silently disabling the
338
+ transcript. Explicit `0` still disables it.
339
+ - A permission request carrying no options is answered `cancelled` rather than with a
340
+ selection that names no option.
341
+ - ACP frames arriving after the prompt settles no longer fold into a result that is still
342
+ being assembled.
343
+ - A JSON-RPC reply whose `id` echoes back as a string now resolves its request instead of
344
+ leaving it pending until a timeout.
345
+ - Agent stderr is decoded incrementally, so a multi-byte character split across pipe reads no
346
+ longer reaches the error message as a replacement character.
347
+ - Writes to the agent's stdin after the process is gone can no longer surface as an unhandled
348
+ error event.
349
+
350
+ ### Performance
351
+
352
+ - The ACP frame log is trimmed in batches instead of shifting a 2000-entry array on every
353
+ frame: 100k inbound frames went from 588ms to 84ms, against a 71ms no-logging floor.
354
+ - Agent stderr is accumulated in chunks rather than rebuilding a 64KB string per write.
355
+ - The spec and context files are read asynchronously, so a large brief or an inline image no
356
+ longer blocks concurrent delegations and their progress notifications.
357
+
358
+ ### Internal
359
+
360
+ - Turn state moved into `src/turn-state.js` behind a single `reset()`, replacing a
361
+ hand-maintained block that cleared thirteen variables before each prompt — a field added
362
+ without a matching line there leaked the previous turn's data into a resumed result.
363
+ - Every tagged failure is raised through one shared `makeError`.
364
+ - Plan and todo enums have a single source (`src/acp-enums.js`) instead of four hand-synced
365
+ copies across the sanitizers and the zod schemas.
366
+ - The advertised output schemas are exported as shapes so tests parse every `delegate` and
367
+ `doctor` result against a `.strict()` copy: the production schemas are passthrough, so a
368
+ field added to a result but not to its schema would otherwise never reach hosts and no test
369
+ would fail. `doctor` had drifted that way — it declared only `agent.found`, leaving
370
+ `command`, `version`, `error` and the deep `handshake` undeclared.
371
+ - Type checking with `tsc --checkJs`, plus CI gates for types, a coverage floor and
372
+ `npm audit`. The lockfile moved to clear a high-severity `fast-uri` advisory.
373
+
374
+ ## [1.13.0] - 2026-07-24
375
+
376
+ Leaner, more honest results: four low-signal surfaces dropped, and the plan/ask reply now
377
+ comes back as the agent's own words. All breaking, all output-contract.
378
+
379
+ ### Changed
380
+
381
+ - **Breaking**: in `plan`/`ask`, `result` is the agent's own message **verbatim** — the bridge
382
+ no longer promotes the filed plan into it or folds a chat reply under a separator, and
383
+ `resultSource: "plan-detail"` is gone. The plan travels as `plan.entries` and lives in the
384
+ session; resume to act on it.
385
+
386
+ ### Removed
387
+
388
+ - **Breaking**: `cursor/ask_question` elicitation, with `questionsAsked`, `autoAnswered`, and
389
+ `fallbackAnswers`. cursor-agent never sends it over ACP — clarifying questions arrive as prose
390
+ in `result`; resume with free text in `spec` to answer.
391
+ - **Breaking**: `writeCapableActivity`. It could not tell a read (`ls`) from a write, so it only
392
+ ever cried wolf; review the git diff, which is authoritative on every run.
393
+ - **Breaking**: `modeChanged`. A `plan` run can write without a mode-switch frame, so its
394
+ absence proved nothing and its presence just echoed the diff review you already owe every run.
395
+ - **Breaking**: the `maxResultChars` input. The always-on 10MB streaming ceiling still guards
396
+ runaways; shape reply length through the spec.
397
+
398
+ ## [1.12.0] - 2026-07-23
399
+
400
+ ### Changed
401
+
402
+ - **Breaking**: the plugin-bundled MCP server key is renamed `cursor-delegate-mcp` →
403
+ `cursor-delegate`, removing the duplicated `cursor-delegate-mcp:cursor-delegate-mcp`
404
+ label. Update permission rules from `mcp__plugin_cursor-delegate-mcp_cursor-delegate-mcp__*`
405
+ to `mcp__plugin_cursor-delegate-mcp_cursor-delegate__*` and restart Claude Code.
406
+ Standalone installs (`claude mcp add` / project `.mcp.json`) are unaffected.
407
+ - **Breaking**: `filesReportedByAgent` is renamed `filesReportedByEditTools`, naming what
408
+ it is built from — edit-tool diff events — and it is omitted when empty instead of
409
+ returned as `[]`. Absence means no edit tool reported a change, not that nothing
410
+ changed; the git diff remains authoritative.
411
+ - **Breaking**: `resultSource` is emitted only as a caveat (`pre-tool-fallback`,
412
+ `plan-detail`, `none`) and `resumed` only when a resume actually took;
413
+ `finalMessageAvailable` is dropped — it restated `resultSource` as a boolean.
414
+ - **Breaking**: `sessionTitle` is no longer in the result — it arrived after the turn and
415
+ could contradict the answer. It now shows as a `turn titled: …` progress notification
416
+ while the turn runs; timeout forensics still name it.
417
+ - **Breaking**: `todos` is returned only when `todoProgress` shows unfinished work; on a
418
+ fully-completed turn `todoProgress` alone carries the counts. Timeout forensics and the
419
+ `todo i/n` heartbeat are unchanged.
420
+ - The skill reference is trimmed to contract facts per the 2026-07-23 audit ruling; all
421
+ tables are unchanged.
422
+
423
+ ### Fixed
424
+
425
+ - Skill reference: the `stopReason` and `plan.detail` rows now match the 1.11.x omission
426
+ behavior, and the `cancel` status list includes `not-running` (added in 1.11.0).
427
+ - The `writeCapableActivity` warning no longer says "the diff for what changed" when no
428
+ entry reported a path — it now says to check the diff to confirm nothing changed.
429
+ - Idle-timeout failures now advise raising `CURSOR_DELEGATE_IDLE_MS` instead of
430
+ `CURSOR_DELEGATE_HARD_CAP_MS`, which does nothing for the idle guard.
431
+ - Spawn failures are tagged `[spawn-failed]` like every other failure class, instead of a
432
+ bare `delegate failed:` with no reason.
433
+
434
+ ## [1.11.1] - 2026-07-22
435
+
436
+ ### Changed
437
+
438
+ - `plan.detail` handling is now a one-plan contract: in `plan`/`ask` it is dropped when
439
+ `result` is a real plan message, or folded into `result` (reported as
440
+ `resultSource: "plan-detail"`) when the message is too terse to be the plan; in `agent` mode
441
+ it is kept alongside the implementation report. Replaces the earlier length comparison.
442
+ - Documented that `writeCapableActivity` `kind` is what a tool could do, not proof it wrote (an
443
+ `execute` entry may be read-only), and that `ask` holds across models where `plan` compliance
444
+ varies.
445
+
446
+ ## [1.11.0] - 2026-07-22
447
+
448
+ ### Added
449
+
450
+ - `maxResultChars` delegate input caps the returned result: a longer result is truncated
451
+ with a marker and a `protocolWarning`, so a runaway reply cannot blow up the caller's
452
+ context and the cut is never mistaken for a complete answer.
453
+ - `cancel` reports `not-running` for a session whose turn has ended (still resumable via
454
+ `resumeSessionId`), distinct from `not-found` for an id never seen this process — the two
455
+ used to look identical.
456
+
457
+ ### Changed
458
+
459
+ - The response drops fields that carried no signal: `stopReason` is omitted unless it is
460
+ something other than the usual `end_turn`, and `questionsAsked` is omitted until
461
+ elicitation actually populates it.
462
+ - `plan.detail` is no longer returned when `result` already carries the plan — it duplicated
463
+ the same prose. It is kept only when `result` is too terse to be the plan itself;
464
+ `plan.entries` and `plan.overview` are unchanged.
465
+ - `contextFiles` are deduplicated by resolved path, so equivalent entries are sent once.
466
+ - The session id is emitted in an early progress notification, giving a host that can call
467
+ tools concurrently an id to pass to `cancel` while the turn is still running.
468
+ - **Breaking:** a blank or whitespace-only `spec` is rejected before a session starts,
469
+ instead of spending a live turn on a "No prompt content provided" reply.
470
+
471
+ ### Fixed
472
+
473
+ - `doctor` reads the plugin version fresh on each call instead of a value captured at process
474
+ start, so it reflects an in-place upgrade rather than reporting the old version until a
475
+ full client restart.
476
+
477
+ ## [1.10.0] - 2026-07-21
478
+
479
+ Two input validations change behavior: calls that used to succeed by accident now fail
480
+ instead. They are called out as breaking below.
481
+
482
+ ### Added
483
+
484
+ - `contextFiles` delegate input: paths attached to the prompt instead of pasted into `spec`.
485
+ Text files are sent as `resource_link` blocks the agent may open; images (png/jpg/gif/webp
486
+ under 5MB) are sent inline, gated on the agent advertising `promptCapabilities.image`.
487
+ Relative paths resolve against `workspace` but are not confined to it, and anything skipped
488
+ lands in `protocolWarnings`.
489
+ - `writeCapableActivity` — write-capable tool calls (`edit`/`delete`/`move`/`execute`) made
490
+ during a `plan` or `ask` turn, each with the path when a diff frame named one, plus a
491
+ `protocolWarning`. It records what the agent **ran**, not what changed: a shell command is
492
+ not a change list, and an entry without a path may be a no-op or a retry. Not populated in
493
+ `agent` mode, where every turn would fill it and it would carry no signal.
494
+
495
+ ### Changed
496
+
497
+ - **Breaking:** `workspace` must exist and be a directory. A missing path was accepted and
498
+ then created by the agent's first write, so a typo silently spawned a parallel empty tree
499
+ that looked like success at every layer.
500
+ - **Breaking:** a `spec` that is a bare path now fails when nothing is there or it is not a
501
+ file, instead of being handed to the agent as literal prompt text and spending a live turn.
502
+ Prose that merely names a file ("fix the bug in src/api.js") is unaffected.
503
+ - `SERVER_INSTRUCTIONS` no longer claims `modeChanged` is the signal that a mode was ignored.
504
+ It fires only on a formal mode switch, and an agent that writes while staying in `plan`
505
+ sends no such frame — so the field cannot detect the case it was cited for. The skill and
506
+ its reference say the same.
507
+ - Failure messages no longer carry the raw ACP transcript: up to 40 frames of JSON-RPC in the
508
+ caller's context on every failure, none of it actionable beside the structured forensics.
509
+ Set `CURSOR_DELEGATE_TRANSCRIPT=<frames>` to append it when debugging the bridge itself.
510
+ - The delegate skill asks Cursor to run tests as it works instead of discouraging it, and
511
+ briefs now ask for gaps back: unmet acceptance criteria and assumptions made.
512
+ - Documented that ACP model ids are the bare family (`grok-4.5`), not the CLI's tier-suffixed
513
+ `--list-models` strings, which `session/set_model` rejects. Over ACP the tier is `fast` or
514
+ `reasoning`, so the CLI's `gpt-5.4-high` is `model: "gpt-5.4"` with `reasoning: "high"`.
515
+ - The skill and its reference document the surface added since 1.7.0, and correct three
516
+ things they described wrongly: `protocolWarnings` is a general soft-diagnostic channel,
517
+ `plan`/`ask` are requests to the agent rather than boundaries, and `questionsAsked` is
518
+ effectively always empty.
519
+
520
+ ### Fixed
521
+
522
+ - A turn whose final message is followed by one more tool call no longer returns `""` shaped
523
+ like success. The discarded message comes back as `resultSource: "pre-tool-fallback"` with
524
+ a `protocolWarning`, and a real final message always wins over it. A turn that emitted no
525
+ message at all still returns `""`, now with a warning rather than silence.
526
+ - A handshake timeout now names the frame age and the resumable `sessionId`. The session
527
+ exists before `set_model`, `set_config_option` and `set_mode`, any of which can hang, so
528
+ callers were losing resumable work. It does not get the long-running-command advice — no
529
+ prompt was ever sent.
530
+ - `cancel` no longer drops its session handle on the non-force path, which made the natural
531
+ escalation — cancel, wait, cancel with `force` — report `not-found` while the agent was
532
+ still alive.
533
+
534
+ ## [1.9.0] - 2026-07-21
535
+
536
+ ### Added
537
+
538
+ - `reasoning` and `context` delegate inputs, forwarded as ACP config options (gpt-5.x
539
+ accepts `none`/`low`/`medium`/`high`/`extra-high` and `272k`/`1m`). Which options a
540
+ model offers is not discoverable up front, so the bridge asks and reads the rejection:
541
+ a model without the knob yields a `protocolWarnings` note, an invalid value still errors.
542
+ - `sessionTitle` — the short title the agent gives the turn, also named in timeout errors.
543
+ - `modeChanged` — set when the agent switches itself out of the requested mode, e.g. a
544
+ plan-mode run that becomes write-capable.
545
+
546
+ ### Changed
547
+
548
+ - `fast` is offered to every model instead of only bare `composer-*` ids, and is always
549
+ sent so `false` can turn it off on a resumed session. Models without the toggle report
550
+ it as ignored rather than silently dropping it.
551
+ - A failed resume no longer starts a fresh session silently: the reason lands in
552
+ `protocolWarnings`, and timeout errors say the earlier work was never in context.
553
+ - Delegate failures are tagged with their reason, e.g. `delegate failed [agent-error]: …`,
554
+ so a rejected argument is distinguishable from a timeout without parsing prose.
555
+
556
+ ### Fixed
557
+
558
+ - JSON-RPC errors keep the error code and the nested `data.message`, so a rejection reads
559
+ as `Invalid params: Unknown model config option: reasoning` instead of `Invalid params`.
560
+ - Frames replayed by `session/load` are ignored until the prompt is in flight — a resume
561
+ no longer reports the previous turn's tool calls and edits as if they were happening now.
562
+ - Multi-select `ask_question` (`allowMultiple`) is answered with every option the user
563
+ names, comma-separated; single-select labels containing a comma still match whole; a
564
+ question with no options answers empty instead of emitting a null option id.
565
+
566
+ ## [1.8.0] - 2026-07-21
567
+
568
+ ### Added
569
+
570
+ - Delegate results carry `todos` and `todoProgress`: the agent's own task list,
571
+ accumulated from `cursor/update_todos`, also surfaced in progress updates and the
572
+ heartbeat so a long run shows what is left rather than only that it is alive.
573
+ - `doctor --deep` reports the negotiated capability matrix — protocol version, agent
574
+ capabilities, available models and modes.
575
+
576
+ ### Changed
577
+
578
+ - **Timeouts.** The prompt-phase idle timer is gone: cursor-agent emits no ACP frames
579
+ while a shell command runs, so a healthy 2-minute test suite was indistinguishable
580
+ from a hang and got killed after the work was done. It is replaced by a 60s handshake
581
+ deadline covering spawn through session setup, where silence really does mean a wedged
582
+ agent; the 1h hard cap and agent-exit detection are unchanged. A periodic
583
+ `still working — <elapsed>, last agent frame <age> ago, running: <tool>` heartbeat
584
+ makes a long command visible, and timeout errors name the last tool call and how long
585
+ the wire has been quiet. New overrides: `CURSOR_DELEGATE_HANDSHAKE_MS`,
586
+ `CURSOR_DELEGATE_HARD_CAP_MS`, `CURSOR_DELEGATE_IDLE_MS` (unset or `0` disables
587
+ mid-turn idle detection).
588
+ - `touchedFiles` is replaced by `filesReportedByAgent`, built from the agent's own ACP
589
+ diff events instead of inferred from the working tree — no false positives from
590
+ unrelated edits, and nothing reported that the agent did not claim.
591
+ - An unknown `model` is rejected before the turn starts, naming the ids the agent
592
+ actually offers, instead of failing later inside `session/set_model`.
593
+ - Process termination uses an immediate cross-platform tree kill instead of a
594
+ signal-escalation ladder, so no orphaned child survives a cancel on Windows.
595
+
596
+ ## [1.7.0] - 2026-07-16
597
+
598
+ ### Added
599
+
600
+ - Delegate results now carry `cancelRequested: true` when a cancel was issued
601
+ mid-run, so hosts can tell a genuinely clean finish from one where the agent
602
+ ignored the cancel and completed the turn anyway.
603
+ - `cancel` tool gains a `force` option: after sending `session/cancel`, it waits
604
+ a short grace period and, if the turn is still running, kills the agent process
605
+ (tree-kill on Windows). Reports `status: "killed"` when it does.
606
+
607
+ ### Changed
608
+
609
+ - Aborting the MCP delegate request (host interrupt, e.g. Esc in Claude Code)
610
+ now terminates the agent process instead of leaving it running until the idle
611
+ timeout. The delegation rejects promptly with reason `aborted`.
612
+ - `cancel` tool description states the honest contract: `session/cancel` is
613
+ best-effort and the agent may finish the turn; serialized MCP hosts cannot run
614
+ it while a delegation is in flight.
615
+
616
+ ### Fixed
617
+
618
+ - Empty or whitespace-only `model` values are rejected with a clear validation
619
+ error before any agent process starts, instead of failing mid-handshake with a
620
+ transcript dump. Provided model ids are trimmed.
621
+
622
+ ## [1.6.0] - 2026-07-11
623
+
624
+ ### Changed
625
+
626
+ - Default ACP launcher is `cursor-agent acp` instead of bare `agent acp`, avoiding
627
+ PATH collisions with other CLIs (e.g. Grok Build) that also ship an `agent` command.
628
+ Error messages and docs now reference `cursor-agent` throughout.
629
+
630
+ ## [1.5.0] - 2026-07-11
631
+
632
+ ### Added
633
+
634
+ - ChatGPT/Codex and GitHub Copilot plugin manifests and marketplace catalogs,
635
+ alongside the existing Claude Code plugin. Non-Claude installs launch the
636
+ published npm package through `npx`.
637
+ - MCP server instructions, formal tool output schemas with `structuredContent`,
638
+ tool annotations, and `doctor` runtime diagnostics (Node version, platform,
639
+ arch, cwd, transport).
640
+ - `protocolWarnings` in delegate results: malformed ACP plan frames and
641
+ non-string stop reasons are dropped with an explicit diagnostic instead of
642
+ failing the MCP call after the delegation already ran.
643
+ - CI: cross-platform test matrix plus a minimum-dependency job that runs the
644
+ suite against the declared `@modelcontextprotocol/sdk` floor.
645
+
646
+ ### Changed
647
+
648
+ - Claude-only configuration moved out of cross-host auto-discovery paths:
649
+ the plugin MCP config lives at `.claude-plugin/mcp.json` and the SessionStart
650
+ hook config at `.claude-plugin/hooks.json`, both referenced from the plugin
651
+ manifest. This keeps Copilot from picking up the bundled-server config and
652
+ Codex from auto-discovering the Claude bootstrap hook.
653
+ - Minimum `@modelcontextprotocol/sdk` raised to `^1.22.0`; older versions
654
+ cannot serialize the tool output schemas.
655
+ - The npm package is runtime-only (`src/`, README, LICENSE, legal files);
656
+ plugin manifests, skills, and assets ship via Git installs.
657
+
658
+ ### Documentation
659
+
660
+ - Setup paths for Codex, GitHub Copilot, VS Code, JetBrains AI Assistant,
661
+ Windsurf, Visual Studio, and Cursor, with host statuses stated factually
662
+ (packaged and contract-tested vs. documented configuration).
663
+
664
+ ## [1.4.0] - 2026-07-10
665
+
666
+ ### Fixed
667
+
668
+ - `result` no longer mixes mid-task code and narration into the final response.
669
+ Turns that used tools return only the agent's message after its last tool
670
+ call; tool-free turns still return the complete response.
671
+
672
+ ### Added
673
+
674
+ - `resultSource` (`"post-tool"`, `"tool-free-stream"`, or `"none"`) and
675
+ `finalMessageAvailable` response fields. When the agent finishes its tools
676
+ without a final message, `result` is empty — check `touchedFiles` and the
677
+ diff instead of trusting intermediate text.
678
+
679
+ ## [1.3.0] - 2026-07-03
680
+
681
+ ### Changed
682
+
683
+ - Progress notifications are now readable status lines: streamed thinking and
684
+ response chunks are assembled into complete sentences (cursor-agent emits
685
+ back-to-back sentences with no separator), each stream reports at most one
686
+ line per ~2s (newest wins), and markdown structure (table rows, headings,
687
+ fences, bullets) is filtered out of progress.
688
+ - `running:` progress lines include the tool's file path when cursor-agent
689
+ provides a location (it currently sends none; ready for when it does).
690
+
691
+ ### Fixed
692
+
693
+ - Progress messages are no longer silently dropped: the server-side 100ms
694
+ notification throttle discarded the newest status line when updates arrived
695
+ in bursts.
696
+
697
+ ## [1.2.0] - 2026-07-01
698
+
699
+ ### Fixed
700
+
701
+ - Windows: successful delegations no longer leave an orphaned cursor-agent
702
+ process behind — `stop()` now kills the full process tree (previously only the
703
+ shell wrapper died; tree-kill applied only on timeout escalation).
704
+
705
+ ### Changed
706
+
707
+ - `delegate` tool `fast` parameter is now a real boolean (was the string enum
708
+ `"false"`/`"true"`); conversion to the string ACP expects happens at the
709
+ protocol boundary.
710
+
711
+ ### Added
712
+
713
+ - `fallbackAnswers` result field: when a free-text elicitation answer matches no
714
+ offered option, the first option is submitted and the mismatch is reported
715
+ (`prompt`, `given`, `chosen`) instead of being silently discarded.
716
+ - `ACP_AGENT_ARGS` supports quoted arguments containing spaces; environment
717
+ variables are now documented in the README.
718
+ - Clear startup error on unsupported Node versions (requires Node 22+).
719
+
720
+ ## [1.1.0] - 2026-06-29
721
+
722
+ ### Added
723
+
724
+ - Distributable as a standalone MCP server via `npx cursor-delegate-mcp` (`bin`
725
+ entry) for any compatible client, alongside the Claude Code plugin.
726
+ - Auto-answer fallback for clients without MCP elicitation: the recommended option
727
+ is selected and reported in the new `autoAnswered` result field.
728
+
729
+ ## [1.0.0] - 2026-06-28
730
+
731
+ First public release.
732
+
733
+ ### Added
734
+
735
+ - Claude Code plugin that delegates coding tasks to **cursor-agent** over the
736
+ [Agent Client Protocol](https://cursor.com/docs/cli/acp).
737
+ - **`delegate`** tool — spec file or inline task, agent/plan/ask modes, session
738
+ resume, structured result (`touchedFiles`, `sessionId`, optional `plan`).
739
+ - **`doctor`** tool — plugin and cursor-agent setup diagnostics.
740
+ - **`cancel`** tool — best-effort cancellation of an in-flight delegation.
741
+ - Default model **Composer 2.5** standard tier (`fast: false`); other Cursor models
742
+ available on request.
743
+ - Auto-approved file writes; `cursor/ask_question` surfaced via MCP elicitation.
744
+ - Git-derived `touchedFiles` when the workspace is a repo; ephemeral progress for
745
+ thinking and tool activity.
746
+ - **`delegate`** plugin skill — orchestration playbook for Claude (when to delegate, plan/resume workflow, verification).