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.

#incidents
Get started for free
  1. Starts whenSomeone asks @Merlin in #incidents why errors spiked on a domain
  2. 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
  3. 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 @Merlin in #incidents with the domain where errors jumped.

Acme

Channels

general

eng

product

support-eng

data

incidents

Direct messages

Merlin

Kai

Dev

incidents

24

MessagesAdd canvasFiles

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.

  1. 01See the spike in #incidents
  2. 02Open the zone's analytics
  3. 03Filter to 5xx responses
  4. 04Break it down by path
  5. 05Break it down by data center
  6. 06Compare with the hour before
  7. 07Open the Worker's logs
  8. 08Line up the times with the deploy
  9. 09Reply in the thread

With Merlin

One mention gets the errors narrowed to a path and a cause in the thread.

  1. @Merlin in #incidentsAsked when the errors jump
  2. Reads Cloudflare on Kai's MacBookAnalytics and Worker logs, read-only
  3. 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.

  1. 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.
  2. 02Add Merlin to SlackIntegrationsInstall the Slack app and add Merlin to the channel you work in. A private channel needs /invite @Merlin.
  3. 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.
  4. 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.

  5. 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.

  6. 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.

#incidents

Once, when you paste it

  1. PromptYou paste the prompt to @Merlin
  2. GuidanceMerlin saves your rules as workspace guidance

Every time someone mentions Merlin in Slack

  1. IntegrationThe Slack app spots the mention
  2. RuntimeMerlin picks an available machine
  3. ContextThe run gathers context
  4. WorkClaude Code or Codex reads Cloudflare's analytics and logs
  5. SteeringYour team steers the work in the thread
  6. ResultMerlin replies with where the errors are

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.