Engineering
Find out why an LLM call failed
Mention Merlin in Slack with an OpenRouter generation id from your logs. You get why the call failed and the fix it would make, from the generation, its providers and your code.
@Merlin from now on, when someone in #eng shares an OpenRouter generation id from a failed LLM call, look it up in OpenRouter: the model, the provider that served it, the tokens, the latency and the finish reason. Check the status of that model's providers, then read the timeout and retry code for the call in acme/app. Reply in the thread with the cause and the fix you'd make. Only read: don't change code or send test messages.
- Starts whenAn engineer mentions
@Merlinin#engwith the generation id of a failed LLM call Merlin worksClaude Code or Codex looks up the generation in OpenRouter, checks the model's providers and reads the timeout and retry code for that call
- You getThe cause and the fix it would make, in the thread, with no code changed
Tools
- Slack
- OpenRouter
Capabilities
- Integrations
- Your agent's MCP
How it works
From a generation id to why the call failed.
Mention
@Merlinin#engwith the generation id from your logs and what went wrong.Claude Code or Codex looks up the generation's model, provider, tokens, latency and finish reason, checks the status of the model's providers and reads the timeout and retry code for that call. It only reads.
The reply says why the call failed and what Merlin would change. No code changes, and no billable test messages.
Mention @Merlin in #eng with the generation id from your logs and what went wrong.
Claude Code or Codex looks up the generation's model, provider, tokens, latency and finish reason, checks the status of the model's providers and reads the timeout and retry code for that call. It only reads.
The reply says why the call failed and what Merlin would change. No code changes, and no billable test messages.
Acme
Channels
general
eng
product
support-eng
data
finance
it-help
legal
Direct messages
Merlin
Ana
Leo
eng
24
Today
Ana11:40
@Merlin invoice extraction keeps failing for one customer with Unexpected end of JSON input. Generation id from the logs: gen-7rKx2LmQ9vTzW4pNaB8cYdE1fH
Message #eng
Before and after
A failed LLM call gets a cause, not another retry.
Without Merlin
An engineer digs the generation out of OpenRouter, checks the providers and reads the client code to piece it together.
- 01See the failure in #eng
- 02Find the generation id in the logs
- 03Look up the generation
- 04Check the finish reason and tokens
- 05Check the model's providers
- 06Read the extraction call
- 07Read the retry wrapper
- 08Work out the cause
- 09Reply in the thread
With Merlin
One mention gets the cause and a fix in the thread where the failure came up.
@Merlinin#engWith the generation id from the logsChecks OpenRouter and the code on Ana's MacBookClaude Code, read-only
- The cause and a fixIn the thread, no code changed
Setup
Add Merlin to #eng and give your agent OpenRouter.
Set these up once and anyone in #eng can ask why a call failed. The run only reads, so it sends no billable test messages.
- 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.
- 02Add Merlin to SlackIntegrationsInstall the Slack app and add Merlin to the channel you work in. A private channel needs
/invite @Merlin. - 03Add OpenRouter to your agentYour agent's MCPConnect the OpenRouter MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
- 04Keep your code on the machineRuntimeMerlin reads the code in a local project on the runtime, so keep the repository checked out there.
- 05Connect the account your app usesYour agent's MCP
Sign in to OpenRouter with the account your app's API key belongs to, so the generation ids in your logs are ones it can look up. The key it mints for your agent expires after 7 days (how it works), so reconnect when a lookup fails with an auth error.
- 06Log the generation id with each failureRuntime
Log the
idof each OpenRouter response next to its error, so a failed call has a generation id to share. - 07Paste 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 look into a failed LLM call.
@Merlin from now on, when someone in #eng shares an OpenRouter generation id from a failed LLM call, look it up in OpenRouter: the model, the provider that served it, the tokens, the latency and the finish reason. Check the status of that model's providers, then read the timeout and retry code for the call in acme/app. Reply in the thread with the cause and the fix you'd make. Only read: don't change code or send test messages.
Once, when you paste it
- PromptYou paste the prompt to @Merlin
- GuidanceMerlin saves your rules as workspace guidance
Every time someone mentions Merlin in Slack
- IntegrationThe Slack app spots the mention
- RuntimeMerlin picks an available machine
- ContextThe run gathers context
- WorkClaude Code or Codex checks the generation and the code
- SteeringYour team steers the work in the thread
- ResultMerlin replies with the cause and a fix
Related use cases
More engineering tasks you can hand to Merlin.
- IntegrationsYour agent's MCP
Engineering
Try a cheaper model before switching
Delegate a model change to Merlin in Linear. It runs the feature's eval cases on cheaper models through OpenRouter and opens a pull request with the comparison, or says none held up.
Model issue delegated to MerlinA pull request with the comparison, on the issue - IntegrationsMemoryYour agent's MCP
Engineering
Find why an endpoint got slow
Ask Merlin in Slack why an endpoint got slower. You get when it started, the change that likely caused it and what to fix.
@Merlinin#engThe likely change and what to fix, in the thread - AutomationsIntegrationsYour agent's MCP
Engineering
Investigate an alert when it fires
When incident.io raises an alert, Merlin checks the service in Datadog and Sentry and what merged recently. You get the likely cause in #oncall.
incident.io reports a new alertThe likely cause in#oncall
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.