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.

Done with GitHub Copilot· Intermediate

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.