Channelstack – Your app's whole world, on localhost Channelstack launched a local test harness that recreates Slack, GitHub, Linear, Notion, Resend, Gmail and Discord on a developer's machine, and also fakes OpenAI's API so the model behind an AI agent can be scripted. The tool delivers signed webhooks, real payload shapes and real IDs, letting developers script users and model responses, run their app through its real code path, and assert on what a person would see, including Slack block_actions, chat.startStream and assistant.threads events, GitHub X-Hub-Signature-256 redelivery, Linear AgentSessionEvent stop signals and Notion X-Notion-Signature payloads. Slack DMs, mentions, threads, buttons and the agent view, with progress streams rendered the way people see them. - Events API - block actions - chat.startStream - assistant.threads - agent session stopped Test harness for Slack, GitHub, Linear, Notion, Resend, Gmail and Discord apps, and the model behind them channelstack recreates Slack, GitHub, Linear, Notion, Resend, Gmail and Discord on your machine, for the bots, integrations and AI agents you build on them, and fakes OpenAI’s API for your agent’s model too. Script the people and what the model answers, let your app answer through its real code path, and assert on what a person would see. Signed webhooks, real payload shapes and real ids, with no changes to how your app works. js import { expect, test } from "vitest";test "ships a PR from a Slack DM", async { slack } = { const ana = await slack.createUser { name: "ana" } ; const dm = { to: slack.app }; const msg = await ana.say "@my-agent ship 812 to staging", dm ; await expect msg.thread .toHaveStatusText /checking CI/ ; const ask = await msg.thread.waitForReply { from: "my-agent" } ; await expect ask .toHaveButton "Approve" ; await ana.click "Approve", { message: ask } ; await expect msg.thread .toContainText /Deployed/, { count: 1 } ; await expect msg.thread .not.toContainText "Thinking…" ;} ; ana 10:42 AM @my-agent ship 812 to staging my-agent APP 10:42 AM Deploy 812 to staging? CI passed 4 minutes ago, 2 files changed. ApproveCancel my-agent APP 10:43 AM Deployed 812 to staging in 41s. ana approved it. message.im event to your app block actions when Ana clicks Approve js test "answers on the issue and ignores itself", async { github } = { const mo = await github.createUser { login: "mo" } ; const repo = await github.createRepo { collaborators: mo , apps: github.app , } ; const issue = await mo.openIssue { title: "500s on Safari" }, { repo } ; const comment = await mo.comment "@my-agent take a look?", { issue } ; await expect issue .toHaveCommentFrom "my-agent", { text: /Safari/ } ; // the same delivery again must not start a second run await comment.delivery .redeliver ; await expect issue .toHaveCommentsFrom "my-agent", { count: 1 } ;} ; 500s on Safari 1 mo commented now @my-agent take a look? my-agent bot commented now Reproduced on Safari 17: the session cookie is dropped on the redirect. A fix is on the way. issue comment redelivered with the same GUID apps X-Hub-Signature-256 js test "Stop ends a working session", async { linear } = { const kai = await linear.createUser { name: "Kai" } ; const team = await linear.createTeam { key: "ENG", members: kai } ; const issue = await kai.createIssue { title: "Migrate cron" }, { team } ; const session = await kai.delegate linear.app, { issue } ; await expect session .toHaveActivity { type: "thought" } ; await kai.stop { session } ; await expect session .toHaveSessionState "complete" ;} ; Migrate cron In Progress K Kai R my-agent Activity R my-agent AgentComplete Reading the cron definitions in billing/cron.ts… Kai stopped the session AgentSessionEvent in Linear’s current shape prompted event carrying the stop signal js test "answers a mention in the same discussion", async { notion } = { const ana = await notion.createUser { name: "Ana" } ; const page = await notion.createPage { title: "Roadmap", content: " Q1\n- ship search", connections: notion.app , } ; const comment = await ana.comment "@my-agent summarize", { page } ; const thread = comment.discussion; await expect thread .toHaveCommentFrom "my-agent", { text: /search/ } ; await expect thread .toHaveCommentsFrom "my-agent", { count: 1 } ;} ; Roadmap Q1 Ana Just now @my-agent summarize my-agent Just now Q1 has one goal: ship search. X-Notion-Signature page.content updated batched the way Notion does js test "answers once, even when Resend retries", async { resend } = { const ana = await resend.createUser { name: "Ana" } ; const email = await ana.send { to: resend.app , subject: "Refund", text: "Where is my refund for 4411?", } ; const answer = await email.thread.waitForReply { from: "my-agent" } ; expect answer.text .toMatch /refund/i ; // Resend delivers the webhook again, with the same svix-id await email.delivery .redeliver ; await expect email.thread .toHaveRepliesFrom "my-agent", { count: 1 } ;} ; Refund Ana