Note
Moved under official Block org at https://github.com/block/vscode-goose
codename goose is an open-source, on-device AI agent that runs locally, works with any LLM provider you configure, and can autonomously tackle full-stack engineering tasks from debugging to deployment. By embedding Goose directly inside VS Code, this extension lets you ask questions, refactor code, generate tests, or spin up entire features without ever leaving your editor. Keep your code in your editor, choose the model that suits you, and let Goose handle the heavy lifting so you can stay in flow
Please be aware that this extension is under active development. Some features, especially those related to how information (like code context) is processed and sent to the AI, are experimental and may undergo significant changes. We appreciate your understanding and feedback as we work to stabilize and improve these functionalities.
- Interactive chat UI
- Access to Goose's AI capabilities directly within VS Code
- Support for coding assistance, explanations, and more
- Unified session switching
- Code referencing with visual chips in the chat UI
- Quick actions for common coding tasks
- Clipboard tools to copy code snippets/responses for easy sharing
- Keyboard shortcuts for improved productivity (cmd+opt+g / ctrl+alt+g by default for sending code to Goose; configurable)
- Smart Auto-fix loop (Let Goose automatically fix it's own mistakes based on VS Code diagnostics)
- Code action suggestions for diagnostics and terminal output
- Diff views for code changes
⚠️ VS Code 1.95.0 or higher is required for this extension to function properly.
⚠️ Goose Desktop must be installed before using this extension. 👉 Install Goose Desktop from here
There are two ways to install the Goose VS Code Extension:
- Go to the GitHub Releases page
- Find the latest release with the tag
vscode-v*
- Download the
.vsix
file - In VS Code, go to the Extensions view (Ctrl+Shift+X)
- Click on the "..." menu at the top of the Extensions view
- Select "Install from VSIX..."
- Locate and select the downloaded
.vsix
file - Restart VS Code if prompted
The Goose chat interface appears in the sidebar activity bar. Click the Goose icon to open the chat panel.
You can reference code from your editor in your conversations with Goose:
- Select code in your editor (or don't select anything to use the entire file)
- Right-click and choose "Ask Goose about this code" or use the keyboard shortcut Ctrl+Alt+G (Cmd+Option+G on macOS)
- The chat input will be automatically focused, allowing you to immediately start typing your question
The behavior varies based on how much code is selected:
- No selection: The entire active file is sent as a reference chip
- Small selections (< 100 lines): The selected code is automatically included inline with your message
- Large selections (≥ 100 lines): The code is added as a reference chip above the input box
This adaptive approach provides the best experience for different code sizes.
The extension currently provides the following quick action command that can be accessed by right-clicking on selected code:
- Ask Goose about this code - General question about the selected code
Command | Shortcut (Windows/Linux) | Shortcut (macOS) |
---|---|---|
Ask Goose about selected code | Ctrl+Alt+G | Cmd+Option+G |
This extension contributes the following settings:
goose.enable
: enable/disable this extension
For support, bug reports, or feature suggestions, please use GitHub Issues.
Detailed information about the extension's architecture can be found in docs/ARCHITECTURE.md.
Information for developers contributing to this extension can be found in docs/DEVELOPMENT.md.
This extension is licensed under Apache-2.0. See the LICENSE file for details.