cursor

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

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

View Source
const DriverType = "cursor"

DriverType is the stable descriptor type for the built-in Cursor driver.

Variables

This section is empty.

Functions

func Driver

func Driver(cfg Config) driver.Driver

Driver returns the Cursor driver with cfg captured at construction. Pass the result to adaptor.New. Validation remains deferred to run/probe time; construction only snapshots configuration and performs no environment I/O.

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.

type Mode

type Mode string

Mode is the Cursor Agent mode flag value. The empty value leaves the CLI default in place.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL