Modern Web Guidance: Your Coding Agent's Map Is Stuck in 2019 – Who Ships the Update?
Google Chrome's Modern Web Guidance skill pulls the modal your coding agent drew from a 2019 map onto today's <dialog>, with short guides and honest browser support notes. Out of the box, though, it runs @latest on every call, keeps telemetry on without telling plugin users, and never looks at Volt or .phtml templates.
This post is also available in Turkish →
Ask a coding agent for "a window that asks for confirmation before deleting". More often than not you get a div, a semi-transparent overlay on top, a hand-rolled focus trap and an event listener waiting for Esc. It works. It also reinvents the <dialog> element browsers have shipped for years. Modern Web Guidance, which the Google Chrome team took to 1.0 in November, was written for exactly this problem. Its Show HN title was "Get your coding agent off ~2019 JavaScript, onto modern web primitives", and it sat fourth in Trendoday's November Show HN roundup.
The agent drives with the map its training data gave it. On that map the roads stop around 2019 and none of the newer bridges exist. This skill is a map update. How good the update is, which roads it never drives down, and who the satnav reports your destination to: that's what follows.
What is Modern Web Guidance?#
Modern Web Guidance is an agent skill and CLI that puts curated, current browser API guides into a coding agent's context window before it starts on HTML, CSS or client-side JavaScript. The agent runs search with a two-to-five word query, pulls the matching guide with retrieve, and writes code from the pattern and browser support notes in it. Search runs locally: the package carries its own embedding data and a BM25 index, so there is no search API and no key.
The package holds 213 guides; the README counts 277 web features covered. Browser support comes from Baseline data. "Widely available" features are used without fallbacks; "Newly available" or single-engine features come with a fallback path. Experimental Origin Trial APIs and "volatile" features (single-engine, shipped in the last three months or still settling) show up in search, but retrieve withholds them unless your project opts in through .mwgrc.
Who built it: the project lives under the GoogleChrome organization, and the README says it is stewarded by the Google Chrome, Microsoft Edge, Mozilla Firefox and MDN teams together with the community. Paul Irish opened the publish repository with its first release on 23 March 2026; the npm maintainers are Paul Irish, Rick Viscomi and Connor Clark. Code is Apache-2.0, guide text is CC-BY 4.0. There is no paid tier; what Google gets in return is usage telemetry (more below).
Install and first query#
You need Node.js 22 or later. The README's wizard is npx modern-web-guidance@latest install, and there are separate install lines for Claude Code, OpenAI Codex, Google Antigravity, GitHub Copilot CLI and npx skills. I would try it pinned and with telemetry off:
export DISABLE_TELEMETRY=1
npx -y modern-web-guidance@1.0.3 search "light dismiss dialog"
npx -y modern-web-guidance@1.0.3 retrieve "dialog"
npx -y modern-web-guidance@1.0.3 legacy-scan ./public --json
To be upfront: I did not run the CLI inside an agent for this post. I downloaded the 1.0.3 npm package and read its source, its 213 guides and its search data. The numbers below come from there.
What's inside a guide?#
The dialog guide is a good sample. The default rule is to open <dialog> as a modal and draw the line clearly: don't add role="dialog", aria-modal, a focus trap, inert toggling or an Esc handler, because the browser already provides them. It stops background scrolling with overscroll-behavior: contain rather than overflow: hidden on body.
Hidden gem: the browser support sections are honest. For closedby, which gives you click-outside-to-close, the guide says Safari lacks it, that without it only click-outside is lost while Esc still works, and ships a small feature-detected fallback. The setHTML() sanitization guide, also missing in Safari, loads DOMPurify only when needed and points out that the two sanitizers differ by default on aria-* and data-* attributes. That is precisely the kind of detail an agent skips on its own.
When it helps, and when it doesn't#
The sweet spot is front-end work: modals, menus, tooltips, form validation, dark mode, page transitions. The skill's own description tells it to stay out of backend work (SQL, ORMs, API routes, CI), so your PHP side is left alone. The weak spots:
- Every call is
@latest. SKILL.md tells the agent to runnpx -y modern-web-guidance@lateston every search. The README frames this as keeping guides fresh. It also means the agent's next call runs newly published code without asking. Releases are weekly: 1.0.0 on 10 November 2026, 1.0.3 on 30 November 2026. The package is 285 files and 16.9 MB unpacked;legacy-scan.mjsalone is 4.9 MB of minified JavaScript. - Telemetry is on by default. The payload in the source: the agent's search query, returned guides, retrieved guide ID, agent name, OS and version, sent by a detached watchdog process to
play.googleapis.com. Raw user prompts are not collected (per the README). The notice, though, is printed only by theinstallcommand, so anyone who installs from a plugin marketplace or withnpx skills addnever sees it. A CI environment doesn't switch it off either; onlyDISABLE_TELEMETRYset to1ortruedoes. - "Token-efficient" holds per guide, not per task. By the package's own
tokenCountfield the median guide is 1,904 tokens. But SKILL.md asks the agent to pull the relevant discipline guide (html,accessibility,security...) alongside the match. One modal:dialog+accessibility+html= 3,547 + 13,341 + 5,828 = 22,716 tokens. legacy-scanis narrow. In the project's own words it covers about 20% of the catalogue; its rules point at 38 distinct guides. It reads.php,.vueand.html;.twigis listed as unsupported;.voltand.phtmlappear in no list at all.- The benchmark is their own. The README table for 20 November shows, over 229 tasks, unguided-to-guided pass rates going from 49% to 85% for Codex CLI, 54% to 94% for Claude Code and 56% to 97% for Antigravity CLI. Tasks run on the team's own base apps (
daily-grind,devtools-times) and the Playwright graders are part of the same pipeline. I haven't seen an independent rerun. - Claude Code's official plugin directory is behind. Issue #3533, opened on 12 November 2026, reports that installs from there are stuck at v0.0.194. The maintainer switched the docs to installing from the GitHub repository.
Maintenance status#
| Field | Value (1 December 2026) |
|---|---|
| Latest release | 1.0.3, 30 November 2026 (npm) |
| License | Apache-2.0 code, CC-BY 4.0 guides |
| Stars | 3.7k publish repo; 10.0k source repo |
| Open issues | 309 (source repo) |
| Security note | @latest runs fresh code on every call; telemetry on by default |
Contributions go to GoogleChrome/modern-web-guidance-src, not the publish repository.
Alternatives#
| Tool | What it does | License | When |
|---|---|---|---|
| Modern Web Guidance | Brings a current web pattern and its fallback before writing | Apache-2.0 | Handing front-end work to an agent |
| Context7 MCP (Upstash) | Brings current library documentation | MIT | The question is about a library API such as Vue or Laravel |
| eslint-plugin-compat | Checks whether the APIs you use exist in your target browsers | MIT | You want a fixed gate in CI |
| Your own AGENTS.md policy | States the browser target and component rules | — | Always, next to the others |
Short version: Modern Web Guidance is the guide before writing, eslint-plugin-compat is the gate after. Neither replaces the other. Impeccable catches the off-the-rack look of the resulting UI and Chrome DevTools MCP measures the running page; different links in the same chain.
In the field: a PHP and Vue admin panel#
Picture an admin panel built with Vue and Bootstrap 5. Ask the agent to "add a modal" with this guide loaded and it will propose a native <dialog>, while the project already uses Bootstrap's modal. Now you have two modal systems whose focus behaviour differs. The decision is yours: which components stay on Bootstrap, whether new ones go native, which browsers you target. The skill itself suggests writing that policy into AGENTS.md or CLAUDE.md; it is one more article of the constitution from the project rule files chapter. Keep volatile features explicitly off at the project root too:
{
"allowOriginTrials": false,
"allowVolatileFeatures": false
}
The second question is blind spots. In older projects with Volt templates or .phtml views, legacy-scan can report "clean" without having opened a single template. To see that, I moved the package's extension lists into a small PHP script (identifiers are in Turkish: taranır = scanned, desteksiz = unsupported, listede yok = not listed):
<?php
declare(strict_types=1);
// Uzantı listeleri modern-web-guidance 1.0.3 içindeki legacy-scan.mjs'ten.
const TARANIR = [
'css', 'scss', 'less', 'html', 'htm', 'php', 'vue', 'svelte', 'gts', 'gjs',
'astro', 'js', 'mjs', 'cjs', 'ts', 'mts', 'cts', 'jsx', 'tsx',
];
const DESTEKSIZ = ['sass', 'styl', 'mdx', 'pug', 'ejs', 'jsp', 'erb', 'cshtml', 'twig'];
const SABLON_ADAYI = ['volt', 'phtml', 'tpl', 'latte', 'hbs', 'handlebars', 'mustache', 'njk', 'liquid'];
const ATLANAN = ['.git', 'node_modules', 'bower_components', 'jspm_packages', 'vendor'];
$kok = $argv[1] ?? '.';
if (!is_dir($kok)) {
fwrite(STDERR, "Dizin yok: {$kok}\n");
exit(2);
}
$suzgec = new RecursiveCallbackFilterIterator(
new RecursiveDirectoryIterator($kok, FilesystemIterator::SKIP_DOTS),
static fn (SplFileInfo $d): bool => !($d->isDir() && in_array($d->getFilename(), ATLANAN, true))
);
$sayac = ['taranır' => [], 'desteksiz' => [], 'listede yok' => []];
foreach (new RecursiveIteratorIterator($suzgec) as $dosya) {
$uzanti = strtolower($dosya->getExtension());
$grup = match (true) {
in_array($uzanti, TARANIR, true) => 'taranır',
in_array($uzanti, DESTEKSIZ, true) => 'desteksiz',
in_array($uzanti, SABLON_ADAYI, true) => 'listede yok',
default => null,
};
if ($grup !== null) {
$sayac[$grup][$uzanti] = ($sayac[$grup][$uzanti] ?? 0) + 1;
}
}
$kor = 0;
foreach ($sayac as $grup => $uzantilar) {
ksort($uzantilar);
foreach ($uzantilar as $uzanti => $adet) {
printf("%s .%-8s %5d\n", mb_str_pad($grup, 12), $uzanti, $adet);
if ($grup !== 'taranır') {
$kor += $adet;
}
}
}
echo $kor === 0
? "Kör nokta yok.\n"
: "Taramanın görmediği {$kor} ön yüz dosyası var; onlara elle bakın.\n";
exit($kor === 0 ? 0 : 1);
php -l is clean. On a sample tree with three .volt, one .phtml, one .twig and one .sass file it reported six front-end files the scan won't see and exited with 1; on the PHP-only Altınkaynak repository it reported no blind spots and exited with 0. It skips node_modules and vendor; skipping vendor is my choice. Run it before legacy-scan and you know what a "clean" result is actually measured against.
Two lines are enough for the agent's environment: DISABLE_TELEMETRY=1, and replacing the @latest in SKILL.md with a fixed version. The second means updating by hand, which is exactly what the supply-chain reasoning from the security audit chapter asks for anyway.
Update the map, keep the route to yourself#
The content of Modern Web Guidance is solid: short guides, honest browser support notes, fallbacks that aren't skipped. For pulling an agent's 2019-map modal onto today's <dialog>, it is the tidiest source I have seen. But out of the box it is a satnav that downloads a new map every time you start it and reports where you searched to head office.
Update the map. Pick the version yourself, turn telemetry on yourself, and look at your template folders with your own eyes.
Comments
0 comments
Leave a comment