Post

Next.js 16.2: AI Improvements • Next.js-aware browser lets Agents improve your app • 𝙰𝙶𝙴𝙽𝚃𝚂.𝚖𝚍 included in 𝚌𝚛𝚎𝚊𝚝𝚎-𝚗𝚎𝚡𝚝-𝚊𝚙𝚙 by default • Browser errors forwarded to terminal • Dev server lock file prevents duplicate servers nextjs.org/blog/next-1...

nextjs.orgNext.js 16.2: AI ImprovementsNext.js 16.2 ships AGENTS.md in create-next-app, browser log forwarding, dev server lock file with PID, and next-browser for AI agent debugging.

3 reposts15 likes

@𝚟𝚎𝚛𝚌𝚎𝚕/𝚗𝚎𝚡𝚝-𝚋𝚛𝚘𝚠𝚜𝚎𝚛 lets agents inspect a running Next.js app from the terminal. Component trees, PPR shells, screenshots, network requests. Agents can lower Suspense allowing more cached content to be included in the static prerender.

𝚌𝚛𝚎𝚊𝚝𝚎-𝚗𝚎𝚡𝚝-𝚊𝚙𝚙 now ships 𝙰𝙶𝙴𝙽𝚃𝚂.𝚖𝚍 by default, pointing agents to version-matched docs bundled in 𝚗𝚘𝚍𝚎_𝚖𝚘𝚍𝚞𝚕𝚎𝚜. This hit a 100% eval pass rate vs. 79% for skill-based approaches.

Next.js now forwards all browser errors to the terminal during development, making it easy for agents to fix client-side bugs.

𝚗𝚎𝚡𝚝 𝚍𝚎𝚟 now writes a lock file with the server's PID, port, and URL. When a second server tries to start, the agent gets everything it needs to resolve the conflict in one shot.