Slack Integration

Ask questions about your codebase directly in Slack

Overview

The Slack integration lets your team ask questions about your codebase directly in Slack. Simply mention @context (or your configured bot name) in any channel and get instant answers powered by Claude Code.

Quick Start

1

Install the Slack App

Go to Slack Agents and click "Connect Slack". You'll be redirected to Slack to authorize the app for your workspace.

2

Create a Slack Agent

After connecting, create a new Slack Agent. Configure the system prompt to define how the bot should respond to questions.

3

Invite the Bot to Channels

In Slack, invite the bot to any channel where you want it to respond:

/invite @context
4

Start Asking Questions

Mention the bot with your question:

@context How do we handle webhook retries?

@context What's the difference between UserService and UserManager?

@context Show me the checkout flow from cart to confirmation

Features

Threaded Conversations

The bot automatically responds in threads to keep channels clean. Follow-up questions in the same thread maintain context from the conversation.

Code Snippets

Responses include syntax-highlighted code snippets with file paths and line numbers, making it easy to find the relevant code.

Multi-Repository Support

If you have multiple repositories connected, you can specify which one to search:

@context in api-service: How do we validate API keys?
Tip

You can customize the bot's name and avatar in your Slack workspace settings. Some teams use names like @codebot or @engineer.

Best Practices

  • Be specific in your questions - include relevant context
  • Use technical terms that appear in your codebase
  • Ask follow-up questions in threads to maintain context
  • Create dedicated channels for code questions (e.g., #ask-codebase)