Skip to content
| Marketplace
Sign in
Visual Studio Code>Chat>SanRemesNew to Visual Studio Code? Get it now.
SanRemes

SanRemes

SanRemes

|
1 install
| (0) | Free
Chat with your SanRemes bots from inside VS Code, over the local Bot API — file context, plan mode, diffs, checkpoints, terminal, permission modes, documents and video analysis.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SanRemes for VS Code

Chat with your SanRemes bots from inside VS Code, over the local Bot API — with file context, plan mode, diffs, checkpoints, terminal commands, permission modes, documents and video analysis. Version 3 adds permission modes, document creation/conversion/editing and video analysis; see the table at the bottom for what matches Claude Code and what does not, and why.

Install

  1. In VS Code: Extensions view (Ctrl+Shift+X) → ... menu → Install from VSIX…
  2. Pick the sanremes-0.3.0.vsix file.
  3. A SanRemes icon appears in the Activity Bar. Open it.

No marketplace listing is needed; the .vsix installs directly.

First-run setup

The extension talks to the SanRemes already running on your laptop. It does not start the server itself.

  1. Turn on the Bot API in the desktop app. Open your main bot's settings → Bot API card. Switch it on, mint a new key (copy it — it is shown once), and turn acts-as-owner on. Note the bot ID shown on the card. Acts-as-owner is what lets the bot change files and run commands; without it the bot can only answer, and the panel says so.
  2. Open the folder the bot works in. The bot edits files in its own workspace folder (shown in the desktop app). Open that same folder in VS Code, or the panel cannot see the bot's edits and cannot show diffs.
  3. In VS Code, open the SanRemes panel. It will ask for the key and the bot ID:
    • Key: run the SanRemes: Set Bot API Key command (Ctrl+Shift+P). The key is stored in VS Code's SecretStorage (on Windows, the Credential Manager) — never in a file, and never logged.
    • Bot ID: run SanRemes: Set Bot ID, or set sanremes.botId in settings.
  4. If SanRemes isn't running, the panel says so. Open the desktop app, or run pnpm sanremes serve from the repo, then SanRemes: Retry Connection.

Settings:

Setting Default Meaning
sanremes.botApiUrl http://127.0.0.1:8800 Base URL of the Bot API on this machine
sanremes.botId (empty) ID of the bot to chat with
sanremes.attachOpenFile true Include the open file's path with each message
sanremes.attachSelection true Include the selected text with each message

What it does

  • Chat sidebar. Send messages, see replies, see when the bot is busy. Replies arrive whole, not streamed (see the table).
  • File context. Type @path, @path:12 or @path:12-20 and the file (or line range) goes to the bot with your message. The paperclip button picks a file to mention. The open file's path and any selection are attached automatically (turn off with the settings above). The bug button attaches the Problems panel diagnostics for your next message.
  • Plan mode. The clipboard button or /plan puts the bot in plan mode: it writes a step-by-step plan and changes nothing. An Implement this plan button under the plan sends it to build.
  • Diffs. After a turn, the panel lists the files that changed, with Diff (VS Code's native diff viewer, before vs after) and Undo per file.
  • Checkpoints. Every turn that changes files saves a checkpoint of the before-state. Rewind this turn restores every file as it was before that turn. Binary and oversize files are never restored — their before-state is not kept, and the panel says so instead of guessing.
  • Terminal. When the bot puts a command in a ```shell block, a Run button under the reply runs it in a terminal named SanRemes (PowerShell on Windows, bash elsewhere) and shows the output and exit code in the panel, with a Send output to bot button. In Ask mode nothing runs without your click; Always allow and Full control change that (see Permission modes below).
  • Permission modes. The shield button in the header (or /mode, or the SanRemes: Set Permission Mode command) picks what the panel may do without asking, per workspace — Ask (default: every edit and command asks first), Always allow (edits apply automatically inside the workspace; shell commands still ask), Full control (edits and commands run without asking, with a warning strip at the top of the panel). Dangerous commands — recursive deletes, disk formats, git push --force / reset --hard, DROP TABLE — still ask in every mode. Everything auto-applied is logged in the panel and covered by the turn checkpoint, so it stays undoable. The mode is also told to the bot in each message, so it knows what you will auto-approve.
  • Documents. The file-text button (or /doc, or SanRemes: Make a Document from This Chat) turns the chat into a PDF or a Word document. SanRemes: Convert a Document turns a .docx into a .pdf or a .pdf into a .docx. SanRemes: Edit a Document opens a .docx or .pdf as editable text; save it back as .docx or .pdf from the notice in the panel. The bot can also make documents itself: ask it for one and it builds it with its document tools and replies with the saved file path — the panel offers an Open button for .pdf, .docx and .pptx files the bot mentions (PDFs open in VS Code; Word and PowerPoint files open in your file manager, since VS Code has no built-in editor for them). The words always survive a conversion or an edit; the original layout, fonts and images do not. Legacy .doc (binary Word) cannot be converted here — save it as .docx in Word first.
  • Video analysis. The video button (or SanRemes: Analyse a Video) picks a video (.mp4, .webm, .mov). The panel copies it into <workspace>/sanremes-videos/, reads its length and size, extracts up to 4 keyframes (needs ffmpeg installed — without it you still get the file and the brief, just no frames), shows the frames in the panel, and asks the bot to analyse it, write a document from it, and turn any how-to steps into code edits through the normal edit flow. Honest limit: the bot cannot see the frames and there is no transcript — the Bot API takes text only, and no transcription runs in a turn — so what the bot writes comes from the file's name, length, keyframe times and what you tell it, not from watching the video. See the table below.
  • Slash commands. /new, /plan, /clear, /history, /model, /usage, /retry, /mode, /doc, /help. Unknown commands get the help list.
  • Edit proposals. When the bot cannot reach a file itself, it can reply with the file's complete new contents in a ```edit:relative/path block. An Apply button under the reply writes it, opens the diff, and keeps an undo checkpoint.
  • Sessions. Chats persist across reloads; the history button reopens an earlier chat. The panel resumes your latest chat on open.
  • Bot switching. SanRemes: Switch Bot picks another bot; keys are kept per bot in SecretStorage, so switching back does not ask again.
  • Approvals. If a turn stops at an approval, the panel tells you to answer it in the desktop app — approvals are answered there, not in VS Code (see the table).

What it does not do

  • No streaming replies: the Bot API answers only when a turn settles.
  • No in-extension approval answering: the server has no route for it.
  • No model picker: the model is the bot's own setting in the desktop app; the Bot API has no model field.
  • No subagent map, no MCP/plugin UI, no git worktrees, no background tasks view. Those need server support the Bot API does not expose.
  • No auto-start of the server. If SanRemes isn't running, open the app or run pnpm sanremes serve yourself.
  • No true video understanding: the bot cannot watch a video or hear its audio. Video analysis gives it the file, its length/size and up to 4 keyframes you can see; a transcript and a watchable upload need a Bot API upload route and a turn transcription tool the server does not have.
  • No faithful document conversion: conversions and edits carry the words over, not the layout, fonts or images. A PDF is never edited in place — it is rebuilt from the edited text. Legacy .doc is refused.

Claude Code parity

Researched from the official docs at https://code.claude.com/docs/en/vs-code (read 2026-11-28) and mapped against the SanRemes repo's own code (server/bot-api-host.ts, server/bot-api.ts, server/bot-api-fence.ts).

Claude Code feature SanRemes status Why / where it differs
Chat sidebar Done Same shape: sidebar panel, threads, busy state.
Streaming replies Not possible The Bot API answers only on settle (200 {reply} / 202 {status: "working"}); the server sends no partials. Polling is the only read path.
Agentic coding loop Done, with a condition With an acts-as-owner key the bot runs at its own level with its file and shell tools (botApiThread() is false for owner threads, so the fence does not apply). With a fenced key the bot can only answer, and edit blocks are the fallback.
File context (@-mentions) Done @path, @path:12, @path:12-20; open file path and selection auto-attached; Problems diagnostics on demand. Contents are capped (4,000 chars per file, 12,000 total) to stay under the 20,000-char message limit.
Inline edits + diff view Done The bot edits files itself (owner key) and the panel diffs them in VS Code's native viewer; when it cannot reach a file, ```edit:path blocks apply the same way.
Terminal integration Done, different surface Claude Code runs commands in its own terminal and shows output inline. Here a Run button executes the bot's ```shell block in a visible SanRemes terminal and the output lands in the panel. In Ask mode commands run only on your click; Always allow and Full control auto-run them (destructive commands still ask in every mode).
Checkpoints / undo Done, client-side The panel snapshots the workspace before each turn and restores the before-state per file or per turn. Claude Code's checkpoints live in the agent; these live in the extension (globalState, last 8 per thread). Binary/oversize files are not restorable.
Plan mode Done, client-side A toggle that instructs the bot to plan and change nothing, then an Implement button. Claude Code's plan mode is a permission mode in the agent; this one is a prompt-level mode in the panel.
Model selection Not possible The Bot API schema (shared/bot-api.ts) has no model field; the model is the bot's setting in the desktop app. Bot switching is supported instead.
Approvals / permissions Done, panel-side Ask / Always allow / Full control gate the panel's own Apply/Run paths, with a destructive-command deny list that still asks in every mode and a warning strip in Full control. The bot's own server-side approval mode (default Full in the desktop app) is separate. In-extension answering of a bot approval still needs a server route that does not exist: the Bot API would have to expose the pending card (request ID + what it asks) and an owner-only answer route wired through answerRequest in server/index.ts. The extension's AGENTS.md forbids building it until the server gains that route.
Slash commands Done, subset /new /plan /clear /history /model /usage /retry /mode /doc /help. Claude Code has more (/compact, /tasks, /mcp, …) that need server features the Bot API does not expose.
Permission modes Done, panel-side Ask / Always allow / Full control mirror Claude Code's default / acceptEdits / bypassPermissions, including the deny list and the Full-control warning. Claude Code's modes also gate the agent's own file/shell tools; here the panel mode gates the panel's Apply/Run paths, and the mode is told to the bot in the message footer.
Documents Done, local + bot-side The panel makes PDFs/DOCXs from the chat, converts DOCX↔PDF and edits documents as text (words survive, layout does not). The bot builds real .docx / .pdf / .pptx with its filegen tools when asked. Claude Code has no built-in document generation; this is a SanRemes extra, not parity.
Video analysis Partial, honest subset The panel copies a video in, reads its length/size and keyframes (ffmpeg), shows the frames, and briefs the bot — which writes a document and turns how-to steps into edits. The bot cannot see the frames and there is no transcript: the Bot API takes text only, and no turn transcription tool exists (Whisper lives only in server/meetings/speech.ts). A full "watch this tutorial and do it" flow needs a Bot API upload route plus that transcription tool, neither of which exists yet.
Session history Done, client-side Threads persist in globalState and reopen from the history button. Claude Code shares history with its CLI; SanRemes threads live on the server, the panel only remembers which ones it opened.
Status / usage display Done, partial Connection state, thread ID and the 10-calls-a-minute limit are shown (/usage). There is no token/context usage meter — the Bot API reports none.
Agent map / subagents Not possible The Bot API exposes no subagent structure or background tasks.
Diagnostics sharing Done Problems panel diagnostics attach as context; the bot cannot query them live the way Claude Code's ide MCP server can.
MCP / plugins Not possible SanRemes has its own connectors and MCP servers in the desktop app; the Bot API does not expose them to the panel.
How it works under the hood Different by design Claude Code's extension bundles its own CLI copy and runs a local ide MCP server the CLI connects to — the CLI is the agent, the extension is the panel. SanRemes's extension talks HTTP to the desktop app's Bot API (POST /hooks/api/bots/<id>/messages, Bearer bak_…); the bot runs on the laptop, and the extension is the panel plus a change-detector.

Development

npm install
npm run typecheck   # tsc --noEmit
npm test            # client tests against a fake HTTP server + temp dirs
npm run compile     # tsc to out/
npm run package     # vsce package -> sanremes-0.3.0.vsix

Live verification against a real isolated fixture server (fake engine):

node --experimental-strip-types scripts/verify-live.mts

VS Code itself cannot be launched on this Linux VM, so the panel UI is verified by packaging + tests, not by clicking through it. The diff, checkpoint and terminal flows are verified by unit tests and by live checks against real files on disk; the end-to-end "bot edits a file" flow cannot run here because the fixture's fake engine never edits files, end-to-end video understanding cannot be verified here either, and no live VS Code UI test happened.

Credits

Icons are Lucide (lucide-static, ISC license), vendored under media/icons/. The app icon is SanRemes's own, resized from public/app-icon-512.png.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft