Skip to content

feat: Cursor CLI ACP provider via Agent Client Protocol - #370

Closed
alecuba16 wants to merge 2 commits into
Kuberwastaken:mainfrom
alecuba16:feat/cursor-acp
Closed

feat: Cursor CLI ACP provider via Agent Client Protocol#370
alecuba16 wants to merge 2 commits into
Kuberwastaken:mainfrom
alecuba16:feat/cursor-acp

Conversation

@alecuba16

Copy link
Copy Markdown

Summary

Add Cursor CLI ACP (Agent Client Protocol) provider support, allowing Claurst to connect to Cursor as an LLM backend via the ACP subprocess protocol.

Changes

  • New provider (crates/api/src/providers/cursor_acp.rs): CursorAcpProvider implementing LlmProvider — request shaping, response parsing, streaming SSE handling, and tool-call conversion via the ACP wire format.
  • Provider registration (registry.rs): CursorAcpProvider registered under the "cursor-acp" key in provider_from_key, provider_from_config, and runtime_provider_for.
  • Module exports (providers/mod.rs): pub mod cursor_acp + re-exports of CursorAcpCommand, CursorAcpProvider, ModelCatalog.
  • TUI integration (app.rs): provider picker entry, known providers list, and activate_provider match arm for cursor-acp subprocess management.
  • Query integration (query/src/lib.rs): "cursor-acp" added to the native providers list.
  • Documentation (docs/providers.md): setup instructions, environment variables, and settings.json configuration example.
  • Design doc (FEATURE_DESIGN_cursor_cli_acp_support.md): architecture overview and protocol details.

Setup

  1. Ensure Cursor CLI is installed and available on $PATH.
  2. Add to settings.json:
    {
      "providers": {
        "cursor-acp": {}
      }
    }

Test plan

  • cargo check --workspace passes (verified locally)
  • Provider appears in the model picker
  • Basic prompt round-trip via Cursor ACP subprocess
  • Streaming responses render correctly
  • Tool-call round-trip works end-to-end

Co-authored-by: Cursor <cursoragent@cursor.com>
@alecuba16
alecuba16 force-pushed the feat/cursor-acp branch 2 times, most recently from 5313f28 to b657362 Compare August 10, 2026 18:16
@alecuba16

Copy link
Copy Markdown
Author

Closing in favor of consolidated group branches. The changes from this PR have been merged into a functional group branch.

@alecuba16 alecuba16 closed this Aug 10, 2026
@alecuba16
alecuba16 deleted the feat/cursor-acp branch August 10, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant