cursor-setup

cursor-setup is a command for coding agents from XinyuQu/llm-review. It costs 20 tokens per session (507 once invoked), scanned A, original, Apache-2.0.

A guided setup command for connecting code reviews to Cursor, an AI coding tool with a command-line interface.

In plain words
What is it for?
Preparing Cursor for code reviews through its command-line tool and subscription login.
Why use it?
It checks whether Cursor is installed and logged in, then guides installation and setup.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the llm-review plugin — 1 skill, 16 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/xinyuqu/llm-review/cursor-setup
Clone the repo
git clone --depth 1 https://github.com/XinyuQu/llm-review

Or install llm-review, the plugin that ships this one along with the rest of its 1 skill, 16 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cursor-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/xinyuqu/llm-review/cursor-setup.svg)](https://agentmods.dev/commands/xinyuqu/llm-review/cursor-setup)
Your own site
<a href="https://agentmods.dev/commands/xinyuqu/llm-review/cursor-setup"><img src="https://agentmods.dev/badge/commands/xinyuqu/llm-review/cursor-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 507 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00020 $0.00507
Opus 5 $0.00010 $0.00253
Sonnet 5 $0.00004 $0.00101
Haiku 4.5 $0.00002 $0.00051

Measured 4d ago against content hash 4419d7b8e168, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cursor-setup scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

allowed-tools: Bash(node:*), Bash(npm:*), Bash(curl:*), Bash(bash:*), Bash(sh:*), Bash(brew:*), AskUserQuestion
commands/cursor-setup.md · 27 lines

What it actually says

Guided setup for the cursor provider. Follow this exactly; do not improvise extra steps.

Step 1 — probe status:

node "${CLAUDE_PLUGIN_ROOT}/scripts/llm-review.mjs" setup --provider cursor --json

Parse the JSON: mode, cli (command, installed, installCmd, login), api (hasKey, primaryEnv, keyHelp), ready, resolvedTransport, reviewCommand. Cursor is mode: cli-only (no public chat API) — there is no API-key option.

Step 2 — if already ready: tell the user it's set up via resolvedTransport, then AskUserQuestion once: Keep current setup vs Reconfigure. If keep → show status and stop.

Step 3 — path: mode is cli-only, so go straight to the SUBSCRIPTION FLOW (do not ask API vs subscription).

SUBSCRIPTION FLOW:

  1. If cli.installed is false and cli.installCmd is set: AskUserQuestion once — Install {cli.command} now (Recommended) vs Skip for now. If install, run cli.installCmd via Bash, then re-run the Step 1 probe. If skip, present status and stop.
  2. Persist the choice: node "${CLAUDE_PLUGIN_ROOT}/scripts/llm-review.mjs" config-set --provider cursor --transport cli
  3. Re-run the Step 1 probe. Cursor requires login: tell the user to authenticate themselves in this session by typing: !{cli.login} (i.e. !cursor-agent login) — this is an interactive login you cannot perform for them. They can alternatively set CURSOR_API_KEY in their environment.
  4. Present the final probe output.

Step 4 — finish: state whether the provider is now ready and show the exact review command (reviewCommand, i.e. /llm-review:cursor). Use AskUserQuestion at most twice total in this whole flow.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 27 lines · 20 tokens per session scan A 4419d7b8e168

Subscribe to this mod's changes

cursor-setup is a command published in the GitHub repository XinyuQu/llm-review (6 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 20 tokens to every session and 507 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.