nextjs - 💡(How to fix) Fix Docs: AI Agents guide appears to be a hallucination [3 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#91251Fetched 2026-04-08 00:42:05
View on GitHub
Comments
3
Participants
3
Timeline
9
Reactions
0
Assignees
Timeline (top)
commented ×3labeled ×2assigned ×1closed ×1
RAW_BUFFERClick to expand / collapse

What is the documentation issue?

The whole of this page: https://nextjs.org/docs/app/guides/ai-agents (/docs/01-app/02-guides/ai-agents.mdx) appears to be a hallucination. I have just run create-next-app@latest yesterday and neither the AGENTS.md file nor the docs in node_modules exist.

Is there any context that might help us understand?

You shouldn't need any more.

Does the docs page already exist? Please link to it.

No response

extent analysis

Fix Plan

The fix is to update the documentation to reflect the actual files and directories created by create-next-app.

Steps to Fix

  • Check the actual files and directories created by create-next-app:
    • Run create-next-app my-app (replace my-app with your app name)
    • Verify the files and directories in the created project
  • Update the documentation to reflect the actual files and directories:
    • Remove references to non-existent files (e.g. AGENTS.md)
    • Update the documentation to match the actual project structure

Example Code

No code changes are required, only updates to the documentation. However, you can verify the project structure by running:

npx create-next-app my-app
cd my-app
ls -l

This will show you the actual files and directories created by create-next-app.

Verification

  • Verify that the updated documentation reflects the actual files and directories created by create-next-app.
  • Check that the documentation is accurate and helpful for users.

Extra Tips

  • Make sure to test the documentation changes thoroughly to ensure they are accurate and helpful.
  • Consider adding a note to the documentation indicating that it may not reflect the exact files and directories created by create-next-app, in case the project structure changes in the future.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING