Create a filtered summary page with Copilot
Copilot agent mode in Visual Studio 2022 built a charges report in a Razor Pages app, added navigation, and drafted the commit steps.
- What they did
- A developer used Copilot agent mode inside Visual Studio 2022 on an existing Razor Pages project and described only the feature they wanted. They asked for a charges summary view that could be narrowed by a start date, an end date, and status. The agent then made the needed files, inserted a link in the menu, and handled the git add and commit workflow without the developer typing code.
- How it went
- The finished report feature came out looking good to the developer, and they said they never wrote any code themselves. In the thread, another user said agent mode can be unreliable and shared a separate example where it stubbed methods and removed code instead of moving it cleanly.
- Tips
- Give the agent a concrete feature description and let it follow the project’s existing patterns. Check the edits carefully before allowing anything that could remove code or cause data loss.
Try it yourself with GitHub Copilot
I have an existing [Razor Pages] app. Please add a new page named [report name] that presents a summary of [data] and lets me narrow results by [start date], [end date], and [status]. Put a link to it in the app’s navigation and use the same style and structure the rest of the project already uses. If any step would delete code, submit data, send something, or create a commit, stop first and ask for my approval. After the work is done, summarize the files you touched and show me the git commands to commit it with a clear message.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Use Copilot for narrow coding tasks only
A developer first let GitHub Copilot Agent Mode handle most coding, then restricted it after losing track of their own code.
Update a codebase with Copilot in chat and agent mode
A developer used GitHub Copilot to make code changes and preferred the CLI’s autopilot workflow and todo list.
Run terminal commands carefully in Copilot agent mode
A VS Code user had Copilot agent mode run shell commands, but it often missed output or got stuck until they changed the shell setup.
Assign a GitHub issue to Copilot and review the PR
A developer used GitHub Copilot to tackle a backlog issue, then checked its branch choice, tests, and pull request before deciding what to merge.
Use Copilot agent mode for multi-step coding work
Hand Copilot agent mode larger coding jobs that need file selection, command runs, and repeated fixes, not just quick text edits.
Use Copilot to scaffold a full-stack app
They let GitHub Copilot start a new full-stack app, then kept fixing setup issues until the React interface was styled and usable.