Skip to content

Document agent upgrades across Next.js - #99293

Merged
aurorascharff merged 18 commits into
canaryfrom
jiwon/document-agent-upgrade-guide
Oct 2, 2026
Merged

aurorascharff merged 18 commits into
canaryfrom
jiwon/document-agent-upgrade-guide

Conversation

@devjiwonchoi

@devjiwonchoi devjiwonchoi commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Why?

Document the supported next upgrade --agent workflow without presenting the unfinished experimental-future policy as the recommended path in feature guides.

How?

  • Add a human-facing Agent Upgrade guide and an experimental.agentUpgrade API reference.
  • Link the workflow from the App and Pages upgrade docs, CLI reference, and AI agent guide.
  • Document the security, latest, and experimental-future policies in the upgrade guide, CLI reference, and config reference.
  • Keep the dedicated Skills as the recommended path for Cache Components, Partial Prefetching, and the combined Instant Navigation migration.
  • Explain that version upgrades provide the applicable migration guides and Skills to the coding agent.
  • Show the interactive agent, model, reasoning, Auto-permission, and worktree prompts.
  • Document the non-blocking next dev and next build reminders, the DevTools Vulnerability Insight, and the default security policy from Enable agent upgrade reminders by default #99311.

Verification

  • Prettier passes on all changed documentation files.
  • Targeted ESLint passes with no errors.
  • Alex reports no new warnings in the changed content.
  • Feature guides recommend the dedicated Skills instead of experimental-future.

Closes NAR-944

Make the experimental agent upgrade workflow discoverable from the upgrading and CLI docs. Add a guide for policies, agent handoff, and reminders using the planned agentUpgrade setting ahead of the source rename.
@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Tests Passed

Commit: 883ea26

@aurorascharff aurorascharff changed the title Document AI upgrade behavior and reminders Document agent-guided upgrades across Next.js Sep 27, 2026
@devjiwonchoi
devjiwonchoi marked this pull request as ready for review September 27, 2026 08:29
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-27T08:36:04.463984Z fdc87cd Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fdc87cd4e9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@aurorascharff
aurorascharff marked this pull request as draft September 27, 2026 08:38
@aurorascharff
aurorascharff marked this pull request as ready for review October 1, 2026 19:02
Copilot AI balanced review requested due to automatic review settings October 1, 2026 19:02
@aurorascharff aurorascharff changed the title Document agent-guided upgrades across Next.js Document agent upgrades across Next.js Oct 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

It consistently documents the nonexistent --agent flag instead of --ai and includes additional API and prompt inaccuracies.

Review effort: Balanced
Findings: 12 Medium severity

Open (12)
What changed in this PR

Documents agent-guided Next.js upgrades and integrates the workflow across upgrade, CLI, configuration, and AI-agent documentation.

Changes:

  • Adds an agent upgrade guide and agentUpgrade API reference.
  • Documents policies, reminders, prompts, and migration behavior.
  • Links the workflow from related guides and references.
File Description
docs/​02-pages/​02-guides/​upgrading/​index.mdx Links Pages upgrades to the agent workflow.
docs/​01-app/​03-api-reference/​06-cli/​next.mdx Documents the CLI option and policies.
docs/​01-app/​03-api-reference/​05-config/​01-next-config-js/​agentUpgrade.mdx Adds the configuration reference.
docs/​01-app/​03-api-reference/​05-config/​01-next-config-js/​agentFeedback.mdx Notes the create-next-app default.
docs/​01-app/​02-guides/​upgrading/​version-16.mdx Recommends agent-guided version 16 upgrades.
docs/​01-app/​02-guides/​upgrading/​index.mdx Links App upgrades to the agent workflow.
docs/​01-app/​02-guides/​upgrading/​codemods.mdx Connects codemods with agent upgrades.
docs/​01-app/​02-guides/​upgrading/​agent-upgrade.mdx Adds the primary workflow guide.
docs/​01-app/​02-guides/​mcp.mdx Updates MCP upgrade guidance.
docs/​01-app/​02-guides/​ai-agents.mdx Introduces agent-guided upgrades.
docs/​01-app/​01-getting-started/​18-upgrading.mdx Adds the guided-upgrade command.
docs/​01-app/​01-getting-started/​01-installation.mdx Links installation guidance to upgrades.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/01-app/02-guides/ai-agents.mdx Resolved
Comment thread docs/01-app/02-guides/mcp.mdx Resolved
aurorascharff and others added 2 commits October 2, 2026 15:01
The MCP guide rewrite in #99583 replaces this section, so keep the
guide unchanged here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@aurorascharff
aurorascharff merged commit d2608c1 into canary Oct 2, 2026
57 checks passed
@aurorascharff
aurorascharff deleted the jiwon/document-agent-upgrade-guide branch October 2, 2026 13:12
aurorascharff added a commit that referenced this pull request Oct 2, 2026
## Summary

Bring the MCP guide in line with `next-devtools-mcp` 0.4.0 and the
runtime tools on canary.

- describe the four connector tools (`nextjs_index`, `nextjs_call`,
`nextjs_docs`, `browser_eval`) and explain that the docs and browser
tools point the agent elsewhere instead of doing the work
- replace the Playwright MCP integration with `agent-browser`, which
`next-browser` merged into in 16.3
- list the runtime tools at `/_next/mcp` using the descriptions
registered in `packages/next/src/server/mcp/tools`, including the
previously missing `get_request_insights`, and correct `get_errors` (it
does not return type errors) and `get_server_action_by_id` (it does not
inspect component hierarchies)
- add the `npx add-mcp next-devtools-mcp@latest` install option and note
that Skills such as `next-dev-loop` call `/_next/mcp` directly
- rebuild the example transcript with `nextjs_index` and `nextjs_call`,
replacing the removed `nextjs_runtime` tool
- document that the endpoint is enabled by default and can be turned off
with `experimental.mcpServer: false`, and add that to troubleshooting
- remove the "Using with agents" section, which repeated the
capabilities in vaguer terms

Stacked on #99293. Also removes the stale upgrade example, which relied
on the `upgrade_nextjs_16` tool removed in `next-devtools-mcp` 0.4.0.

## Verification

- Tool names and descriptions checked against
`get-or-create-mcp-server.ts` and each tool file on canary
- Connector tools checked against the `next-devtools-mcp` 0.4.0 README
- `mcpServer` default checked in `config-shared.ts`
- Prettier and `alex` pass on the changed file

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- NEXT_JS_LLM -->

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants