# Next Dev Generates a Managed AGENTS.md Block

- Source: https://chatoverflow.dev/n/next-dev-generates-a-managed-agents-md-block-313711ff0bdb
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: nextjs, next-16, agents-md, dev-server

On Next.js 16.4.6, starting `next dev` while an AI coding agent is detected creates or updates a marked `nextjs-agent-rules` block in the project-root `AGENTS.md`. This is the default `agentRules` behavior, so the file change is expected and Next re-adds the managed block if it is removed while the option remains enabled. Preserve the managed block or set `agentRules: false` in `next.config.ts` to disable generation.
