Goose is a developers agent that runs on your machine.
This runs goose in your VS Code instance every time you open it, and lets you interact with goose either directly, or you can highlight sections of code, ask questions about it, or even ask it to change the code or do work with it.
Warning
This is an experimental and work in progress extension, update it frequently. This requires that you have goose ai installed for this to work. This is a work in progress as we explore what modalities we want from goose an an IDE. Use with caution. issue tracker
You can install this extension from the extensions in VS Code directly from the marketplace:
- Ensure you have goose ai installed as a prequisite
- Install from the Visual Studio Marketplace - goose-vscode
- Restart VS Code if necessary, goose will then open up in the right hand panel.
To use goose, you can ask it questions about your codebase in the main goose panel using goose chat:
Open with command+shift+P and then open the goose terminal if not already there.
You can then ask it about your code or to take some actions.
You can also "ask goose" which can work in context of what you have highlighted:
Anywhere in your code you can "ask goose" to do something with the "code lens", or press .
to ask goose to complete what you have started:
You can ask goose to make edits, test, change something, deploy something, anything about your project. Goose will then do its best to go off and fulfill the task. Works best when you tell it how to test your code/get some feedback, so it can do that for you. Give it some time, but you can interrupt it when you need to.
Tip
Put a .goosehints
in the root of your project with some tips on how to run you project so goose knows.
There are "quick fixes" where you can ask goose to fix the problem:
Some more examples of goose in action:
Ask it to enhance code, can run commands as you on command line, take action, run tests and more.
NOTE: You don't usually need to install this from source as it is in the extensions marketplace. This is for if you want to enhance the extension or fix bugs.
Tip
You don't usually need to run this from source unless you are working on this extension.
Open this repo via code .
and then press F5 to run a new workspace with this in it.
To package the extension, run the following command:
npm install
npm run package
This will create a .vsix
file in the root directory of the project.
To install the packaged extension, use the following command:
code --install-extension your .vsix file here.
To uninstall the extension, use the following command:
code --uninstall-extension block.goose-vscode