Engineering

Speed up a slow test suite

Ask Merlin in Slack to speed up a slow test suite. It profiles it, fixes the slowest tests or setup and opens a pull request with the before and after times.

@Merlin from now on, when someone in #eng asks you to speed up a test suite, profile it in acme/web and find the slowest tests and setup. Fix the biggest causes without deleting or skipping tests or weakening what they check. Open a pull request with the before and after times and link it in the thread.

#eng
Get started for free
  1. Starts whenAn engineer asks @Merlin in #eng to speed up a test suite
  2. Merlin worksClaude Code or Codex profiles the suite on a teammate's machine and fixes the slowest tests or shared setup
  3. You getA pull request with the before and after times, linked in the thread

Tools

  • Slack
  • GitHub

Capabilities

  • Integrations

How it works

From a slow test suite to a pull request with the times.

Mention @Merlin in #eng with the suite that's slow. Teammates can add limits in the thread.

Acme

Channels

general

eng

product

support-eng

data

finance

it-help

legal

Direct messages

Merlin

Omar

Priya

eng

24

MessagesAdd canvasFiles

Today

Omar11:02

@Merlin pnpm test:integration in acme/web takes 14 minutes now. Can you find what's slow and speed it up?

Message #eng

Before and after

A slow suite gets fixed instead of tolerated.

Without Merlin

Someone sets aside a day to profile the suite, then fixes what they find between other work.

  1. 01Run the suite with timings
  2. 02Sort the files by time
  3. 03Read the shared setup
  4. 04Find the fixed sleeps
  5. 05Ask which tests need a fresh database
  6. 06Share the database setup
  7. 07Replace sleeps with waits
  8. 08Rerun and compare times
  9. 09Open a pull request
  10. 10Post the times in #eng

With Merlin

One mention gets the suite profiled and a faster version up for review.

  1. @Merlin in #engAsked by an engineer in Slack
  2. Profiles and fixes it on Omar's MacBookCodex, with no tests skipped
  3. Pull request with before and after timesLinked in the thread

Setup

Add Merlin to #eng and keep the code on a machine that can run the suite.

Set these up once and anyone in #eng can ask for a faster suite.

  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. 04Keep your code on the machineRuntimeMerlin reads the code in a local project on the runtime, so keep the repository checked out there.
  5. 05Run it where the suite can runRuntime

    The suite needs what it needs in CI, such as a local database. Keep those running on the machine Merlin uses, so the before and after times compare like with like.

  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 take on a slow test suite.

@Merlin from now on, when someone in #eng asks you to speed up a test suite, profile it in acme/web and find the slowest tests and setup. Fix the biggest causes without deleting or skipping tests or weakening what they check. Open a pull request with the before and after times and link it in the thread.

#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 profiles and fixes the suite
  5. SteeringYour team steers the work in the thread
  6. ResultMerlin links the pull request with the times

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.