Engineering
Find why errors spiked at the edge
Ask Merlin in Slack when errors spike. It breaks Cloudflare's traffic down by status, path and data center, reads the Worker's logs if one is involved and answers in the thread.
@Merlin from now on, when someone in #incidents asks about a spike in errors, read Cloudflare's analytics for that zone: requests by status code, path and data center over the last hour against the hour before. If the errors come from a Worker, read its logs for the same window. Reply in the thread with where the errors are, since when and the likeliest cause. Only read: don't change any Cloudflare setting.
- Starts whenSomeone asks
@Merlinin#incidentswhy errors spiked on a domain Merlin worksClaude Code or Codex breaks Cloudflare's analytics down by status code, path and data center, then reads the Worker's logs when one is involved
- You getWhere the errors are, since when and the likeliest cause, in the thread
Tools
- Slack
- Cloudflare
Capabilities
- Integrations
- Your agent's MCP
How it works
From an error spike to the path, the start time and the cause.
Mention
@Merlinin#incidentswith the domain where errors jumped.Claude Code or Codex reads Cloudflare's analytics for the zone by status code, path and data center over the last hour against the hour before. If a Worker serves the failing path, it reads that Worker's logs too. It only reads.
The reply says where the errors are, since when and the likeliest cause. No Cloudflare setting is changed.
Mention @Merlin in #incidents with the domain where errors jumped.
Claude Code or Codex reads Cloudflare's analytics for the zone by status code, path and data center over the last hour against the hour before. If a Worker serves the failing path, it reads that Worker's logs too. It only reads.
The reply says where the errors are, since when and the likeliest cause. No Cloudflare setting is changed.
Acme
Channels
general
eng
product
support-eng
data
incidents
Direct messages
Merlin
Kai
Dev
incidents
24
Today
Kai09:12
@Merlin 5xx errors on acme.com jumped in the last 20 minutes. Where are they coming from?
Message #incidents
Before and after
An error spike gets narrowed down while people are still asking about it.
Without Merlin
Someone clicks through Cloudflare's analytics filter by filter, then lines the numbers up with the Worker's logs.
- 01See the spike in #incidents
- 02Open the zone's analytics
- 03Filter to 5xx responses
- 04Break it down by path
- 05Break it down by data center
- 06Compare with the hour before
- 07Open the Worker's logs
- 08Line up the times with the deploy
- 09Reply in the thread
With Merlin
One mention gets the errors narrowed to a path and a cause in the thread.
@Merlinin#incidentsAsked when the errors jumpReads Cloudflare on Kai's MacBookAnalytics and Worker logs, read-only
- Where the errors are, in the threadPath, start time and likely cause
Setup
Add Merlin to #incidents and give your agent Cloudflare.
Set these up once and anyone in the channel can ask where errors are coming from. The run only reads.
- 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 Cloudflare to your agentYour agent's MCPConnect the Cloudflare MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
- 04Grant read-only permissionsYour agent's MCP
When you connect the Cloudflare API MCP server, Cloudflare asks which permissions to grant your agent. Choose read access to your zones' analytics and your Workers' logs, so a check can read but can't change a setting.
- 05Share a machine that has CloudflareRuntime
Whoever asks during an incident may not run an agent. An engineer can share a machine with Cloudflare connected. Merlin picks the asker's own machine first and a shared one after that.
- 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 break down an error spike.
@Merlin from now on, when someone in #incidents asks about a spike in errors, read Cloudflare's analytics for that zone: requests by status code, path and data center over the last hour against the hour before. If the errors come from a Worker, read its logs for the same window. Reply in the thread with where the errors are, since when and the likeliest cause. Only read: don't change any Cloudflare setting.
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 reads Cloudflare's analytics and logs
- SteeringYour team steers the work in the thread
- ResultMerlin replies with where the errors are
Related use cases
More engineering tasks you can hand to Merlin.
- 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 - 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 - IntegrationsMemoryYour agent's MCP
Engineering
Find what changed since the last deploy
Ask Merlin in Slack what changed since the last deploy. You get the pull requests that went out, what each touched and which look risky.
@Merlinin#engWhat went out, risky changes flagged
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.