# Slack 启动与接续

> 通过 Slack 提及启动 Cloud Agents，指定环境并管理线程中的后续任务。

- 网址：https://funcoding.ai/agents/cursor/integrations/slack/
- 核实日期：2026-10-07（命令、配置和价格以官方文档为准）
- 官方来源：[Cursor 官方文档：Slack](https://cursor.com/docs/integrations/slack)

---
在 Cursor Integrations 连接 Slack、安装 Cursor App，并完成源码服务、默认仓库、usage-based pricing 和隐私设置。之后在 Slack 用 @Cursor 加提示启动 Cloud Agent。

## 常用命令

| 命令 | 用途 |
| --- | --- |
| `@Cursor help` | 查看当前帮助 |
| `@Cursor [prompt]` | 启动任务；已有 Agent 的线程中作为 follow-up |
| `@Cursor agent [prompt]` | 在线程中强制创建新 Agent |
| `@Cursor settings` | 默认值与频道设置 |
| `@Cursor list my agents` | 查看运行中的任务 |

谁可以 follow-up 由 Team follow-ups 设置决定；Disabled 时只有 owner 可以继续。一个线程有多个 Agent 时，从对应回复的菜单选择 Add follow-up，避免指令送到错误任务。

## 指定本次任务

支持 repo、env/environment、branch、model、autopr、worker/machine、pool、self_hosted/sh 和 channel。仓库、模型、分支、环境可自然语言说明；autopr、worker、pool、self_hosted 和 channel 使用 inline 选项。

```text
@Cursor env="Platform Services" branch=dev autopr=false Fix the login bug
```

env 优先于 repo；显式值优先默认值，重复参数后值优先。带空格环境名使用引号。选项可位于消息任意位置，但三反引号代码块内的 key=value 不解析为路由参数，即使代码块只有一行。

channel 指定的目标必须是用户和 Cursor 都能访问的频道。运行位置及默认池见[Slack 仓库与资源池路由](https://funcoding.ai/agents/cursor/integrations/slack-routing/)。

## 线程上下文与管理

调用时 Cursor 会读取整个线程作为上下文。任务运行期间显示状态，必要时先发简短计划，完成后给出结果与 PR 入口。

回复菜单可 Add follow-up、Switch repository、Delete、View request ID、Give feedback。这里 Delete 会停止并归档 Cloud Agent，不等于 REST 的永久删除。Switch repository 用相同请求重新选择仓库或命名环境。

## 隐私与权限

Cloud Agents 支持 Privacy Mode，不支持 Legacy，运行需要临时代码存储。Display Agent Summary 可控制摘要/diff 图片，另可控制 Slack Connect 或有外部成员频道的摘要显示，内容可能含路径或代码片段。

Slack App 权限包括 mentions、频道/私有频道/私聊/群聊上下文、文件读写、消息、reactions 和用户/团队元数据；具体以安装界面及官方表为准。不要把[自动化 Slack 触发器](https://funcoding.ai/agents/cursor/cloud/automations/)仅限公共频道的规则套到全部交互集成。
