Mittr Coder
Mittr Assistant for Developer — a VS Code extension. A chat in the Secondary Side Bar (the Mittr Code icon, next to other AI chats such as Claude Code) where an AI assistant (your own Anthropic or OpenAI-compatible provider) can read your project, edit files, and run commands with your approval.
Early development (version 0.x). It works end to end, but the settings and behavior may still change between releases. Read Safety and approvals before you turn on auto-approve.
Quick start
- Run Mittr Code: Sign In and sign in with your Mittr account.
- Click the Mittr Code icon in the Secondary Side Bar on the right (or run Mittr Code: Open Chat), choose a model and ask a question. If the side bar is hidden, show it with View: Toggle Secondary Side Bar Visibility.
Mittr is the default VS Code provider when none is explicitly configured; existing explicit provider settings are preserved. To keep using Anthropic, set mittrCoder.provider to anthropic in VS Code settings, run Mittr Code: Set API Key, and select your model. For Mittr details see Sign in with Mittr.
For a local server such as Ollama, choose OpenAI-compatible, set mittrCoder.openaiCompatible.baseUrl (for example http://localhost:11434/v1) and a model name; no key is needed for localhost.
What it can do
- Chat — streaming replies with markdown and code blocks, a Stop button, New chat, and a provider/model picker. Your conversation keeps its context when you switch provider or model.
- See your code — the active file and your current selection are offered as chips above the message box; remove a chip to leave it out.
.env*, key and certificate files, files outside the workspace, and binary files are never attached. Attached content is capped at 20,000 characters per message.
- Mention files with
@ — type @ in the message box and a picker lists workspace files (up to 8, best match first; arrows and Enter or Tab to choose, Escape to close). A chosen file becomes a chip above the message box (with a remove button) and its content goes with that one message as labelled reference data. Only a file you choose attaches: text you type that merely looks like a mention, an email address for instance, is just text. Up to 5 files per message, sharing the 20,000-character limit with the active file (what does not fit is cut and the chip says so); files that may contain secrets, binary files, and files outside the workspace are never offered or attached.
- Attach a skill with
/ — type / as the first character of the message box and a picker lists the skills in the workspace's .agents/skills/ folder (name and a one-line description; arrows and Enter or Tab to choose, Escape to close). A chosen skill becomes a chip above the message box (with a remove button) and the text of its SKILL.md goes with that one message as labelled text from the workspace, which the assistant may follow. One skill per message, up to 30,000 characters (what does not fit is cut and the chip says so). Only a skill you choose attaches: typing /name by hand attaches nothing, and the picker does not open for a path such as /etc/hosts. A skill never approves anything: every edit, command and secret-file read it leads to asks you as usual, and your auto-approve settings are unchanged. Skills are offered only in a trusted workspace, and only from .agents/skills/ (not from .claude/skills/ or a user-level folder). The assistant can also ask to load a skill itself, when one fits the task. Every such load asks you first, showing the skill's name, its one-line description from the skill file, and where the text would go; there is no auto-approve for it and no "always allow", and approving covers that one call. The assistant is told the skill names only, never their descriptions, and a skill it loads still cannot approve anything. It works in every mode but not for sub-agents. Not supported yet: files next to SKILL.md, and allowed-tools (ignored).
- Modes — pick Code, Architect or Debug next to the provider and model. Code can use every tool (edits and commands still need your approval). Architect can only read and plan: it has no edit or command tools at all. Debug can read and run commands, with your approval, but cannot edit files. The limit is enforced by the extension, not just asked of the model, and your auto-approve settings never widen it. You can change the mode between replies, not during one; New chat returns to Code, and a saved conversation remembers its mode.
- MCP servers — list MCP servers in your user settings (
mittrCoder.mcp.servers, for example { "docs": { "command": "/usr/local/bin/docs-mcp", "args": ["--stdio"], "inheritEnv": ["DOCS_TOKEN"] } }) and the assistant can use their tools in Code mode. A server is third-party software that runs on your computer with your permissions and can do anything you can; list only servers you trust. Servers start when a Code turn needs them, in a trusted workspace only (macOS and Linux), with a minimal environment plus only the variables you name in inheritEnv (put no secret in the setting itself). The chat tells you which servers connected and how many tools they offer. Every call asks you first, showing the server, the tool, and the exact arguments; there is no auto-approve for them. What a server returns is treated as data, never as an instruction. MCP tools are not offered in Architect or Debug mode or to sub-agents, and Undo does not reverse what an MCP tool did. Supported: local (stdio) servers that speak MCP revision 2025-11-25 or earlier. Not supported yet: remote (HTTP) servers, OAuth, Windows, and servers that speak only the newest revision.
- Sub-agents — for a task that needs reading many files, the assistant can hand it to a sub-agent with the
delegate tool. The sub-agent works in its own conversation with only the read tools (read_file, list_files, search_files, get_diagnostics): it cannot edit, run commands, ask you questions, or start another sub-agent. It has 10 steps, at most 5 are allowed per message, and only a short summary comes back, so your main conversation stays small. You see its work: each tool call it makes appears indented under the delegation card. If it needs a file that may contain secrets, you are asked as usual (the card says a sub-agent is asking) and auto-approve never covers it; Stop ends it. Every delegation costs extra requests to your provider.
- Undo the assistant's changes — after a reply that changed files, a bar lists the files and what Undo will do for each (put the old text back, or delete a file the assistant created). It works on the newest reply first and only between replies. A file you changed after the assistant's edit is never overwritten: it is left alone and named, and the other files are still undone. Open files are restored through the editor, so you can redo. The assistant is told what was undone with your next message. Not undone: commands the assistant ran (the bar says so), and folders it created. Changes are remembered in memory only (the last 10 replies), so Undo is gone after New chat, opening a saved conversation, or closing the window.
- Read your project —
read_file, list_files, and search_files over the first workspace folder (plus get_diagnostics, below), including unsaved text from open editors. Files ignored by .gitignore are left out of listings and searches, and nothing outside the workspace can be read. Each use appears as a small card ("Read src/app.ts") that shows what it did and whether it worked, never the file's text.
- Read the editor's problems —
get_diagnostics returns the errors and warnings the editor and its language extensions report, for one file or the whole workspace (unsaved changes included, at most 50, errors first), so the assistant can find real problems instead of guessing. An empty result does not prove the code is correct: a language extension may not be running. Files that may contain secrets are left out, and the card shows that the tool ran, not what it found.
- Edit files —
edit_file replaces one exact piece of text in an existing file; write_file creates a new file. You see the exact change as a diff first.
- Run commands —
run_command runs one shell command in the workspace folder (macOS and Linux). You see the exact command first.
- Ask you questions — the assistant can ask a question in the chat (with suggested answers). You can answer, pick a suggestion, or decline. Your answer is sent to the model, so do not type secrets; the assistant is told never to ask for them.
- Remember conversations — conversations are saved per workspace and can be opened again from History.
- Long conversations — before every request the assistant estimates how big the conversation is. When it passes 75% of the context window you set in
mittrCoder.contextWindow (default 100,000 tokens; set it to match your model), it first shortens old tool results (file contents, command output), then, if that is not enough, asks the model for a summary of the earlier turns (one extra request, shown in the notice). You are told every time; everything stays on screen, but the model no longer sees the removed text. If it still cannot fit, the turn ends with a message saying the conversation is too long, so you can start a new chat or raise the setting. The estimate is rough, and a summary can lose detail, so keep important instructions in recent messages.
- Step limit — while it uses tools, the assistant stops after
mittrCoder.maxSteps requests (default 25) for one message and tells you; send a message to continue. Stop ends it at once.
Other commands: Mittr Code: Sign In, Mittr Code: Sign Out, Mittr Code: Clear API Key, and Mittr Coder: Hello (prompts for your name and greets you; a sample command).
Sign in with Mittr
Instead of an API key you can sign in with your Mittr account and use the models your Mittr server offers.
- Use the default
mittr provider, or select Mittr in the chat if another provider is configured.
- Run Mittr Code: Sign In (or press Sign in in the chat). Your browser opens the Mittr sign-in page; when you finish, it sends you back to the editor.
- Pick a model from the list in the chat. The list comes from your Mittr server and shows what your account may use.
Run Mittr Code: Sign Out (or press Sign out) to end it. You are asked to sign in again when the sign-in expires or the server stops accepting it.
- Which server.
mittrCoder.mittr.environment is prod (default), dev or local (http://localhost:3000). It takes only these names, never an address, and only your own user settings count, never a workspace. A sign-in belongs to one environment: after you change the setting, sign in again.
- What leaves your machine. Your messages and the files and results the assistant uses go to the Mittr server you chose, and from there to the model it routes to (which may be a model run by Mittr or by a vendor). The sign-in token goes only to that server, never to the other providers, and it is kept in the editor's secret storage, not in settings or saved conversations. Nothing is sent to the chat page itself except your display name.
- Several windows. They share one sign-in. When one window renews it the others use the new one and no window signs you out.
- Messages you may see. Your account may not be allowed to use the assistant, the usage limit may be reached, or a reply may be cut off because the model hit its length limit; each is shown as a plain message, and a cut-off reply is a notice, not an error.
- Editor only. The terminal (
mittr) and mittr serve do not support this provider; they say sign-in is available in the editor only.
- For administrators. The Mittr server must allow this extension's return address for each editor scheme (for example
vscode://techflowasia.mittr-coder/auth/callback for VS Code and antigravity://techflowasia.mittr-coder/auth/callback for Antigravity IDE) in DESKTOP_REDIRECT_URIS, or sign-in fails with 400 desktop_redirect_not_allowed. See section 10 of docs/architecture.md and docs/handover/001-antigravity-infra-action-plan.html.
Safety and approvals
Nothing that changes your files or runs on your computer happens without your say-so, unless you turn on auto-approve yourself.
| The assistant wants to |
You see |
Notes |
Read a file that may contain secrets (.env*, keys, certificates) |
The path, and the provider and host the text would be sent to |
Never approved in advance, not even by auto-approve |
| Edit a file |
The exact diff (removed lines -, added lines +, with a few lines around them; a long change is cut and says by how much) |
If the text to replace is not in the file, or matches more than once, the call fails and you are not asked. If the file changes after you were shown the diff, nothing is written. A file open in an editor is changed in that editor, so Ctrl/Cmd+Z undoes it and your unsaved text is kept. Files that may contain secrets and paths outside the workspace cannot be changed |
| Create a file |
The path and the text, shown as a new file |
Never replaces an existing file |
| Run a command |
The exact command as plain text and in full, the folder, the time limit, that it runs on your computer with your permissions, and where its output is sent |
See below |
Every approval card has Reject first and selected by default, and the message box is off while a card waits. There is no "remember this" button on a card. The card shows what the program worked out, never the assistant's own description of what it will do.
Commands in detail. A command with empty text, more than 2,000 characters, or characters that could hide what it does (control, invisible, or text-direction characters) is refused without asking. The command gets no input, so it cannot wait for you. It runs with only a few harmless environment variables (PATH, HOME, USER, LANG, and similar), so your API keys and tokens are not visible to it; commands that need credentials from your environment (an ssh agent, a registry token) will fail. It is stopped after 60 seconds unless the assistant asks for up to 300, and Stop ends it and everything it started. The assistant gets the exit code and the last 30,000 characters of output; the card shows how the command ended, not its output. Not offered on Windows yet.
Auto-approve (off by default)
To ask less, you can approve some kinds of call in advance, in your own user settings only:
mittrCoder.autoApprove.editFile — edits to existing files.
mittrCoder.autoApprove.createFile — new files.
mittrCoder.autoApprove.commands — a list of commands, each matched against the whole command exactly. An entry may only be one line of letters, digits, spaces and _ . / : = @ % + , -; anything else is ignored, so npm test never approves npm test; rm -rf ~.
Limits: a workspace cannot turn these on (they are read only from your user settings); nothing is approved in advance in a workspace you have not trusted; reading a secret-looking file is never approved in advance; and at most 20 calls are approved this way for one message (then the next asks). While any is on, a bar above the message box says so, a card approved this way says "Approved automatically", and Ask me every time turns it off for the chat at once (Resume turns it back on).
Read this before you turn it on: you do not see an automatic edit before it happens, and if you also approve a command that runs project code (such as npm test), the assistant can edit code and run it with no one looking.
History and privacy
The History button next to New chat lists the saved conversations of this workspace (title, time, number of messages). You can open one and carry on, delete one, or delete all (it asks twice).
- What is saved: conversations are saved in the editor's own storage for the workspace (outside your project, never in the repository) after every reply, when you press New chat, and when the window closes.
- What is left out: API keys are never saved. The content of a secret-looking file you approved the assistant reading is not saved (a note takes its place). Every saved tool result is cut to 4,000 characters.
- Limits: at most 50 conversations per workspace (the oldest goes first); a very long conversation keeps its newest turns.
- When nothing is saved: no folder is open, the workspace is not trusted, or
mittrCoder.history.enabled is off. Turning it off deletes nothing; Delete all does.
- Opening one: it continues with the same history as before and in the mode it was saved in, and the provider and model stay what you have chosen now.
Privacy. Saved conversations are text on your disk: what you typed, what the assistant said, and the start of each tool result (a command's output within 4,000 characters, a file you attached or the assistant read). Secrets that you or a command put in that text are not removed, so use Delete all (or turn history off) in a workspace where that matters. Files you mention with @ and the problems get_diagnostics returns (their messages can quote code) go to the provider too. What the assistant reads with a tool, like an attached file, is sent to the provider you configured (Anthropic, or your OpenAI-compatible server), and so is any file you approve it to read, any answer you give it, and the output of any command you approve (a command can read any file you can, so read the command before you approve it). Do not point it at a workspace whose contents you may not send there.
Requirements
- VS Code 1.146.0 or newer.
- An API key for Anthropic, or an OpenAI-compatible server (a local one needs no key), or a Mittr account.
- macOS or Linux to run commands (the rest works anywhere VS Code does).
Installation
From the Visual Studio Code Marketplace: open the Extensions view, search for Mittr Code, and choose Install; or run:
code --install-extension techflowasia.mittr-coder
Editors that do not use that Marketplace (such as Antigravity IDE), and a specific version, install from a .vsix file, which is attached to every release.
Install from a local file: download mittr-coder-0.11.3.vsix from the v0.11.3 release, then run from the download folder:
code --install-extension ./mittr-coder-0.11.3.vsix
Alternatively, download the file directly from the GitHub release URL and install it:
curl -fL -o mittr-coder-0.11.3.vsix https://github.com/techflowasia/mittr-coder/releases/download/v0.11.3/mittr-coder-0.11.3.vsix
code --install-extension ./mittr-coder-0.11.3.vsix
For VS Code Insiders, download the same VSIX using either method above, then install it with:
code-insiders --install-extension ./mittr-coder-0.11.3.vsix
You can also install a downloaded file in VS Code, VS Code Insiders, or Antigravity IDE via Extensions → ... → Install from VSIX.... Reload the window (Developer: Reload Window) after installation. VS Code installs extensions for the current user/profile, not per project; there is no npm-style global VSIX installation. For remote development, install the extension in the appropriate remote environment. For Mittr sign-in on Antigravity IDE, ensure the Mittr server allowlists antigravity://techflowasia.mittr-coder/auth/callback (see Sign in with Mittr).
For other versions, see Releases. If a release has no attached file, build it from the tag (see Development).
Extension Settings
| Setting |
Default |
Purpose |
mittrCoder.provider |
mittr |
anthropic, openai-compatible or mittr (sign in with your Mittr account) |
mittrCoder.mittr.environment |
prod |
Which Mittr server to sign in to: prod, dev or local (user settings only; see Sign in with Mittr) |
mittrCoder.model |
claude-sonnet-5-5 |
Model name sent to the provider |
mittrCoder.anthropic.baseUrl |
empty |
Override the Anthropic API address (HTTPS, or HTTP for localhost) |
mittrCoder.openaiCompatible.baseUrl |
empty |
Address of an OpenAI-compatible server, including /v1 |
mittrCoder.mcp.servers |
{} |
MCP servers to start as local programs (user settings only; see MCP servers above) |
mittrCoder.contextWindow |
100000 |
The context window of your model, in tokens (a whole number of at least 4000); the conversation is condensed when it passes 75% of it |
mittrCoder.maxSteps |
25 |
Most requests the assistant may make for one message while it uses tools (a whole number of at least 1) |
mittrCoder.history.enabled |
true |
Save conversations per workspace (see History and privacy) |
mittrCoder.autoApprove.editFile |
false |
Approve edits to existing files in advance (user settings only) |
mittrCoder.autoApprove.createFile |
false |
Approve new files in advance (user settings only) |
mittrCoder.autoApprove.commands |
[] |
Exact commands that run without a question (user settings only) |
Development
pnpm install
pnpm run compile # from the repo root: build libs and the webview UI, then type check, lint and bundle
pnpm test # run the extension tests in a VS Code test instance (the logic tests are in packages/host and run under plain mocha)
Press F5 (Fn+F5 on macOS) to launch an Extension Development Host.
To build the installable package (from the repo root, then the extension folder):
pnpm run package
cd apps/extension && npx @vscode/vsce package --no-dependencies
Opt-in live tests against a real provider: copy .env.example to .env, then set -a; source .env; set +a; cd packages/host && MITTR_LIVE=1 pnpm test. MITTR_PROVIDER selects anthropic or openai-compatible. The extension itself never reads .env.
Feedback
Found a problem? Open an issue at github.com/techflowasia/mittr-coder/issues.
Release Notes
See CHANGELOG.md and the Releases page.
License
MIT
| |