Engineering
Fix a failed Vercel preview build
Mention Merlin on a pull request whose Vercel preview failed to build. It reads the build logs through Vercel, fixes the build in your code and pushes to the branch.
@Merlin from now on, when someone asks you about a failed Vercel preview on a pull request, read that deployment's build logs through Vercel, find the cause in the checkout and push the smallest fix to the same branch. Reply with the cause and what you changed. Don't redeploy or change anything in Vercel: the push starts a new preview.
- Starts whenSomeone mentions
@usemerlin-aion a pull request whose Vercel preview failed to build Merlin worksClaude Code or Codex reads the preview's build logs through Vercel and fixes the build in the checkout on a teammate's machine
- You getA fix pushed to the branch, with a reply that explains the cause
Tools
- GitHub
- Vercel
Capabilities
- Integrations
- Your agent's MCP
How it works
From a failed preview to a fixed build.
Mention
@usemerlin-aion a pull request whose Vercel preview failed to build.Claude Code or Codex reads the preview deployment's build logs through Vercel, finds the cause in the checkout on a teammate's machine and makes the smallest fix.
The fix is pushed to the branch with a reply that explains the cause. The push starts a new preview; Merlin never redeploys or changes Vercel itself.
Mention @usemerlin-ai on a pull request whose Vercel preview failed to build.
Claude Code or Codex reads the preview deployment's build logs through Vercel, finds the cause in the checkout on a teammate's machine and makes the smallest fix.
The fix is pushed to the branch with a reply that explains the cause. The push starts a new preview; Merlin never redeploys or changes Vercel itself.
acme/web
Type/to searchLAdd the usage chart to the billing page#533Code
Openleewants to merge 3 commits intomainfromfeat/usage-chart
Some checks were not successful
VercelFailing after 3m
Before and after
A red preview stops blocking review.
Without Merlin
The author leaves their work to dig through Vercel's build log, then works out why it builds on their machine and not there.
- 01Open the failed Vercel check
- 02Find the preview deployment
- 03Scroll the build log
- 04Pull the branch
- 05Run the build locally
- 06Compare the import with the file
- 07Fix the import's casing
- 08Push the fix
- 09Wait for the new preview
With Merlin
One mention gets the build fixed while the author keeps working.
@usemerlin-aiunder the failed previewAsked by the author on GitHubReads the build log on Lee's MacBookVercel's logs, then the checkout
- Fix pushed to the branchThe push starts a new preview
Setup
Connect GitHub and give your agent Vercel.
Set these up once and anyone can hand a failed preview to Merlin from the pull request. Merlin only reads Vercel: fixes reach it through a push.
- 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.
- 02Install the GitHub appIntegrationsPick the repositories Merlin can access. It sees mentions, reads the pull request and replies in the thread. Pushes use the machine owner's own Git access.
- 03Add Vercel to your agentYour agent's MCPConnect the Vercel MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
- 04Grant the team that owns the projectYour agent's MCP
When you sign in to Vercel MCP, grant the connection access to the team that owns the project (team access). Without it, Merlin can't read that project's deployments or build logs.
- 05Paste 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 fix a failed preview.
@Merlin from now on, when someone asks you about a failed Vercel preview on a pull request, read that deployment's build logs through Vercel, find the cause in the checkout and push the smallest fix to the same branch. Reply with the cause and what you changed. Don't redeploy or change anything in Vercel: the push starts a new preview.
Once, when you paste it
- PromptYou paste the prompt to @Merlin
- GuidanceMerlin saves your rules as workspace guidance
Every time someone mentions Merlin on GitHub
- IntegrationThe GitHub app spots the mention
- RuntimeMerlin picks an available machine
- ContextThe run gathers context
- WorkClaude Code or Codex reads the build log and fixes the code
- SteeringYour team steers the work in the thread
- ResultMerlin pushes the fix and replies
Related use cases
More engineering tasks you can hand to Merlin.
- 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 - Integrations
Engineering
Rebase a pull request and fix the conflicts
Mention Merlin on a pull request that conflicts with main. It rebases the branch, resolves the conflicts, runs the tests and pushes.
@usemerlin-aion a pull request with conflictsA rebased branch and a note on each conflict - IntegrationsSkillsMemory
Engineering
Address pull request feedback
Mention Merlin on a pull request and get the requested change pushed to your branch. Teammates can steer it in the comments.
@usemerlin-aiin a pull request commentCommits and a reply on the pull request
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.