Skip to content
Skills Library
AI & agents · Review & audit

provider-cursor

/provider-cursor

Track and maintain the upstream Cursor Agent CLI contract. Use when Cursor ships a CLI release, when a `cursor-agent` flag, execution mode, session command, ACP entrypoint, or subcommand changes, or when an upstream scan flags drift. Process guidance only: `src/upstream-contracts.ts` is the mechanical source of truth.

Licence
MIT
Last repository change
09.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
3
Deprecation

No signals detected. Repository changed on 09.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Track and maintain the upstream Cursor Agent CLI contract. Use when Cursor ships a CLI release, when a `cursor-agent` flag, execution mode, session command, ACP entrypoint, or subcommand changes, or when an upstream scan flags drift. Process guidance only: `src/upstream-contracts.ts` is the mechanical source of truth.

Original author description

Track and maintain the upstream Cursor Agent CLI contract. Use when Cursor ships a CLI release, when a `cursor-agent` flag, execution mode, session command, ACP entrypoint, or subcommand changes, or when an upstream scan flags drift. Process guidance only: `src/upstream-contracts.ts` is the mechanical source of truth.

How it works

  1. Identity
  2. Gateway use
  3. Scan for upstream change
  4. Update procedure
  5. Cursor-specific notes
Original SKILL.md headings · 120 lines, 813 words
SKILL.md preview
---
name: provider-cursor
description: "Track and maintain the upstream Cursor Agent CLI contract. Use when Cursor ships a CLI release, when a `cursor-agent` flag, execution mode, session command, ACP entrypoint, or subcommand changes, or when an upstream scan flags drift. Process guidance only: `src/upstream-contracts.ts` is the mechanical source of truth."
metadata:
  author: verivus-oss
  version: "1.0"
---

# Provider: Cursor Agent CLI

Keep the gateway's Cursor (`cursor-agent`) integration aligned with the upstream
CLI. This skill does not define argv or environment behaviour. The single
mechanical source of truth is `UPSTREAM_CLI_CONTRACTS.cursor` in
`src/upstream-contracts.ts`, enforced by `validateUpstreamCliArgs` and
`validateUpstreamCliEnv`. Do not re-encode flags, execution modes, ACP rules,
or session rules here or in TOML.

## Identity

| Field               | Value                                                                         |
| ------------------- | ----------------------------------------------------------------------------- |
| CliType             | `cursor`                                                                      |
| Executable          | `cursor-agent`                                                                |
| Distribution        | Cursor Agent vendor distribution                                              |
| CLI docs            | https://cursor.com/cli                                                        |
| ACP docs            | https://cursor.com/docs/cli/acp                                               |
| Parameter reference | https://cursor.com/docs/cli/reference/parameters                              |
| Watch categories    | `flags`, `subcommands`, `session-resume`, `execution-modes`, `acp-entrypoint` |

These values mirror `UPSTREAM_CLI_CONTRACTS.cursor.upstreamMetadata` and
`docs/upstream/provider-sources.dag.toml` (`[providers.cursor]`). The TypeScript
metadata is authoritative; the TOML is scanner input only.

## Gateway use

1. Discover the live gateway surface before relying on Cursor-specific controls:
   ```
   provider_tool_capabilities({cli:"cursor"})
   ```
   For a cached read-only resource, use `provider-tools://cursor`.
2. Use `cursor_request` for normal work and `cursor_request_async` for
   long-running work. Sync calls may auto-defer; poll `llm_job_status` and fetch
   with `llm_job_result` when that happens.
3. Omit `model` unless the caller explicitly requests one. Use only controls
   reported by `provider_tool_capabilities`, especially execution mode, sandbox,
   workspace, and session controls. Cursor must use
   `approvalStrategy:"legacy"`: it rejects `mcp_managed` before launch because
   ambient MCP configuration cannot be isolated, and `approvalPolicy` has no
   effect.
4. Keep provider-owned MCP configuration separate from gateway metadata. Do not
   assume every Cursor CLI control is safe to expose through a request.
5. Cursor accepts flat `prompt` only, not `promptParts`. `workingDir` selects
   the child process cwd on `transport:"cli"`, as it does for every other
   provider. It is CLI-only: `transport:"acp"` rejects it in
   `rejectUnsupportedCursorAcpParams` alongside `addDir`, because the ACP route
   resolves its own scope and would otherwise discard it silently. Its
   `workspace`
   field is separate and selects a local target directory, registered alias, or
   provider-native `.code-workspace` file. A directory/alias establishes child
   cwd; a workspace file remains a native argument and is not misused as
   `spawn.cwd`. Because both inputs can name a cwd, `resolveCursorWorkingDir`
   rejects an absolute workspace path that disagrees with `workingDir` instead
   of ranking them; identical values are admitted. Verify the
   target before reviewing concurrent repositories. An unregistered relative
   value remains a provider-native saved-workspace name and is passed through
   verbatim, never resolved against the gateway process cwd. Use an absolute
   path when selecting an unregistered local directory as child cwd.
6. Use a real resumable Cursor chat only when the response reports it as
   resumable. Gateway bookkeeping IDs are not automatically valid Cursor chat
   IDs. Continuation remains provider-native under legacy. A cwd-scoped
   `resumeLatest` needs a stable selected target.
7. Native ACP is capability-gated. It rejects `approvalStrategy:"mcp_managed"`
   and any `approvalPolicy`, as does the Cursor CLI gateway path. Probe
   `cursor-agent acp --help` when validating the installed entrypoint.
8. An unscoped CLI child uses a fresh neutral temporary cwd, not the gateway
   repository. Cursor's argv-bound prompt rejects oversized UTF-8 input as
   non-retryable `input_too_large`; the gateway never truncates it. All other
   caller-controlled argv values are admitted in their final encoded form
   before spawn. Embedded NUL bytes return non-retryable `invalid_input`
   without exposing the rejected value.

### Full-access review handoff

For a user-authorized exhaustive review that needs full provider permissions and
native MCP access, do not infer the launch controls from this maintenance guide.
Follow `multi-llm-review`'s full-access protocol, inspect the current request
schema and live capability response, and use a fresh target-checkout
`node dist/index.js --transport=stdio` gateway rather than a global process.
Reapply the grant on every new job, preserve native MCP configuration without a
pretend gateway allowlist, send the corrective-program report and exact
diff/file identity, set no caller caps, and honor a user-required 90-second
progress cadence. The reviewer must independently inspect code, docs, tests,
and commands before it can approve.

## Scan for upstream change

```bash
npm run upstream:scan -- --provider cursor
npm run upstream:scan -- --live --provider cursor --fail-on-critical
npm run upstream:scan -- --provider cursor --probe-installed --fail-on-critical
npm run upstream:scan -- --live --provider cursor --probe-installed --write-snapshot --write-report
```

A failed source fetch is advisory unless `--fail-on-critical` is passed. Use the
installed help probe as the primary signal for rapidly changing command surface.

## Update procedure

1. Edit `UPSTREAM_CLI_CONTRACTS.cursor` in `src/upstream-contracts.ts`: flags,
   arities, enums, execution modes, session rules, ACP probe commands, and
   catalogued subcommands belong there.
2. Add conformance fixtures that prove every new accept and reject behavior.
3. If a source URL or watch category changes, update TypeScript metadata first,
   then mirror it in `docs/upstream/provider-sources.dag.toml`.
4. Verify with `npm run build`, `npm run upstream:contracts`, and targeted
   provider tests before the full suite.

## Cursor-specific notes

- Tested against `cursor-agent 2026.09.02-c22c1a3`.
- Root commands include authentication, MCP, worker, update, chat/session, and
  rule-management surfaces. Catalog them with an explicit risk and exposure tier
  before exposing any of them through gateway admin or request tools.
- Keep destructive or interactive commands, including worker startup and any
  session mutation, catalog-only unless an approval-gated product surface is
  deliberately added.
Files in this package (2)
  • SKILL.md 7 KB
  • agents/openai.yaml 1 KB

Versions

The database has no other skills named provider-cursor.

Database snapshot: 13.11.2026 · package version 5fda4abfce34 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100provider-devin
    Track and maintain the upstream Devin CLI contract. Use when Devin ships a CLI release, when a `devin` flag, permission mode, ACP entrypoint, or subcommand changes, or when an upstream scan flags drift. Process guidance only: `src/upstream-contracts.ts` is the mechanical source of truth.
  • 100provider-claude
    Track and maintain the upstream Claude Code CLI contract. Use when Anthropic ships a Claude Code release, when a `claude` flag/output/permission/subcommand behaviour changes, or when an upstream scan flags drift. Process guidance only; `src/upstream-contracts.ts` is the mechanical source of truth.
  • 95upgrade-claude-adapter
    Sync this fork of @anthropic-ai/claude-agent-acp (packages/agent/src/adapters/claude) with a newer upstream release: bump the claude-agent-sdk / @agentclientprotocol/sdk, port upstream bug fixes and new SDK message handling, preserve the fork's divergences, verify, and update…
  • 85cursor-agent
    When the user wants the local cursor-agent CLI run, its installation or login changed, its connected tools changed, or a Cursor worker started.
  • 100acp-runner
    How to drive `kiro-cli acp` from Node.js using the spike client in spikes/acp/src/acp-client.ts — spawn, initialize, session/new, streamed session/prompt, session/cancel with cooldown, session/request_permission handling, and credit metering. Use when building or debugging…
  • 100cursor-delegate
    Delegate coding tasks to the Cursor Agent CLI (`cursor-agent`) only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.