Repository navigation
feat(runner): add Cursor CLI as a read-only external provider (#71) - #211
Conversation
Restores the Cursor adapter from 08556cd with Composer 2.5 and Gemini 3.7 Flash (low, medium, high). A lane runs cursor-agent in ask mode with the sandbox on and a run-owned config that denies writes, shell and MCP calls. Under #203, it runs in any repository; the catalog notes say what the language-server worker and enterprise, team, user and repository hooks still run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merge Protections🟢 All 2 merge protections satisfied — ready to merge. Show 2 satisfied protections🟢 Queue ready pull requestsAutomatically queue non-draft pull requests targeting main after verify, Unfret, and live-gate pass on the head and every review thread is resolved.
🟢 🚦 Auto-queueWhen all merge protections are satisfied and these conditions match, this pull request will be queued automatically.
|
|
[Medium impact] The code appears safe to merge once the required exact-head live gate passes. SummaryAdds opt-in Cursor lanes for Composer 2.5 and Gemini 3.7 Flash from both parent harnesses.
No actionable defects were established. Tests and live lanes were not run during this review; the exact-head live gate was not independently checked. Reviews (1) · Last reviewed commit: "feat(runner): add Cursor CLI as a read-o..." · Reviewed by Greptile |
Live evidence: Open Pstack
|
✅ Accepted riskAccepted by ericlitman: GH-212 (authority 48fa77b) 🟡 Medium · Cursor lanes still allow nested Task subagent dispatch (carried, keep-confirmed) 🟡 Medium · Accept valid selectors absent from the model listing DetailsRun: @unfret review · @unfret status · @unfret help |
There was a problem hiding this comment.
🛑 1 blocking finding
🟡 Medium · Cursor lanes still allow nested model dispatch
Check
|
@unfret review |
There was a problem hiding this comment.
🛑 2 blocking findings
🟡 Medium · Cursor lanes still allow nested Task subagent dispatch (carried, keep-confirmed)
🟡 Medium · Accept valid selectors absent from the model listing
Check
|
Waiver for head 3e7b1c3 (Cursor CLI, #71). Both blocking findings on this head are non-material; neither concerns security, secrets, data loss, or gate or waiver integrity. Recorded in the unscheduled issue #212.
Live gate on this head: success (issue comment 6223371748). |
Merge Queue Status
This pull request spent 10 seconds in the queue, including 1 second running CI. Required conditions to merge
|
Summary
Adds Cursor CLI as a read-only external provider, restored from
08556cd(reviewed in #196), with Composer 2.5 and Gemini 3.7 Flash. Under #203, a read-only lane means the read-only settings pstack passes to Cursor; the runner adds no refusal or guard because of the operator's own host, account, repository or organization configuration, and the catalog notes say what that configuration can do. Closes #71.composer-2.5(effortdefault) andgemini-3.7-flashwith effortslow,mediumandhigh, mapped to the CLI IDsgemini-3.7-flash-low,-mediumand-high(defaulthigh). Gemini 3.7 Flash is the model add antigravity(agy) as a runner so we can gain access to Gemini 3.7 Flash #37 asked for, which Antigravity could not serve. Proof is the pinned argv: Cursor reports only a display label..cursor/or Claude settings refusal, and no flag that turns off Cursor's language-server worker. The catalog notes state what still runs: theworker-serverthat runsnpx -y typescript-language-server --stdioin the workspace (a repository's own copy when it has one) and stays after the turn; enterprise, team, user and repository hooks, which run unsandboxed; a repository's.cursor/cli.json, which replaces the run-owned deny list.catalog.test.tsuseskiro:instead ofcursor:as its example of an unregistered provider, so this PR is verifier-changing.Evidence
env -u CURSOR_API_KEY), through this branch's launcher before the rebases ontomain(pstack-runner --parent claude --mode read-only):composer-2.5@defaultfrom a git fixture: exit 0,complete, preflightmodel composer-2.5 listed, output equal to the fixture's marker.gemini-3.7-flash@high: exit 0,complete, argv modelgemini-3.7-flash-high, output equal to the marker.composer-2.5@defaultfrom a fixture holding.cursor/: exit 0,complete, no refusal, output equal to that fixture's marker. The worker and language-server processes stayed after the turn, as the notes say.cursor.test.ts(argv, config, environment, the effort-to-ID mapping for every Gemini effort, preflight including empty output, parser,adapterSuite);run.test.tslanes, including one in a workspace holding.cursor/and Claude settings files.3e7b1c3from its candidate checkout with--self-test, 12 planned sessions: evidence comment. The Claude and Codex parents each dispatchedcursor:gemini-3.7-flash@highread-only through the installed launcher; both receipts readcompletewith preflightpassed, and the argv carried--model gemini-3.7-flash-high --mode ask --sandbox enabled --trust. Both parents resolved the regenerated catalog.Unfret rebuttal
Merge Danger
Door: two-way. A new provider that no default role uses; reverting removes it.
Blast Radius: opt-in. Only a model sheet that names
cursor:...reaches it. Each turn leaves Cursor's worker and language server running for a few idle minutes.Live gate
Run from a checkout of this PR's head with
--self-test, because the PR changes a verifier test (AGENTS.md); the publisher revision equals the candidate SHA. 12 planned sessions.claude:runner,codex:runnerwith--runner-route cursor:gemini-3.7-flash@highclaude:catalog,codex:catalogproject-skillin both harnesses (automatic)catalog.test.tschanged.Composer 2.5 is not a second route here: the same adapter path ran it live from the launcher above, and a second route would plan 14 sessions. No
setup: setup's behavior does not change.Acceptance criteria
cursor-agent -p --mode ask --sandbox enabled --trustlanes oncomposer-2.5andgemini-3.7-flash(efforts low, medium and high), with a run-ownedCURSOR_CONFIG_DIRwhose config denies writes, shell and MCP calls, and no.cursor/or Claude settings refusal"cursor.test.ts, the three direct live lanes, the exact-head live gate.cursor-agent models, neverstatus, and empty output is inconclusive, never unauthenticated."cursor.test.tspreflight cases; the catalog's preflight note..cursor/configuration. Operator note: sign in withenv -u CURSOR_API_KEY cursor-agent login."references/model-catalog.mdCursor notes, from the batch-158 Cursor captures.modelspreflight; the run-owned deny list; stream-json parsing into receipts; no fallback; the live gate from both parents.Gate results
On head
3e7b1c3(rebased ontomainf8b193c):bun run testbun run typecheckbun run staticclaude plugin validate plugins/pstackNot verified
🤖 Generated with Claude Code