DEVOPS

Agent triage of failed Lighthouse budgets with PR fix suggestions

When a Vercel preview fails its Lighthouse budget, an agent inspects the report and changed files, identifies the likely cause.

CategoryDevOps
EngineSim + Paperclip
Difficultyadvanced
Triggerwebhook
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerVercel preview audited, budget failedVercelVercel
  • LogicDetect failed Lighthouse budget
  • ActionFetch report and changed files from GitHubGitHubGitHub
  • ActionAgent diagnoses cause and drafts fixesOpenAI
  • OutputPost remediation comment on the PRGitHubGitHub

What it does

A raw failing Lighthouse score tells you that the build is slow but not why. This workflow hands the failed report and the PR's changed files to an agent that correlates the regression to likely culprits, such as an unoptimized image, a render-blocking script, or a new dependency, and writes an actionable GitHub PR comment with specific fixes, then holds promotion.

When to use it

Use this when your team loses time deciphering Lighthouse output and you want first-pass triage done automatically. It turns a red gate into a ready-to-action checklist on the PR, shortening the fix loop.

How it works

  1. 1A Vercel preview deploy is audited and a logic step detects a failed budget.
  2. 2An action pulls the Lighthouse report and the PR's changed files from GitHub.
  3. 3The agent analyzes the diagnostics against the diff to pinpoint probable causes.
  4. 4The agent drafts prioritized remediation steps tied to specific files and metrics.
  5. 5A GitHub PR comment is posted with the findings and the deployment is held from promotion.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect VercelDeploys, runtime logs, analytics.
  2. 2
    Connect BrowserbaseHeadless browsers, sessions, replays.
  3. 3
    Connect GitHubRepos, issues, pull requests, actions.
  4. 4
    Connect OpenAIModels, embeddings, files.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.