Cursor runs
Run lifecycle, streaming, follow-ups, and conversation introspection in the Cursor SDK. Use when consuming agent output, handling progress events, or chaining turns.From its SKILL.md
npx -y skills add HKTITAN/cursor-sdk --skill cursor-runsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.1 KB, 431 tokens by cl100k_base, as published. Nobody here has run it
cursor-runs
Everything you do after Agent.create flows through a Run. This skill covers how to issue work, stream events, await results, cancel, and inspect conversation history.
When to use
- Consuming streamed
SDKMessageevents - Implementing follow-up turns on the same agent
- Cancelling or reattaching to a long-running cloud run
- Parsing tool calls, thinking blocks, or assistant text
Sending work
- [[references/send]] —
agent.send(message, options)andSendOptions - [[references/send-options]] — per-run model override, MCP override, callbacks,
force - [[references/follow-ups]] — multi-turn conversations on one agent
Run object
- [[references/run-interface]] —
id,status,result,git,model,durationMs - [[references/wait]] —
await run.wait()andRunResult - [[references/cancel]] —
run.cancel()and cancellation semantics - [[references/status-events]] —
onDidChangeStatuslistener - [[references/operation-support]] —
run.supports(op)andunsupportedReason
Streaming
- [[references/stream]] —
for awaitoverrun.stream() - [[references/sdk-message-types]] — full union: system, user, assistant, thinking, tool_use, status, task, request
- [[references/interaction-updates]] —
onDeltaupdates: text, thinking, tool calls, tokens, steps, summaries, shell - [[references/on-step]] —
onStepstep-level callback
Conversation
- [[references/conversation]] —
run.conversation()returnsConversationTurn[] - [[references/conversation-shapes]] —
agentConversationTurnvsshellConversationTurn, step types
Where to go next
- Lifecycle and creation → [[../cursor-sdk/SKILL]]
- Cloud-specific run features (PRs, artifacts) → [[../cursor-cloud/SKILL]]
- Error classification → [[../cursor-errors/SKILL]]
What ships with it: 14 files
9.2 KB alongside SKILL.md
references/
- cancel.md373 B
- conversation.md478 B
- conversation-shapes.md754 B
- follow-ups.md525 B
- interaction-updates.md838 B
- on-step.md535 B
- operation-support.md560 B
- run-interface.md890 B
- sdk-message-types.md939 B
- send.md575 B
- send-options.md1.1 KB
- status-events.md403 B
- stream.md864 B
- wait.md520 B