@cursor/july

中文文档
0.6.0发布于 2026/11/04SEE LICENSE IN LICENSE.mdTypeScriptES Module近 30 天下载 9190

Build, test, and deploy agents as code on Cursor's agent harness.

原始使用文档
文档目录5 节
  1. Why use it
  2. When to use Agent SDK
  3. Get started
  4. Start from a template
  5. Next steps

Agent SDK

Agent SDK is how Cursor builds bots and agents. It is the open-source version of the engine behind Bugbot, Security Review, Approval Bot, and Rollouts.

An Agent SDK project is a folder of Markdown and TypeScript. Combine model judgment with deterministic code, then make the result available in source control, Slack, issue trackers, and Cursor.

Why use it

  • Bots and agents live in your repo. Review, version, and ship instructions, tools, and evals with the rest of your code.

  • Cursor runs the loop. Your project gets Cursor's models, tool calling, skills, MCP, and subagents.

  • Use it where you work. Trigger a project from source-control events, Slack threads, custom webhooks, or schedules.

  • Test normal TypeScript. Add evals and unit tests without a separate configuration language.

  • Choose where it runs. Deploy to Cursor-managed hosting or run the process on your infrastructure.

When to use Agent SDK

Cursor AutomationsGrok BotAgent SDK
Use forRepeatable jobs driven by a prompt and triggerInteractive agents you work with in CursorAgents that need custom code, integrations, tests, or deployment choices
You defineA prompt, model, and trigger in the dashboardInstructions, skills, and connected tools in the appA versioned Markdown and TypeScript project
Where it runsCursor-managedCursor-managedCursor-managed hosting or your infrastructure
Choose it whenThe job fits a schedule or event triggerYou want an agent without creating a software projectYou want deterministic code around model judgment and a project your team can review and test

Get started

Agent SDK requires Node 22.13 or newer. Install @grok/agent-sdk, create a project, and start the development server:

npm install --global @grok/agent-sdk
agent-sdk init ./my-bot
cd my-bot
agent-sdk dev

For a one-off scaffold without a global install:

npx @grok/agent-sdk init ./my-bot

Open the project in Cursor. Agent SDK uses bot/ for the agent and keeps evals/ at the project root:

my-bot/
├── package.json
├── bot/
│   ├── agent.ts
│   ├── instructions.md
│   ├── tools/
│   ├── skills/
│   ├── mcp-connections/
│   ├── subagents/
│   ├── channels/
│   ├── hooks/
│   └── schedules/
└── evals/

Describe the bot or agent in Cursor, or edit the files yourself.

Start from a template

Pass a template to agent-sdk init when one matches your goal:

TemplateCapability
security-reviewerReview pull requests for exploitable bugs
thermo-quality-reviewReview structural code quality
thermo-reviewReview bugs and breakage
agentic-ownersApply owners policies to pull requests
triage-linear or triage-jiraTriage tracker issues
agent-sdk init ./security-reviewer --template security-reviewer

--template triage selects triage-linear.

Next steps

Run agent-sdk docs to open the full documentation. By default, agent-sdk serve also serves the same documentation at /docs.

The docs include:

  • A complete PR reviewer quickstart
  • GitHub, Slack, webhook, and MCP guides
  • Evals and hillclimbing
  • Deployment and troubleshooting
  • Project layout, CLI, and API reference

版本与发布记录

@cursor/july 共发布 126 个版本,首次发布于 2026/07/16;过去 12 个月发布了 126 个版本。

版本发布日期距今
0.6.0latest2026/11/047 天前
0.5.02026/10/2913 天前
0.4.02026/10/2814 天前
0.3.02026/10/2616 天前
0.2.292026/10/2418 天前
0.2.282026/10/2220 天前

关于 @cursor/july 的常见问题

@cursor/july 是什么?

Build, test, and deploy agents as code on Cursor's agent harness.

如何安装 @cursor/july?

在项目目录运行 npm install @cursor/july,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:zod(^3.25.0 || ^4.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 bdk、agent-sdk,可以用 npx bdk 直接运行。

@cursor/july 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@cursor/july 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@cursor/july 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.13。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@cursor/july 可以商用吗?

@cursor/july 使用 SEE LICENSE IN LICENSE.md 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@cursor/july 的下载量有多少?

根据 npm 官方下载统计,@cursor/july 在 2026/10/11 – 2026/11/09 这 30 天内被下载 9,190 次,日均约 306 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cursor/july 还在维护吗?

最新版本 0.6.0 发布于 2026/11/04(7 天前);至今共发布 126 个版本,其中过去 12 个月发布了 126 个;首次发布于 2026/07/16。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。