Engineering

Upgrade a dependency and fix what breaks

Delegate a dependency upgrade to Merlin in Linear. It bumps the version, fixes the breaking changes and opens one pull request linked on the issue.

@Merlin from now on, when a dependency upgrade is delegated to you, bump the version the issue names, read its changelog and fix what breaks until the tests pass. Open one pull request in acme/web linked to the issue, listing the breaking changes you handled. Don't upgrade other packages along the way, and if a breaking change needs a product decision, say so on the issue.

ENG · maintenance
Get started for free
  1. Starts whenA teammate delegates an issue that names a dependency and the version to move to
  2. Merlin worksClaude Code or Codex bumps the version, reads the changelog and fixes what breaks until the tests pass on a teammate's machine
  3. You getOne pull request with the upgrade and its fixes, linked on the issue

Tools

  • Linear
  • GitHub

Capabilities

  • Integrations

How it works

From an upgrade issue to one pull request with the breaking changes fixed.

Delegate an issue that names the package and the version to move to. Merlin upgrades only that package.

ENENG › Issues › ENG-455

Upgrade zod to v4

We're on zod 3.24. Move to 4.4 and fix what breaks. Nothing else in package.json should change.

Activity

Omardelegated the issue to Merlin·now

Leave a comment…

Properties

Todo

Omar

Merlin

Labels

Dependencies

Before and after

Upgrades stop sitting in the backlog until they're two majors behind.

Without Merlin

An engineer sets aside a day to bump the package, read the migration guide and chase type errors file by file.

  1. 01Pick the upgrade issue
  2. 02Bump the version
  3. 03Read the migration guide
  4. 04Run the typecheck
  5. 05Fix the record schemas
  6. 06Move the error maps
  7. 07Run the test suite
  8. 08Fix the failing tests
  9. 09Open a pull request
  10. 10Link it on the issue

With Merlin

Delegate the issue and review one pull request with the breaking changes listed.

  1. Upgrade delegated to MerlinThe issue names the package and version
  2. Bumps it and fixes what breaks on Omar's MacBookCodex runs the typecheck and tests
  3. One pull request linked on the issueBreaking changes listed

Setup

Connect Linear and GitHub, then delegate upgrades one package at a time.

Set these up once and anyone on the team can hand an upgrade to Merlin from its issue.

  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. 05Name the package and the versionIntegrations

    Merlin moves only what the issue names, so write "zod to 4.4" rather than "update dependencies". If a breaking change needs a product decision, it says so on the issue.

  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 delegated upgrade.

@Merlin from now on, when a dependency upgrade is delegated to you, bump the version the issue names, read its changelog and fix what breaks until the tests pass. Open one pull request in acme/web linked to the issue, listing the breaking changes you handled. Don't upgrade other packages along the way, and if a breaking change needs a product decision, say so on the issue.

ENG · maintenance

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 bumps the version and fixes what breaks
  5. SteeringYour team steers it from the issue
  6. ResultMerlin links one 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.