Repository navigation
feat(team): add cursor-agent as 4th tmux worker type (executor-only) #2736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ import { normalizeToCcAlias } from '../features/delegation-enforcer.js'; | |
| import { isBedrock, isVertexAI, isProviderSpecificModelId } from '../config/models.js'; | ||
| import { isExternalLLMDisabled } from '../lib/security-config.js'; | ||
|
|
||
| export type CliAgentType = 'claude' | 'codex' | 'gemini'; | ||
| export type CliAgentType = 'claude' | 'codex' | 'gemini' | 'cursor'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
After expanding Useful? React with 👍 / 👎. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Adding Useful? React with 👍 / 👎. |
||
|
|
||
| export interface CliAgentContract { | ||
| agentType: CliAgentType; | ||
|
|
@@ -224,6 +224,24 @@ const CONTRACTS: Record<CliAgentType, CliAgentContract> = { | |
| return rawOutput.trim(); | ||
| }, | ||
| }, | ||
| cursor: { | ||
| agentType: 'cursor', | ||
| binary: 'cursor-agent', | ||
| installInstructions: 'Install Cursor Agent CLI: see https://docs.cursor.com/cli', | ||
| // cursor-agent runs as an interactive REPL — no exit-on-complete prompt mode. | ||
| // Keep supportsPromptMode false so the verdict-file contract path | ||
| // (CONTRACT_ROLES + shouldInjectContract) skips this provider; cursor | ||
| // workers participate as executors only. | ||
| supportsPromptMode: false, | ||
| buildLaunchArgs(_model?: string, extraFlags: string[] = []): string[] { | ||
| // Minimal flags — cursor-agent owns its own session/auth state. | ||
| // The model is selected interactively inside cursor-agent itself. | ||
| return [...extraFlags]; | ||
| }, | ||
| parseOutput(rawOutput: string): string { | ||
| return rawOutput.trim(); | ||
| }, | ||
| }, | ||
| }; | ||
|
|
||
| export function getContract(agentType: CliAgentType): CliAgentContract { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding
'cursor'toVALID_CLI_AGENT_TYPEShere only updates the legacysrc/cli/team.tspath, but the actualomc teamcommand is dispatched viasrc/cli/index.tstosrc/cli/commands/team.ts, whereVALID_TEAM_CLI_AGENT_TYPESstill excludes cursor andnormalizeWorkerSpecSegment()treats unknown tokens as roles. In practice,omc team 1:cursor "..."is parsed as a Claude worker with rolecursor, so the new provider is silently not selected on the primary CLI surface.Useful? React with 👍 / 👎.