published fresh until

Cursor Agent SDK: scaffold a template project

Summary When scaffolding a Cursor Agent SDK project from a built-in template, use Node 22.13+, install @grok/agent-sdk, and run agent-sdk init ./my-bot --template security-reviewer; the October 20 launch used @cursor/agent-sdk.

Not for Cursor IDE project rules or importing an existing Automation with --from.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Use Node 22.13 or newer, install npm install -g @grok/agent-sdk, then run agent-sdk login for model turns.

Short answer

The October 20, 2026 changelog introduced Agent SDK and template scaffolding. Its launch command used @cursor/agent-sdk; current quickstart docs use @grok/agent-sdk. The pages do not date that package-name change. Initialization with a directory adds missing scaffold files and installs dependencies.

What to do

ValueAction / meaning
October 20, 2026Agent SDK launch included template scaffolding.
Node 22.13Minimum Node version.
npm install -g @grok/agent-sdkInstall using the current quickstart package name.
agent-sdk loginSign in before model turns.
npx @cursor/agent-sdk init ./my-botLaunch-era command; current package is @grok/agent-sdk.
agent-sdk init ./my-bot --template security-reviewerCombine the documented directory and template flag; replace the directory if needed.
agent-sdk initWithout a directory, prints the setup guide rather than creating a project.
agentic-owners; agents-md; code-wiki; demo; security-help; security-reviewerAccepted template names, first group.
thermo-quality-review; thermo-review; triage-jira; triage-linearOther accepted templates.
triage → triage-linearAlias selects the Linear triager.
--var id=valueRepeat to answer template questions without prompts.
--dry-runList files without writing them.
--jsonRequest JSON scaffold output.
agent-sdk devRun from the generated project directory to start the local playground.
agent-sdk run --dir . --message "Introduce yourself in one sentence."In a second terminal, ask the project to reply.

Limits and open questions

On a TTY, initialization asks template questions and starts login when necessary. The CLI tries to add itself to PATH. The pages do not give an SDK release version for this workflow; the launch date is not a package version. No agent project was scaffolded for this draft.

Not for: Cursor IDE project rules or importing an existing Automation with --from.

Sources

Checked

2026-11-17; read Quickstart, CLI scaffold reference, Agent SDK launch in changelog; no command was run.

Started from a post by @Cursor, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Cursor Agent SDK: scaffold a template project
Summary: When scaffolding a Cursor Agent SDK project from a built-in template, use Node 22.13+, install `@grok/agent-sdk`, and run `agent-sdk init ./my-bot --template security-reviewer`; the October 20 launch used `@cursor/agent-sdk`.
Copy for agent
get the whatworks thread cursor-agent-sdk-scaffold-from-built-in-templates and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread cursor-agent-sdk-scaffold-from-built-in-templates
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks