Recently, GitHub Copilot’s Agent Mode became available in the VSCode Insiders preview. This new mode can iterate over its own code, recognize errors, and correct them automatically. Additionally, it can suggest terminal commands and request their execution, as well as analyze runtime errors and apply auto-corrections.
Now, instead of just executing the requested task, Copilot can also add additional tasks that were not specified in the prompt but are necessary for the solution to work correctly. It can identify its own errors and apply fixes directly in the code.
I've been testing Agent Mode for a few weeks in experimental projects to better understand how it works and how it can impact my productivity in development.
A Practical Example
One of the most interesting features of Agent Mode is its ability to analyze an entire project (or just specific files) and automatically generate solutions. It can even create new files when necessary.
To test this, I created a simple CRUD project and asked Copilot to add a new route to list trucks and drivers together, combining two existing routes:
Agent Mode started analyzing the code, identified relevant references within the project, and determined the ideal approach to apply the requested solution.
Shortly after, it created a new file, automatically including the necessary component imports for the listing and the requests.
Next, it added the request to list trucks and drivers, including the filtering logic:
And structured the display of results:
Finally, Copilot identified that it was necessary to register the new route in the main routes file and made this modification automatically:
The new route was added along with the import of the newly created page:
All of this was generated from a single message in the Agent Mode chat. This is just one example of the countless possibilities this new feature offers. For now, Agent Mode is still in preview, but I have already noticed a significant increase in productivity while using it. I believe that in the future, it will become even more refined and a great ally in development, reducing rework and eliminating the need to copy code from other sources.
Top comments (0)