Engineering
Draft the postmortem for an incident
Ask Merlin in the incident channel once it's over. It drafts the postmortem in Notion from the channel and the merged pull requests, with the timeline, cause and follow-ups.
@Merlin from now on, when someone asks you for a postmortem in an incident channel, build a timeline from the channel's messages and the pull requests merged to acme/web around it. Write the timeline, the cause and the follow-ups in a new Notion page under Postmortems and post the link in the channel. Mark anything the channel doesn't confirm as unconfirmed, and don't name a person as the cause.
- Starts whenSomeone asks
@Merlinin the incident's Slack channel for the postmortem once it's resolved Merlin worksClaude Code or Codex builds the timeline from the channel and the pull requests merged around it, then writes up the cause and follow-ups
- You getA draft postmortem in Notion with the timeline, cause and follow-ups, linked in the channel
Tools
- Slack
- Notion
- GitHub
Capabilities
- Integrations
- Your agent's MCP
How it works
From a resolved incident channel to a postmortem draft in Notion.
Once the incident is over, mention
@Merlinin its Slack channel and ask for the postmortem.Claude Code or Codex reads the channel and the pull requests merged to
acme/webaround it, then writes the timeline, the cause and the follow-ups. Anything the channel doesn't confirm is marked unconfirmed.The draft is a new page under Postmortems, and its link comes back in the thread for the team to review.
Once the incident is over, mention @Merlin in its Slack channel and ask for the postmortem.
Claude Code or Codex reads the channel and the pull requests merged to acme/web around it, then writes the timeline, the cause and the follow-ups. Anything the channel doesn't confirm is marked unconfirmed.
The draft is a new page under Postmortems, and its link comes back in the thread for the team to review.
Acme
Channels
general
eng
product
support-eng
data
inc-checkout-errors
Direct messages
Merlin
Dana
Leo
inc-checkout-errors
24
Today
Dana14:09
Checkout is returning 500s for EU cards. Looking now.
Leo14:38
The revert of #871 is out in #874. Error rate is back to normal.
Dana15:10
@Merlin we're resolved. Can you draft the postmortem?
Message #inc-checkout-errors
Before and after
The postmortem gets written while the incident is still fresh.
Without Merlin
Someone scrolls back through the channel and GitHub days later, lines up the times by hand and writes it all up.
- 01Scroll back through the channel
- 02Copy each timestamp
- 03Find what merged that afternoon
- 04Read the change and the revert
- 05Line up the times
- 06Ask when support first heard
- 07Write up the cause
- 08List the follow-ups
- 09Paste it into the template
- 10Share the link in the channel
With Merlin
One mention in the channel gets a draft the team only has to check and finish.
@Merlinin the incident's channelAsked once the incident is resolvedBuilds the timeline on Dana's MacBookClaude Code reads the channel and the merges
- Postmortem draft in NotionLinked in the thread, gaps marked unconfirmed
Setup
Add Merlin to the incident channel and give your agent Notion.
Set these up once and anyone in an incident channel can ask for the draft. It stays a draft until your team edits it.
- 01Connect a machineRuntimeInstall the Merlin desktop app or CLI on a computer running Claude Code or Codex. You can also use a machine a teammate shares with your workspace.
- 02Add Merlin to SlackIntegrationsInstall the Slack app and add Merlin to the channel you work in. A private channel needs
/invite @Merlin. - 03Add Notion to your agentYour agent's MCPConnect the Notion MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
- 04Install the GitHub appIntegrationsPick the repositories Merlin can access, so it can read and link the pull requests there. Pushes use the machine owner's own Git access.
- 05Add Merlin to each incident channelIntegrations
Incident channels are new each time, so add Merlin when one opens: from the Slack integration page, or with
/invite @Merlinin a private channel. - 06Paste the setup promptGuidanceAn owner or admin sends the prompt below to @Merlin once, and it becomes workspace guidance for every future run.
Prompt
Tell Merlin how to draft a postmortem.
@Merlin from now on, when someone asks you for a postmortem in an incident channel, build a timeline from the channel's messages and the pull requests merged to acme/web around it. Write the timeline, the cause and the follow-ups in a new Notion page under Postmortems and post the link in the channel. Mark anything the channel doesn't confirm as unconfirmed, and don't name a person as the cause.
Once, when you paste it
- PromptYou paste the prompt to @Merlin
- GuidanceMerlin saves your rules as workspace guidance
Every time someone mentions Merlin in Slack
- IntegrationThe Slack app spots the mention
- RuntimeMerlin picks an available machine
- ContextThe run gathers context
- WorkClaude Code or Codex builds the timeline and writes the draft
- SteeringYour team steers the work in the thread
- ResultMerlin links the Notion draft in the channel
Related use cases
More engineering tasks you can hand to Merlin.
- AutomationsIntegrationsYour agent's MCP
Engineering
Investigate an alert when it fires
When incident.io raises an alert, Merlin checks the service in Datadog and Sentry and what merged recently. You get the likely cause in #oncall.
incident.io reports a new alertThe likely cause in#oncall - AutomationsIntegrationsYour agent's MCP
Engineering
Write the weekly on-call handoff
Every Monday, Merlin writes the on-call handoff in #oncall. You get last week's pages, the follow-ups still open and the alerts that keep coming back.
Every Monday at09:00The handoff in#oncall - IntegrationsMemoryYour agent's MCP
Engineering
Check production when someone asks if it's down
Ask Merlin in Slack when someone wonders if production is down. It checks error rates in Datadog, Vercel or Cloudflare and what merged last, then answers in the thread.
@Merlinin#eng-helpWhat it found, in the thread
Bring your coding agents into the tools your team already uses.
Let your whole team hand work to Claude Code and Codex today. Connect one machine and add Merlin to Slack, Linear or GitHub. 14-day free trial, no API keys, no card.