Files
tkmind_go/documentation/docs/experimental/vs-code-extension.md
T

91 lines
3.5 KiB
Markdown
Raw Normal View History

2025-03-20 23:13:36 +01:00
---
title: goose for VS Code Extension
2025-07-27 02:24:27 -04:00
sidebar_label: VS Code Extension
sidebar_position: 4
2025-03-20 23:13:36 +01:00
---
import IconGoose from "@site/src/components/icons/goose";
2025-07-09 02:12:22 +02:00
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.
:::
2025-03-21 16:48:04 +01:00
The extension uses the [Agent Client Protocol (ACP)](/docs/guides/acp-clients) to communicate with goose.
## Install the Extension
2025-03-21 16:48:04 +01:00
:::info Prerequisites
- [VS Code](https://code.visualstudio.com/) version 1.95.0 or higher
2026-03-17 13:54:04 +08:00
- [goose CLI](/docs/getting-started/installation)
2025-05-09 12:15:38 -06:00
:::
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
2025-03-20 23:13:36 +01:00
## Share Context with goose
2025-03-20 23:13:36 +01:00
There are two ways to provide context to goose.
2025-03-20 23:13:36 +01:00
### Send Selected Code
2025-03-20 23:13:36 +01:00
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`
2025-03-20 23:13:36 +01:00
The selected code will appear as a context chip above the chat input.
2025-03-20 23:13:36 +01:00
### 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.
2025-03-20 23:13:36 +01:00
## Example Usage
2025-03-20 23:13:36 +01:00
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:
2025-03-20 23:13:36 +01:00
- 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
2025-03-20 23:13:36 +01:00
### goose Prompt
2025-03-20 23:13:36 +01:00
```
Update the contributing guide at /goose/CONTRIBUTING.md with instructions on how to start docusaurus dev server
```
### goose Output
2025-03-20 23:13:36 +01:00
```
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.
2025-03-20 23:13:36 +01:00
Is there anything else you'd like me to add or modify in the contributing guide?
2025-03-20 23:13:36 +01:00
```