使用 Copilot 代理模式进行更长时间的编码会话
Run longer coding sessions with Copilot Agent Mode
一位开发者从 Copilot 语法问题转向代理模式会话,切换到 Claude Sonnet 模型,并尝试构建更完整的事物.
做了什么
After a GitHub tutorial attempt stalled, Jonas started a repo for a web app to track scores for his Partners board game group. He added an outline and his existing JSON data, then used VS Code agent mode with Claude Sonnet. The agent built score entry, a history table, statistics charts, avatar mood pop-ups, Danish/English support and dark mode. He made only a few manual edits.
效果如何
He got a working app, deployed on Digital Ocean App Platform. The tutorial attempt ended in a loop of the agent undoing its own changes. The hover pop-up caused similar trouble, and the repo needs cleanup of leftover agent files.
值得注意
The agent often lost its link to the editor and reported its own port as in use, which cost time. Commit after each working step, which he forgot to do.
试试这个 Prompt
Use agent mode with Claude Sonnet as the model to build [a small but complete feature or app, e.g. a CRUD page for X] in my project in [folder or repo]. Work in stages: first propose a plan and file list, then implement it, run the app or tests, and fix any errors you hit. Finish when the feature works end to end, and give me a summary of the files you changed and how to run it.