Documentation
¶
Overview ¶
Package cursor adapts the Cursor Agent CLI (`cursor-agent`) into an inference backend.
The CLI is launched in headless print mode, in read-only ask mode, in an empty scratch directory with a sanitized environment: agent2api uses it as a plain LLM, never as an agent that touches the machine.
Index ¶
Constants ¶
const DefaultMode = config.DefaultCursorMode
DefaultMode is the execution mode used when adapters.cursor.mode is not set. It mirrors the config default rather than restating it, so the two cannot drift; the adapter keeps its own fallback because Options can be built without going through the config layer at all.
const ID = "cursor"
ID is the adapter id used to namespace this backend's models.
const MaxPromptBytes = 96 << 10
MaxPromptBytes caps the rendered transcript. Unlike the other CLIs, cursor-agent takes its prompt as a command-line argument, and Linux refuses a single argument longer than 128 KiB. Failing with an explanation beats an opaque "argument list too long" from the kernel.
Variables ¶
This section is empty.