
Code Web Chat
👉 Select context, ask anything and initialize any web chat hands-free!👉 Apply chat responses in truncated, whole or diff edit formats
👉 Use any model for quality code completions and file refactorings
👉 Generate meaningful commit messages
What is CWC?
CWC is a tool built by an independent developer enabling engineers getting the best quality AI-assistance with a game-changing cost efficiency.
🧩 Compatible with VS Code, Cursor and Windsurf
✌️ 100% free and open source!
Guiding Principles:
- initialize popular chatbots—but don't game them
- everything you need—nothing you don’t
- respect privacy—zero tracking
- lightweight—under 1MB
CWC is for you if:
- you're an experienced engineer working on a large codebase
- you're a student or hobbyist on a budget
- you love open source software! 🫶
Context
Other tools try to "guess" what pieces of the codebase matter for the given task, often struggling to get it right. They workaround this by overloading context hurting model's performance and your wallet.
CWC works differently:
- You select which folders and files are relevant to the task
- You know exactly how many tokens you have in the context
The result? Unmatched in accuracy and cost AI assistance.
Too many tokens fighting for attention may decrease performance due to being too "distracting", diffusing attention too broadly and decreasing a signal to noise ratio in the features. ~Andrej Karpathy
Web chats
Use your favorite chatbot without tedious copy-pasting contents of files you want to include with your instructions.
Operates in two modes:
- General
Ask anything - Code Completions
Ask what fits the cursor position
Prompts with context and instructions can be copied to clipboard or sent directly to any supported chatbot.
Apply Chat Response is a smart tool that automatically integrates multi-file changes with the codebase by modyfing exisitng files or creating new ones. Works with chat responses in three edit formats: truncated, whole and diff.
Supported chatbots
(alphabetically)
- AI Studio
- ChatGPT
- Claude
- DeepSeek
- Doubao
- Gemini
- Grok
- HuggingChat
- Mistral
- Open WebUI
- OpenRouter Chat
- Qwen
- Yuanbao
The Connector extension is available in Chrome Web Store and Firefox Add-ons.
Legal Disclaimer: After chat initialization, the extension does not read the incoming message. The injected Apply response button is not a means of automatic output extraction, it's an alias for the original copy to clipboard button.
TIP: Practice single-turns
Chat conversations are only a construct of product interfaces, they hurt the quality of responses from the model and once your context is "poisoned" it will not recover. Whenever you're not satisfied with a reponse, the best practice is to alawys refine your initial instructions and re-initialize a chat.
API Tools
CWC will elevate your workflow with must-have API features.
Predefined providers
(alphabetically)
- Anthropic
- Cerebras
- Chutes
- DeepInfra
- DeepSeek
- Fireworks
- Gemini
- Hyperbolic
- Mistral
- OpenAI
- OpenRouter
- TogetherAI
ℹ️ Any OpenAI-API compatible endpoint works with CWC.
🔒️ API keys are stored securely in the Secret Storage.
Code completions
The tool is designed to provide you with the highest quality autocomplete suggestions at the cost of latency. Intented to be used on-demand through the Tools tab, via the command palette or a keybinding. Setup multiple configurations and choose between them based on difficulty of the completion.
✓ Includes selected context
✓ Works great with any model
File refactoring
Modify a file based on natural language instructions.
✓ Includes selected context
✓ Reliable single-file edits
Commit messages
Generate meaningful commit messages. The tool first attaches affected files, then the customizable instructions, then diff of changes. Not lobotomized context ensures unmatched accuracy.
✓ Includes affected files in full
✓ Customizable instructions
Commands
Code completions
Code Web Chat: Code Completion
- Get code completion.Code Web Chat: Code Completion with Suggestions
- Get code completion that follows given suggestions.Code Web Chat: Code Completion to Clipboard
- Copy code completion prompt to clipboard.Code Web Chat: Code Completion with Suggestions to Clipboard
- Copy code completion with suggestions prompt to clipboard.Code Web Chat: Code Completion in Chat
- Send code completion prompt to web chat using default preset.Code Web Chat: Code Completion in Chat with...
- Send code completion prompt to web chat with preset selection.
Refactoring
Code Web Chat: Refactor
- Refactor active editor.Code Web Chat: Refactor to Clipboard
- Copy refactoring prompt to clipboard.
Applying chat responses
Code Web Chat: Apply Chat Response
- Apply changes suggested by AI using clipboard content.Code Web Chat: Revert Last Applied Changes
- Revert the last applied changes.
Chat
Code Web Chat: Web Chat
- Open web chat with default preset.Code Web Chat: Web Chat with...
- Open web chat with preset selection.Code Web Chat: Chat to Clipboard
- Enter instructions and copy to clipboard.
Context
Code Web Chat: Copy Context
- Copy selected folders/files and websites to clipboard.
Community
Please be welcomed in discussions and in our subreddit /r/CodeWebChat.
Donations
If you find CWC helpful, please consider buying the author a coffee. Thank you for your support! 🙏
BTC: bc1qfzajl0fc4347knr6n5hhuk52ufr4sau04su5te
LTC: ltc1qcpmwsj2wm8hp7nw8jjsjuj5r3x9ggur052wkcx
ETH: 0x532eA8CA70aBfbA6bfE35e6B3b7b301b175Cf86D
XMR: 84whVjApZJtSeRb2eEbZ1pJ7yuBoGoWHGA4JuiFvdXVBXnaRYyQ3S4kTEuzgKjpxyr3nxn1XHt9yWTRqZ3XGfY35L4yDm6R
Contributing
All contributions are welcome. Feel free to submit pull requests, feature requests and bug reports.
License
Copyright © 2025-present Robert Piosik
📨 robertpiosik@gmail.com
Telegram: @robertpiosik
📃 GPL-3.0 license