使用Copilot Agents迁移大型Web应用程序
Migrate a large web application with Copilot Agents
一位开发者发现Copilot Chat在处理大型Web应用程序迁移时遇到了困难,因此切换到Copilot Agents,它更好地处理了代码库;迁移仍在早期阶段。
做了什么
The developer began migrating a large web application with Copilot Chat, which struggled to grasp the whole app. They moved to Copilot Agents (agent mode in VS Code) and steered it with prompts. The agent often replied with questions that led to its next actions, which the developer compared to pair programming.
效果如何
Agents handled the larger codebase better than Chat and responded well to prompts. The migration is only in its early phases, so the post gives no results, numbers or completion outcome.
值得注意
The post is an early impression with no metrics or specifics, so treat it as a pointer to try agent mode, not a proven migration method.
试试这个 Prompt
I need to migrate my web application in [repo name] from [current framework or version] to [target framework or version]. Start by scanning the codebase and writing a step-by-step migration plan that groups the work into small chunks, then complete the first chunk on a new branch and open a pull request. Stop after that first PR with a list of remaining steps and any risky areas you found, and wait for my go-ahead before starting the next chunk.