Learning resourcesReviewed · Anysphere

Cursor Agent SDK: Slack Agents

Slack Agents is a guide for developers building AI bots in Slack, with coding and Slack app permissions required. It covers conversation sessions, three reply modes, channel triggers and connection commands. SDK installation, runtime compatibility and operating costs are not specified.

Researched 23 Nov 2026

In short.

Slack Agents is a guide for developers adding AI agents to Slack, with SDK installation and operating costs left unspecified. Its TypeScript examples cover threaded conversations, complete or streamed replies, agent-controlled updates, message filters and Slack app setup. Important defaults include shared sessions across DM messages and continuation by anyone in a thread. Cursor-managed apps request broad permissions by default, with customization available. The documented behavior has not been verified through execution.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete supplied page at [https://cursor.com/docs/agent-sdk/guides/slack.md], including all examples, tables, permission restrictions, setup notices and the sitemap link. Linked CLI documentation, Deployed Agents dashboard, manual setup skill and sitemap contents are excluded. No separate license notice or library file was supplied. Nothing was executed; installation, message delivery, session isolation, permission enforcement and hosting behavior remain unverified.

The overview

identity

Slack Agents is a documentation guide hosted by Cursor at [https://cursor.com/docs/agent-sdk/guides/slack.md]. It teaches the Slack connection for Agent SDK projects through configuration examples and CLI commands.

The examples import slackChannel from @grok/agent-sdk/channels/slack and a communication extension from @grok/agent-sdk/extensions/slack-communication. The page provides no package version or explanation of that namespace.

assessment

The guide is useful when a developer needs concrete control over how a Slack agent starts conversations, maintains context and displays progress. It gives enough configuration detail to distinguish several implementation choices.

It is incomplete as a standalone introduction to building and operating an agent. SDK installation, model configuration, supported runtimes and complete hosting requirements are not established. Installation success, reliability and performance remain unverified.

users

The examples suit developers building team assistants or triage bots that respond inside Slack. Maintainers can use the session and access controls to decide who can continue a conversation and whether external participants can interact.

Beginners need familiarity with TypeScript configuration, command-line tools, environment variables and Slack app permissions. The page demonstrates those concepts without teaching their foundations.

capabilities

Agents can respond to mentions, DMs and permitted channel posts. Post mode sends one completed reply after showing a status chip. Stream mode grows a message as the model writes, with optional reasoning and tool cards. Agentic mode lets the agent choose when to post progress and the final reply.

Agentic progress can appear as separate timeline cards or one checklist. Reusing a card ID updates that step. The slack-communication extension accepts tone instructions covering voice, detail, formatting and update structure.

Using it

requirements

The documented setup uses an Agent SDK project, CLI access, Slack installation permissions and bot and app tokens. Workspace administrators may need to approve the app. Setting envPrefix to TRIAGE makes the example read TRIAGE_SLACK_BOT_TOKEN and TRIAGE_SLACK_APP_TOKEN.

Cursor-managed apps request permissions covering message history, files, reactions, user information and email addresses, among others. A custom botScopes list replaces the defaults but must retain seven required scopes. The installer also grants Cursor three user scopes on their own account; their names are not supplied, and botScopes does not change them.

mechanism

Mentions and DMs start conversations automatically. Follow-ups in a thread continue its session. All messages in one DM share a session by default; continuation set to slack.dmthread/v2 gives each top-level DM its own session and thread. Anyone in a thread can continue by default, while respondTo set to author restricts continuation to its starter.

Event handlers return an empty object to start a model turn or null to skip it. Hooks can post fixed acknowledgements through ctx.thread.post(), using channel and thread identifiers from ctx.slack. Tools can obtain a Slack Web API client through ctx.host.slack.getClient().

setup

The documented command sequence is agent-sdk login, agent-sdk slack create --dir ., agent-sdk slack doctor --prefix TRIAGE, then agent-sdk serve --dir . --dev. The creation wizard writes tokens to .env.local without printing them. The doctor command checks for missing credentials; this does not establish successful message delivery.

When approval is required, the guide says to keep slack create running and use its Request approval link. Installation from Deployed Agents does not send that request. Custom bot scopes go in slack-manifest.json, followed by slack create again to update and reinstall the app. An existing Slack app can use agent-sdk slack init --manual --dir . --name "Triage", with further installation instructions delegated to a linked skill.

example

The triage example watches permitted top-level channel posts and starts a model turn only when message.markdown contains more than 20 characters. This is a length filter; it does not determine whether a message concerns triage.

Its configuration includes a sample channel ID, a readable channel name and debounceMs set to 15,000. Setup requires --channel-posts and inviting the bot to each allowed channel. Channel-name entries require channels:read. The page explicitly states that debounceMs has no effect on Cursor hosting. The example was not executed.

Assessment & evidence

limitations

Listening for top-level posts requires between one and ten channel IDs beginning with C or G, with optional channel-name entries. A standalone wildcard watches thread replies in joined channels and never starts turns from top-level posts. External participants are blocked by default; blockExternals set to false permits them.

Progress-card titles are limited to 256 characters, and pending status works only with plan display. Custom scopes cannot include the listed forbidden families, including administrative scopes and search:read variants.

The page does not establish retry behavior, duplicate-event handling, concurrency guarantees, rate limits, latency or recovery after failures.

reasoning

The reply modes offer practical choices: post mode suits a single finished answer, stream mode exposes text as it arrives, and agentic mode gives the agent discretion over progress messages. This is an implementation recommendation based on the documented behavior, rather than measured usability results.

Session settings deserve deliberate attention because the default DM session spans multiple messages and thread participation is shared. Choosing per-message DM sessions or author-only continuation changes who contributes context and how conversations are separated.

alternatives

The page offers three reply modes and two app-connection approaches: a Cursor-managed installation wizard and manual setup for an existing Slack app. These choices address communication behavior and app ownership.

It does not compare competing Slack integrations or agent frameworks. Their suitability, costs and feature differences cannot be assessed from this source.

evidence

The source is the complete Slack Agents documentation page, retained as selected-page.txt. It contains TypeScript configurations, event handlers, a JSON scope manifest example and connection commands.

These examples support descriptions of the documented interface and intended behavior. They provide no execution results, benchmarks or security evaluation. No commands or code were executed, and no Slack interactions were verified.

Access & freshness

costs

The page supplies no SDK prices, model usage charges, hosting prices or free allowances. Required Slack plans, billing limits and total operating costs are unknown. No cost estimate can be supported from this page.

rights

The page states no license or redistribution terms for its text or code examples. Reuse rights and output ownership are unknown from this source.

Data retention, deletion and processing terms for Slack messages handled by the agent are also unspecified. The documented permission scopes establish requested API access, without explaining those data-handling terms.

freshness

The supplied snapshot was captured on 23 November 2026 at 18:36:42.010 UTC.

The page states no publication date, update date, SDK package version or compatibility matrix. Compatibility with a particular installed SDK version remains unknown.

actions

Before implementation, establish the supported package version, installation procedure, model configuration, hosting requirements and costs. Review the requested bot and installer permissions, and obtain workspace approval where required.

Choose reply mode, DM session boundaries and thread participation rules explicitly. After configuring credentials, use the documented diagnostic command and verify mentions, DMs, thread continuation and channel triggers in the intended workspace. On Cursor hosting, design channel-trigger behavior with the documented lack of debounceMs support in mind. These are recommended next steps, not completed checks.

Evidence for this report

selected-page.txtselected · checked 2026-11-23