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.
- Starts whenA teammate delegates an issue that names a dependency and the version to move to
Merlin worksClaude Code or Codex bumps the version, reads the changelog and fixes what breaks until the tests pass on a teammate's machine
- 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.
Claude Code or Codex bumps the version on a teammate's machine, reads the changelog and fixes what breaks until the typecheck and tests pass. Progress shows in the issue's agent session.
One pull request with the upgrade and its fixes is linked on the issue, listing the breaking changes it handled. If one needs a product decision, Merlin says so on the issue.
Delegate an issue that names the package and the version to move to. Merlin upgrades only that package.
Claude Code or Codex bumps the version on a teammate's machine, reads the changelog and fixes what breaks until the typecheck and tests pass. Progress shows in the issue's agent session.
One pull request with the upgrade and its fixes is linked on the issue, listing the breaking changes it handled. If one needs a product decision, Merlin says so on the issue.
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
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.
- 01Pick the upgrade issue
- 02Bump the version
- 03Read the migration guide
- 04Run the typecheck
- 05Fix the record schemas
- 06Move the error maps
- 07Run the test suite
- 08Fix the failing tests
- 09Open a pull request
- 10Link it on the issue
With Merlin
Delegate the issue and review one pull request with the breaking changes listed.
- Upgrade delegated to
MerlinThe issue names the package and version Bumps it and fixes what breaks on Omar's MacBookCodex runs the typecheck and tests
- 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.
- 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.
- 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.
- 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.
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 bumps the version and fixes what breaks
- SteeringYour team steers it from the issue
- ResultMerlin links one pull request on the issue
Related use cases
More engineering tasks you can hand to Merlin.
- Integrations
Engineering
Refactor a module without changing what it does
Delegate a refactor to Merlin in Linear. It adds tests where coverage is thin, cleans up the module with the tests green and opens a pull request.
Refactor issue delegated to MerlinPull request with the tests still green - IntegrationsSkills
Engineering
Fix a red CI run
Mention Merlin on a pull request with a failing check. It reads the job log, reproduces the failure and pushes a fix, or shows why the test is flaky.
@usemerlin-aion a pull request with a red checkA fix commit, or a flake verdict with evidence - IntegrationsYour agent's MCP
Engineering
Remove a feature flag that's fully rolled out
Mention Merlin on a flag cleanup issue in Linear. It checks the gate is fully rolled out in Statsig, removes the flag and its dead code and opens a pull request.
@Merlinin a Linear commentPull request linked 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.