Engineering
Write a design doc for a change
Mention Merlin on a Linear issue for a change you're planning. It reads the code involved and writes the approach, options and risks as a Linear document.
@Merlin from now on, when someone asks you in a Linear comment for a design doc, read the code the change touches in acme/web. Write the proposed approach, the options you considered and the risks as a Linear document, and link it in a comment on the issue. Don't change any code, and list the questions only the team can answer instead of guessing.
- Starts whenAn engineer mentions
@Merlinin a comment on the issue for a planned change Merlin worksClaude Code or Codex reads the code the change touches and works out the approach, the options and the risks
- You getA Linear document with the approach, options and risks, linked in a comment on the issue
Tools
- Linear
Capabilities
- Integrations
How it works
From a planned change to a design doc grounded in the code.
Mention
@Merlinin a comment on the issue for the change you're planning. Point it at where the code lives if you know.Claude Code or Codex reads the code the change touches on a teammate's machine and works out an approach, the options and the risks. It doesn't change any code.
The design doc is a Linear document linked on the issue, with the questions only the team can answer listed at the end instead of guessed.
Mention @Merlin in a comment on the issue for the change you're planning. Point it at where the code lives if you know.
Claude Code or Codex reads the code the change touches on a teammate's machine and works out an approach, the options and the risks. It doesn't change any code.
The design doc is a Linear document linked on the issue, with the questions only the team can answer listed at the end instead of guessed.
ENENG › Issues › ENG-490
Retry failed webhook deliveries
Customer webhooks are sent once. If the endpoint is down, the event is lost. We want retries with backoff.
Activity
Kainow
@Merlin can you write a design doc for this before we pick an approach? Webhooks go out from server/webhooks/deliver.ts today.
Properties
In Progress
Kai
Labels
Feature
Before and after
Design docs start from the code, not a blank page.
Without Merlin
An engineer reads the code paths, sketches options in a doc and tracks down what could go wrong.
- 01Read the issue
- 02Read the delivery code
- 03Read the job queue
- 04Start a blank doc
- 05Describe how it works today
- 06Sketch two options
- 07List the risks
- 08Ask how long to retry
- 09Link the doc on the issue
With Merlin
One comment gets a first draft grounded in the code, with the open questions left for the team.
@Merlinon the issueAsked by the engineer in a commentReads the code on Kai's MacBookClaude Code, no code changed
- Design doc linked on the issueApproach, options, risks and questions
Setup
Connect Linear and keep the code on a machine.
Set these up once and anyone can ask for a design doc from the issue for a planned change.
- 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 LinearIntegrationsOnce you connect your Linear workspace, Merlin can read the linked issue and comment there too.
- 03Keep your code on the machineRuntimeMerlin reads the code in a local project on the runtime, so keep the repository checked out there.
- 04Paste 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 write a design doc.
@Merlin from now on, when someone asks you in a Linear comment for a design doc, read the code the change touches in acme/web. Write the proposed approach, the options you considered and the risks as a Linear document, and link it in a comment on the issue. Don't change any code, and list the questions only the team can answer instead of guessing.
Once, when you paste it
- PromptYou paste the prompt to @Merlin
- GuidanceMerlin saves your rules as workspace guidance
Every time someone mentions Merlin on an issue
- IntegrationLinear sends Merlin the comment
- RuntimeMerlin picks an available machine
- ContextThe run gathers context
- WorkClaude Code or Codex reads the code the change touches
- SteeringYour team steers it from the issue
- ResultMerlin links the design doc on the issue
Related use cases
More tasks you can hand to Merlin.
- Integrations
Product
Write a spec from a rough Linear issue
Delegate a rough idea in Linear to Merlin and get a spec written into the issue. It covers the problem, how the product works today, a proposal and acceptance criteria.
Rough issue delegated to MerlinA spec in the issue description - 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
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
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.