an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
fix(provider): default Cursor CLI binary to cursor-agent
George Burchell6c9322429405
diff --git a/src/main/realtimeActions.ts b/src/main/realtimeActions.tsindex 0f146eb6..f4354bc2 100644--- a/src/main/realtimeActions.ts+++ b/src/main/realtimeActions.ts@@ -161,7 +161,7 @@ const PENDING_TTL_MS = 120_000;const PROVIDER_COMMAND: Record<string, string> = {claude: 'claude', codex: 'codex', antigravity: 'antigravity', gemini: 'gemini',opencode: 'opencode', crush: 'crush', pi: 'pi', qwen: 'qwen', copilot: 'copilot',- cursor: 'agent'+ cursor: 'cursor-agent'};/** Bare affirmations that must NEVER authorize a destructive op on their own —diff --git a/src/renderer/src/store/config.ts b/src/renderer/src/store/config.tsindex e35af49e..32bd5597 100644--- a/src/renderer/src/store/config.ts+++ b/src/renderer/src/store/config.ts@@ -276,8 +276,8 @@ export const COPILOT_MODELS: ModelOption[] = [{ id: 'gpt-5', label: 'GPT-5' }];-/** Models offered when an agent runs on Cursor Agent CLI (`agent`). Ids match- * `agent models` / `--model` (Cursor account catalog). Luna is the cheap,+/** Models offered when an agent runs on Cursor Agent CLI (`cursor-agent`). Ids match+ * `cursor-agent models` / `--model` (Cursor account catalog). Luna is the cheap,* high-context default for Michael; other entries are curated quick-picks —* the command field stays editable for any live slug. */export const CURSOR_MODELS: ModelOption[] = [diff --git a/src/shared/agentProvider.ts b/src/shared/agentProvider.tsindex d0da5c79..543e4b6f 100644--- a/src/shared/agentProvider.ts+++ b/src/shared/agentProvider.ts@@ -467,16 +467,17 @@ export const AGENT_PROVIDER_PRESETS: AgentProviderPreset[] = [docsUrl: 'https://docs.github.com/copilot/concepts/agents/about-copilot-cli'},{- // Cursor Agent CLI (`agent`, https://cursor.com/docs/cli). Interactive TUI by- // default (no `-p`), so the session stays alive for hive mail via the renderer- // idle / work-order path — same class as Crush. Print mode (`agent -p`) is+ // Cursor Agent CLI (`cursor-agent`, https://cursor.com/docs/cli). The official+ // installer puts `cursor-agent` on PATH; `agent` is a shorter alias. Interactive+ // TUI by default (no `-p`), so the session stays alive for hive mail via the+ // renderer idle / work-order path — same class as Crush. Print mode (`-p`) is// available for scripts but exits per turn; this preset intentionally does// NOT use `-p` so Michael and workers remain god-eligible / inbox-capable.// Models (including cheap gpt-5.6-luna-*) bill against Cursor credits via the// logged-in CLI — there is no separate "plain OpenAI API" path for Luna.id: 'cursor',label: 'Cursor',- defaultCommand: 'agent',+ defaultCommand: 'cursor-agent',commandGroups: [],// --force/--yolo: allow tool calls without confirmations. --trust: skip the// workspace trust prompt so unattended Mac Mini spawns do not stall. Gated by@@ -489,7 +490,7 @@ export const AGENT_PROVIDER_PRESETS: AgentProviderPreset[] = [// No Cursor hook bridge yet — mail delivery uses the terminal work-order /// idle-nudge fallback (same honesty as Crush before its proxy is verified).canReceiveInbox: true,- // `agent` parses early argv as Cobra-style commands (login, models, mcp, …).+ // `cursor-agent` parses early argv as Cobra-style commands (login, models, mcp, …).// A long hive protocol string must NOT ride as a positional — type it into// the TUI after boot instead (Crush pattern).initialPromptFlag: undefined,@@ -580,8 +581,9 @@ export function inferAgentProvider(command: string | undefined, explicit?: unknoif (bin === 'crush') return 'crush';if (bin === 'pi') return 'pi';if (bin === 'copilot') return 'copilot';- // Cursor ships as `agent` (and sometimes `cursor-agent` on older installs).- if (bin === 'agent' || bin === 'cursor-agent') return 'cursor';+ // Cursor ships as `cursor-agent`; `agent` is a shorter alias (generic name — check last).+ if (bin === 'cursor-agent') return 'cursor';+ if (bin === 'agent') return 'cursor';if (bin === 'claude' || !bin) return 'claude';return 'custom';}diff --git a/test/agent-provider.test.cjs b/test/agent-provider.test.cjsindex 03406cfe..62bcb3ff 100644--- a/test/agent-provider.test.cjs+++ b/test/agent-provider.test.cjs@@ -68,15 +68,15 @@ test('cursor is a recognized, selectable, god-eligible provider', () => {assert.strictEqual(ap.canReceiveInbox('cursor'), true, 'interactive TUI can receive inbox');});-test('inferAgentProvider maps the agent / cursor-agent binary to cursor', () => {- assert.strictEqual(ap.inferAgentProvider('agent'), 'cursor');- assert.strictEqual(ap.inferAgentProvider('/Users/me/.local/bin/agent --model gpt-5.6-luna-high'), 'cursor');+test('inferAgentProvider maps cursor-agent (canonical) and agent (alias) to cursor', () => {assert.strictEqual(ap.inferAgentProvider('cursor-agent'), 'cursor');+ assert.strictEqual(ap.inferAgentProvider('/Users/me/.local/bin/cursor-agent --model gpt-5.6-luna-high'), 'cursor');+ assert.strictEqual(ap.inferAgentProvider('agent'), 'cursor');});test('cursor preset is interactive (no -p), uses force+trust auto flags, types seed into TUI', () => {const p = ap.providerPreset('cursor');- assert.strictEqual(p.defaultCommand, 'agent', 'default command binary');+ assert.strictEqual(p.defaultCommand, 'cursor-agent', 'default command binary');assert.strictEqual(p.initialPromptFlag, undefined, 'no -p; stay interactive');assert.strictEqual(p.seedDelivery, 'type-into-tui', 'hive protocol typed after boot');assert.strictEqual(ap.autoModeFlagForProvider('cursor'), '--force --trust');