Integrations

Slack

View as Markdown

With Grok Build's integration for Slack, you and your teammates can collaboratively work on tasks and steer multiplayer Cloud Agents directly from Slack by mentioning @Cursor with a prompt. The app appears in Slack as Cursor until Dec 7, when it's renamed to Build (fka Cursor) and the handle becomes @Build. You don't need to reinstall or reauthorize the app.

Get started

Installation

  1. Go to Grok Build integrations

  2. Click Connect next to Slack or go to installation page from here

  3. You'll be prompted to install the Build app for Slack in your workspace.

  4. After installing in Slack, you'll be redirected back to Grok Build to finalize setup

    1. Connect a repository provider (if not already connected) and pick a default repository
    2. Enable usage-based pricing
    3. Confirm privacy settings
  5. Start using Cloud Agents in Slack by mentioning @Cursor

How to use

Mention @Cursor and give your prompt. Grok Build tries to detect a repository, model, base branch, or named cloud agent environment from your message. It also uses your recent agent activity when selecting a repository.

For a named environment, include its name in your prompt. For example: @Cursor use the Platform environment to update the shared API.

Agents started in Slack run under a team-owned service account by default so teammates can steer the same thread together, while every message still uses the sender's own MCP connections, approvals, PR and commit credit, and billing.

Commands

Run @Cursor help for an up-to-date command list.

CommandDescription
@Cursor [prompt]Start a Cloud Agent. In threads with existing agents, adds follow-up instructions. Who can follow up is controlled by Team follow-ups, not ownership alone.
@Cursor settingsConfigure defaults and channel's default repository. Also shows the team default pool and the channel default pool
@Cursor [options] [prompt]Set the target, model, branch, PR behavior, worker, or output channel for a run
@Cursor agent [prompt]Force create a new agent in a thread (e.g. @Cursor start a new agent to fix billing)
@Cursor list my agentsShow your running agents
@Cursor poolShow the team default pool and this channel's default pool for Slack launches
@Cursor pool set <name>Set the team default pool (team admins)
@Cursor pool unsetClear the team default pool (team admins)
@Cursor pool set <name> channelSet this channel's default pool (any team member)
@Cursor pool unset channelClear this channel's default pool (any team member)

Options

Customize Cloud Agent behavior with these options:

OptionDescriptionNatural language exampleInline example
repoUse a specific repositoryin acme/backendrepo=acme/backend
env / environmentUse a named cloud agent environmentuse the Platform environmentenv=Platform
branchUse a specific base branchwork from the dev branchbranch=dev
modelUse a specific modelwith opusmodel=opus
autoprEnable or disable automatic PR creationInline option requiredautopr=false
worker / machineRun on a named My MachineInline option requiredworker=my-devbox
poolRun on a named pool. Optional when the channel has a channel default pool or your team has a team default poolInline option requiredpool=my-pool
self_hosted / shRun on one of your pools. Uses the channel default pool or team default pool when one is set, and self_hosted=false skips both. Takes true/t/1 or false/f/0Inline option requiredself_hosted=true or sh=1
channelPost agent updates in another channel you and Grok Build can accessInline option requiredchannel=#eng-bots

Syntax formats

Natural:

Bash

@Cursor with opus, fix the login bug in backend-api

Inline:

Bash

@Cursor env=Platform branch=dev model=opus autopr=false Fix the login bug

Use quotes for environment names with spaces:

Bash

@Cursor env="Platform Services" Update the shared API

Option precedence

When combining options:

  • Explicit values override defaults
  • Later values override earlier ones if duplicated
  • Inline options take precedence over settings modal defaults
  • env takes precedence over repo when both are present
  • pool, worker, machine, and self_hosted=false (or sh=0) take precedence over the channel default pool and the team default pool

The bot parses options from anywhere in the message, allowing natural command writing.

Grok Build ignores key=value options inside triple-backtick code blocks, even one-line blocks, and leaves the code in your prompt as written. In this message, pool=None is inside the code block, so it doesn't pick a pool:

Bash

@Cursor why does this crash? ```engine = create_engine(db_url, pool=None)```

Using thread context

Cloud Agents understand and use context from existing thread discussions. Useful when your team discusses an issue and you want the agent to implement the solution based on that conversation.

Cloud Agents read the entire thread for context when invoked, understanding and implementing solutions based on the team's discussion.

When to use force commands

When do I need @Cursor agent?

In threads with existing agents, @Cursor [prompt] adds follow-up instructions. Who can follow up is controlled by Team follow-ups. If Team follow-ups is Disabled, only the person who started the agent can follow up. To launch a separate agent, use @Cursor agent [prompt], or ask in natural language:

Bash

@Cursor start a new agent to refactor billing

Phrases like "create a new agent", "launch a fresh agent", or "new agent please" work the same way.

When do I need Add follow-up (from context menu)?

Use the context menu (⋯) on an agent's response for followup instructions. Useful when multiple agents exist in a thread and you need to specify which one to follow up on.

Following up on a teammate's agent

A follow-up is a new message to an agent that's already running or done, like a reply in its Slack thread.

By default, agents started in Slack run under a team-owned service account rather than your personal account. Because the agent runs as a service account, no person's personal secrets, personal files, or personal tokens enter the machine. That lets teammates safely collaborate in the same thread when Team Followups allows service account agents.

Every message in the thread counts as the work of the person who sent it, not the person who started the thread. For your turn:

  • The agent uses your own MCP connections.
  • Pull requests the agent opens are opened as you.
  • Commits the agent makes give you credit.
  • Approval prompts route to you, and usage is billed to you.

The person who started an agent can always follow up on it. If your team's Team Followups setting doesn't let you follow up, start your own agent in the same thread with @Cursor agent [prompt].

An agent falls back to running as the person who started it when it launches on a personal self-hosted machine, uses a personal environment, runs in a team that restricts Cloud Agent access, or targets a repository whose GitHub App isn't linked to the team.

Direct messages

You can also message Grok Build directly instead of mentioning @Cursor in a channel. A new top-level DM message starts a new agent in its own thread. Replies in that thread follow up on its agent, so you don't need @Cursor there, and the DM context menu doesn't show Add follow-up. If a reply asks for something new, Grok Build can start a new agent in the thread instead, and it replaces the first one.

While the agent works, Grok Build shows its status under the thread, such as when it is reading code, until the agent finishes its turn. To run a second agent at the same time, start a new chat in the DM with a new top-level message, or mention @Cursor in a channel, where each top-level mention starts its own agent.

Status updates & handoff

Before Grok Build starts changing code, it posts a short plan in the thread when you are fixing a bug or when implementation details would help you follow along. Straightforward requests skip that note. While it works, Grok Build updates a short status under the thread.

When Cloud Agent runs, you first get an option to Open in Cursor.

Open in the Agents Window button in Slack

When Cloud Agent completes, you get a notification in Slack and an option to view the created PR in GitHub.

View PR in GitHub in Slack

Managing agents

To see all running agents, run @Cursor list my agents.

Manage Cloud Agents using the context menu by clicking the three dots (⋯) on any agent message.

Slack agent context menu

Available options:

  • Add follow-up: Add instructions to an existing agent. Not shown in DMs, where a reply in the thread follows up
  • Switch repository: Start a new agent with the same request on a different repository or cloud agent environment, from that target's default branch. The first agent's changes don't carry over; its branch and pull request stay as they are
  • Delete: Stop and archive the Cloud Agent
  • View request ID: View unique request ID for troubleshooting (include when contacting support)
  • Give feedback: Provide feedback about agent performance

If the agent needs a repository or environment outside the current one, Slack also shows Switch repository on the launch message. Choosing a new target starts a new agent the same way.

Configuration

Manage default settings and privacy options from Grok Dashboard → Cloud Agents.

Settings

Default model

Used when no model is specified in your message. See settings for available options.

Repository selection

Grok Build automatically selects the right repository based on:

  1. Your message content: Repository names or keywords in your prompt
  2. Recent agent activity: Repositories you've used recently
  3. Routing rules: Custom keyword-to-repo mappings (see below)
  4. Default repository: Fallback when no match is found

To use a specific repository, include its name in your message. For example: @Cursor in mobile-app, fix the login bug.

Base branch

Starting branch for Cloud Agent. Leave blank to use the repository's default branch (often main)

Team for Slack agents

If you're on more than one paid Grok Build team, choose which team your Slack agents run under. Agents you start from Slack run, bill, and use settings under that team. Pick it under Cursor Team when you link your Slack account, or change it later with Team for Slack Agents in Grok Dashboard → Cloud Agents. If your Slack workspace is restricted to one Grok Build team, Slack agents always run under that team.

Reply mode

Choose how Grok Build handles plain replies in its Slack threads. Team admins set Reply mode under Preferences in the Slack section of Integrations in the dashboard. Members see it read-only.

  • Follow threads (default): Grok Build follows along in its threads and responds when a reply is useful to it.
  • Mentions only: Grok Build ignores plain replies in an agent's thread. They don't become follow-ups or steer the running agent. Answers to a question the agent asked in the thread, @Cursor mentions, and DMs still reach the agent.

The setting of the team that owns the agent applies. For a personal agent with no owning team, the setting of the team that started it applies.

Channel settings

Configure default settings at the channel level using @Cursor settings. These settings are per team and override your personal defaults for that channel.

Channel settings only apply to public channels.

Particularly useful when:

  • Different channels work on different repositories
  • Teams want consistent settings across all members

To configure channel settings:

  1. Run @Cursor settings in the desired channel
  2. Set the default repository for that channel
  3. All team members using Cloud Agents in that channel use these defaults

Anyone on your Grok Build team can change a channel's default repository or default pool. Grok Build replies in the thread under the @Cursor settings message with who made each change and the new value. When the change replaces an existing default, the reply names both, for example "changed this channel's default Self-Hosted pool from secure to gpu". If the channel already had that value, you get a private reply saying nothing changed.

Channel settings take precedence over personal defaults but can be overridden by mentioning a specific repo in your message.

Routing rules

Routing rules let you define keywords that automatically map to a target. When your message contains a keyword, Grok Build routes the agent to the associated repository or cloud agent environment. Environments can bundle multiple repositories, so one keyword can start an agent with every repo it needs already configured.

Setting up routing rules

  1. Go to Grok Dashboard → Cloud Agents
  2. Find the Routing Rules section
  3. Add keyword-to-target mappings, pointing each keyword at a repository or an environment

Example rules

KeywordTarget
frontendacme/web-app
mobileacme/mobile-app
apiacme/backend-services
platformPlatform environment

With these rules configured:

  • @Cursor fix the frontend nav bug → routes to acme/web-app
  • @Cursor update the mobile onboarding flow → routes to acme/mobile-app
  • @Cursor add a migration across the platform → starts in the Platform environment, with all its repos ready

Targeting an environment is useful for multi-repo environments. Learn how to configure one in the cloud agent docs, including multi-repo environments.

How routing works

Grok Build evaluates your message in this order:

  1. Your message content: Repository names or keywords in your prompt
  2. Recent agent activity: Repositories you've used recently
  3. Routing rules: Custom keyword-to-target mappings (repository or environment)
  4. Channel default: The repository set for this channel
  5. Default repository: Fallback when no match is found

Team default pool

Team admins can set one pool as the default for @Cursor launches. Members then run on that pool without adding pool=<name> or self_hosted=true to every mention. The default applies to the whole team, in every channel without a channel default pool.

Pools require an Enterprise plan. The team and channel defaults only apply while Enable self-hosted machines is on in the Cloud Agents dashboard. If an admin turns it off, Slack ignores both defaults and mentions run on Grok Build's managed infrastructure.

Manage the default from Slack. Setting or clearing it requires the same permission as changing Self-Hosted settings in the dashboard. Anyone can view it.

Bash

@Cursor pool set my-pool
@Cursor pool
@Cursor pool unset

@Cursor settings also lists the team default pool.

Channel default pool

Anyone on your Grok Build team can give a channel its own pool, the same way they can set the channel's default repository. @Cursor mentions in that channel then run on the channel's pool instead of the team default, and other channels keep the team default. The team default itself stays admin-only.

Run these in the channel you want to change:

Bash

@Cursor pool set my-pool channel
@Cursor pool
@Cursor pool unset channel

@Cursor pool shows the channel's pool next to the team default. To pick from a list instead, run @Cursor settings, click Set Pool for Channel, and choose one of your team's pools. Choose Use the team default (no channel pool) to clear it. Once cleared, mentions in the channel go back to the team default.

Grok Build announces pool changes the same way as other channel settings. The reply names who set, changed, or removed the pool, in a thread under your @Cursor pool command or under the @Cursor settings message when you pick from the list.

How Grok Build picks where a mention runs

Options in your message always win. Grok Build resolves the target in this order:

  1. Options in your message. pool=<name> targets that pool. worker= or machine= targets one of your My Machines. self_hosted=false (or sh=0) runs on Grok Build's managed infrastructure. Each of these skips both default pools. A bare self_hosted=true (or sh=1) fills in the channel default pool, or the team default pool when the channel has none.
  2. Your default My Machines worker. If you have a default worker of your own for the repository, it outranks both default pools.
  3. Channel default pool. Used when the channel you mention Grok Build in has a pool of its own.
  4. Team default pool. Used when your message has none of the options above and the channel has no pool of its own.

Repositories and default pools

Repository selection works the same way with a channel or team default pool: message content, recent activity, routing rules, channel default, then your default repository and the team's. What happens next depends on how the pool is registered:

  • Any repo pool, no repository resolved. Slack starts an agent on the pool without a repository. Source control is up to the worker, as with any any-repo pool. If a default repository does resolve, the agent gets it as context without limiting which workers can claim the run.
  • Repo-bound pool, no repository resolved. Slack rejects the mention with an ephemeral reply instead of falling back to managed infrastructure. Add repo= or pool= to the mention, use self_hosted=false to run on managed infrastructure, or check the default with @Cursor pool and @Cursor settings.
  • Repository resolved and the pool serves it. Slack launches with repo= and pool= set, the same as an explicit pool=<name> mention.
  • Repository resolved but the pool's workers only serve other repositories. Slack rejects the mention with an ephemeral reply. Pick a repository the pool serves with repo=, or a pool that serves this repository with pool=.
  • No workers have connected to the pool yet. @Cursor pool set accepts any name, because pools are durable and their workers come and go. A mention that resolves a repository waits in the pool until a worker joins. A mention without a repository is rejected with an ephemeral reply.

Privacy

Cloud Agents support Privacy Mode.

Read more about Privacy Mode or manage your privacy settings.

Privacy Mode (Legacy) is not supported. Cloud Agents require temporary code storage while running.

Links you post in Slack to Grok Build-hosted pull requests, code, and cloud agent artifacts show a preview. To turn previews off for the links you post, turn off Slack link previews under Pull requests in your account settings. It's on by default.

Display agent summary

Display agent summaries and diff images. May contain file paths or code snippets. Can be turned On/Off.

Display agent summary in external channels

For Slack Connect with other workspaces or channels with external members like Guests, choose to display agent summaries in external channels.

Permissions

Grok Build requests these Slack permissions for Cloud Agents to work within your workspace:

PermissionDescription
app_mentions:readDetects @mentions to start Cloud Agents and respond to requests
channels:historyReads previous messages in threads for context when adding follow-up instructions
channels:joinAutomatically joins public channels when invited or requested
channels:readAccesses channel metadata (IDs and names) to post replies and updates
chat:writeSends status updates, completion notifications, and PR links when agents finish
files:readDownloads shared files (logs, screenshots, code samples) for additional context
files:writeUploads visual summaries of agent changes for quick review
groups:historyReads previous messages in private channels for context in multi-turn conversations
groups:readAccesses private channel metadata to post responses and maintain conversation flow
im:historyAccesses direct message history for context in continued conversations
im:readReads DM metadata to identify participants and maintain proper threading
im:writeInitiates direct messages for private notifications or individual communication
mpim:historyAccesses group DM history for multi-participant conversations
mpim:readReads group DM metadata to address participants and ensure proper delivery
reactions:readObserves emoji reactions for user feedback and status signals
reactions:writeAdds emoji reactions to mark status: an hourglass for running, a check mark for completed, and a cross for failed
team:readIdentifies workspace details to separate installations and apply settings
users:readMatches Slack users with Grok Build accounts for permissions and secure access

Unlinking Slack

To unlink your Slack account, go to Grok Dashboard → Cloud Agents and click Unlink Slack next to Slack integration. You'll need to link it again before you can start Cloud Agents from Slack.

You can also unlink from Integrations in the dashboard: click Manage next to Slack and choose Unlink. This unlinks your Slack account from Grok Build in every workspace you connected.

Disclaimer

Grok Build can make mistakes. Please double-check code and responses.

Privacy policy

For information about how Grok Build collects, uses, and protects your data, see the Privacy Policy.


Last updated: November 27, 2026