CursorCliSdk.Configuration owns numeric runtime defaults. These values are read from the :cursor_cli_sdk application environment.

FunctionDefault
command_timeout_ms/060_000
stream_timeout_ms/0300_000
default_timeout_ms/0300_000
transport_close_grace_ms/02_000
transport_kill_grace_ms/0250
max_stderr_buffer_size/0262_144
max_inflight_headless/04
spawn_stagger_ms/075

Configure

config :cursor_cli_sdk,
  stream_timeout_ms: 600_000,
  max_inflight_headless: 2,
  spawn_stagger_ms: 150

Inspect

CursorCliSdk.Configuration.all()

Concurrency

Cursor's headless process can reject or exit quickly when many invocations are spawned at once. Use max_inflight_headless in owner tooling and stagger start times by spawn_stagger_ms when dispatching batches.

The SDK exposes these values but does not impose a global queue. Higher-level runtimes such as ASM own fleet-level concurrency decisions.