I’ve recently been playing with Agent Mode in VS Code, which looks promising. If you’re using VS Code and want to give your development a turbo boost, you’ll want to hear about this.

What is VS Code Agent Mode?

Think of it as an autonomous AI pair programmer integrated directly into your VS Code editor, via GitHub Copilot. Unlike traditional code completion or simpler AI chat interactions, Agent Mode is designed for multi-step, complex coding tasks.

You give Agent Mode a high-level task in plain English (or other supported languages). For example, “Create a React component for a user login form” or “Refactor this Python module to use a more efficient algorithm and add error handling.”

Agent Mode then:

An agent will often ask for confirmation before running terminal commands or making significant changes. You can review all suggested edits, accept or discard them, and guide the agent with follow-up prompts.

Getting Started with Agent Mode

Before you can harness the power of Agent Mode, make sure you have the following:

Now you are ready to start work with your agent. :)

Building a To-Do App with Agent Mode

Click on the GitHub Copilot Icon at the top of the window, and you will see the AI chat on the right sidebar. In the chat section, select “Agent” from the menu and then write your first prompt.

create a simple to-do app using Python and Django framework

After that, follow the instructions that you will see in the chat window.

The first version of my app was very basic — literally just a title saying “To-Do List.” Not quite a functional app! :)

This is where the iterative nature of Agent Mode shines. I went back to the chat and gave it more specific instructions:

The web page contains only a header; there is no real application. 
Please create a real to-do application with the following features: 
1. Add Task: a form to add new tasks. 2. Mark Task as Completed. 3. 
Delete Task.

Now, the Agent understood much better. It started creating the Django models, views, templates, and URL configurations. It showed me the files it was changing, and I could review them.

The app was functional, but it looked very plain.

So, my next prompt was:

Add Bootstrap styling to my application and make it pretty.

And just like that, it modified the HTML templates to include Bootstrap CSS, and the app started looking much nicer.

I kept going, asking it to add a dark/light theme toggle button and a login/logout system. Each time, I’d give it a prompt, it would work through the changes, and I’d review and continue.

Within about 10–15 minutes of back-and-forth, I had a pretty decent-looking to-do list application with basic functionality, styling, a theme toggle, and user authentication.

It’s a simple example, but I hope it shows how to start with the agent. There is much more to explore, and I could deep-dive in my future tutorial if I see the interest from my audience.

Tips

Video Tutorial: VS Code Agent Mode

I also created a video tutorial where I take you through all the steps.

Watch on YouTube: VS Code Agent Mode

Final Thoughts

VS Code Agent Mode is quite powerful tool. It’s not going to replace developers, but it can definitely act as a massive productivity booster, helping with boilerplate, generating initial structures, and even assisting with debugging. It feels like having a very knowledgeable developer by your side who can quickly scaffold out ideas.

If you’re already in the VS Code and GitHub Copilot ecosystem, I highly recommend you enable Agent Mode and give it a try.

Cheers! :)