Your Slack Bot's Database Is Now a Claude Session Vercel's new template, vercel-labs/cma-chat-sdk, wires Claude Managed Agents into Chat SDK for Slack bots, storing only a session ID in Redis instead of message history. The roughly 300-line TypeScript bridge creates an Anthropic session per Slack thread, streams agent events via SSE, and disables bash to prevent prompt-injection exfiltration. The template pins agent versions and checks session ownership, but long-lived SSE on serverless is limited to five minutes per turn. AI https://sourcefeed.dev/c/ai Article Your Slack Bot's Database Is Now a Claude Session Vercel's template wires Claude Managed Agents into Chat SDK, and the thin bridge is the point. Rachel Goldstein https://sourcefeed.dev/u/rachel goldstein Every Slack bot I've built with an LLM has the same ugly middle: a table of thread IDs mapped to message arrays, a job that replays that history into each model call, and a growing pile of code to keep the two in sync. Vercel's new template for running Claude Managed Agents https://platform.claude.com/docs/en/managed-agents/overview behind Chat SDK https://chat-sdk.dev deletes that middle. The transcript lives in an Anthropic session. Your Redis holds one string per thread: the session ID. That's the whole idea, and it's a better one than the "Slack research bot" framing suggests. What the bridge is Chat SDK is Vercel's npm i chat library, open-sourced in February as a public beta: one handler, adapters for Slack, Teams, Google Chat, Discord, GitHub, Linear, Telegram and WhatsApp. Its thread.post accepts any AsyncIterable