8a21a212f8
Deploy Documentation / deploy (push) Has been cancelled
Canary / build-cli (push) Has been skipped
Canary / Upload Install Script (push) Has been skipped
Canary / bundle-desktop (push) Has been skipped
Canary / bundle-desktop-intel (push) Has been skipped
Canary / bundle-desktop-linux (push) Has been skipped
Canary / bundle-desktop-windows (push) Has been skipped
Canary / bundle-desktop-windows-cuda (push) Has been skipped
Canary / Release (push) Has been skipped
Cargo Deny / deny (push) Has been skipped
Unused Dependencies / machete (push) Has been skipped
Canary / Prepare Version (push) Failing after 1s
Live Provider Tests / check-fork (push) Failing after 0s
Create Minor Release PR / check-version-bump-pr (push) Has been skipped
Publish Ask AI Bot Docker Image / docker (push) Failing after 1s
Live Provider Tests / changes (push) Has been skipped
Scorecard supply-chain security / Scorecard analysis (push) Has been skipped
Publish Docker Image / docker (push) Failing after 1s
CI / changes (push) Failing after 8s
Create Minor Release PR / release (push) Has been skipped
Live Provider Tests / Smoke Tests (push) Has been cancelled
Live Provider Tests / Smoke Tests (Code Execution) (push) Has been cancelled
Live Provider Tests / Compaction Tests (push) Has been cancelled
CI / Build Rust Project on Windows (push) Has been cancelled
Live Provider Tests / Build Binary (push) Has been cancelled
CI / Lint Rust Code (push) Has been cancelled
CI / Check Generated Schemas are Up-to-Date (push) Has been cancelled
CI / Test and Lint Electron Desktop App (push) Has been cancelled
CI / Check Rust Code Format (push) Has been cancelled
CI / Build and Test Rust Project (push) Has been cancelled
CI / Check MSRV (push) Has been cancelled
91 lines
3.5 KiB
Markdown
91 lines
3.5 KiB
Markdown
---
|
|
title: goose for VS Code Extension
|
|
sidebar_label: VS Code Extension
|
|
sidebar_position: 4
|
|
---
|
|
|
|
import IconGoose from "@site/src/components/icons/goose";
|
|
|
|
The [goose for VS Code extension](https://marketplace.visualstudio.com/items?itemName=block.vscode-goose) lets you interact with goose directly within VS Code.
|
|
|
|
:::warning Experimental Feature
|
|
goose for VS Code is in active development. Behavior and configuration may change in future releases.
|
|
:::
|
|
|
|
The extension uses the [Agent Client Protocol (ACP)](/docs/guides/acp-clients) to communicate with goose.
|
|
|
|
## Install the Extension
|
|
|
|
:::info Prerequisites
|
|
- [VS Code](https://code.visualstudio.com/) version 1.95.0 or higher
|
|
- [goose CLI](/docs/getting-started/installation)
|
|
:::
|
|
|
|
1. Go to [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=block.vscode-goose)
|
|
2. Click `Install`
|
|
3. On the popup window, click `Open Visual Studio Code`
|
|
4. In Visual Studio Code, click `Install`
|
|
5. Click the <IconGoose className="inline" size={16} /> icon in the Activity Bar to open the side panel and start chatting with goose
|
|
|
|
## Share Context with goose
|
|
|
|
There are two ways to provide context to goose.
|
|
|
|
### Send Selected Code
|
|
|
|
1. Select the code you want to discuss in your editor
|
|
2. Send the selection to goose:
|
|
- macOS: `Cmd+Shift+G`
|
|
- Windows/Linux: `Ctrl+Shift+G`
|
|
- Right-click and choose `Send to goose`
|
|
|
|
The selected code will appear as a context chip above the chat input.
|
|
|
|
### Attach Files with @ Mentions
|
|
|
|
1. Type `@` in the chat input and start typing the file name
|
|
2. Select the file:
|
|
- Use the arrow keys (↑/↓) to select the file and press `Enter`
|
|
- Use your mouse to select the file
|
|
|
|
The attached file will appear as a context chip above the chat input.
|
|
|
|
## Example Usage
|
|
|
|
The goose for VS Code extension connects directly to your editor, letting you manage files, projects, and workflows with AI. It includes the following features:
|
|
|
|
- Interactive chat UI with streaming responses
|
|
- Access to goose's AI capabilities and enabled extensions
|
|
- Session management with history replay
|
|
- Context sharing and visual context chips in the chat UI
|
|
- Clipboard tools to copy code snippets/responses for easy sharing
|
|
|
|
### goose Prompt
|
|
|
|
```
|
|
Update the contributing guide at /goose/CONTRIBUTING.md with instructions on how to start docusaurus dev server
|
|
```
|
|
|
|
### goose Output
|
|
|
|
```
|
|
|
|
I'll help you update the CONTRIBUTING.md file with instructions for starting the Docusaurus dev server. First, let me check the current content of the file.
|
|
|
|
─── developer__text_editor | view ──────────────────────────
|
|
|
|
I'll now update the CONTRIBUTING.md file to include instructions for starting the Docusaurus dev server. I'll add this information in a new section under the Node section.
|
|
|
|
─── developer__text_editor | str_replace ──────────────────────────
|
|
|
|
I've successfully updated the CONTRIBUTING.md file to include instructions for starting the Docusaurus dev server. I added a new "Documentation" section right after the Node section, which provides clear step-by-step instructions for:
|
|
|
|
Navigating to the docs directory
|
|
Installing dependencies
|
|
Starting the development server
|
|
I also included helpful information about the hot-reloading feature and the local server URL. The formatting is consistent with the rest of the document, using proper markdown syntax for code blocks and headers.
|
|
|
|
Is there anything else you'd like me to add or modify in the contributing guide?
|
|
|
|
```
|