Menu

Next.js wrote a 9-line AGENTS.md into our repo, and it arrived inside a commit about something else
📰

Next.js wrote a 9-line AGENTS.md into our repo, and it arrived inside a commit about something else

DEV Community: nextjs·Daniel Pertu·1 day ago
#e2u4HQpZ
#devtonextjs#devto#dev#file#agent
Long article (811 words) — no AI summary yet.
Reading 0:00
15s threshold

Look at the history of our repository and you will find a file that nobody decided to add. AGENTS.md first appears on 30 November, in a commit titled "Remove device limit and add support assistant with plan swaps". It is one of 49 files in that commit and has nothing to do with devices or support.

The file says it was written by next dev , and the generator in node_modules confirms it. Most likely the dev server was running while someone worked on something else, the file appeared in the working tree, and it went in with everything else. I went looking because the repository has no CLAUDE.md , and an agent instructions file with no explanation is a surprise.

What the file says

Nine lines, wrapped in a pair of HTML comment markers, BEGIN:nextjs-agent-rules and END:nextjs-agent-rules .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.