SpawnOptions
Defined in: packages/agentic-control/src/core/types.ts:293
Options for spawning a new agent
API Spec: https://cursor.com/docs/cloud-agent/api/endpoints
Properties
Section titled “Properties”context?
Section titled “context?”
optionalcontext:Record<string,unknown>
Defined in: packages/agentic-control/src/core/types.ts:301
Coordination context (for multi-agent orchestration)
optionalref:string
Defined in: packages/agentic-control/src/core/types.ts:299
Git ref (branch, tag, commit) - defaults to “main”
repository
Section titled “repository”repository:
string
Defined in: packages/agentic-control/src/core/types.ts:295
GitHub repository URL (e.g., https://github.com/org/repo)
target?
Section titled “target?”
optionaltarget:object
Defined in: packages/agentic-control/src/core/types.ts:303
Target configuration
autoCreatePr?
Section titled “autoCreatePr?”
optionalautoCreatePr:boolean
Auto-create PR when agent completes
branchName?
Section titled “branchName?”
optionalbranchName:string
Custom branch name
openAsCursorGithubApp?
Section titled “openAsCursorGithubApp?”
optionalopenAsCursorGithubApp:boolean
Open PR as Cursor GitHub App instead of user
skipReviewerRequest?
Section titled “skipReviewerRequest?”
optionalskipReviewerRequest:boolean
Skip adding user as reviewer
task:
string
Defined in: packages/agentic-control/src/core/types.ts:297
Task description for the agent
webhook?
Section titled “webhook?”
optionalwebhook:object
Defined in: packages/agentic-control/src/core/types.ts:314
Webhook for status notifications
secret?
Section titled “secret?”
optionalsecret:string
Secret for payload verification (min 32 chars)
url:
string
URL to receive notifications