From b5089cdc94444e9d82d28e9f3537c7bb236c29a3 Mon Sep 17 00:00:00 2001 From: Justin Parker Date: Mon, 9 Nov 2026 22:09:00 -0800 Subject: [PATCH] Add the Cursor CLI starter template and refresh launcher agent and model data AI Assisted --- plan2code-app/src-tauri/src/agents.rs | 2 +- scripts/fixtures/agents-cases.json | 55 +++++++++++++++++++++++++++ scripts/test-agent-lookup.mjs | 4 +- src/launcher/agents.json | 14 ++++++- src/launcher/models.json | 14 +++---- 5 files changed, 75 insertions(+), 14 deletions(-) diff --git a/plan2code-app/src-tauri/src/agents.rs b/plan2code-app/src-tauri/src/agents.rs index 172f536..47328e8 100644 --- a/plan2code-app/src-tauri/src/agents.rs +++ b/plan2code-app/src-tauri/src/agents.rs @@ -1670,7 +1670,7 @@ mod tests { .iter() .map(|e| e.id.as_str()) .collect::>(), - ["copilot", "opencode", "gemini", "pi"] + ["copilot", "opencode", "gemini", "pi", "cursor"] ); assert!(list .builtins diff --git a/scripts/fixtures/agents-cases.json b/scripts/fixtures/agents-cases.json index b18812a..cb71b51 100644 --- a/scripts/fixtures/agents-cases.json +++ b/scripts/fixtures/agents-cases.json @@ -2054,6 +2054,61 @@ "args": [ "/skill:plan2code" ] + }, + { + "name": "Cursor CLI's shape: a chosen model goes ahead of the prompt", + "entry": { + "id": "cursor", + "name": "Cursor CLI", + "command": "agent", + "args": [ + "{model}", + "{prompt}" + ], + "prompt": "/plan2code", + "bypassArgs": [ + "--force" + ], + "modelArgs": [ + "--model", + "{model}" + ] + }, + "options": { + "model": "sonnet-4", + "bypass": false + }, + "args": [ + "--model", + "sonnet-4", + "/plan2code" + ] + }, + { + "name": "Cursor CLI's shape: no model, no model argument", + "entry": { + "id": "cursor", + "name": "Cursor CLI", + "command": "agent", + "args": [ + "{model}", + "{prompt}" + ], + "prompt": "/plan2code", + "bypassArgs": [ + "--force" + ], + "modelArgs": [ + "--model", + "{model}" + ] + }, + "options": { + "bypass": false + }, + "args": [ + "/plan2code" + ] } ], "ids": [ diff --git a/scripts/test-agent-lookup.mjs b/scripts/test-agent-lookup.mjs index a035a1a..a7ecb2c 100644 --- a/scripts/test-agent-lookup.mjs +++ b/scripts/test-agent-lookup.mjs @@ -111,11 +111,11 @@ test("loadAgentList: bad JSON and a wrong schema warn and give nothing", (t) => assert.match(wrong.warnings[0], /schema/); }); -test("loadAgentList: the shipped agents.json loads with 3 built-ins and 4 templates", () => { +test("loadAgentList: the shipped agents.json loads with 3 built-ins and 5 templates", () => { const { builtins, templates, warnings } = loadAgentList({ dir: path.join(ROOT, "src", "launcher") }); assert.deepEqual(warnings, []); assert.deepEqual(builtins.map((a) => a.id), ["claude", "devin", "codex"]); - assert.deepEqual(templates.map((a) => a.id), ["copilot", "opencode", "gemini", "pi"]); + assert.deepEqual(templates.map((a) => a.id), ["copilot", "opencode", "gemini", "pi", "cursor"]); }); test("every shipped template passes normalizeAgents() with no warnings", () => { diff --git a/src/launcher/agents.json b/src/launcher/agents.json index c51311a..347e9b1 100644 --- a/src/launcher/agents.json +++ b/src/launcher/agents.json @@ -83,7 +83,7 @@ ] }, "installDirs": { - "win": ["%USERPROFILE%\\.local\\bin"], + "win": ["%LOCALAPPDATA%\\Programs\\OpenAI\\Codex\\bin", "%USERPROFILE%\\.local\\bin"], "mac": ["~/.local/bin"], "linux": ["~/.local/bin"] } @@ -117,7 +117,7 @@ "args": ["{model}", "{prompt}"], "bypassArgs": ["--approval-mode=yolo"], "modelArgs": ["--model", "{model}"], - "note": "For unpaid tier and Google One accounts Gemini CLI was replaced by Antigravity CLI on June 18, 2026; whether gemini still runs depends on the account." + "note": "For Google AI Pro and Ultra accounts and free Gemini Code Assist for individuals, Gemini CLI was replaced by Antigravity CLI on June 18, 2026; Standard and Enterprise licenses and paid API keys are unaffected." }, { "id": "pi", @@ -127,6 +127,16 @@ "prompt": "/skill:plan2code", "args": ["{model}", "{prompt}"], "modelArgs": ["--model", "{model}"] + }, + { + "id": "cursor", + "name": "Cursor CLI", + "kind": "template", + "command": "agent", + "prompt": "/plan2code", + "args": ["{model}", "{prompt}"], + "bypassArgs": ["--force"], + "modelArgs": ["--model", "{model}"] } ] } diff --git a/src/launcher/models.json b/src/launcher/models.json index 1ea901d..55bd8ce 100644 --- a/src/launcher/models.json +++ b/src/launcher/models.json @@ -27,7 +27,7 @@ }, { "id": "best", - "label": "Best, Fable where available, otherwise Opus" + "label": "Best, same model as Opus" } ], "devin": [ @@ -140,16 +140,12 @@ "label": "GPT-6 Astra High Thinking" }, { - "id": "gpt-5-6-sol-low", - "label": "GPT-5.6 Sol Low Thinking" + "id": "swe-2-flash-medium", + "label": "SWE-2 Flash Medium" }, { - "id": "gpt-5-6-sol-medium", - "label": "GPT-5.6 Sol Medium Thinking" - }, - { - "id": "gpt-5-6-sol-high", - "label": "GPT-5.6 Sol High Thinking" + "id": "swe-2-flash-high", + "label": "SWE-2 Flash High" } ], "codex": [