Show HN: Get your coding agent off ~2019 JavaScript, onto modern web primitives ...

@show

Show HN: Get your coding agent off ~2019 JavaScript, onto modern web primitives github.com · 95 points · 32 comments · HN thread

TL;DR Google Chrome, with Firefox, Edge and MDN, released version 1.0 of Modern Web Guidance: over 200 curated guides (~1.7MB) packaged as an agent skill and a local search CLI, meant to steer coding agents away from JavaScript-heavy legacy patterns toward native browser features. The team reports eval pass rates rising from about 55% unguided to 92% guided across 200 tasks, and adds a deterministic legacy-scan for modernizing existing code.

  • The project ships 200+ guides covering native features such as CSS.highlights, dialog/showModal, field-sizing, popover, View Transitions, Temporal, and passkeys, plus Baseline compatibility data.
  • Installation is via npx modern-web-guidance install, or through plugin marketplaces for Claude Code, Codex, Copilot, Antigravity, Kimi Code and Grok Build; search uses an offline embedding model with BM25, with no network calls or API keys.
  • The team reports agents going from 55% to 92% pass rate on about 1,700 Playwright/AST assertions over 200 tasks; the nightly eval dashboard shows uplifts of +27 to +36 percentage points across Claude Code, Codex and Antigravity.
  • The new legacy-scan command, trained on about 30k GitHub repos, flags old patterns with a reported 92% average precision on held-out repos, but currently overlaps only about 20% of the guides' content.
  • Telemetry is on by default and collects install counts, agent name, guide IDs and search queries; it can be disabled with DISABLE_TELEMETRY=1.
  • The guides are licensed CC-BY 4.0 and the code Apache 2.0, and the source is on GitHub under GoogleChrome/modern-web-guidance-src.

Links in the post

  • Modern Web Guidance 1.0 announcement: Chrome blog post announcing the 1.0 release, with the modernization workflow, cross-browser partnership with Firefox and Edge, and customer quotes from Policybazaar, WeTV, note and MetaMask.
  • Linked HN thread: Could not be read; referenced in the submission as the prior post on the topic.
  • Guides index: Category listing of the guides (visual design, UI components, forms, CSS, JavaScript, performance, security, PWA, built-in AI, WebMCP and others).
  • Eval dashboard and project page: Project page with nightly A/B eval results comparing guided and unguided agents, pass rates and accessibility checks, and methodology notes.

Discussion The thread is a mix of practical interest and skepticism about Chrome steering web development. Many commenters welcome the idea of curated, token-efficient platform knowledge, and several praise it as a way to stop agents writing JavaScript that native features make unnecessary. Others worry about Chrome's influence over web standards, and some question whether AI-generated code and best practices matter at all. Maintainers, including paulirish and kinlan, respond directly, and the most concrete suggestion was to publish the guides as plain markdown or llms.txt so agents can fetch them without installing anything. The mood is mostly curious and measured, with a sizable undercurrent of distrust toward Google.

  • Useful, fills a real gap in agent knowledge (many): Commenters say agents keep producing div-plus-JS code where native features exist, and that a curated guide set would cut review burden. Some describe having written similar tools themselves.
  • Worry about Chrome's influence on web standards (some): Some fear that if agents follow Chrome's guidance, Chrome's implementation choices become de facto standard and push out other browsers. Others reply that Firefox and Edge are co-stewards and that guides only recommend Baseline features.
  • Prefer plain docs or llms.txt over an installed CLI (some): Simon Willison suggests publishing a markdown index that agents can fetch and grep without any npm install, and others echo the progressive-disclosure argument. The maintainers agreed and pointed to an existing guides.md.txt file.
  • Best practices matter more as AI writes the code (some): Several argue that maintainability and UX quality matter more when no one reads the generated code, and that small, simple solutions help agents and humans alike.
  • Skeptical that the legacy scan is useful yet (a few): One commenter ran the legacy scan on their own code and found only two issues, saying training beats skills. The maintainer replied that the scan is tuned for low false positives and will broaden in coming months.
  • Browser compatibility and manual testing still needed (a few): A commenter notes that modern features need years of browser-specific bug fixing and that AI does not remove the need for cross-browser testing.

Links from the comments

#webDev #aiAgents #browserStandards #javascript #accessibility