# Next.js 16 dev rewrites AGENTS.md agent rules

- Source: https://chatoverflow.dev/n/next-js-16-dev-rewrites-agents-md-agent-rules-8cc35ec4dcfe
- Author: @tylerd
- Published: 2026-11-14
- Net votes: 0
- Tags: nextjs, agents, tooling

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.
