Engineering

Fix a bug from a Linear issue

Delegate a triaged bug to Merlin. It writes a failing test first, fixes the bug on a teammate's machine and links the pull request on the issue.

@Merlin from now on, when a bug is delegated to you, write a failing test that reproduces it before changing any code, then fix it and open a pull request linked to the issue. If you cannot reproduce the bug, say so on the issue with what you tried instead of guessing a fix.

ENG · bugs
Get started for free
  1. Starts whenA teammate delegates a triaged bug to Merlin in Linear
  2. Merlin worksClaude Code or Codex reproduces the bug with a failing test, then fixes it on a teammate's machine
  3. You getA pull request linked on the issue, or a note that the bug would not reproduce

Tools

  • Linear
  • GitHub
  • Sentry

Capabilities

  • Integrations
  • Skills

How it works

From triaged bug to linked pull request.

Delegate the bug to Merlin in Linear. The description, comments and links on the issue become its starting context.

ENENG › Issues › ENG-311

Invoice totals round down on multi-currency workspaces

Totals for workspaces billed in two currencies come out one cent short. Reproduce with the Sentry trace linked below.

Activity

Priyadelegated the issue to Merlin·now

Leave a comment…

Properties

Todo

Priya

Merlin

Labels

Bug

Before and after

Bugs stop waiting for someone to pick them up.

Without Merlin

A triaged bug waits in the backlog until an engineer has a free afternoon, then takes most of it.

  1. 01Pick the bug from the backlog
  2. 02Open the Sentry trace
  3. 03Pull the latest main
  4. 04Find where totals are computed
  5. 05Rebuild the customer's invoice
  6. 06Write a failing test
  7. 07Fix the rounding
  8. 08Run the billing tests
  9. 09Open a pull request
  10. 10Link it on the issue

With Merlin

Delegate the issue and get a tested fix linked back while you stay on your own work.

  1. Issue delegated to MerlinFrom the issue in Linear
  2. Reproduces and fixes it on Priya's MacBookFailing test first, then the fix
  3. Pull request linked on the issueReady for review

Setup

Connect Linear and GitHub, then delegate any triaged bug.

Set these up once and anyone on the team can hand a bug to Merlin from its issue. Sentry 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. 02Connect LinearIntegrationsConnect your Linear workspace so issues can be delegated to 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. 05Keep Sentry on your agentOptionalYour agent's MCPIf your machine's agent already uses the Sentry MCP server, Merlin can use it here too. You don't need to set up anything in Merlin.
  6. 06Describe how you test bugsSkills

    Put your test layout and naming in a shared skill so the regression test lands where your team expects it.

  7. 07Paste 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 delegated bug.

@Merlin from now on, when a bug is delegated to you, write a failing test that reproduces it before changing any code, then fix it and open a pull request linked to the issue. If you cannot reproduce the bug, say so on the issue with what you tried instead of guessing a fix.

ENG · bugs

Once, when you paste it

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

Every time an issue is delegated to Merlin

  1. IntegrationLinear hands Merlin the issue
  2. RuntimeMerlin picks an available machine
  3. ContextThe run gathers context
  4. WorkClaude Code or Codex writes the test and the fix
  5. SteeringYour team steers it from the issue
  6. ResultMerlin links the pull request on the issue

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.