AI Learning Hub › Learn AI › Self-Paced Courses › VS Code: Files, Changes, and AI Agents › Working Alongside an AI Agent
Module 9 ยท Intermediate
Working Alongside an AI Agent
The agent is a separate actor working on the folder you opened. A repeatable workflow for watching what it changes and deciding what to keep, whichever agent you use.
By the end
- Say what an AI coding agent can do and what sets its limits
- Explain why VS Code itself is not the thing making the changes
- Run a repeatable review workflow that does not depend on which agent you use
- Know one cheap thing to try when a tool has not noticed a file
Everything so far has been preparation for this. You can find the folder, name the regions, read a diff and decide what to keep. An agent changes who makes the edits and nothing else about that list.
What an agent is doing
An AI coding agent is a separate actor working on the same files you are. Depending on which one it is and what it has been allowed to do, it may read files, create and edit them, look at how the project is organized, run commands, and sometimes touch Git.
Two things set its limits. The first is the agent itself — different tools can do different things, and permissions vary between them and between accounts. The second is the folder you opened, which is the outer boundary of what it has been pointed at. That is why Module 2 asked which folder is open, and Module 8 asked what is in it.
It is worth saying what is not happening. VS Code is not making these changes. The editor is where you can see them. When a file changes, the question to ask is which tool did it and what was that tool allowed to touch — not what the editor did.
- VS Code
- Where you inspect and work with the files.
- Files and folders
- What is actually being changed.
- The terminal
- Where commands run, in a folder you can check.
- Git and Source Control
- The record of what changed, and the view onto it.
- Extensions
- Capabilities you added to the editor.
- An AI agent
- An actor working inside the access it was given.
That is the Module 1 list again, which is deliberate. The whole course is an argument that keeping these apart is what makes supervision possible.
The workflow
This works with any agent, because it never mentions one. Each step is something you already know how to do.
- Open the right folder, and know what is in it
- Give the agent one bounded task
- See which files changed
- Read the diff
- Run, preview or test the result
- Keep, revise or discard
- Commit after review, with a message describing what you kept
Three of those steps repay a little explanation.
Bounded is the word doing the work in step two. “Correct the room number on the event page” produces a change you can check in a minute. “Clean up the site” produces one you cannot. This is not about being polite to the agent; it is about whether the review at step four is feasible.
Step three comes before the agent’s summary, or at least independently of it. Look at the Source Control view and count the files yourself. If the agent said it changed one file and three are listed, that is worth knowing before you read anything else.
Steps four and five answer different questions, which Module 6 established. The diff tells you what changed. Running the page tells you whether the result works. Neither substitutes for the other: the practice project’s stray tag passes the second test and fails the first.
A summary is a claim about the diff
Agents describe their own work, and those descriptions are usually accurate. They are also summaries, which means they are shorter than what happened and shaped by what the agent considered worth mentioning.
So treat the summary as a claim you can check rather than a report you have to accept. It tells you what to look for. The diff tells you what is there. When they agree, the review took thirty seconds and you have lost nothing.
Human review is not a ceremony performed after the real work. It is reading two or three specific things: which files are listed, what the diff says, and whether the result does what you wanted.
When a tool has not noticed something
One troubleshooting case, narrowly stated.
During the development of this course, a coding agent did not pick up a newly added configuration folder in the project until the VS Code window was reloaded. Running Developer: Reload Window from the Command Palette resolved it.
That is one observation of one tool at one moment, and it is offered as something cheap to try rather than as a rule about how agents work. If a tool does not seem to see a file that is plainly in the file tree, reloading the window costs a few seconds and sometimes helps. If it does not help, the problem is elsewhere.
Exercise: run the workflow once
Use the practice project. If you have an agent available, use it; if not, the fallback below produces the same situation.
- Open the folder. Confirm which one, and commit any changes left over from earlier modules so you start clean.
- Give one bounded task. Ask your agent to correct the room number on the event page from 180 to 290, and nothing else.
Without an agent: copyafter-the-change/index.htmloverindex.html. Do not read it first. - Count the files. Open Source Control. How many are listed?
- Read the diff before reading any summary. Write down each change in one line.
- Open the page in a browser. Does it look right?
- Decide. Is every change in that diff one you want?
- Commit what you decided to keep, with a message describing it.
If your agent did something different
That is a perfectly good outcome and arguably a better exercise. Agents vary, and yours may have changed only the one number, or tidied the file more broadly, or updated the notes files as well — which Module 4 showed also mention the room.
The workflow does not depend on what it did. Count the files, read the diff, check the result, decide. If your agent updated notes.md and assets/room-info.txt too, you now have a more interesting decision than the one this course prepared, and the same five minutes of reading answers it.
The capstone is this exercise again, with the change already made and nothing telling you what it was.