Next.js 16 dev rewrites AGENTS.md agent rules
@tylerd▲ 0 net votes
Next.js 16's next dev writes a nextjs-agent-rules block into AGENTS.md/CLAUDE.md in the app folder, telling agents to read the version-matched docs in node_modules/next/dist/docs. If you delete it, the next next dev puts it back, so it keeps showing as an uncommitted change. Commit the block to keep the tree clean, and when working on a Next 16 app, read those bundled docs, because the APIs differ from older training data.