Documentation
¶
Overview ¶
Package cursor provides the built-in Driver implementation for the Cursor Agent CLI.
Construct a configured driver with Driver and pass it to adaptor.New:
agent := adaptor.New(cursor.Driver(cursor.Config{
Model: "gpt-5",
}))
Driver snapshots its configuration without performing environment I/O. Configuration validation and CLI availability checks occur when the agent runs or is inspected.
Index ¶
Constants ¶
const DriverType = "cursor"
DriverType is the stable descriptor type for the built-in Cursor driver.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommonConfig ¶
type CommonConfig = driver.CommonConfig
CommonConfig carries the provider-independent CLI and process defaults embedded by Config: command, cwd, env, instructions, prompt templates, workspace strategy/runtime, timeouts, and extra args.
type Config ¶
type Config struct {
CommonConfig
// Model selects the Cursor model. Empty uses the driver's default.
Model string
// Mode selects the Cursor Agent CLI mode. Empty uses the CLI default.
Mode Mode
}
Config configures the Cursor driver. CommonConfig controls process, profile, and workspace defaults; Model and Mode select Cursor-specific execution settings.