agent_session_manager registers Cursor as the fifth provider and can run it
through two lanes.
| Lane | Runtime |
|---|---|
:core | CliSubprocessCore.ProviderProfiles.Cursor |
:sdk | CursorCliSdk.Runtime.CLI |
Dependency
ASM activates the SDK lane when cursor_cli_sdk is present:
{:cursor_cli_sdk, "~> 0.2.0"}Start a Cursor SDK Session
{:ok, session} =
ASM.start_session(
provider: :cursor,
lane: :sdk,
permission_mode: :bypass
)Cursor Native Overrides
ASM common options own provider, cwd, model, auth materialization, execution
surface, and permission posture. Cursor-specific settings flow through
ASM.Options.Cursor and the provider SDK extension boundary:
modesandboxapprove_mcpsworktreeworktree_baseskip_worktree_setupplugin_dirsheaders
There is no ASM :workspace key. Common :cwd maps to Cursor --workspace.
Examples
mix run --no-start examples/provider_cursor_core_stream.exs -- --provider cursor
mix run --no-start examples/provider_cursor_sdk_stream.exs -- --provider cursor --lane sdk
mix run --no-start examples/promotion_path/hybrid_asm_plus_cursor.exs -- --provider cursor --lane sdk