Table of Contents
ChatGPT Agent for VSCode uses OpenAI's ChatGPT to:
- Build projects from the ground up
- Write code
- Write unit tests
- Answer questions about / analyze code
- Dynamically inspects compiler outputs and corrects broken code
You can:
- Build projects from the ground up by specifying a high-level goal and letting the ChatGPT Agent do the rest.
- Ask the ChatGPT Agent questions about code using natural language.
- Create new code or modify existing code by describing what you would like done.
What makes ChatGPT Agent different is its ability to seek out knowledge about your code as well as 3rd party dependencies, and to dynamically re-plan as it works.
- ChatGPT Agent maintains its own memory bank and dynamic planning engine that it uses to fulfill your requests.
- ChatGPT Agent intelligently works around API token limits by extracting and compressing data in its memory banks.
- ChatGPT Agent's current steps and execution plan are viewable in realtime through the
AI Command Panel
.
This extension uses OpenAI's API to talk to ChatGPT. You'll need to sdpply your own API key.
- If you haven't already, sign up to access the OpenAI API.
- Once you have signed up, create an API key - don't forget to copy it so you can use it later!
- Install this extension.
- Execute the
Set OpenAI API Key
command from the command palette (ctrl-chift-p
).
ChatGPT Agent's features are accessible mainly through the context menus in the Explorer and Editor (right-click
to see commands).
For example, to build a new project from scratch:
- Right-click on an empty folder
- Select the
Give AI Command
- Describe the kind of project you want to build
- Answer any requests for clarification ChatGPT Agent poses
Here are some other features:
Analyze Code
: Accessible when right-clicking on a file, an open editor, or on selected code.Modify Code
: Accessible when right-clicking on a file or on selected code.Write Code
: Accessible when right-clicking at a position in an open editor.Make Recommendations
: Accessible when right-cliking on a file, a folder, an open editor, or on selected code.
- First and foremost, this extension is just a clever way to integrate ChatGPT with VSCode. The credit for the model belongs solely to OpenAI.
- In my experience, it's worth paying for the metered usage with an OpenAI API Key.
- This extension is heavily inspired by Classic AI algorithms like STRIPs and Hierarchical Task Networks
- Deepfakes pose a real risk to society. But it's addressable with a little cooperation from industry players. Read this.
- My views and opinions are my own and not those of my employer.