cursor-worker

cursor-worker is an agent for Claude Code from smk-labs/claude-plugins. It costs 81 tokens per session (1,150 once invoked), scanned A, original, MIT.

An agent that sends one self-contained coding or research task to Cursor’s command-line agent, using Cursor’s subscription quota.

In plain words
What is it for?
Use it when you want Cursor to implement or investigate one defined piece of work, including longer tasks that need to resume across several runs.
Why use it?
It lets you offload a substantial, clearly bounded task while keeping the task framing and final result in Claude Code.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the cursor-delegate plugin — 4 skills, 1 agent shipped together

Good fit Use it when you want Cursor to implement or investigate one defined piece of work, including longer tasks that need to resume across several runs.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add smk-labs/claude-plugins
Claude Code
/plugin install cursor-delegate

Made for: Claude Code.

Or install cursor-delegate, the plugin that ships this one along with the rest of its 4 skills, 1 agent.

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-worker

README.md
[![agentmods](https://agentmods.dev/badge/agents/smk-labs/claude-plugins/cursor-worker/github.svg)](https://agentmods.dev/agents/smk-labs/claude-plugins/cursor-worker)
Your own site
<a href="https://agentmods.dev/agents/smk-labs/claude-plugins/cursor-worker"><img src="https://agentmods.dev/badge/agents/smk-labs/claude-plugins/cursor-worker/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cursor-worker

Your own site · 80×15
<a href="https://agentmods.dev/agents/smk-labs/claude-plugins/cursor-worker"><img src="https://agentmods.dev/badge/agents/smk-labs/claude-plugins/cursor-worker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,150 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00081 $0.01150
Opus 5.5 $0.00032 $0.00460
Sonnet 5.5 $0.00016 $0.00230
Haiku 4.5 $0.00008 $0.00115

Measured 1mo ago against content hash ab2b2ee9dc52, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cursor-worker scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

cursor-delegate/agents/cursor-worker.md · 41 lines

How it starts

The opening of the file, as written. The whole thing — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You hand ONE self-contained task to Cursor and return its result. cursor-agent does the work; you frame the task, run it, and report back.

How to run

Pick the runner by duration — never start a single stream that could outlive ~4 minutes (flaky networks/VPNs kill streams at ~5-6 minutes; measured):

  • Quick task (< ~4 min of agent work): the cursor_run MCP tool, or "${CLAUDE_PLUGIN_ROOT}/scripts/cursor-run.sh". No approval flags needed: every runner passes --force --approve-mcps itself.
  • Anything longer: the legged runner — it chains ~4-minute legs on ONE --resumed session until the worker prints DONE-ALL, so a connection drop costs one leg, not the job:
"${CLAUDE_PLUGIN_ROOT}/scripts/legged-run.sh" --cwd <repo> [--account <name>] "<task>"

Exit 1 means the leg budget ran out — rerun the same command to continue (state: ~/.claude-deck/cursor/legs/<id>). --worktree isolates parallel edits; --force is automatic.

  1. Account is optional. Omit it and auth comes from the default entry of ~/.claude-deck/cursor/agent-keys.json (a stable API key — the normal case; a browser login is only a last-resort fallback). Pass --account <name> only if the user runs several Cursor seats and names one.
  2. Task must be self-contained. cursor-agent has no memory of this conversation: put file paths, the goal, and acceptance criteria in the task string.
  3. Model: two quota pools. --model auto (and composer-*, cursor-*) draws Cursor's large first-party allowance; claude-* and gpt-* draw the small API allowance that empties first. Mechanical work goes first-party; keep an API-pool model for prose or judgment. Say which you used. Full rule: the cursor-orchestrate skill, "Model routing".
  4. Dry-run first for quick tasks (--dry-run, key redacted) to show what will run, then run for real.
  5. Resume, never restart. Every run yields a session_id (the cursor_run footer; <state>/session_id for legged runs) — capture it. On any failure or interruption, harvest the partial output (last_result.txt, leg-N.json), then continue that same session (extraArgs: ["--resume", "<id>"], or rerun the identical legged command) with a prompt like "Continue exactly where you left off; finish the remaining work." Start over only if no session was ever created (auth/CLI setup failure).
  6. Runs close themselves. The runner kills cursor-agent right after its result appears and hard-caps hung runs, so never sit waiting on a "stuck" delegation — if it returned, it is over; if it exited 1, resume it.
  7. Sandbox off; keychain noise is not an auth failure. cursor-agent touches the macOS Keychain at startup even with CURSOR_API_KEY set. Sandboxed Bash kills it every time (Security command failed: … code: 45) — run the scripts with dangerouslyDisableSandbox: true. Concurrent startups can also race on the keychain (Password not found); the runners retry that on their own — just rerun if a one-shot run hit it.

Read the full file on GitHub · 41 lines

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. 1mo ago First seen · 41 lines · 81 tokens per session scan A ab2b2ee9dc52

Subscribe to this mod's changes

cursor-worker is an agent published in the GitHub repository smk-labs/claude-plugins (11 stars, last pushed 28d ago), licensed MIT. It adds 81 tokens to every session and 1,150 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

qg-implementation

Use this agent to validate Implementation phase output against domain-specific quality criteria. Most comprehensive QG — covers hallucination detection, contract conformance, file size, test distribution, V-Model levels, AC coverage, design spec compliance, and execution results. Returns PASS/WARN/FAIL verdict.…

baodq97/open-plugin · 163 tokens

knowledge-curator

Use this agent to capture knowledge from AI-assisted development cycles. Supports two modes: Per-Phase (lightweight capture after each phase approval) and End-of-Cycle (full retrospective). Also handles QG failure capture — extracting failure patterns into prevention rules. Context: A phase has just been approved and…

baodq97/open-plugin · 319 tokens

codebase-analyzer

Use this agent when you need to understand HOW existing code works, trace implementation details, or document technical architecture.

NikiforovAll/claude-code-rules · 27 tokens

prd-compiler

Use this agent to compile all Design Thinking artifacts into a vbounce-compatible Product Requirements Document (PRD). Invoked after the Prototype phase is approved. This is pure compilation — no user conversation needed. Context: All Design Thinking phases complete, ready to compile PRD. user: "All phases approved.…

baodq97/open-plugin · 123 tokens

scaffold-builder

Sets up the project scaffold for a web design — Vite + React + TypeScript project initialization, Tailwind CSS configuration, global styles from design tokens, shared components (navigation, footer, layout), and shared media assets (logo, product images reused across pages). Runs before page-builder agents to…

lukaskellerstein/claude-my-marketplace · 153 tokens

demo-remotion-builder

Builds or extends the Remotion compositions in demo/studio for a demo video that needs more than the bundled timeline template — a custom section type, brand theming, an animated interstitial, a data-viz beat — and iterates until it typechecks and renders. Use only when the standard timeline-driven template is not…

lukaskellerstein/claude-my-marketplace · 171 tokens