cwd | string | No | Working directory for the agent process (absolute path; created automatically if missing when permissions allow) |
instructionsFilePath | string | No | Absolute path to a markdown instructions file prepended to the run prompt |
model | string | No | Cursor model ID (default: auto). Examples: auto, gpt-5.3-codex, opus-4.6, sonnet-4.6 |
mode | string | No | Cursor execution mode passed as --mode (plan | ask). Leave unset for normal autonomous runs. |
promptTemplate | string | No | Prompt used for all runs |
command | string | No | CLI command to invoke (default: agent) |
extraArgs | string[] | No | Additional CLI arguments |
env | object | No | Environment variables (supports secret refs) |
timeoutSec | number | No | Process timeout in seconds (0 = no timeout) |
graceSec | number | No | Grace period before force-kill after timeout/cancel |