Skip to content

square/goose-vscode

Repository files navigation

VS Code Extension for goose ai

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

Installing

You can install this extension from the extensions in VS Code directly from the marketplace:

  1. Ensure you have goose ai installed as a prequisite
  2. Install from the Visual Studio Marketplace - goose-vscode
  3. Restart VS Code if necessary, goose will then open up in the right hand panel.

Using goose in VS Code

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.

image

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:

image

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:

image

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:

image

Some more examples of goose in action:

action1

action2 action3 action4

Ask it to enhance code, can run commands as you on command line, take action, run tests and more.

Developing the Extension

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.

Running from Source

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.

Packaging the Extension

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.

Installing the Extension

To install the packaged extension, use the following command:

code --install-extension your .vsix file here.

Uninstalling the Extension

To uninstall the extension, use the following command:

code --uninstall-extension block.goose-vscode

About

VS Code extension for the goose developer agent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •