Codegloss
A local-first, teaching-focused code explainer and confirm-gated agentic assistant for VS Code.
📖 Table of Contents
🌟 OverviewCodegloss is a free, beginner-friendly, local-first code explanation and agentic coding extension for Visual Studio Code. Unlike opaque AI assistants that modify code without transparency, Codegloss is built on explainability and safety:
✨ Key Features1. 🎓 Teaching-Focused Code Explanations
2. 🛡️ Confirm-Gated Agentic Coding
3. 📝 Plan Mode & Architecture Blueprints
4. 📊 Dynamic Changes Overview Bar
5. 🔍 Universal
|
| Mode | Shortcut | Description |
|---|---|---|
| Chat | Cmd+L / Ctrl+L |
Standard conversational coding assistant and code explanations. |
| Plan | Cmd+. / Ctrl+. |
High-level architectural planning and step-by-step technical blueprints. |
| Agent | — | Fully autonomous, confirm-gated tool-calling execution mode. |
🚀 Installation
1. From VS Code Marketplace
- Open VS Code.
- Press
Ctrl+P(Windows/Linux) orCmd+P(macOS). - Type:
ext install codegloss.codegloss - Press Enter.
2. From VSIX Release
- Download the latest
codegloss-2.0.1.vsixfrom GitHub Releases. - Open VS Code, go to the Extensions view (
Ctrl+Shift+X/Cmd+Shift+X). - Click the
...menu in the top right $\rightarrow$ Install from VSIX.... - Select the downloaded
.vsixfile.
3. From Source
# Clone the repository
git clone https://github.com/manojkumarfade/CodeGloss.git
cd CodeGloss
# Install dependencies
npm install
# Build extension and grammars
npm run build
# Run unit test suite
npm test
# Package into VSIX
npm run package
⌨️ Keybindings & Shortcuts
| Command | macOS Shortcut | Windows/Linux Shortcut | Description |
|---|---|---|---|
| Explain Selection | Cmd+Alt+E |
Ctrl+Alt+E |
Explains the currently selected code in the active editor. |
| New Chat Session | Cmd+N |
Ctrl+N |
Starts a fresh chat conversation session. |
| Chat History | Cmd+H |
Ctrl+H |
Opens the session history drawer. |
| Focus Input Bar | Cmd+K |
Ctrl+K |
Focuses the chat composer input textarea. |
| Open Settings | Cmd+Shift+, |
Ctrl+Shift+, |
Opens the Codegloss settings and Rule Book panel. |
| Accept File Edit | Alt+Enter |
Alt+Enter |
Accepts proposed inline CodeLens changes. |
| Reject File Edit | Alt+Backspace |
Alt+Backspace |
Reverts proposed inline CodeLens changes. |
⚙️ Configuration & Settings
All Codegloss configuration is stored locally in ~/.codegloss/config.json. Sensitive API keys are protected in VS Code's encrypted SecretStorage.
Access settings anytime via the gear icon in the chat header or with Cmd+Shift+,.
| Configuration Key | Type | Default | Description |
|---|---|---|---|
provider.active |
string |
"ollama" |
Active LLM provider ("ollama" or "byok"). |
provider.ollama.baseUrl |
string |
"http://127.0.0.1:11434" |
URL for local Ollama server. |
provider.ollama.model |
string |
"qwen2.5-coder:7b" |
Selected Ollama model. |
provider.byok.baseUrl |
string |
"https://api.openai.com/v1" |
URL for OpenAI-compatible endpoint. |
provider.byok.model |
string |
"gpt-4o" |
Selected cloud model name. |
features.toolCalling |
boolean |
false |
Enable or disable agentic tool calling. |
features.webSearch |
boolean |
false |
Enable or disable DuckDuckGo web research. |
advanced.temperature |
number |
0.2 |
Model temperature / creativity (0.0 to 1.0). |
advanced.systemPrompt |
string |
"" |
Custom system instructions injected into prompt. |
🛡️ Security & Local-First Philosophy
- Zero Cloud Leakage: When using Ollama, your code and conversation stay 100% on your local machine. No external telemetries or tracking.
- Untrusted File Boundary: Injected workspace files and URLs are fenced in untrusted delimiter blocks to prevent prompt injection vulnerabilities.
- Confirmation Gates: Shell commands and file modifications require your approval before running.
- Secret Redaction: Detected secrets, API keys, and sensitive environment variables are automatically redacted from prompts and tool outputs.
🤝 Contributing
Contributions, bug reports, and feature requests are welcome! Please check out our Contributing Guidelines and feel free to open an issue or pull request.
📄 License
This project is licensed under the MIT License.