Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,121 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
# gguf-code: IDE AI Coding Assistant
|
| 5 |
+
|
| 6 |
+
Monster coding agent lives in your IDE - moving beyond a CLI bridge to a fully native IDE AI assistant.
|
| 7 |
+
|
| 8 |
+

|
| 9 |
+
|
| 10 |
+
Shipped to [vscode marketplace](https://marketplace.visualstudio.com/items?itemName=gguf.gguf-code) and it's compatible IDEs, i.e., cursor, windsurf, antigravity, etc., [marketplaces](https://open-vsx.org/extension/gguf/gguf-code)
|
| 11 |
+
|
| 12 |
+
## Features
|
| 13 |
+
|
| 14 |
+
- **Native Chat Interface**: Deeply integrated webview clean ui for smooth chat interactions inside VS Code (and/or its clone/fork IDEs).
|
| 15 |
+
- **Embedded AI Engine**: Run Coder's powerful AI logic directly within the extension process - no external CLI tool required.
|
| 16 |
+
- **Project-Aware Context**: Automatically understands your workspace structure and active files.
|
| 17 |
+
- **Smart Tools**:
|
| 18 |
+
- `read_file`: Intelligently reads file contents with progressive loading for large files.
|
| 19 |
+
- `write_file`, `find_files`, and more (Coming Soon).
|
| 20 |
+
- **Live Diff Preview**: Preview AI-suggested code changes with standard VS Code diff views.
|
| 21 |
+
- **Diagnostics Integration**: Uses LSP diagnostics to help fix errors in your code.
|
| 22 |
+
|
| 23 |
+
## Requirements
|
| 24 |
+
|
| 25 |
+
- Visual Studio Code version 1.104.0 or higher
|
| 26 |
+
- `coder.config.json` in your workspace root (for configuring AI providers).
|
| 27 |
+
|
| 28 |
+
## Getting Started
|
| 29 |
+
|
| 30 |
+
1. **Installation**: Install the extension from the VS Code Marketplace or via `.vsix`.
|
| 31 |
+
2. **Configuration**: Ensure you have a `coder.config.json` in your project root (see example below, can be any OpenAI compatible API or local/self-hosted API).
|
| 32 |
+
|
| 33 |
+
lmstudio (localhost) example:
|
| 34 |
+
```json
|
| 35 |
+
{
|
| 36 |
+
"coder": {
|
| 37 |
+
"providers": [
|
| 38 |
+
{
|
| 39 |
+
"name": "lmstudio",
|
| 40 |
+
"models": [
|
| 41 |
+
"openai/gpt-oss-20b"
|
| 42 |
+
],
|
| 43 |
+
"baseUrl": "http://localhost:1234/v1"
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
ollama (localhost) example:
|
| 51 |
+
```json
|
| 52 |
+
{
|
| 53 |
+
"coder": {
|
| 54 |
+
"providers": [
|
| 55 |
+
{
|
| 56 |
+
"name": "ollama",
|
| 57 |
+
"models": [
|
| 58 |
+
"gpt-oss:20b"
|
| 59 |
+
],
|
| 60 |
+
"baseUrl": "http://localhost:11434/v1"
|
| 61 |
+
}
|
| 62 |
+
]
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
fetch from any api provider, see example below:
|
| 68 |
+
```json
|
| 69 |
+
{
|
| 70 |
+
"coder": {
|
| 71 |
+
"providers": [
|
| 72 |
+
{
|
| 73 |
+
"name": "openrouter",
|
| 74 |
+
"baseUrl": "https://openrouter.ai/api/v1",
|
| 75 |
+
"apiKey": "your-api-key",
|
| 76 |
+
"models": ["anthropic/claude-4.5-sonnet"]
|
| 77 |
+
}
|
| 78 |
+
]
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
3. **Launch**: Click the "Code" monster icon in the Activity Bar (left sidebar) to open the chat.
|
| 84 |
+
|
| 85 |
+
## Usage
|
| 86 |
+
|
| 87 |
+
- **Chat**: Type naturally in the chat window. "Explain this file", "Fix this bug", etc.
|
| 88 |
+
- **Context**: The assistant automatically knows about your open files.
|
| 89 |
+
|
| 90 |
+
## Architecture
|
| 91 |
+
|
| 92 |
+
This extension has migrated from a thin client (CLI bridge) to a thick client architecture:
|
| 93 |
+
|
| 94 |
+
- **Frontend**: React + Vite (Webview).
|
| 95 |
+
- **Backend**: Node.js Extension Host (running `ai-sdk-client`).
|
| 96 |
+
- **Communication**: VS Code Message Passing API.
|
| 97 |
+
|
| 98 |
+
## Development
|
| 99 |
+
|
| 100 |
+
```bash
|
| 101 |
+
npm install
|
| 102 |
+
|
| 103 |
+
# Build both Webview and Extension
|
| 104 |
+
npm run build
|
| 105 |
+
|
| 106 |
+
# Watch mode (rebuilds on change)
|
| 107 |
+
|
| 108 |
+
# Terminal 1:
|
| 109 |
+
npm run watch:webview
|
| 110 |
+
|
| 111 |
+
# Terminal 2:
|
| 112 |
+
npm run watch
|
| 113 |
+
```
|
| 114 |
+
|
| 115 |
+
## Contributing
|
| 116 |
+
|
| 117 |
+
Contributions are welcome!
|
| 118 |
+
|
| 119 |
+
## License
|
| 120 |
+
|
| 121 |
+
MIT
|