Data

Investigate a metric alert

Mention Merlin under a PostHog alert to learn whether a drop is real or broken tracking. It checks the breakdowns, flag changes and recent code before it answers.

@Merlin from now on, when someone asks you about a metric alert in #data, break the move down by platform, app version and country in PostHog. Line it up with recently merged pull requests, changes to the tracking code and Statsig gate or experiment changes. Say whether the drop looks real or like broken tracking, show the evidence and name the pull request if one changed an event. Don't change flags or code.

#data
Get started for free
  1. Starts whenA PostHog alert posts in #data and someone mentions @Merlin in its thread
  2. Merlin worksClaude Code or Codex breaks the move down by platform, version and country in PostHog, then lines it up with merged pull requests and Statsig changes
  3. You getThe likely cause in the thread, with any tracking bug called out and the change that introduced it

Tools

  • Slack
  • GitHub
  • PostHog
  • Statsig

Capabilities

  • Integrations
  • Memory
  • Your agent's MCP

How it works

From a PostHog alert to its likely cause.

When a PostHog alert posts in #data, mention @Merlin in its thread and ask whether the move is real.

Acme

Channels

general

eng

product

support-eng

data

finance

it-help

legal

Direct messages

Merlin

PostHog

Omar

Jess

data

24

MessagesAdd canvasFiles

Today

PostHog08:02

Alert: Signups completed is 31% below its 7-day average (412 against 597).

Message #data

Before and after

Alert threads get a cause instead of a pile of guesses.

Without Merlin

Someone splits the chart by hand, then asks around engineering about what shipped.

  1. 01Open the alert
  2. 02Break down by platform
  3. 03Break down by version
  4. 04Break down by country
  5. 05Scan merged pull requests
  6. 06Check flag changes
  7. 07Ask mobile what shipped
  8. 08Read the tracking code
  9. 09Find the event rename
  10. 10Post the verdict

With Merlin

One mention under the alert gets the breakdown and the code change in the same thread.

  1. @Merlin under the PostHog alertAsked by Omar in #data
  2. Breaks down the drop on Omar's MacBookClaude Code with PostHog and Statsig
  3. Likely cause in the threadTracking bug traced to a pull request

Setup

Connect GitHub, give your agent PostHog and Statsig, then ask under any alert.

Set these up once and anyone in #data can ask about an alert from its thread. 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. 03Install 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.
  4. 04Add PostHog to your agentYour agent's MCPConnect the PostHog MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
  5. 05Add Statsig to your agentYour agent's MCPConnect the Statsig MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
  6. 06Keep known tracking quirks in #data memoryOptionalMemory

    Ask Merlin to remember facts like "Android events can arrive a day late" in #data. Notes saved in a public channel are readable across the workspace, so later alerts start from them.

  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 an alert, once.

@Merlin from now on, when someone asks you about a metric alert in #data, break the move down by platform, app version and country in PostHog. Line it up with recently merged pull requests, changes to the tracking code and Statsig gate or experiment changes. Say whether the drop looks real or like broken tracking, show the evidence and name the pull request if one changed an event. Don't change flags or code.

#data

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 breaks down the metric
  5. SteeringYour team steers the work in the thread
  6. ResultMerlin posts the likely cause 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.