Skip to content

Support Cursor CLI as an external worker provider #71

Closed

Description

@arjitj2

Current scope (maintainer, 2026-10-16, revised)

Eric's rule (#203): a read-only lane means the read-only settings pstack passes to the CLI. The operator's host, account, repository and organization configuration applies as they set it up; pstack adds no refusal, guard or account check because of it, and the catalog notes disclose what it can do. This replaces the earlier items that asked to disable or refuse the language-server worker and to check enterprise and team hooks; those measurements are recorded in the batch-158 Cursor containment captures.

The PR restores the adapter from 08556cd: read-only cursor-agent -p --mode ask --sandbox enabled --trust lanes on composer-2.5 and gemini-3.7-flash (efforts low, medium and high), with a run-owned CURSOR_CONFIG_DIR whose config denies writes, shell and MCP calls, and no .cursor/ or Claude settings refusal. The #94 status-pipe criterion stays met: the preflight is cursor-agent models, never status, and empty output is inconclusive, never unauthenticated. The catalog notes say what still runs: the language-server worker (npx -y typescript-language-server in the workspace, which runs a repository's own copy when it has one), enterprise, team, user and repository hooks, and repository .cursor/ configuration. Operator note: sign in with env -u CURSOR_API_KEY cursor-agent login.

Original request

Allow Codex and Claude Code parents to delegate bounded workers through Cursor CLI using an existing Cursor subscription. Today external routing supports provider-specific CLIs, so models available through Cursor cannot participate without separate provider authentication.

Add an explicit Cursor route with pinned model selection, authentication checks, bounded permissions, structured output receipts, and no automatic fallback. Document differences from native workers and verify from both parent harnesses before release.

Activity

  1. ericlitman commented on Oct 1, 2026

    @ericlitman
    Owner

    Prior art: #74. Waits on the registry design in #103. Acceptance gains the Cursor status-pipe item from #94: when stdout is a pipe, agent status --format json prints nothing, so an empty status must not be read as unauthenticated.

  2. Repository owner deleted a comment from mast-factory on Oct 2, 2026
  3. ericlitman commented on Oct 16, 2026

    @ericlitman
    Owner

    Work on this started today (2026-10-15).

    First I'm recording what Cursor CLI (cursor-agent) actually prints when it runs without a terminal, on a Mac where it's installed and logged in. Then I'll build the adapter the same way as the Devin one (PR #183), and test it for real from both Claude Code and Codex before it merges. If Cursor CLI (cursor-agent) can't run unattended, I'll say so here with the recordings.

  4. added a commit that references this issue on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions