With Cursor’s Slack integration, you can use Background Agents to work on your tasks directly from Slack by mentioning @Cursor with a prompt.

Get started

Installation

  1. Go to Cursor integrations

  2. Click Connect next to Slack

  3. You’ll be prompted to install the Cursor Slack app in your workspace.

  4. After installing in Slack, you’ll be redirected back to Cursor to finalize setup

    1. Connect GitHub (if not already connected)
    2. Set default settings like repository, model and branch (read more further down)
    3. Enable usage based pricing
    4. Update privacy mode
  5. Once this is configured you start using Background Agents in Slack by mentioning @Cursor

How to use

Just @Cursor and give the prompt you want. This is usually enough for most use cases, but you can also use the commands below to customize your agent.

For example, you can mention @Cursor fix the login bug directly in your conversation, or use more specific commands like @Cursor [repo=torvalds/linux] fix bug to target a particular repository.

Commands

Run @Cursor help to see a list of up to date commands.

CommandDescription
@Cursor [prompt]Start a Background Agent. In threads with existing agents, adds followup instructions
@Cursor settingsConfigure your defaults, and the channel’s default repository
@Cursor [options] [prompt]Use advanced options: branch, model, repo
@Cursor agent [prompt]Force create a new agent in a thread
@Cursor list my agentsShow your running agents

Using thread context

Background Agents can understand and use the context from an existing thread discussion. This is particularly useful when your team has been discussing an issue and you want the agent to implement the solution based on that conversation.

S
Sarah2:30 PM
Hey team, we're getting reports that users can't log in after the latest deploy
M
Mike2:32 PM
I checked the logs - looks like the auth token validation is failing on line 247 of auth.js
A
Alex2:33 PM
Oh, I think it's because we changed the token format but didn't update the validation regex
S
Sarah2:35 PM
Yeah, the regex still expects the old format. We need to update it to handle both old and new formats for backwards compatibility
Y
You2:36 PM
@Cursor fix this
1

Background Agents read the entire thread for context when invoked, allowing them to understand and implement 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 followup instructions (only works if you own the agent). Use @Cursor agent [prompt] to launch a separate agent.

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

Use the context menu (⋯) on an agent’s response to add followup instructions via a modal. This is useful when multiple agents exist in a thread and you need to specify which one to follow up on.

Status updates & handoff

When a Background Agent is running, you’ll first get an option to Open in Cursor.

When Background Agent is done, you’ll get a notification in Slack and an option to view the created PR in GitHub.

Managing agents

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

You can manage your Background Agents using the context menu by clicking the three dots (⋯) on any agent message.

Available options include:

  • Add follow-up: Add additional instructions to an existing agent
  • Delete: Stops and archives the Background Agent
  • View request ID: View the unique request ID for troubleshooting (include when reaching out to support)
  • Give feedback: Provide feedback about the agent’s performance

Configuration

Default settings and privacy options can be managed from Dashboard → Background Agents.

Settings

Default Model

Used when no model is explicitly specified with @Cursor [model=...]. See settings for currently available options.

Default Repository

Used when no repository is specified. Use one of the following formats:

  • https://github.com/org/repository
  • org/repository

If you reference a non-existent repository, it will appear as if you don’t have access to it. This will be indicated in the error message when the Background Agent fails to start.

Base Branch

Starting branch for Background Agent. We recommend leaving it blank to use the repository’s default branch (often main)

Channel Settings

You can configure default settings at the channel level using @Cursor settings. These settings are configured per team and override your personal defaults for that specific channel.

This is particularly useful when:

  • Different channels work on different repositories
  • Teams want consistent settings across all members in a channel
  • You want to avoid specifying the repository in every command

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 Background Agents in that channel will use these defaults

Channel settings take precedence over personal defaults but can still be overridden by explicit options like @Cursor [repo=...] [prompt]

Privacy

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

If you’re using Cursor in Slack Connect to communicate with other Slack Workspaces, or if you have channels in your workspace with external members like Guests, you can choose to display agent summaries in external channels.

Permissions

Cursor requests these Slack permissions to enable Background Agents to work within your workspace

PermissionDescription
app_mentions:readDetects when users @mention Cursor to start Background Agents and respond to requests.
channels:historyReads previous messages in threads to understand context when users add follow-up instructions to existing Background Agents.
channels:joinAutomatically joins public channels when users invite it or request help, eliminating the need for manual channel management.
channels:readAccesses basic channel metadata (IDs and names) to post replies and status updates in the correct location.
chat:writeSends status updates, completion notifications, and PR links back to users when Background Agents finish tasks.
files:readDownloads files shared by users (logs, screenshots, code samples) to provide additional context to Background Agents.
files:writeUploads visual summaries of agent changes so users can quickly review what was modified without opening the full PR.
groups:historyReads previous messages in private channels to maintain context for follow-up instructions and multi-turn conversations.
groups:readAccesses private channel metadata (IDs and names) to post responses in the correct thread and maintain conversation flow.
im:historyAccesses direct message history to understand context when users continue conversations or add follow-up requests.
im:readReads DM metadata to identify participants and maintain proper conversation threading in private messages.
im:writeInitiates direct messages to send private notifications, sensitive updates, or when users prefer individual communication.
mpim:historyAccesses group DM history to understand multi-participant conversations and provide contextual responses to all members.
mpim:readReads group DM metadata to address participants properly and ensure responses reach all intended recipients.
reactions:readObserves emoji reactions on messages to understand user feedback and update agent status based on user confirmation signals.
reactions:writeAdds emoji reactions to mark agent status - ⏳ for running, ✅ for completed, ❌ for failed - providing instant visual feedback.
team:readIdentifies workspace details (name, domain, icon) to separate multiple workspace installations and apply correct settings.
users:readMatches Slack users with Cursor accounts using profile information to verify permissions and ensure secure agent access.