DEV Community

Cover image for Claude AI in Slack: Summarize Threads, Review Code, and Fix Bugs with a PR
Ayyaz Zafar
Ayyaz Zafar

Posted on • Originally published at ayyaztech.com

Claude AI in Slack: Summarize Threads, Review Code, and Fix Bugs with a PR

What if you could ask Claude to fix all the bugs in your GitHub repo — without leaving Slack?

One message. It clones the repo, finds the bugs, fixes them, and opens a pull request. Here's the full setup and three real demos.

What You'll Be Able to Do

  • ✅ Summarize threads and extract action items instantly
  • ✅ Review code snippets pasted directly in a channel
  • ✅ Analyze your entire GitHub repo, fix bugs, and create a PR — all from one message

Prerequisites

  • A Slack workspace where you have permission to install apps
  • A Claude Pro or Max plan (Claude Code routing requires this)
  • At least one GitHub repo connected on claude.ai/code

Step 1: Install Claude in Your Slack Workspace

Open Slack → More → Tools → Apps → Search "Claude" → Add to Slack → Authorize.

Once installed, the Claude app appears in your Slack sidebar.

Step 2: Connect Your Claude Account

Click the Claude app → connect your account via the App Home tab.

Step 3: Configure Routing Mode (Critical)

Go to the Home tab of the Claude app. Set Routing Mode to Code + Chat.

Without this, Claude won't route to Claude Code for repository work.

Step 4: Connect Your GitHub Repo

Go to claude.ai/code, click Select Repository, and connect the repo you want Claude to work with.


Demo 1: Summarize a Thread in 5 Seconds

In any Slack channel (invite Claude first with /invite @Claude):

@Claude summarize this thread and list any action items
Enter fullscreen mode Exit fullscreen mode

5 seconds. Full summary with action items extracted. Ideal for catching up after being away.


Demo 2: Code Review Without Leaving Slack

Paste code directly in Slack:

router.get('/:id', (req, res) => {
  const user = users.find(u => u.id === req.params.id);
  res.json(user);
});
Enter fullscreen mode Exit fullscreen mode

Then ask:

@Claude review this code — why might it return undefined for a valid user ID?
Enter fullscreen mode Exit fullscreen mode

Claude catches it immediately: req.params.id is a string, but user IDs are numbers. Strict === comparison always fails. No tab switching needed.


Demo 3: Fix Your Entire Repo from Slack

@Claude look at this repo: https://github.com/your-username/your-repo
Find all the bugs and fix them.
Enter fullscreen mode Exit fullscreen mode

Claude:

  1. Routes to Claude Code automatically
  2. Clones and reads all files
  3. Lists every bug (location + explanation)
  4. Fixes them
  5. Creates a branch and opens a PR

You get two buttons: View session (full Claude Code web view) and Create PR (one click, PR is live).

In my demo it found 4 bugs: string/number comparison in GET and DELETE, missing validation on POST, and broken ID generation.


Important Limitations

  • No session memory across messages — each new @claude mention = fresh session. For follow-up work, use the Claude Code web session it opens.
  • Channels only — doesn't work in DMs.
  • Requires Pro or Max plan + GitHub connected.

Quick Setup Checklist

  • [ ] Claude installed in Slack workspace
  • [ ] Account connected (App Home → Connect)
  • [ ] Routing Mode → Code + Chat
  • [ ] GitHub repo connected on claude.ai/code
  • [ ] Claude invited to your channel

The Slack → Claude Code → GitHub PR flow is what makes this worth setting up. One prompt, full diff, ready to review.

Top comments (0)