cursor-delegate-mcp 1.22.0 → 2.1.1

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