Engineering

Find why an endpoint got slow

Ask Merlin in Slack why an endpoint got slower. You get when it started, the change that likely caused it and what to fix.

@Merlin from now on, when someone in #eng asks why an endpoint got slow, compare its latency in Datadog before and after and find when it started. Check the pull requests merged in acme/web around that time and the code on the endpoint's path, then reply in the thread with the likely cause and what to fix. Only read: don't change code, and say so if the data doesn't point to one change.

#eng
Get started for free
  1. Starts whenAn engineer asks @Merlin in #eng why an endpoint got slower
  2. Merlin worksClaude Code or Codex compares the endpoint's latency in Datadog before and after, then reads the pull requests merged around the change
  3. You getA reply in the thread with when it slowed down, the change that likely caused it and what to fix

Tools

  • Slack
  • Datadog
  • GitHub

Capabilities

  • Integrations
  • Memory
  • Your agent's MCP

How it works

From a slow endpoint to the change that likely caused it.

Mention @Merlin in #eng with the endpoint that got slower. Teammates can add what they've noticed in the thread.

Acme

Channels

general

eng

product

support-eng

data

finance

it-help

legal

Direct messages

Merlin

Arjun

Mei

eng

24

MessagesAdd canvasFiles

Today

Arjun15:02

@Merlin GET /api/projects feels a lot slower this week. Can you find out why?

Message #eng

Before and after

A slowdown gets its cause in the thread where it was reported.

Without Merlin

Someone lines up dashboards against the deploy history, then reads pull requests until one explains the jump.

  1. 01See the report in #eng
  2. 02Open the endpoint's latency
  3. 03Find when p95 jumped
  4. 04Split it by workspace size
  5. 05List that day's merged pull requests
  6. 06Read the likely diffs
  7. 07Trace the endpoint's code path
  8. 08Count the queries per request
  9. 09Write up the cause and the fix
  10. 10Reply in the thread

With Merlin

One mention gets when it started, the likely change and the fix, while the asker keeps working.

  1. @Merlin in #engAsked by the engineer in Slack
  2. Compares latency and reads the merges on Arjun's MacBookClaude Code with the Datadog MCP
  3. The likely change and the fix in the threadRead-only, no code changed

Setup

Add Merlin to #eng, then give the agent Datadog.

Set these up once and anyone in the channel can ask why an endpoint slowed down. Memory is optional.

  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 Datadog to your agentYour agent's MCPConnect the Datadog MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
  4. 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.
  5. 05Keep your code on the machineRuntimeMerlin reads the code in a local project on the runtime, so keep the repository checked out there.
  6. 06Give Datadog read-only accessYour agent's MCP

    Sign the Datadog MCP server in with a read-only role on the machine that runs this, so the run can read latency and traces but can't change monitors or dashboards.

  7. 07Turn on memoryOptionalMemoryMemory is off by default. When an owner or admin turns it on, every run gets the facts your team saves in public Slack channels. A private channel also keeps its own store for its members.
  8. 08Paste 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 look into a slow endpoint.

@Merlin from now on, when someone in #eng asks why an endpoint got slow, compare its latency in Datadog before and after and find when it started. Check the pull requests merged in acme/web around that time and the code on the endpoint's path, then reply in the thread with the likely cause and what to fix. Only read: don't change code, and say so if the data doesn't point to one change.

#eng

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 compares latency and reads the merges
  5. SteeringYour team steers the work in the thread
  6. ResultMerlin replies with the likely cause

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.