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.

ENG
Get started for free
  1. Starts whenAn engineer mentions @Merlin in a comment on the issue for a planned change
  2. Merlin worksClaude Code or Codex reads the code the change touches and works out the approach, the options and the risks
  3. 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 @Merlin in a comment on the issue for the change you're planning. Point it at where the code lives if you know.

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.

Leave a comment…

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.

  1. 01Read the issue
  2. 02Read the delivery code
  3. 03Read the job queue
  4. 04Start a blank doc
  5. 05Describe how it works today
  6. 06Sketch two options
  7. 07List the risks
  8. 08Ask how long to retry
  9. 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.

  1. @Merlin on the issueAsked by the engineer in a comment
  2. Reads the code on Kai's MacBookClaude Code, no code changed
  3. 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.

  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 LinearIntegrationsOnce you connect your Linear workspace, Merlin can read the linked issue and comment there too.
  3. 03Keep your code on the machineRuntimeMerlin reads the code in a local project on the runtime, so keep the repository checked out there.
  4. 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.

ENG

Once, when you paste it

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

Every time someone mentions Merlin on an issue

  1. IntegrationLinear sends Merlin the comment
  2. RuntimeMerlin picks an available machine
  3. ContextThe run gathers context
  4. WorkClaude Code or Codex reads the code the change touches
  5. SteeringYour team steers it from the issue
  6. ResultMerlin links the design doc 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.