Next.js在3月18号发布了16.2的稳定版,新增了适配vibe coding的新功能:
使用create-next-app新建Next.js项目,会自动在根目录生成一个AGENTS.md文件:
<!-- BEGIN:nextjs-agent-rules -->
# This is NOT the Next.js you know
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` before writing any code. Heed deprecation notices.
<!-- END:nextjs-agent-rules -->
还会生成一个CLAUDE.md文件,指向AGENTS.md文件:
@AGENTS.md
实测,Next.js在npm包里直接打包了391个md文档到node_modules/next/dist/docs/
node_modules比黑洞还重
效果如何:
Next.js官方做了benchmark测评:
本文参考链接:
- Next.js 16.2官方博客:Next.js 16.2 | Next.js
- AI Agents文档:Guides: AI Coding Agents | Next.js
- Benchmark:AI Agent Evaluations | Next.js by Vercel - The React Framework
- React2Shell 漏洞详情:React Blog – React



