CCE — Code Chat Extension
A minimal, transparent VSCode chat interface for LLMs. You decide what gets sent to the model. No hidden prompts, no magic context — just a clean channel between you and the model, with tools the model can opt into.

Philosophy
- Full control. Which files, selections, and system prompts reach the model is always your choice. Nothing is injected behind your back.
- Tools are explicit. Every tool the model can use — read files, search code, run commands — is listed, toggleable, and inspectable. The model must explicitly request each one.
- Minimal by design. No framework bloat, no bundler, no abstractions over abstractions. Vanilla JavaScript talking to LLM APIs. What you see is what you get.
Features
- Multi-model — OpenAI, Anthropic, and any OpenAI-compatible endpoint (Ollama, vLLM, LM Studio)
- Streaming responses — tokens appear as they're generated
- Markdown rendering — code blocks, tables, lists via
marked
- Thinking display — reasoning content in collapsible blocks (o1, o3, DeepSeek-R1, Qwen)
- Tool calling — model can read/write files, search code, list directories, run commands, get diagnostics
- MCP servers — Model Context Protocol support for external tools (web search, APIs)
- Agent tool — spawn parallel sub-agents for independent tasks
- Sessions — persistent conversation history with full session management
- Parallel chats — open several chats at once (sidebar + editor tabs), each with its own conversation, model and approvals
- Config panel — tabbed settings UI for models, context, tools, and MCP servers
- API keys in OS keychain — stored via VSCode
SecretStorage (Windows Credential Manager, macOS Keychain, Linux libsecret)
Quick Start
Prerequisites
Install locally
git clone https://github.com/5im-0n/cce
cd cce
npm install
npx vsce package
This creates cce-0.0.1.vsix. Install it in VSCode:
code --install-extension cce-0.0.1.vsix
Or via VSCode UI: Extensions → ... → Install from VSIX...
Run in development
Open the project in VSCode and press F5. This launches an Extension Development Host with CCE loaded.
Configuration
Open CCE from the chat icon in the activity bar on the left. Click the gear icon to open settings.
Models
Add models via Settings → Models. Each model needs:
| Field |
Description |
| Display Name |
Shown in the model dropdown |
| Provider |
OpenAI / OpenAI-compatible (Anthropic coming soon) |
| Model ID |
API model identifier (e.g. gpt-4o, claude-sonnet-4) |
| API Endpoint |
Base URL (e.g. https://api.openai.com/v1) |
| API Key |
Optional — leave empty for local models |
| Request parameters (JSON) |
Optional per-model API request-body overrides |
The first model added becomes the default.
Custom request parameters
Enter a JSON object in Request parameters to add API-specific options or
replace generated parameter values. For example, OpenRouter provider routing:
{
"provider": {
"quantizations": ["fp16", "bf16"]
}
}
Custom reasoning/thinking values are sent with exactly the spelling you enter,
without limiting them to the chat dropdown's presets. For an endpoint that
expects reasoning.effort, an illustrative override is:
{
"reasoning": {
"effort": "xHigh"
}
}
Use the parameter names and values supported by your endpoint; CCE does not
validate unknown options against an API schema. Nested objects merge (for
example, overriding reasoning.effort retains the generated reasoning.summary);
arrays and scalar values replace existing values. null is sent as JSON null,
not treated as deletion. Clear the editor or enter {} to remove overrides.
Parameters apply to every request for that model: normal chat, subsequent tool
turns, sub-agents, and compaction. Explicit thinking parameters also apply during
compaction and may increase cost. Compaction keeps generated reasoning Off, so
OpenAI-compatible compaction requests use /chat/completions even when normal
chat uses /responses; Responses-only options may be rejected during compaction.
If compaction fails, the conversation is sent without compacting as before.
Invalid JSON, unsafe object keys, and overrides
of CCE-managed fields (model, messages, input, system, instructions,
tools, functions, stream, previous_response_id, conversation, prompt)
are rejected before saving or sending. This customizes the request body only;
it does not change authentication, headers, or response parsing. These settings
are not secret storage—keep API keys in the API Key field.
Context
Control exactly what the model sees:
- System Prompt — custom instructions sent at the start of every conversation
- Auto-inject — optional toggles to include date/time, OS, regional settings, and
AGENTS.md
- AGENTS.md — optionally include a project instructions file (default:
AGENTS.md in workspace root)
Everything is opt-in. The model only sees what you explicitly enable.
Enable only the tools you want the model to have access to:
| Tool |
Description |
| Read File |
Read workspace files with line numbers |
| Write File |
Create, overwrite, insert, replace, or delete lines |
| Get Selection |
Current editor selection and cursor position |
| Search Code |
Literal, case-insensitive workspace search |
| List Files |
Directory listing |
| Get Diagnostics |
VSCode errors, warnings, hints |
| Delete File |
Remove files or directories |
| Agent |
Spawn parallel sub-agents |
| Run Command |
Execute shell commands |
Every tool call is gated by an approval policy before it executes:
- Read-only tools (Read File, Get Selection, Search Code, List Files, Get Diagnostics) run automatically.
- Mutating tools (Write File, Edit File, Delete File) and arbitrary tools (Run Command, Agent, all MCP tools) require your approval.
- When approval is needed, an approval card appears inline in the chat showing the tool name, its arguments, and its risk level, with these choices:
- Allow — run this one call
- Allow for this session — run this tool without asking for the rest of the session (not offered for MCP tools)
- Always allow this tool — persist "auto" for this tool, revocable in Settings → Tools (for MCP tools this becomes "Always allow this server")
- Deny — refuse; the model is told the call was denied and must adapt
- MCP approval is server-level. An Auto / Ask / Deny dropdown on each server card in Settings → MCP applies to every tool that server exposes. Per-tool and per-session overrides do not apply to MCP tools; a stale per-tool entry is ignored.
- Approving the Agent tool only allows that one call to spawn tabs. Each sub-agent asks for its own approvals in its own tab, exactly like a chat you started: approving
agent is not a blanket grant, and a tool or MCP server you set to Deny stays denied inside sub-agents too.
- Pending requests are auto-denied after 5 minutes, and denied immediately if you cancel the message, switch sessions, or close the chat.
- Approvals are per chat: a card answered in one tab never releases a tool call in another. "Always allow" is global (it changes the tool's policy in Settings → Tools); "Allow for this session" covers only the chat you answered in.
- Approvals are not inherited by chats opened afterwards: a new tab starts from the configured policies again.
- Per-tool overrides (Auto / Ask / Deny) are available in Settings → Tools, next to each tool toggle.
MCP Servers
Add Model Context Protocol servers via Settings → MCP. Each server needs a URL and optional custom headers. Toggle servers on/off per-session.
Parallel Chats
More than one conversation can run at the same time. The sidebar chat is the default; open additional ones in editor tabs with CCE: New Chat Tab (the + button in the chat header, the ↗ button next to any session, or the command palette). Drag the tabs wherever you like — one tab on the login flow, another on a report.
- Each chat has its own conversation, session, model, reasoning effort, Stop button and approval cards — answering an approval in one tab can never release a tool call in another.
- Sub-agent tabs have their own Stop button. Stopping an agent in its own tab cancels that run only: the tab stays open with the work it did so far (so you can read it), and the parent model is told the work was stopped rather than failed, so it reports the partial result instead of retrying. Closing an agent tab mid-run does the same thing. Stopping the parent chat stops every agent it spawned and closes their tabs.
- Every agent reports how it ended. The parent model sees per-agent results, and a run where some agents failed, were stopped, or never started (because the simultaneous-agent limit was reached) opens with one line saying which and why — so an interrupted agent is never mistaken for one that answered.
- Agent tabs are ordinary chats: once a run ends, the tab behaves exactly like one you opened yourself (including its own session in the session list). Turn on Settings → Tools → Automatically close agent tabs when they finish if you would rather not keep them.
- A session is shown by one chat at a time. Opening a session that another tab already has reveals that tab instead of forking the transcript; the session list marks such sessions.
- Closing a tab aborts its in-flight request, denies pending approvals and saves the transcript. The session can then be reopened anywhere.
- Tabs survive a window reload: each tab remembers the session it was showing and comes back on the same conversation. A tab whose session was deleted returns as a fresh chat rather than disappearing.
- Chats share the workspace, so they can touch the same files. When another chat is modifying the same file (or running a command) at the moment you are asked to approve a tool, the approval card warns you — nothing is blocked, you decide. Context comes from the editor, though:
get_selection reads the active editor, whichever chat asked.
- Model and reasoning effort are remembered per session: reopen a session and it comes back with the model you were using. Picking a model in any chat also updates the default for new chats.
Keyboard Shortcuts
| Key |
Action |
| Enter |
Send message |
| Shift+Enter |
Newline in input |
Security
- API keys stored in OS keychain via
vscode.SecretStorage — never in plaintext files
- Webview never sees API keys
run_command and delete_files are available but disabled by default — enable them explicitly in Settings → Tools
- Mutating, shell, and MCP tools require inline user approval before executing (see Tool Approval above)
- Approval cards are answered per chat: one tab cannot approve a tool call for another
- Sub-agents are blocked from spawning more sub-agents (no recursive agent explosion)
License
MIT
| |