|
2 | 2 |
|
3 | 3 | <a href="https://marketplace.visualstudio.com/items?itemName=robertpiosik.gemini-coder" target="_blank"><img src="https://img.shields.io/badge/Install-VS_Code_Marketplace-blue" alt="Get from Visual Studio Code Marketplace" /></a> <a href="https://open-vsx.org/extension/robertpiosik/gemini-coder" target="_blank"><img src="https://img.shields.io/badge/Install-Open_VSX_Registry-a60ee5" alt="Get from Open VSX Registry" /></a> <a href="https://github.com/robertpiosik/CodeWebChat/blob/dev/LICENSE" target="_blank"><img src="https://img.shields.io/badge/License-GPL--3.0-green.svg" alt="GPL-3.0 license" /></a> |
4 | 4 |
|
5 | | -CWC is a context-first AI coding extension for VS Code with first-class support for [prompt caching](https://platform.openai.com/docs/guides/prompt-caching), enabling reduced latency by up to 80% and input token costs by up to 90%. Great for your wallet, and for the planet 🌱, too. |
| 5 | +Autofill for chatbots. Works with VS Code, Cursor, and others. |
6 | 6 |
|
7 | | -Works with VS Code family of editors like Cursor, Antigravity, or VSCodium. |
8 | | - |
9 | | -✅ **Prepare messages for...** |
| 7 | +👉️ **Easily send messages with...** |
10 | 8 |
|
11 | 9 | - Chatbots—_ChatGPT, Claude, Gemini, Grok, DeepSeek, etc._ |
12 | | -- Model providers—_Gemini API, OpenRouter, local Ollama, etc._ |
13 | | - |
14 | | -✅ **Apply responses**—changes integration in all edit formats with easy rollback \ |
15 | | -✅ **Fully featured**—refactorings, code completions, commit messages, and more |
| 10 | +- API calls—_Gemini API, OpenRouter, local Ollama, etc._ |
16 | 11 |
|
17 | | -❤️ **Free and open-source**—released under the GPL-3.0 license \ |
18 | | -🏠️ **Local friendly**—zero tool-calling design suits small models \ |
19 | | -🌱 **Efficient**—carry cached prefill (input tokens) across tasks \ |
20 | | -🔒 **Privacy-focused**—runs 100% on your machine |
| 12 | +👉️ **Apply responses**—changes integration in all edit formats with easy rollback \ |
| 13 | +👉️ **Fully featured**—refactorings, code completions, commit messages, and more \ |
| 14 | +❤️ **Free and open-source**—released under the GPL-3.0 license |
21 | 15 |
|
22 | 16 | <p> |
23 | 17 | <img src="https://github.com/robertpiosik/CodeWebChat/raw/HEAD/packages/shared/src/media/screenshot.png" alt="Screenshot" /> |
24 | 18 | </p> |
25 | 19 |
|
26 | 20 | ## Introduction |
27 | 21 |
|
28 | | -**LLMs are brilliant, yet mindless pattern matchers.** Because they lack properties similar to mental models, they can't imagine how the correct output should look like before their context is filled with relevant files. |
29 | | - |
30 | | -To mitigate this limitation, other, agentic tools ask you to prepare extensive markdown-based plans and feature descriptions, so the system based on a keyword matching (via _grep_ tool calling) can do a better job at automated context compilation. |
31 | | - |
32 | | -Code Web Chat proposes an alternative, more mindful 🧠 approach of **model guidance through context ownership.** With it come big wins—your instructions are simple, responses fast, accuracy can't get any better, and because all the recently modified files are placed at the very end of the message, **prompt cache is hit for most of its length enabling 10X cost savings.** |
33 | | - |
34 | | -### **Context-first approach** |
| 22 | +**LLMs are brilliant, yet mindless pattern matchers.** Because they lack properties similar to mental models, they can't _imagine_ how the correct output should look like before their context is filled with relevant files. |
35 | 23 |
|
36 | | -Meet a simple and effective workflow—select files, enter instructions, and send message with your favorite chatbot or a model provider of choice. |
| 24 | +To address this limitation, **Code Web Chat lets you guide the model with context**. By having it static, you automatically use [prompt caching](https://platform.openai.com/docs/guides/prompt-caching) for substantial 50-90% discount on input tokens. |
37 | 25 |
|
38 | | -Constructed prompt is straightforward and focus the model's whole attention on the task. Example: |
| 26 | +**Messages are simple**, constructed from selected files, chosen edit format, and prompt: |
39 | 27 |
|
40 | 28 | ``` |
41 | 29 | <system> |
42 | | -Whenever showing a new, updated, renamed or deleted file... |
| 30 | +Whenever showing a new, updated, renamed or deleted file, provide a brief explanation... |
43 | 31 | </system> |
44 | 32 | <files> |
45 | 33 | <file path="src/calculator.ts"> |
46 | 34 | export const addNumbers = (a: number, b: number) => a + b; |
47 | 35 | </file> |
48 | 36 | </files> |
49 | 37 | <system> |
50 | | -Whenever showing a new, updated, renamed or deleted file... |
| 38 | +Whenever showing a new, updated, renamed or deleted file, provide a brief explanation... |
51 | 39 | </system> |
52 | 40 | Implement a subtract function. |
53 | 41 | ``` |
54 | 42 |
|
55 | | -Once the response is generated, a built-in parser extracts code blocks with file edits for a one-click, interactive changes integration. |
| 43 | +Once the response is ready, all changes can be integrated in a fully revertible way. |
56 | 44 |
|
57 | 45 | ## Browser integration |
58 | 46 |
|
|
0 commit comments