HomerandClaude Fable 5.2 3d548bbd73 VS Code / VSCodium: the extension's first version
A client of `lembas serve --stdio`, in vscode/: plain JavaScript, no
dependencies, no build. scripts/package-vscode.sh writes the .vsix with
Node alone; the version comes from VERSION.

- Chat in a side bar view: transcript, mode, the session's model, Stop,
  new session. Approval cards are answered there; one that carries ACP
  diff content opens the editor's diff view before the answer.
- Ask about a selection, with the editor context as _meta.lembas.editor.
- Rewrite a selection through _lembas/edit: proposed changes with
  Accept / Reject per change and for all, and a diff beside the file.
  Nothing is written before it is accepted.
- Autocomplete as an inline completion provider on _lembas/complete:
  debounced, the request before cancelled by its own id, a cancelled or
  stale answer shown as nothing. No model chosen: said once, with a
  button that opens the picker.
- The two model settings through _lembas/editor/settings, and a quick
  switch for the window that is saved nowhere.
- Files the agent shows (_lembas/show, _lembas/show/read): pictures in
  the chat, anything else a line with Open, under a size limit.
- fs/read_text_file answered from the open document.

Model output is untrusted: the extension's own Markdown reader makes a
tree of plain objects and the page builds elements and text from it,
under a Content-Security-Policy with one nonce'd script.

Tests (scripts/test-vscode.sh, node --test): the modules in src/ against
a stand-in agent, the package's structure, and extension.js against an
in-memory stand-in for the editor's API. Nothing was run inside VS Code.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 11:42:58 +00:00

LLeMbas IDE

LLeMbas in your editor: a Neovim plugin, and a VS Code / VSCodium extension.

Both are clients of the LLeMbas CLI. The CLI is the agent: it holds the sign-in to your LLeMbas server, the models, the tools and the permissions. The editor starts lembas serve --stdio and talks to it over the Agent Client Protocol. Nothing about a server or a model is set in the editor.

This is a beta. It needs LLeMbas CLI 2.0.0-beta.12 or newer, signed in (lembas login <address>).

Neovim

Needs Neovim 0.10 or newer. The plugin lives in nvim/, so the runtime path points there.

lazy.nvim:

{
  "LLeMbas/LLeMbas-IDE",
  branch = "dev",
  config = function(plugin)
    vim.opt.rtp:append(plugin.dir .. "/nvim")
    vim.cmd("runtime plugin/llembas.lua")
    require("llembas").setup({})
  end,
}

vim-plug: Plug 'LLeMbas/LLeMbas-IDE', { 'branch': 'dev', 'rtp': 'nvim' }

Command What it does
:LLeMbas open or close the chat panel
:'<,'>LLeMbasAsk [question] ask about the selected lines; without a question they go with the next message
:'<,'>LLeMbasEdit [instruction] have the selected lines rewritten; shown as changes to accept (ga, gA) or reject (gr, gR)
:LLeMbasAccept[!], :LLeMbasReject[!] the same from the command line (!: all)
:LLeMbasAutocomplete [on|off] suggestions as you type
:LLeMbasAutocompleteModel[!] [model] the model that writes suggestions (!: this editor only; -: back to the default)
:LLeMbasMainModel [model] the model for chat and rewriting, saved in your account (? shows both)
:LLeMbasOpen open the file the agent showed last
:LLeMbasStop stop the running turn
:LLeMbasNew start a new session
:LLeMbasMode [mode] change the mode
:LLeMbasModel [model] show or change the model

In the prompt: Enter (normal mode) or Ctrl-S sends, Ctrl-C stops the turn, q closes the panel. Help: :help llembas.

While typing, <Tab> accepts a suggestion and <M-\> asks for one; both keys can be changed in setup.

Suggestions, rewrites shown as changes, the model settings and shown files need a LLeMbas CLI with harness spec 3.11.0 (after 2.0.0-beta.13). With an older CLI the chat, asking about a selection and approvals work, and a rewrite is done by the agent on the saved file.

Not there yet: picking an older session, and the agent's questions and plans as cards.

VS Code and VSCodium

Needs VS Code or VSCodium 1.85 or newer. The extension lives in vscode/; it is plain JavaScript with no dependencies, and is installed from a package you build with Node alone:

scripts/package-vscode.sh                                   # writes dist/llembas-<version>.vsix
codium --install-extension dist/llembas-<version>.vsix      # or: code --install-extension …

A chat in the side bar, questions about a selection, a selection rewritten as changes you accept or reject, autocomplete as you type and on Alt+\, the two model settings, and pictures the agent shows. Commands, keys, settings and what is not there yet: vscode/README.md.

Tests

scripts/test-nvim.sh runs the plugin headless against a stand-in agent (needs nvim and python3).

scripts/test-vscode.sh runs the extension's parts that need no editor against a stand-in agent of its own, and checks the package (needs Node 18 or newer and python3). It does not start VS Code.

Licence

MIT.

S
Description
LLeMbas in the editor: a Neovim plugin and a VS Code / VSCodium extension on the LLeMbas CLI
Readme MIT
2.4 MiB
0 Stars 2 Watchers 0 Forks
Languages
Lua 85.3%
Python 11.6%
Shell 3.1%