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.
- Starts whenA teammate delegates a triaged bug to Merlin in Linear
Merlin worksClaude Code or Codex reproduces the bug with a failing test, then fixes it on a teammate's machine
- 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.
Claude Code or Codex writes a failing test on a teammate's machine, makes it pass and runs the related tests. Progress shows in the issue's agent session.
The pull request is linked on the issue. If the bug would not reproduce, Merlin says so on the issue and stops there.
Delegate the bug to Merlin in Linear. The description, comments and links on the issue become its starting context.
Claude Code or Codex writes a failing test on a teammate's machine, makes it pass and runs the related tests. Progress shows in the issue's agent session.
The pull request is linked on the issue. If the bug would not reproduce, Merlin says so on the issue and stops there.
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
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.
- 01Pick the bug from the backlog
- 02Open the Sentry trace
- 03Pull the latest main
- 04Find where totals are computed
- 05Rebuild the customer's invoice
- 06Write a failing test
- 07Fix the rounding
- 08Run the billing tests
- 09Open a pull request
- 10Link it on the issue
With Merlin
Delegate the issue and get a tested fix linked back while you stay on your own work.
- Issue delegated to
MerlinFrom the issue in Linear Reproduces and fixes it on Priya's MacBookFailing test first, then the fix
- 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.
- 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.
- 02Connect LinearIntegrationsConnect your Linear workspace so issues can be delegated to Merlin.
- 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.
- 04Keep your code on the machineRuntimeMerlin reads the code in a local project on the runtime, so keep the repository checked out there.
- 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.
- 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.
- 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.
Once, when you paste it
- PromptYou paste the prompt to @Merlin
- GuidanceMerlin saves your rules as workspace guidance
Every time an issue is delegated to Merlin
- IntegrationLinear hands Merlin the issue
- RuntimeMerlin picks an available machine
- ContextThe run gathers context
- WorkClaude Code or Codex writes the test and the fix
- SteeringYour team steers it from the issue
- ResultMerlin links the pull request on the issue
Related use cases
More tasks you can hand to Merlin.
- IntegrationsYour agent's MCP
Support
Hand an issue to engineering, deduplicated
Ask Merlin to escalate a support case from its thread. It checks Linear first and adds the customer to an existing issue, or files a new one with the repro, logs and a code pointer.
@Merlinin the support threadAdded to the existing issue, or a new one - Integrations
Engineering
Build a small feature from a Linear issue
Delegate a small, clear feature to Merlin in Linear. It builds it with tests on a teammate's machine and links the pull request on the issue.
Feature issue delegated to MerlinPull request with tests, linked on the issue - Integrations
Engineering
Backport a fix to a release branch
Mention Merlin on a merged pull request and name a release branch. It cherry-picks the fix, runs the tests and opens the backport pull request.
@usemerlin-aion the merged pull requestA backport pull request into the release branch
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.