--- title: "Use cases" canonical: "https://www.rumvision.com/use-cases/core-web-vitals-on-autopilot-with-ai/" --- Breadcrumbs: [Home](https://www.rumvision.com/?format=md) > Use cases # Core Web Vitals on autopilot: how elgentos uses a 3 a.m. night shift to fix webshop speed What if your team could start the day with a performance fix ready to review? Every night at 3 a.m., Magento 2 agency elgentos uses real-user data to find quick wins across its clients’ stores. Its Nightly Watch traces findings to the right file, tees up fixes and knows when to leave a finding alone. Here’s how elgentos built it and how you can put it to work as well. > This use-case was also featured live on stage at Meet Magento Netherlands 2026 by Peter Jaap Blaakmeer (CTO and co-founder Elgentos) and Karlijn Löwik (CEO RUMvision) . [You can watch the video of the talk online](https://drive.google.com/file/d/1HPwn8rRheFhri1zQc2BRUbqZXhixIFCA/view) or [view the slides](https://docs.google.com/presentation/d/1zHl5OT5EE_7w34C1fyl8ao_KglteXn63/edit?slide=id.p1#slide=id.p1), or simply continue to read here! Every morning, [elgentos](https://elgentos.nl) developers open their GitLab merge requests. Some now come from a colleague who starts at 3:00 a.m. The agency's nightly job pulls open health checks and warnings from the RUMvision API, searches client Magento repositories, and hands small fixes to its internal coding agent. By the time developers sit down at their desks, a merge request is waiting with the original finding, the agent's diagnosis, and the pipeline test results. In its first 30 days, the workflow filed 49 GitLab issues across 12 domains, and 44 were already closed by the time elgentos presented the results. It also rejected 50 findings. > "We're a lazy bunch, so I didn't like to ask," founder Peter Jaap Blaakmeer said during the talk. "Nobody runs the MCP at night manually, and nobody likes to do it for low hanging fruit during the day." ## Start with the work developers keep repeating A RUMvision [health check](https://www.rumvision.com/help-center/health-checks/?format=md) flags a product photo that [lacks `fetchpriority="high"`](https://www.rumvision.com/blog/optimize-your-lcp-with-fetchpriority-high/?format=md). A developer opens the repository, traces a Magento layout block into a Hyvä template, checks client overrides, and eventually lands on the image tag. The change itself might take one attribute. Finding where to put it takes much longer. Across client stores, the same investigation keeps coming back. elgentos split the work between a PHP command that manages the schedule and API calls, a read-only Claude Code step to triage each finding, and Señor Code, its internal coding agent, to prepare the actual patch. Developers review and merge the result. The agency already ran the same setup for backend performance issues from [Tideways](https://tideways.com). Reusing the schedule, GitLab integration, and coding agent structure let Peter Jaap **wire up the RUMvision version in roughly two hours.** In the talk, the workflow was framed around a broader shift toward P90, where nine out of ten visits get a good experience instead of leaving a quarter of users behind at P75. ![05-everyone-moves.png](https://www.rumvision.com/file/upload/img/05-everyone-moves.png)![why-we-watch-p90-explainer.webm](https://www.rumvision.com/file/upload/img/why-we-watch-p90-explainer.webm) "Why accept a bad experience for 25% of your users? If someone comes in for the first time on a category page and it's really, really bad, we see in our data that they tend to bounce very often." > Or, as a farmer on the Dutch TV show *Boer zoekt vrouw* once put it: you never get a second opinion on a first impression." Each RUMvision health-check finding carries its template, device, and metric context into the GitLab ticket so the team knows where to verify the change after deployment. ## 1. Give the job a finding and the right repository It starts with `0 3 * * *` in GitLab CI. The schedule runs a PHP 8.5 command built with Symfony Console. For each mapped client domain, it fetches open health-check findings and warnings: `GET /api/v1/health-checks/rumvision.com?status[]=open&status[]=warning` A result might come back as `lcp-fetchpriority` on the product-detail template on mobile. The command checks whether it has already seen the finding, maps the domain to its GitLab project, and creates a shallow clone for inspection. elgentos uses the [REST API f](https://www.rumvision.com/help-center/apis/client/introduction/?format=md)or the scheduled job because its [MCP setup required](https://www.rumvision.com/help-center/apis/mcp/introduction/?format=md) an OAuth session, whereas a cron job needs to run unattended. In the setup shown in the talk, the job spaces requests roughly 13 seconds apart and respects retry delays when rate limits hit. One failing domain leaves the others running. If zero health checks come back across every domain, the job fails loudly and alerts the team so someone can investigate issues like an expired or invalid key. An internal dashboard tracks whether the run succeeded, how long it took, and how many issues were created. ## 2. Ask the read-only agent for a verdict The command runs a pinned version of Claude Code inside the shallow clone, paired with a triage skill that defines what counts as a quick win: `claude -p "$PROMPT" --allowedTools Read,Grep,Glob,Skill --disallowedTools Write,Edit,NotebookEdit,Bash,WebFetch --output-format text` The agent traces the finding back to the codebase. To accept it, it has to find a small frontend fix that fits within a few hours, delivers a measurable improvement, and avoids touching Magento Core or changing the architecture. When it accepts a finding, it outputs the file and line number, current and proposed code, expected gains, risks, and what to verify after deployment. ![07-the-triage-contract.png](https://www.rumvision.com/file/upload/img/07-the-triage-contract.png) Of the 50 rejected findings, 20 came from the image-priority check (`lcp-fetchpriority`). Sometimes the hero lived in Page Builder or an external CMS like Prismic where the repository could not reach it, and sometimes the attribute was already present. Other findings pointed to a generic layout wrapper or a click-rendered menu that needed a broader refactor. Infrastructure-heavy checks such as low bfcache rates and slow third-party scripts also stay out of the automated queue. ![08-fifty-rejections-by-check.png](https://www.rumvision.com/file/upload/img/08-fifty-rejections-by-check.png) > "Rejection is the job," Peter Jaap noted on stage, pointing to Cloudflare's example where an unrestricted AI setup generated hundreds of pull requests a day. Every accepted finding has to earn a developer's review time. ## 3. Put a specific change on the sprint board When a finding passes triage, the PHP command creates a confidential issue in the client's GitLab project. Keeping tickets confidential at first lets the team check whether the finding is real or noise before a client sees an unexplained technical ticket in their backlog. The issue includes the template, device, metric overview, diagnosis, and proposed code change. ![10-accepted-issue-screenshot.png](https://www.rumvision.com/file/upload/img/10-accepted-issue-screenshot.png) Señor Code then picks up the ticket, prepares the patch, and opens a merge request. From there, elgentos's normal pipeline runs static checks, security tests, and end-to-end tests. When a developer opens the merge request in the morning, the original finding, proposed diff, and test results are already there. ### Two findings, one product gallery A Hyvä product gallery example from the talk showed how specific this gets. Separate mobile and desktop findings pointed to the same `gallery.phtml` template. Claude traced the product image through the template and accounted for a client-specific part-finder override along the way. Because the main image was already in the initial HTML, the browser could discover it early. The patch added `fetchpriority="high"` to that image and updated the Alpine gallery so the active image loaded eagerly at high priority while the remaining gallery photos stayed lazy-loaded. ![11-merged-mr-screenshot.png](https://www.rumvision.com/file/upload/img/11-merged-mr-screenshot.png) One merge request linked both issues. A developer tested a product with four photos across mobile and desktop to verify that only the active image loaded eagerly at high priority, then merged the single-file patch and closed both tickets. The field data is still coming in. Mobile LCP on product pages in RUMvision will show whether the fix paid off. ## 4. Keep the night shift from flooding the backlog elgentos ran the workflow in dry-run mode for the first few weeks to see what the agent would propose. Early runs also produced duplicate issues and showed how quickly uncapped AI runs can burn through token budgets, which led to strict guardrails: Situation What the nightly job does A repo has several candidates Analyse up to three findings and file at most one new issue per repo per night. Within a check, start with the oldest finding. Several clients have candidates Stop after 15 new issues across all clients that night. A finding has appeared before Look up a fingerprint of the domain, check, and finding ID in open and closed issues. Store rejected verdicts in `state/rejected.json`. An open issue or agent merge request already touches the file Add a note to the existing issue instead of opening a duplicate. More than half the analyses are unreadable Fail the run and alert the team. A patch is ready Leave review and merge to a developer. A typical nightly triage run takes around five minutes, while testing, review, and deployment happen during the workday. ## How to try it on one store If you want to test a similar setup on your own storefront or agency workflow, start small: 1. **Collect a baseline first:** Gather about a week of real-user monitoring data on one domain so you have a clear baseline and know which templates and devices matter. 2. **Map the domain to its repository:** Fetch open findings and warnings in CI, keeping the check, template, device, and metric values attached to each item. 3. **Run in dry mode with a read-only agent:** Give the agent a shallow clone and ask for a verdict, file location, proposed change, and verification steps. Test it on both a theme-rendered image and a CMS-managed hero to see where its boundaries are. 4. **Add deduplication and caps before creating tickets:** Put fingerprints, rejection logs, daily issue caps, and token budgets in place before a coding agent opens merge requests. 5. **Keep developers in charge of review and merge:** Let the night shift find the file and draft the patch, then verify the behavior and merge through your normal test pipeline. 6. **Check the post-deploy impact in RUMvision:** Filter RUMvision data around your deployment date and compare the same template and device before and after release, checking visit counts and P90 alongside P75 to see whether slower visits improved. For its next phase, elgentos is pairing raw RUMvision data with deploy and configuration-change annotations. That gives the workflow a clear starting point to trace regressions back to a specific release or setting change once the straightforward health-check wins are cleared.