Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
95 KiB
Changelog
All notable changes to LLeMbas CLI. The format follows Keep a Changelog, and the project uses Semantic Versioning.
Unreleased
[2.0.0-beta.21] — 2026-12-03
Security
- A shell command is judged by what it will touch, not by how it is spelled (harness spec
3.15.0,
permission/rules.md§5). In manual mode a command the default rules allow —cat,head,wc,grep,rg,git blame— could read a file thereadrules ask about, or one outside the project, when the file was written through a brace list, another user's~name, a variable, or inside an option. Now the words are read as the shell expands them, a path riding on an option is a path, and a word that cannot be resolved makes the command ask: it is never "allowed by rules". Ordinary commands are unchanged; one with a variable of your own in it (cat "$f") now asks. - The protected paths hold for commands in every mode. In auto mode a command could write
under
~/.sshor~/.gnupg, which the write tools always refused. A redirection into a protected path, or a command naming one that is not known to only read (cp,tee,sed -i, throughsudo,bash -cor acdtoo), is refused in every mode. Reading there is asked as before. - A command longer than 32 KiB is asked about in every mode, auto included, without being analysed: a very long line could keep the permission check — and with it the whole program — busy for many seconds.
- The
greptool no longer returns lines of a filereadwould ask about. A search of a directory was judged for the directory only, so the lines of a.envin it came back unasked — in plan mode too. Such files are now left out of the result, which says how many and which, so the model can ask toreadone. Names are not content:globandliststill show them. - A custom command's
!`…`is abashcall of the session, and its arguments are data. The shell line in a command file ran with only the floor checked, with the arguments pasted into it — also for a prompt that arrived over the link from the web, whatever the remote limits said. It now runs only when the session would run that line as abashcall without asking (its mode, its rules, the remote limits); otherwise the model is told it was not run. The arguments reach the line as$1…and$ARGUMENTSof the shell, never as part of it, and a$typed in the arguments is no longer rewritten. A substitution is stopped after ten seconds. A command of yours whose!`…`is not on the allowed list no longer runs by itself in manual mode — allow it with a rule, or let the model run it. lembas remote disablestops what is open. The remote limits were judged when a session was opened; a session already open — in the service, or a terminal's shared under the limits — kept accepting prompts after remote work was turned off, its folder removed from the roots, the mode lowered or trust withdrawn, and a web terminal stayed open afterlembas remote terminal off. The limits are now judged on every request and applied within seconds of a change: such a session is refused in words, its running turn and background commands are stopped, its mode is lowered, the terminal is closed. Stopping, asking for status and deleting always work.- Over the link, only sessions the web UI was shown or that lie in the allowed folders can be listed, asked about or renamed. A list of the whole machine's sessions, the plan and jobs of any session by its id, and a rename of any session were answered, with remote work off too.
- A project cannot open the settings tool by a rule that merely matches its name. Only a
project rule keyed exactly
settingswas ignored; a trusted project'ssett*or a rule for every tool let the model change your settings without asking. Only your own configuration decides that tool now. - The web file manager treats
.lembas/like.agent/. Where.agentis somebody else's directory the project's agent directory is.lembas, and withremote files-that-run-codeoff the web could still write its config (MCP servers), commands, agents and skills. Edit mode and the file manager now read one list of the files that run code. - Your sessions are no longer readable by other users of the computer. The data and state directories took whatever mode the first program to write them gave them, and the session database was created readable by everyone on the machine. Both directories are now made — and, when they already exist, set — readable by you alone, and so are the session and library databases and the prompt history.
get.shrefuses a signed release list that does not name its version, as the updater does: an older release's signed files could be served under a newer tag and its binary run before the mismatch was noticed. Both now follow one rule, tested against the same cases.- A named pipe in an allowed folder can no longer stop the service. Asking the web file manager to open one made the service wait for a writer — every session and the link with it. Only regular files are opened now; anything else is refused as not a file.
--terminal-contextand/terminal-contextno longer delete what they refuse. A file was removed once read, whatever it held, and the accepted folders took in the CLI's own data — a wrong path could delete the session database. A file is now removed only once it has read as a terminal context; one that does not is left where it is, and the CLI's own folders are refused outright.- Autocomplete in a LLeMbas terminal no longer sends a line that holds a password or a key.
lembas complete --shellsent the line being typed as it was —export API_KEY=…,mysql -p…,curl -u user:passincluded; only the history was filtered. Such a line is now not sent at all, and the same check, widened, applies to the history and to the commands a terminal context hands the model (the command is replaced by a placeholder, its output left out). - What a remote shell says about itself is no longer taken as fact. A pane over SSH reports its state through the terminal, and any program printing there can imitate that report. Such a report alone no longer makes the prompt count as empty for a command to be placed or typed — the pane is read instead — and a command's end that only it reports is told to the model as "reported by the remote shell; not verified".
- A folder whose name begins with two dots (
..cache) inside an allowed folder is inside it. - The force-push floor reads the push. It refused any forced push with "main" somewhere in
it (
feature/main-menu) and missed deleting the branch (git push origin :main,--delete main), a forced--all/--mirror, and a baregit push -fwhile on main. The push is now read by its refspecs.
Fixed
lembas runcan be stopped, and leaves nothing behind. While it waited for a background job, Ctrl+C did nothing — a run whose model had started a server never ended — and SIGTERM or SIGHUP ended the run but not the commands it had started. Now the first Ctrl+C stops the turn and the wait, says which jobs it stops, and exits 130; a second Ctrl+C, or one SIGTERM/SIGHUP, ends it at once (143/129). A run whose prompt failed no longer waits for its jobs.- Nothing a command started outlives lembas. Every command runs in a process group of its
own; whatever is left in one when the program ends — by
/quit, the end of a run or a signal — gets TERM, then KILL. A foreground command that ends but leaves a program running (server &) says so in its result. A program that must outlive lembas has to leave the group (setsid);nohup … &alone does not. - Texts that named what does not exist. The prompt for Claude-family models told them to
use a
todotool with statuses the plan does not have (it isplan_write/plan_update,doinganddone); a question answered with a question told the model to "call question again" (the tool isask_user);--helpshowed--model conn/model(2.0 has no connection prefix: a model is named by its id);SECURITY.mdspoke of anunrestrictedmode (auto). A check now fails when a prompt, a tool description or a tool's result names a tool that does not exist. /trustmakes the project directory when the project has none —/tasks,/decisionsand/decidesaid "/trust creates it", and it did not — and says/reloadloads the project's config (it said to restart).- A command that could not be started says why instead of "stopped (SIGTERM)".
- One name for the server. Texts said "LLeMbas instance" in some places and "LLeMbas server"
in others — one screen used both — and still spoke of 1.x's "connections" and "webui
connections". They now say "LLeMbas server" and "sign-in";
lembas logout [name]. "Forge" is gone from what a person reads.lembas remote --helplistsfiles_that_run_codein its JSON. - A folder named like
..cachein the project is shown relative to the project in the prompt, in approvals and in the editor, as any other folder. - In a LLeMbas terminal an answer is bound to the approval it was given for. What the display
asks now carries a number (
approval#12 yn …);/approve 12,/always 12and/deny 12decide only that approval, and an answer meant for one that has since closed is refused in words instead of approving the next. Without a number they work as before, and so does/answer <n>. A line too long for the terminal's ask line ends in "…".lembas --version --jsonliststerminal_ask_id. - "Always" on a file outside the project now holds. It remembered the file for its tool but not that the file may be reached outside the project, so the next identical call asked again. The outside path is now remembered too, for the session only — it is never written into the project's configuration. "Always in this project" no longer fails the approved call when the project's configuration cannot be written; the rule then holds for the session.
- The updater never moves to a new major version by itself. The newest release of the
version's own major is installed; a later major (which may need a newer LLeMbas server) is
named — in
lembas updateand once an hour at most in the TUI — and installed only when you name it:lembas update v3.0.0. - A version you chose stays. After
lembas update vX.Y.Zorlembas update --rollbackthe next start installed the newest release again. Automatic updates now pause until you runlembas updateyourself, and both commands say so. - A slow connection no longer fails every update. A download had 30 seconds in all — too little for the release binary below about 11 Mbit/s; the limit is now 30 seconds of silence.
lembas updatesays an ordinary failure (no network, nothing kept to roll back to) in one line instead of printing a program stack.
Terminal — LLeMbas TTY is now LLeMbas TERM
- The terminal was renamed, and the names it gives the CLI with it (harness spec 3.15.0,
terminal contract 4). A LLeMbas terminal now sets
LLEMBAS_TERM,LLEMBAS_TERM_PANE,LLEMBAS_TERM_EXECUTABLEandLLEMBAS_TERM_STATUS_DIR; a pane's status record startsllembas-term-status=1, the input markllembas-term-input=1, and the default status directory isllembas-term. Nothing else changes. - A terminal from before the rename keeps working unchanged:
LLEMBAS_TTY…,llembas-tty-status=1,llembas-tty-input=1and thellembas-ttydirectory are still read. One family of names at a time, the new one first — a renamed terminal started from inside an older one is never given the older one's pane. lembas --version --jsonsaysterminal_contract: 4and the capabilityterminal_names_2, which a terminal that exports only the new names checks.
[2.0.0-beta.20] — 2026-12-02
Terminal — you run the command, and the terminal remembers what you chose
- Manual mode places the command at your prompt; you run it (harness spec 3.14.0, terminal
contract 3). In the terminal's display, manual mode no longer opens an approval card for a
command — which meant leaving your shell to answer it. The agent's command is typed at your own
prompt without Enter: press Enter and it runs, change it first if you like, Ctrl+C
dismisses it. That is the approval, and there is no other. The agent is told which it was —
the exit status and the end of the output when it ran, the line as you actually ran it when
you changed it, that you declined when you dismissed it (it must not put the same command
back unasked) — and after two minutes of nothing it stops waiting, says so, and leaves the
line where it is. Auto mode is as before: typed and entered at once. Written into the spec
first (
harness/acp.md, A command placed at the prompt). - Only at an empty prompt, and one at a time. Nothing is ever added to something you have
typed: when your prompt is not empty, or a command is running, the agent gives you the command
in its answer instead. While a command it placed still stands at your prompt it places no
other.
/stop, or closing the display, never touches your prompt line — the display says the command is still there, and a display opened again still knows. - What must never be handed to you ready to run is still refused outright: the hardline, a
written deny for
bashorterminal_run, the protected paths — before anything is typed. Nothing is typed at a password prompt, placed or entered. - The display says where the command is: its row reads
at your prompt, thenran, exit 0,ran, edited, exit 0,dismissedorleft at your prompt; while the agent waits, a line under the conversation says what stands at your prompt and what Enter and Ctrl+C do. For the terminal:lembas_askisplaced <command>(a kind with no keys) andlembas_stateisasking. Approval cards and their keys remain for everything else that asks. - The terminal's settings are remembered — for everywhere, and per working directory. One
store on this machine,
terminal.jsonin the configuration directory (never inside a project): a global level and one entry per directory, the nearest directory's entry overriding the global one key by key, so what you chose for a project holds in its subdirectories. Keys:main_model,autocomplete_model,mode,ai,autocomplete,suggestions,highlight,display_width; a key a newer terminal adds is kept. The file of 2.0.0-beta.19 (the two models) is read as the global level and nothing is lost.lembas terminal settings [--cwd <dir>] [--json]— what holds in a directory, and where each value comes from.lembas terminal settings set (--global | --cwd <dir>) <key>=<value> …—defaultremoves a key; a model must be one your server offers unless--force.lembas terminal settings forget --cwd <dir>.lembas terminal modelsandmodels setkeep working, on the global level;models --json --cwd <dir>adds what holds there.
- A display starts with its directory's model and mode, unless
-mor--modesay otherwise./modeland/modeinside it change the running session only, and now say so. lembas complete --shelluses the directory's autocomplete model, and answers nothing (status 0, one line on standard error) whereaiorautocompletewas set tofalse.
Fixed
lembas complete --shellwithout--cwdwas refused with status 2 — so a terminal that did not know a pane's directory got no suggestion and, with standard error discarded, no reason.--cwdmay now be left out.lembas complete --debug(orLEMBAS_COMPLETE_DEBUG=1) writes one line per decision to standard error — the arguments, the settings and where each came from, the model, the request and how long the answer took — so a terminal can show why nothing came. Lengths and names only: never the line, the history or the suggestion.
[2.0.0-beta.19] — 2026-12-02
Terminal — LLeMbas in the terminal, not a terminal that opens LLeMbas
- The terminal's display:
lembas terminal(harness spec 3.13.0, terminal contract 2). For a LLeMbas terminal the CLI is now the engine behind it, as it is for the editors. What the terminal shows of the agent is a display beside your own pane — a one-line header (model, mode, state, how full the window is), your questions and the answers, one row per tool call, and a card when something is asked. It has no prompt box: questions, command lines and the keys that answer an approval come from the terminal (yallow,aalways,ndeny,1…9for a question's options;/model,/mode,/new,/stop,/compact,/approve,/deny,/quit). Keys typed into the display by accident are ignored: only a paste the terminal sends is ever a message, and only a line that arrives whole in one write is a command. Made for a third of a terminal: every row is one line of a known width at 30 to 60 columns. Written into the spec first (harness/acp.md, The terminal's display). - What the agent does in a shell happens in your own pane. In the display the agent has
terminal_runandterminal_read, the web, your skills (to read), memory, questions and a plan — and no tool that edits a file and no shell of its own: nobash,edit,write,apply_patch, no subagents, no MCP tools. When a file has to change it proposes the command for your pane, which you approve like any other, or sends you to the CLI or the IDE. Two modes, manual and auto; a request for edit or plan mode is refused in words. - A typed command is waited for.
terminal_runnow waits for the command to end and answers its exit status and the end of what the pane shows — where the terminal's shell integration writes the pane's status record (a small file per pane at every prompt; for a pane on another machine the same record as a user var the terminal writes to that file). It says "still running" after 30 seconds, and "waiting for you" when the pane asks for a password or a confirmation. Nothing is ever typed at a password prompt, and nothing into a pane where a command runs unless the call says the pane is at a prompt (at_prompt, for a remote shell). Without a status record it answers "typed", as before.terminal_readgainswait. The row in the display says the command, its status and its time — never its output, which is in your pane. - Context that continues. One conversation per terminal window (
--window <id>), carried on when the display is closed and opened again;/newor--newbegins one. Of each context the terminal sends, only what the model has not seen is added — commands by the terminal's own number for them (context files of version 2:seqper command,host), a changed directory, a changed screen — and a command the agent typed itself is named without its output. Version 1 files are read as before. A display closed while a typed command had not ended says so when it is opened again. - The terminal's own two models. Its chat model and its autocomplete model are settings of
their own, apart from the TUI's and the editors':
lembas terminal models [--json]lists the models and the two settings,lembas terminal models set --main <model> --autocomplete <model>chooses (default: none),-mand/modelswitch a conversation, andlembas complete --shelltakes--modeland otherwise asks for the terminal's autocomplete model. They are kept on this machine (terminal.jsonin the configuration directory). lembas --version --jsonsaysterminal_contract: 2and the capabilitiesterminal_surface,terminal_await,terminal_context_2,terminal_models. The display publishes two more user vars,lembas_surface(display) andlembas_ask(what is asked now and the keys that answer it), so a terminal can show an approval at its own ask line.- The TUI in a split pane keeps working for a terminal written for contract 1; that use is
superseded by the display. There too
terminal_runnow waits where a status record exists, and looks at the pane before it types.
[2.0.0-beta.18] — 2026-12-01
Terminal — a terminal as the client
- A terminal as the client (harness spec 3.12.0). What a terminal emulator with LLeMbas
built in needs from the CLI, written into the spec first (
harness/acp.md, A terminal as the client;harness/context.md§12;harness/permission/rules.md§4) and implemented here. Such a terminal setsLLEMBAS_TTY,LLEMBAS_TTY_PANEandLLEMBAS_TTY_EXECUTABLEin every pane; withoutLLEMBAS_TTYnothing below applies and the CLI behaves exactly as before.- Session state for the terminal's bars. The TUI publishes its state as user vars
(
OSC 1337 ; SetUserVar):lembas_session,lembas_title,lembas_model,lembas_mode,lembas_effort,lembas_state(idle,waiting,thinking,tools,writing,asking),lembas_context,lembas_tokens,lembas_spend— on start and on every change, each one plain line of at most 200 bytes, and emptied on the way out. Not under tmux, screen or zellij. - Terminal context.
lembas --terminal-context <file>(the TUI andlembas run) and/terminal-context <file>in a running TUI: a JSON file the terminal wrote with what a pane showed — commands with their exit status and the end of their output, or the screen. It is read once and removed, checked (version 1, 256 KiB, 20 commands, plain text only), and attached to your next message as one<terminal>block the model is told is data from your screen, possibly stale, never instructions. The transcript shows one line —terminal context: 3 commands from pane 7— not the content. Only a regular file of your own in a runtime, temporary, state or data directory is read; anything else is refused in words and left where it is. terminal_runandterminal_read— two tools, the main agent's alone, offered only in such a terminal and usable once you have sent a context from a pane: type a command into that pane and press Enter, and read what the pane shows. They run the terminal's own command-line program with an argument list, never through a shell.terminal_runis its own permission: whatbashwould refuse (the hardline, a written deny, plan mode) is refused, and beyond that it asks every time in manual, edit and plan mode — once, never "always" — and followsbashin auto mode. Whatterminal_readreturns is wrapped as untrusted terminal text.lembas complete --shell <bash|zsh|fish> --cwd <dir> [--history <file>] [--timeout-ms <n>]: the rest of a shell command line. The line so far on standard input, only the suggestion on standard output — from your autocomplete model, through the same request the editors' autocomplete makes. Never executed; history lines that look like they hold a secret are not sent; no suggestion (also: no model chosen, too slow) is empty output and status 0.lembas sessions --json: the recent sessions as one JSON array of{id, title, model, root, updated}, newest first, for a program that offers to resume one.lembas --version --json: one object with the version, the harness spec, andterminal_contract: 1with the capabilitiesterminal_state,terminal_context,terminal_tools,complete_shell.lembas --versionalone is unchanged.
- Session state for the terminal's bars. The TUI publishes its state as user vars
(
Connection — one way for every LLeMbas product to connect
- Harness: LLeMbas connection 1 (
harness/connection.md,harness/connection.json; conformanceaddress,version,errors). The address rule and which address is stored, discovery and its outcomes, how a product names itself, versions judged both ways andmin_clients, a refused token, the link's handshake, close codes and liveness, one reconnect schedule, state between programs as codes, and the table of conditions, codes and sentences.
Added
codebeside the sentence, so no program reads English: in the service'sservice.json(linked,connecting,unreachable,timeout,tls_untrusted,not_lembas,server_error,server_too_old,client_too_old,signed_out,replaced,not_logged_in,disabled,stopped, …) and in theerrorevent oflembas login --json.- A failed turn says so in the prompt's answer over ACP:
_meta.lembas.error = { code, message }, as well as theerrorevent (which now carriescodetoo). An editor that draws only the answer no longer shows a turn that ended with nothing and no reason. User-Agent: llembas-cli/<version>on every request to the server and on the link's upgrade request; the device code'sclient_idis the same string.serve --stdioreads and logs the client'sclientInfo, answers a client that says a higher protocol with its own (and_meta.lembas.notice, one sentence), and passes on the server's minimum version for the client's own product (_meta.lembas.min_client).min_clientsin the server's discovery is honoured: a CLI below the server's minimum is told so at discovery, with both versions.- Liveness on the link: a WebSocket ping every 30 s; after 60 s with nothing heard the link
is closed and dialled again, instead of saying
linkedfor ever on a dead connection. Retry-Afteris honoured on a 429: a model request is made again after it (twice at most, capped at five minutes, given up when the turn is stopped), and a sign-in's poll waits it out.
Changed
lembas loginstores the address that was typed, normalised — not thebase_urlthe server's discovery names, which is now only shown. An existing login keeps working untouched, and signing in again at the server's real address replaces it rather than adding a second one. An endpoint discovery names on another origin is not followed, and said.lembas serviceno longer exits when it is not logged in, its token is refused, or a newer link of the same device took its place. It stays, saysstoppedwith the code, and links again by itself oncelembas loginhas run — a machine nobody sits at recovers without a restart. (The unit isRestart=on-failure: exiting 0 left it down for good, and a missing key file exited 1 and restarted every ten seconds for ever.)linkedis said only after the server'sinitializewas answered, not at the open socket; connect and handshake together get 30 s.- The link's backoff is 1 s doubling to 60 s with ±20 % jitter, and starts over only after a link stayed healthy for 30 s: a server that accepts and drops is no longer dialled every second.
- Close code 4409 (replaced by a newer link of the same device) stops the link with
replacedinstead of dialling again. - A discovery that fails is no longer followed by a socket dial that would fail the same way.
- The sentences for a server that cannot be reached, is not LLeMbas, fails, or is too old or too
new are the harness's own (
connection.json); a 5xx from discovery is "answered N", never "not a LLeMbas instance".
Fixed
- After
lembas loginreplaced the token, a running service stopped and stayed stopped. The key file is read at every dial, and a refusal after the key changed dials again with the new one. - A 401 is a sign-out only when it is the server's own (
WWW-Authenticate: Bearer realm="lembas"): a model provider's 401, which the server's/v1passes through, is shown in its own words and no longer reads as "sign in again". - One rule decides whether two addresses are the same server (
lembas loginagain, the token hand-over, an earlier login to replace), instead of two different comparisons. - The service's lock file is created exclusively and no longer trusts a recycled pid; the status file is replaced in one step.
serve --stdiogives up a connection whose client sends a line of more than 64 MB without ending it, instead of reading it into memory.
Display — the side pane and the two transcripts
Added
- Pictures in the display, by themselves. A new Images tab shows what the agent views
with
view_image, whatshowshows when it is a picture, and the images you attach or paste (@shot.png) — the newest first,Alt+←/→through the others. The pane goes to a picture a tool has just viewed without being asked (unless you pinned a tab) and back to Live when the agent moves on. Pictures are drawn with the kitty graphics protocol where the terminal is found to support it (kitty, Ghostty — the terminal is asked, nothing is configured), with sixel where that is what it has, and as coloured blocks anywhere else, inside tmux included. Settingimages: auto | on | off(defaultauto;onasks for kitty graphics whatever was detected,offshows the name, size and path only). - Two transcripts: full and compact. Compact groups a round of tool calls into one line —
▸ 7 tools · read ×3 · bash ×2 · edit ×2 · 14.0s— with every failure and every refusal still on a line of its own, a running call in sight while it runs, and a change as a stat line (src/a.ts +12 −3) instead of its diff: the detail is in the display. Settingtranscript: auto | full | compact;auto(the default) is compact while the display stands beside the conversation and full when it does not.Alt+Tor/transcript [auto|full|compact]switches;Ctrl+Oopens the rounds. Switching keeps your place and runs nothing again. - The display has a header and a mouse. Its first rows say the session's model, mode and
effort, how full the context is, the rate, the month's spend and the project. A click on a tab
opens it, the wheel over the pane scrolls the pane, and every list tab counts its entries
(
3/12). Files thatshowshowed are listed under Files.
Changed
- The display pane is the full height of the terminal. It stands at the right from the first row to the last, beside the prompt and the status bar, instead of ending above them.
- The display no longer needs a wide terminal. It stands beside the conversation from 80
columns (it needed 100, and below that showed nothing and said nothing). On a narrower terminal
the status bar says
alt+d display, andAlt+D— or/display— puts the display in the transcript's place and brings the transcript back; the prompt and the status bar stay. - The status bar has a short form for a narrow column (mode, model, jobs, context); what it leaves out is in the display's header.
Fixed
- The display's tab bar, title line and key line no longer run past a narrow pane or lose their middle: each takes the longest form that fits its row.
- The welcome box's key hints and the prompt box's placeholder no longer break in the middle of a phrase in a narrow column; a placeholder that wrapped left the prompt box two rows high.
- A word in the status bar that is longer than the bar is cut to it instead of running over the mode and the model.
[2.0.0-beta.17] — 2026-11-27
Fixed
- Server memory on
lembas serve --stdio(VS Code / Neovim): stopped setting_meta.lembas.scope(andmarkRemote) on local stdio editor sessions insession/newand_lembas/sessions/resume. Local editor sessions have no server-sideChatrow, so sending a session scope caused the server's/mcpendpoint to rejectlembas://memoryandmemorytool calls withMCP error -32602: not this device's session. - Duplicate
lembas://memoryreads on session start:setScope(),resume(), andnewSession()now defer to the single initialmcpReadymemory read until MCP has connected, preventing duplicate memory reads and duplicate notices. - Autocomplete resilience: guarded
CompletionContext.gather()in_lembas/completeso workspace index edge cases fall back to client context instead of failing the completion request.
[2.0.0-beta.16] — 2026-11-26
Fixed
- IDE model switching on
lembas serve --stdio(_lembas/configure): no longer requires a linked server instance connection when changing the active session's model from an editor client (VS Code / VSCodium / Neovim), resolving against the device's signed-in server models instead.
[2.0.0-beta.15] — 2026-11-26
Added
- Live LiNA-style side displays in the TUI (
displays: trueon wide terminals,Alt+Dor/display [on|off|live|files|changes|bash]):- Live tab showing real-time agent phase/progress, waiting banners (approvals, questions, plan reviews), currently running tools with arguments and live subagent tool steps, live streaming thinking tail, active plan checklist, background jobs/team status, recent activity, and latest output or diff preview.
- Files, Changes (auto-jumping to proposed diffs awaiting approval),
and Bash (auto-scrolled to tail) tabs with
Alt+↑/↓tab switching,Alt+←/→entry stepping, andAlt+PgUp/PgDn(orAlt+[/Alt+]) scrolling.
- Session-aware, situation-aware prefilled autocomplete (
_lembas/complete,_lembas/complete/warm): analyzes the cursor situation before gathering context (skips external files in comments, sends compact workspace paths on import lines, gathers compact declarations from direct imports and unsaved editor buffers in deterministic session order for KV-cache prefill reuse). - IDE session listing and resume (
_lembas/sessions/list,_lembas/sessions/resume): lists recent project sessions and replays stored turns for editor clients.
[2.0.0-beta.14] — 2026-11-24
Harness spec 3.11.0: an editor as the client, the files of a linked computer, and files that are not text shown in a chat.
Added
- An editor as the client of
lembas serve --stdio(harness/acp.md, capabilityeditor). An editor plugin that sayseditor: truegets, beyond plain ACP:- Autocomplete (
_lembas/complete): the text before and after the cursor in, the insertion out, from the autocomplete model chosen on the server. No session is opened and nothing is read for a request; a newer request cancels the one before it. - Rewrite a selection (
_lembas/edit): the selection and an instruction in, the replacement out, streamed while it is written. One request with no tools; nothing is written — the editor shows the result as a diff to accept or reject. - What you are looking at, in a prompt: the open file, the cursor, the selection, the diagnostics and the other open files travel with the prompt and are said to the model in one block, so a plugin does not write that sentence itself.
- Unsaved text: where the editor offers ACP's
fs/read_text_fileandfs/write_text_file, the agent reads the editor's buffers and writes through them. A file you changed in the editor after the agent read it is not overwritten: the agent is told to read it again. Text it read from the editor is never replaced with the text on disk — if the editor stops answering, the edit is refused rather than worked out from the saved file. With an editor that only reads, a saved file is edited on disk; one with unsaved changes is refused until you save it. - Edits as diffs: when an edit is asked about (always in manual mode) the approval carries each file's text before and after, so the editor shows the diff itself; every finished edit carries the same, for a list of changed files. Edit and auto mode write as before.
- Models and settings:
_lembas/modelsfor a picker, and_lembas/editor/settingsfor your two model settings — autocomplete, and generate / edit / chat — kept in your account.
- Autocomplete (
- The files of a linked computer (
_lembas/fs/*, capabilityfs, on the link): list, read, write, make a folder, move, copy, delete and search, for a file manager and an editor in the web UI and the apps. Only inside the folders the computer shares (remote.roots), with symbolic links followed before a path is judged; never LLeMbas CLI's own files or a protected path; read-only where the computer allows plan mode only. A write is checked against what you last saw, so a file changed meanwhile is not overwritten; a delete goes to the system's trash, or is refused until you confirm it cannot be undone. Changes run one at a time, and a path is looked at again after anything was waited for, so a link moved in meanwhile cannot send a write somewhere else. - Files that run code are read-only from the web unless this computer says otherwise
(
remote.files_that_run_code, off by default;lembas remote files-that-run-code on|off). Git's hooks and configuration, a project's agent configuration (its rules, MCP servers, commands, agents and skills) and your shell's start-up files can be read from the file manager of the web UI and the apps, and are changed there only once you turn the setting on here. Only the global configuration can turn it on. The computer says which it is with its limits, so the apps can show such a file as read-only beforehand. - The
showtool also shows files that are not text (capabilitymedia): a screenshot the agent took, a chart, a recording, a PDF or a 3D model appears in the chat of a client that can show one, whether or not the model can read that kind of file itself.
The server uses these from the version that carries spec 3.11.0.
[2.0.0-beta.13] — 2026-11-24
Harness spec 3.10.0: a turn the harness starts by itself is a turn like any other over the link.
Added
- Harness spec 3.10.0: a turn the harness starts (
harness/acp.md, capabilityharness_turns). When a background job or a subagent finishes while the session is idle, its note starts a turn by itself. In an agent chat driven from the web, that turn now behaves like one you started: the chat shows it as working and can follow it after a restart or a dropped connection, and the session's history marks the note as the harness's (machine) rather than as something you typed. The server uses this from the version that carries spec 3.10.0.
Fixed
-
A message sent while the agent answers a subagent's report is no longer refused. It joins that turn at its next step, as it does during a turn you started; one the turn ended before taking in is handed back to the web UI to send next instead of being lost.
-
A prompt sent while the agent answers a finished job or a subagent's report waits its turn. It used to fail with
busy, and left the session's record of which turn was running wrong. -
Compacting or rewinding a session is refused while such a turn runs, and the service no longer lets go of the session, or closes the link for a change of
remote:settings, under it. -
A schedule that uses subagents now reports its real answer. A scheduled run on this computer used to answer as soon as the main agent had started its subagents ("they are on it"), and the result arrived later in a turn that could not file a report. The run now stays open until its subagents have reported, shows Waiting for subagents meanwhile, and its answer and its report come from the last reply. Stopping the run stops its subagents too.
-
Subagents and background jobs are no longer cut off by the service. While a session's subagents were working and the main agent was idle, the service counted the session as idle: an update restarted it under them, and opening the session in a terminal stopped them without a word, so their reports never came. The service now waits for them before it restarts or redials, and a terminal that opens such a session is told what still runs and how to stop it.
-
Stopping a turn that was waiting for a free model slot no longer loses what started it. A finished job's note, or your own message, stays in the conversation and the model reads it with the next message.
-
A message sent from the web while the link drops is not lost. If the agent was answering a subagent's report and finished before taking your message in, with no connection to hand it back over, the message is kept with the session — also across a restart of the service — and the agent reads it at the start of its next turn. It used to wait in memory, and with
busy_input: queuecame back attached to an unrelated later prompt. -
A message is never given to the agent twice. After a dropped connection the web UI may not know whether a message you sent while the agent worked was read; sending it again is now safe — the agent recognises it and says whether it was read already or is waiting for the next turn. A message the agent had no time for when the connection was down is kept for its next turn after any kind of turn, not only one it started by itself.
-
Stop in the web UI stops the reply you stopped. If your message was still waiting behind a turn the agent had started by itself (answering a finished job or a subagent), Stop used to end that turn instead and your message ran afterwards anyway. A server that names the turn (harness spec 3.10.0) now gets exactly that turn stopped, or taken out of the queue.
-
A job's or subagent's note that arrives after you pressed Stop survives a restart and goes in with your next message, as before.
-
In a schedule's chat on a model for interactive use only, a subagent's report that may not start a turn by itself no longer leaves the main agent marked as working: the session is idle and the report goes in with your next message.
Changed
- The main agent is told plainly how reports reach it (
blocks/team_lead.md): it does not wait or ask for them, each one starts its next turn, and it then answers you unasked — it never tells you to ask again. Sessions started before this keep the prompt they began with.
[2.0.0-beta.12] — 2026-11-18
Harness spec 3.9.0: the model last used in a directory, Chat and Agentic schedules, models that are for a person's own turns only.
Harness spec 3.9.0: the model last used in a directory, the two types of schedule, a permission rule set right.
Added
-
Harness spec 3.9.0: the model last used in a directory (
harness/acp.md). A new agent session in a directory starts on the model last used in exactly that directory — from the terminal, the web, the desktop app or a phone — instead of the server's default. The memory is this machine's (models.jsonin the state directory) and the server keeps no record of it._lembas/directoriestells the server each directory's model (model, capabilitydirectory_model) and answers for one directory alone withlist: false. It is written when you send a prompt and when you change the model (/model, a setting, the chat's model in the web UI) — not by a subagent, a command's own model, alembas runor a scheduled run. A session here starts on, in order:--model, the project'smodel, the model last used in this directory (while the server still serves it), your globalmodel, the server's default.lembas uninstall --purgeremoves the file with the rest of the state. -
Harness spec 3.9.0: schedules are Chat or Agentic — an Agentic schedule runs on one linked computer in one directory with the agent's tools, on the model the schedule names or else the one last used in that directory; a scheduled run never changes what the directory remembers.
/schedulesays each schedule's type, and/schedule newoffers the two by name. -
Harness spec 3.9.0: interactive-only models (
harness/interactive.md). A server may mark a modelinteractive_only— one its provider sells for a person's own turns and forbids for automated, batch and scheduled use. Your turns, and the subagents and teams your session starts, run on it as on any model. What is not your turn does not: the session's title and its compaction (asked for or automatic) are asked of the same model under another provider when the server lists one, else of your globalmodelor the server's default when that is not interactive-only; with none, the title stays the one made from your first prompt, automatic compaction is skipped and said once, and/compactis refused with the reason. A subagent's own automatic compaction goes the same way. Scheduled work never runs on one: a scheduled session opened on such a model, or a scheduled turn of a session that has come to be on one, is refused before anything is sent (data.reason: "interactive_only"), a scheduled run's subagent on one is not started, and a schedule that follows the directory skips such a model.lembas runwith no terminal at all (a cron job, a pipeline) is refused on one too./modelsays which models are for interactive use only.A model that cannot take the summary — too small a window, no tools — is not asked; the model that is asked is named in a notice and its tokens are counted under it.
Fixed
- A schedule's run is never run in a terminal as your turn. A continuing schedule whose
session was open and shared in a terminal had its prompt passed to that terminal like one
typed in the web UI: on the terminal's model, remembered as the directory's, and without the
Accept scheduled work check. It is refused now, saying the session is open in a terminal
(
data.reason: "terminal"), and the next run goes ahead once it is closed there. - A continuing schedule's session keeps its model across a restart of the service. Opened from the store again it started like a new session — on the directory's model — instead of on the model it had. The model is kept with the session.
- A continuing schedule's run after the service restarted is offered
report_writeagain. How a schedule opened its session was kept in memory only, so a session opened from the store again — the service restarted, or the link dialled anew — had lost it: the next run's prompt told the model to file a report with a tool it was not given. It is kept with the session now. .env.exampleis read without asking after a broad allow, as before it. Withread: allowmade in a menu, by an "always" answer or in a project, the defaults'*.env.*: askand*.env.example: allowboth counted as narrower rules and the stricter won, so the allow started a question about every example file. A narrower rule that a later one narrows again is now set aside (harness/permission/rules.md§2, spec 3.9.0);.envand.env.localstill ask.
[2.0.0-beta.11] — 2026-11-13
Harness spec 3.8.1: the text that tells a model when to write a page and when to show a file.
Changed
- Harness spec 3.8.1: a page for what is to be seen, a shown file for what has to run. The
text a model is given when HTML pages are on (
harness/prompts/blocks/html-pages.md) now says that something the person asks to see in the answer is written as a page, not as an HTML file opened withshow; and that a page is static, so anything that has to run — a calculator, a game, something that reacts to a click — is not a page: the model says so and, where it can, writes an HTML file and shows that. A text only; the CLI is never offered pages and behaves as before.
[2.0.0-beta.10] — 2026-11-13
Harness spec 3.8.0: reports from scheduled runs, HTML pages in answers, which permission rule decides.
Added
-
Harness spec 3.8.0: reports (
harness/reports.md). A schedule's run files a report with the newreport_writetool — or leaves one line in the schedule's history. The schedule's notify when decides: every run, only when your own condition holds (the default: "something needs my attention"), or never.[SILENT]is retired. On a linked computer the CLI offersreport_writeto a scheduled run's model and hands the report back with the run's answer. -
Harness spec 3.8.0: HTML pages in answers (
harness/pages.md), experimental and off unless the server switches it on: a reply may carry a complete page in anhtml-viewblock — static: HTML, CSS and inline SVG, no script — shown in a sealed frame by the web UI and Desktop. A terminal shows a note in its place — This answer has a page: title — and keeps the page as a file (/pages). A terminal's own model is never offered pages. -
/reports: the reports your schedules filed, read from your LLeMbas server — unread first, with the schedule and when. Enter opens one: read it here (Markdown, a page as its note; it is marked read), reply (the report and your words go to this session's agent), mark it read, delete it (asked once); in the list ctrl+r marks read and ctrl+d deletes./reports <id or title>reads one directly;lembas run "/reports"prints the list, or one report, as text. -
/schedule newasks when to notify: when something needs your attention (the default), when a condition you type holds, every run, or never;/scheduleshows it for each schedule. -
Harness spec 3.8.0: which permission rule decides (
harness/permission/rules.md): the rule order this program has used since the menus is now the shared specification, with conformance cases both sides run. -
A
/mcpmenu. The servers with their state (connected, connecting, failed and why, needs sign-in, switched off), where each comes from (the LLeMbas server's library, this project, your config) and what it offers. Enter opens a server: reconnect, switch it off or on (kept for a trusted project), sign in or out, read its last error in full; its tools, searchable as you type, each with what the permission rules say of it — asks, always allowed, denied — which Enter changes (for the session, and saved to a trusted project); its prompts./mcp <name>opens one server directly. Keyboard only; Esc goes back. Over the link and inlembas run,/mcpand/mcp <name>print a plain table instead. -
Menus have sections, state marks, a line about the highlighted row, Esc-goes-back, PgUp/PgDn and Home/End, and say where the cursor is in a long list — every picker is the one component.
-
/helpis a menu: every command under a heading (this session, the model, the project, what it knows and can use, account and settings, look), found by typing a word of its name or of what it does; Enter runs it, or puts it in the box when it needs words. The keys are in it too. -
/permissions(new): the permission rules in force, by where each was made — this session, the project, your config, built in. Enter changes one (asks / always allowed / denied), the first row adds one (bash git status* allow), and a rule of this session can be removed (its saved copy with it). A rule made in a menu changes what a broader rule decided and nothing else: a narrower, stricter rule keeps winning (read: allowleavesread *.envasking), your own config is never loosened, choosing what is already so changes nothing, and the menu says which stricter rules still apply. This session and the next start judge a call the same way. -
A project's rule, or an "always" answer, no longer overrides a narrower, stricter rule either: a project's
read: allowleaves.envfiles asking, unless the project names"*.env"itself. -
/status(new): the server and login, the model, the session, the project and whether it is trusted, the MCP servers, and this terminal — how copying and pasting images work here — on one screen. What needs attention is marked; Enter on a row opens what changes it. -
/agentsis a menu of the subagents; Enter puts one's name in the box to hand it a task. -
lembas run "/mcp"(and/status,/permissions,/agents,/team) prints the command's text instead of sending the words to the model; the same text answers these commands over the link. Only the command alone is the command:/status of the build?is a question for the model, and/mcp <word>is the command only when the word is a server's name. With--jsonthe text is an event of the stream; a command that could not do what was asked exits 1. -
/command <name> [words]runs a custom command by its name, and/skill <name>now works over the link too.permissions,statusandcommandare command names of the program: a custom command of such a name is said once at start, with/command <name>as the way to it; a skill is reached as/skill <name>. -
What
/mcpprints does not carry what your config resolved to: an address is shown without user, password or query, a local server by its program's name alone, an error by its first line with what looks like a secret taken out — and never a local server's stderr. The menu shows an error in full, on your own screen. -
A server's own words cannot draw on your terminal or put markup into a reply: control characters and escape sequences are taken out of every name, description, error and stderr line an MCP server supplies; where
/mcp's text becomes a markdown reply, descriptions are escaped. -
Two MCP tools whose names come out the same both get a distinguishing suffix, so a server that lists its tools in another order cannot move an "always allow" onto the other tool.
Changed
- An MCP server that connects no longer says so with a warning sign at every start. Nothing is
printed when the servers connect; the status bar carries a quiet count (
MCP 2, orMCP 1/2when one that is switched on is not connected). A server that failed or needs a sign-in gets one plain line that names it and points at/mcp <name>. - One look for the lines the program says:
·something happened,✓done,⚠needs attention,✗failed — in the transcript and inlembas run. A warning sign now always means something to look at: compaction starting and finishing, a job's note and the like are plain lines.
Removed
- Prototypes — the 1.x
prototype-chat/prototype-pageblocks a terminal could be offered withprototypes: true. HTML pages take their place; the setting is dropped with a line saying so, and/prototypeis now/pages.
[2.0.0-beta.9] — 2026-11-12
Harness spec 3.7.0: one display in every client.
Added
-
Harness spec 3.7.0: one display everywhere (
harness/display.md). The spec now says how every client — the web UI, Desktop, the CLI, Android — shows a tool call: one short title made from the call's arguments (the same in the transcript, on the progress line and over the link), the four states running, done, failed and denied, how long a finished call took,+added −removedfor an edit, and the kinds of block. A reply that was stopped or failed keeps the spec's line (Stopped: by you,Failed: …) on it. The approval, question and plan cards offer the same actions everywhere, and numbers are written in the client's locale format. -
Harness spec 3.7.0:
pythonsays why it could not run. The server'spythontool had one answer for three situations; the spec now has one each — no page of the chat is open (and where to open it), the page did not answer, the run took too long. -
Paste placeholders in the prompt box. A paste of three lines or more, or of more than 150 characters, shows as
[Pasted text 40 lines](or[Pasted text 300 chars]), and an image as[Image 1],[Image 2]…; what is sent is the text itself and the image. One backspace removes a placeholder and what it stands for — cutting into one removes all of it; pasting the same text again right after its placeholder opens it. The transcript shows the placeholder; prompt history,/undoand copying from the box give the text in full.paste: fullin the config (or/settings) shows pastes whole, as before. -
Images from the clipboard on macOS and Windows, and JPEG, WebP and GIF besides PNG: ctrl+v reads the clipboard through OpenTUI's host clipboard, with
wl-paste/xclipbehind it. It no longer holds the screen while a clipboard answers, and says so when there is no image. Pasted images are kept under the state directory and removed after a week. -
Images over SSH. A terminal cannot hand over the clipboard image of the machine you sit at, so: an image pasted as text — a
data:image/png;base64,…URL, or the base64 itself — is recognised, saved and shown as[Image N]; withssh -Xthe forwarded X clipboard is read; in kitty, withkitty_clipboard: true, the terminal itself is asked for its clipboard (its clipboard protocol, OSC 5522 — it asks you once). That one is off by default: on a connection that stalls, part of the image can be lost on the way, and it is then refused with a line — never saved broken, never typed into the box. And when nothing came through, one line names what works: the data URL,@pathafter copying the file over, or attaching it to the same chat in the web, Desktop or Android app.
Changed
- The terminal opened from the web UI or Desktop picks a shell that exists.
$SHELLwhen it is there, else bash, zsh or sh; on Windows PowerShell 7, then Windows PowerShell, thencmd.exe— started without-l, which none of them takes. (The runtime's pseudo-terminal is documented for Linux and macOS only, and there is no Windows build of the CLI yet: where a terminal cannot be opened, the refusal now says so in a sentence.) - Tool calls are shown as spec 3.7.0 says. A call has one title from its start to its end —
the command, the pattern, the path — the same in the transcript, on the progress line, in
lembas runand over the link (abashcall used to be titled by its description in the transcript and by its command elsewhere; agrepby its directory on the progress line). After the title come what the result adds (+12 −3,exit 2,14 hits, the lines read) and how long it took; a denied call shows its reason and no time; a call cut off by a stop no longer stays "running". - A reply that was stopped or failed says so on the reply, in the spec's words —
Stopped: by you,Stopped: step limit,Stopped: budget,Failed: …— once, in place of the separate "cancelled" notice and the raw error line; a session opened again from the store says it again. - One clock on the working line: the phase's own (
Running bash: bun test · 12s); once the turn has gone on longer than the phase it reads12s of 1m 05s, instead of a secondturn 1m 05s. Waiting for subagents: N runningcounts the subagents that are running (it always said 1).- Numbers in your locale's format (
LC_ALL,LC_NUMERIC,LANG): token counts, rates, hits. Durations stay as they are; with no locale set, English grouping as before. - Completing an
@fileor moving through the prompt box now counts columns as the box does: with a wide character (CJK, an emoji) before the cursor, the@list could replace the wrong part of the line. - An approval card over the link names its tool (
_meta.lembas.tool); its title stays the whole command, or the tool's name. - A duration just under a minute is
1m 00s, not60.0s. - A refused tool call reaches a plain ACP client (an editor): it was sent as an update of a call the client had never been told about, which a client drops; it is now announced as a failed call, with its title and the reason.
- Dictating into a box that holds a paste placeholder keeps the placeholder.
- Plainer refusals when a terminal or a folder cannot be used: each says what to do —
lembas remote terminal on,lembas remote add <dir>, close one of the open terminals.
[2.0.0-beta.8] — 2026-11-10
Added
- Harness spec 3.6.0: phone actions. The spec now describes
phone_action, the LLeMbas server's tool for doing something on the person's phone when they write from the LLeMbas app on it — alarms and timers, calendar events, SMS and email drafts, the dialer, routes (start one, add a stop, search nearby, stop), opening an app or an address, media, the torch, settings panels and automations — confirmed on the phone every time (harness/phone.md). The server's alone: the CLI does not offer it, and its conformance area is the server's.
[2.0.0-beta.7] — 2026-11-10
Harness spec 3.5.0: scheduled work on a linked computer.
Added
-
Accept scheduled work. A new switch, off by default:
lembas service scheduled on(orlembas remote scheduled on;remote.scheduledin the global config). On, the schedules you make on your LLeMbas server may run on this computer as agent turns, in the folders remote work may use.lembas remote list --jsonsaysscheduled; the server is told at once (the link dials again once nothing is working). -
Scheduled turns. A run is an agent session in the schedule's mode — Edit unless the schedule says Auto, never Plan, and never beyond
remote.max_mode— with the schedule's Subagents Min/Max. Its answer reports the run:ok,silent(the reply said[SILENT]on its first or last line),failedorcancelled, and the final reply. A switch turned off is a fixed refusal the server shows as it is. -
Approvals in a scheduled run go to you through the server (a notification on your phone) and wait the schedule's wait — 30 minutes unless it says otherwise — then count as denied, and the model is told so. Questions and plans have nobody to answer in a scheduled run.
-
Watch commands (monitor mode): the server asks this computer to run a schedule's watch command in its folder, with a timeout, and gets back a hash of the output and a short excerpt; the model runs only when the output changed. A command the schedule's mode would ask about is refused rather than run.
-
/schedule: your schedules on the LLeMbas server from the terminal — the list with each one's next run and last result,new <words>(the server works out the rule; you see what it understood and the next runs before anything is made, and may have it run on this computer in the current folder),pause,resume,run(now, without using up the next scheduled run) andhistory. It uses this computer's sign-in; a server too old to allow that says so. -
A notice when a reply finishes — or when the agent waits for your answer — while the terminal is not focused: the bell, and a desktop notification (OSC 9, in terminals that show one) naming the session, never what the reply says.
notify: false(or/settings) turns it off. -
/rename <title>names this session — in/sessions, and in the web UI when it is shared. -
/search <words>finds a past session in this project by what was said in it (addallfor every project) and resumes the one you pick. -
/memoryshows the server's memory when the server keeps it (library: lembas): its entries beside this machine's files, each one to change or forget, through the server.
Changed
team_addunder a sub-manager says where the report goes: "Its report goes to when it finishes", not "comes to you".
[2.0.0-beta.6] — 2026-11-10
Harness spec 3.4.0 (spec commits 4b8786b, b66891e): one progress vocabulary for every client, and
subagents organised as the main agent's tree.
Added
- Progress phases. The line under the conversation says what the agent is doing in the words
every LLeMbas client uses — Queued, Waiting for {model}, Reading the prompt: n / total
tokens (p%), Thinking, Writing: n tok/s, Running {tool}: {what}, Waiting for you,
Waiting for subagents, Compacting the conversation, Retrying in n s, Stopped, Failed —
with how long it has lasted, then the turn's time and tokens. The CLI keeps its own estimate of
how long the rest of a long prompt will take. Over the link each phase is a
phaseevent and is in the session's status (capabilityprogress). - The main agent and its subagents. Only the main agent adds, reassigns (
team_assign), replaces (team_replace), stops and decides; a subagent added withlead: trueis a sub-manager that directs the subagents placed under it (parent) and adds none. Each subagent has an id (s1,s2, …), a name, a position, a parent, a task, a mode and a model, and can askteam_whoami. With Min above 1 the main agent starts with Min − 1 open slots to fill. - Permissions only go down. A subagent's mode is its parent's or stricter. A narrowed one may
be given request options (read, write, execute) and ask the main agent with
team_request; the main agent decides withteam_decide, and never allows more than its own mode would. What nobody in the tree could allow — abashcall in an all-Edit tree — is put to you, on an approval card that names the subagent. - A subagent's end. It reports and ends with
team_finish. Its findings (team_findings) are kept after it ends. When its context fills it does not compact: it is paused, gets one last turn of at most 8 steps to save its findings and tell its parent, and ends; the main agent replaces it or uses what it found. - Seeing the tree.
/teamdraws every agent with its position, state, model, mode, context use, current phase and messages, the open slots and the subagents that ended;/team open <name>shows a subagent's session read-only, live or after it ended;/team findings <name>;/context <name>for a subagent's context. - An agent chat's subagents run on this device. The chat's Min and Max come with every turn
(capability
agents) and the tree, progress, findings and transcripts go back to the server (capabilitytree: theteamevent with the tree,_lembas/team,/transcript,/findings,/stop).
Changed
- A subagent can no longer add subagents of its own or start a
task; it asks the main agent.team_stopis the main agent's alone.
[2.0.0-beta.5] — 2026-11-09
Harness spec 3.3.0 (spec commit 02c7282): subagents run on your model unless you name another,
and /context shows where the window goes the way the side panel of the other apps does.
Changed
- Subagents run on the session's model, unless you named another model in this session's own
messages — its id, the part after its provider, or its display name, as a whole word, in any
letter case. A
taskorteam_addthat asks for any other model is refused ("Use another model for subagents only when the person names it."), and an agent file's ownmodel:is no longer used. Nothing in the settings chooses a subagent's model. - Only the logical capacity limits remain. A named model on the same one-model server as the session's model is refused ("That model is on the same one-model server as this chat's model; name a model on another server."). On a model that serves one request at a time, a subagent on that same model is refused ("This model serves one request at a time: name another model, on another server, for subagents.") and nothing else is picked instead.
- Subagents are offered — the size setting, the team tools — when subagents are on and some
model could serve one: the session's, when it serves two requests at once, or any model of the
server that is not on its one-model server. When the session's model cannot serve its own
subagents, the agent is told so in its first note, and
/effort,/team sizeand/teamsay it beside the setting. - "Subagents" is the word for the setting, with Min and Max: the row beside the effort
in
/effort,/team size,/settings. "Helper" is gone. The status bar readsagents 3/4 · 2 subagents workingwhile there is a team. - The numbers count this agent:
Subagents: Min 1, Max 4 — 1 is this agent alone. Max 1 is the agent alone, with no subagents; Max 4 is the agent and up to three subagents. - The setting is one range with two handles. In
/effortand/team sizethe Subagents row showsMin 1, a track from 1 to the cap with a handle for each, andMax 4: ←→ move the handle in focus, tab switches to the other, enter sets both for the session (Min never passes Max; Max goes up toagents.cap)./team sizealso keeps the usual pairs and<min> <max>typed. /contextshows the window as used tokens of the window and a percentage, one bar split by category, every category with its tokens and its share of the window, what is free, and how far it is to automatic compaction (N until auto-compact, with/compactto do it now).
[2.0.0-beta.4] — 2026-11-09
Fixed
lembas loginno longer loops on a sign-in the server stopped accepting. With an earlier login for the same server kept here (from an older install, or LLeMbas Desktop), login only refreshed it; when the server refused the old token it said “run login again”, and running it again did the same. Now a refused sign-in starts a new one, which replaces the old.- The installer's last line says to run
lembas login, not to editconnections.yaml(gone in 2.0).
[2.0.0-beta.3] — 2026-11-09
Harness spec 3.2.0: teams, effort levels that mean what they say, the model's reasoning sent back while it works, and no absolute paths in the prompt.
Added
- Teams. Where the model serves at least two requests at once, the agent can add members
(
team_add): background agents that each own a part of the work, briefed on their own and told the team's goal. Once it has a member the agent leads: tools that change things answer that it should give the work to a member, while reading, reviewing and managing stay. Members and the lead talk in the team's room (team_send, to a name or toall); a member's final reply comes back as its report and wakes the lead if it was idle, and a message wakes a member that had finished. A member made withlead: trueleads an area with members of its own.team_readshows the team and the room,team_stopstops a member and everything under it. - How many agents a team may have: the
agentssetting (min1 andmax4 by default, at mostagents.cap, 32), changed with/team size <min> <max>, from the agents row beside the effort in/effort, or in/settings; the agent is told the size and every change in a note.max: 1means one agent and no helpers;min: 2or more makes the agent lead from the start.subagents: falseswitches teams off together withtask. /teamshows the team as a tree and the room, and stops a member (/team stop <name>); the agent is told who you stopped. The status bar showsteam 3/4 · 2 workingwhile there is a team.- When every slot of the model is busy, a member (or the agent itself) waits for a free slot
and starts when one frees, instead of being refused; one-off
taskhelpers count toward the team's size. - A Thinking switch. A model that can switch thinking off offers
offas a real level: no thinking at all, not the model's default./effortshows a list for several levels, an on/off switch where that is the only choice, and nothing where there is nothing to choose.
Changed
- The model's reasoning goes back to it during its turn, so it carries on from what it thought instead of working it out again at every step; earlier turns are sent without it, as before.
- No absolute paths in the prompt. The agent is told the project's name and, when you started
below its root, that directory relative to it. Relative paths in every file tool and the
directory
bashstarts in are taken from the project root; absolute paths still work. Instruction files are named from the project root or as~/….
[2.0.0-beta.2] — 2026-11-07
Harness spec 3.1.0: what the model has already read stays exactly as it was, so its server can reuse it instead of reading the whole session again.
Changed
- The system prompt is made once per session — at the start, after a compaction, on a model switch — kept with the session and sent byte for byte on every request; a resumed session sends the one it kept. It holds no date any more.
- What changes during a session is said in a note after your words on your next message: the date (on the first message, and when it changes), a permission mode you chose, a plan you changed, memory or an instruction file you edited, a personality you picked, an MCP server's instructions that arrived later. The model's own changes (its plan, its edits, a plan approval) are not said again. Notes are not shown as your words.
- The tool list is the same for the whole session.
plan_submitis offered in every mode and answers that it works only in plan mode;showis offered from the start where the session can have a viewer; knowledge search is decided as the session starts. The tools stay listed when a step limit or budget winds a prompt up (a call in that answer is not run), and a tool refused for good stays listed and answers that refusal. The first request waits up to 3 seconds for the configured MCP servers, so their tools are in the first list. - Compaction asks for its summary as the next turn of the same conversation instead of a separate request with a pasted transcript, so it reuses what the server has read and no longer loses the middle of a long session. A tool call in the summary's reply is not run.
Added
- Cached input tokens are recorded for every request (the usage's own count, or llama.cpp's
timingsand progress), kept with the session, and shown by/contextfor the last request.
[2.0.0-beta.1] — 2026-11-03
LLeMbas CLI 2.0 works with LLeMbas 2.0 and nothing else: it uses the server it is logged in to, keeps tool results short without ever rewriting what the model has already read, and reads every instruction file on the way down to where it was started. Harness spec 3.0.0.
Changed
- The CLI talks only to the LLeMbas server it is logged in to. Custom connections are gone:
the OpenAI-compatible, Responses, Anthropic, Gemini and Ollama connections in
connections.yaml, with theirdialect,key_cmd,auth,discover,unload_urlandone_model_at_a_time, and a model'sfallback. Log in withlembas login <address>; without a login the CLI says so and how. An oldconnections.yamlstill starts: an entry that is not the login is named in a warning and ignored. One server at a time: logging in to another signs this machine out of the first. - Models are named as the server serves them (
deepseek/deepseek-flash), with no connection in front; aconfig.yamlnaming one the old way is rewritten once. The context window, efforts and capacity are the server's word. - Memory is the server's, shared with your chats there (when the login's token may reach it):
the
memorytool and the memory in the prompt. Notes, knowledge bases and skills stay on this machine. - Logging in asks for the
memoryscope in place oflibrary; a login made before keeps working with the one it has. - Usage is money, not credits. The status bar shows what the month has cost so far, and
/usagethe month's tokens and cost and this device's tokens — each currency's amount on its own (€2.00 · $0.75), never added together. Plans, balances, rolling windows and theunlimitedof an administrator are gone with the server's credits. - Instruction files stack. Every
AGENTS.md(orCLAUDE.md) from the project root down to the working directory goes to the model, outermost first — not only the nearest one. - Tool results are kept short when they come in, and never changed afterwards, so the server's
prompt cache holds. Every result has an id (
[#0001]); a read says its lines and a hash of the file; reading an unchanged file again, or the same listing or search with the same result, answers with a pointer to the earlier result; output over 400 lines or 40,000 characters keeps its beginning and its end; edits answer with their diff.compaction.prune, which cut old outputs and made the server read the whole conversation again, is removed. - The link speaks protocol 3 with a LLeMbas 2.0 server. A 1.x server is refused at login and by the link, saying to update the server (or use LLeMbas CLI 1.x); a newer one says to update the CLI.
- A chat started on a model runs on that model. When the web UI opens a session on this device with a model the device cannot run, it is refused with the reason instead of being answered on the device's own model.
- File tools speak the server's words. A missing file is
No such file or directory: <path>fromread,edit,multiedit,show,list,globandgrepalike; a filewriteoreditmay not change yet says it has not been read, or changed since it was last read, with its full path.globandgrepgive full paths.listsorts names exactly (capitals first) and says when it stopped at 400 lines. - A new skill's name is lowercase letters, digits and
-, up to 64 characters, as the Agent Skills format has it;_and.are no longer accepted whenskill_managemakes one. Skills that already have such a name still load.
Added
recall: the model can see any earlier tool result again, in full or from a line on — the part of a long output left out, or a result from before the conversation was summarised. After a summary the model also gets a table of the files it had read.show, in a session the web UI or LLeMbas Desktop opened: the model can open a file it made — a page, a document — in your viewer beside the chat.lembas login --token-stdin --server <url>: sign in with a token a program already holds — LLeMbas Desktop, from the one approval that gives it the agent's token beside its own. The token is read from stdin only, never from an argument or the environment, and checked against the server first: it must speak protocol 3, accept the token, and say it carrieslink. The login is then stored exactly as a sign-in by code (an earlier one replaced and its token signed out), and--jsonprints the samedone(orerror) line.
[1.5.2] — 2026-10-25
Logging in again leaves one device, and a link that cannot connect says why.
Fixed
- Logging in again left an offline twin of this device on the instance. A second
lembas loginto the same instance overwrote the old token without signing it out, so the web UI showed the device twice -- the new one linked, the old one offline and holding its agent chats. The old token is now signed out, naming the new one, and a LLeMbas server 1.7.2 or later moves the old device's agent chats to it. A sign-out that fails is said, with where to revoke it. lembas servicecould not link when the login was given its CA as a relative path.login --cakept the path as typed, and the service, started in another directory, did not find it and dialled with no CA at all. The path is now kept in full, and a link to an instance whose certificate is signed by a CA in the system's store gets through even without--ca, as the rest of the CLI already did.- "Could not reach the instance" now says why: a CA file given at login that is gone, a certificate that is not trusted, or what else the connection met.
[1.5.1] — 2026-10-23
A screenshot no longer makes the session compact.
Fixed
- An image counted as half a million tokens. The context estimate measured an image's base64
as text, so a 1–3 MB screenshot read as "context at 150–280%" the moment
view_image(or an@attachment) added it, and the session was compacted -- after every image, since the summary drops pictures and the model looked again. The provider's own count, a few thousand tokens, was never in question. An image now counts by its dimensions (28-pixel patches, at most 16k tokens; a flat 1600 when the size cannot be read), everywhere the CLI estimates: the context meter, pruning,/context, and the estimate a provider that reports no usage falls back to. - Screenshots are sent at 1600 px. Any image over 1600 px or 500 KB is shrunk to 1600 px on its longer edge when ImageMagick is there (only files over 3.5 MB were before): no more detail than the model is billed for, and a lighter request.
[1.5.0] — 2026-10-20
Harness spec 2.0.0: background work is one thing — a job — for commands and subagents alike, and the person sees it.
Added
- Subagents in the background.
tasktakesbackground: true: the call returns at once with a job id and the model carries on; the subagent's report arrives as a message in the conversation when it ends — at the next step while the model works, as a turn of its own otherwise. A running subagent can be messaged (job_send: given to it at its next step) and a finished one started again with its context intact; a subagent can message the main agent before its final reply (report: a finding to act on now, or a question). Approval cards from a subagent say which one asks. - A subagent has a session of its own, kept with the parent: its transcript survives a
resume and can be read later;
/sessionsandsession_searchleave children out. job_list,job_output,job_stop,job_sendreplacebash_list,bash_outputandbash_kill(which still work as former names, and a rule written for them still applies): one list of the session's background commands and subagents, one way to read, stop and message.- Jobs belong to the session that started them, not to the process: another session's jobs are invisible, ids run per session, and a job's end note goes to its own session — kept for it when it is not open, delivered when it is resumed. Jobs are stored: a resumed session lists what finished while it was away, and a job the process died under is shown as lost with the output it had.
- Jobs in the terminal. The status bar counts the session's running jobs (
2 jobs, with!when one ended unseen or has output the model has not read)./jobslists them — kind, id, description or command, state, duration — and from thereEnteropens one andkstops it: a command opens as its live output; a subagent is entered, its transcript shown in the conversation's place with a header saying where it is, and anything typed goes to it (a finished one starts again with the message, context intact).Escleaves./jobs <id>and/jobs stop <id>do the same from the prompt. A background call's line shows its job under it (→ job7 (explore: description) running…), and an approval card from a subagent names it. - Ctrl+B moves the command the model is running in the foreground to the background now; the call returns with what it had printed and the job id.
- Quitting (
/quit, Ctrl+C twice, Ctrl+D on an empty box) or/reloadwith jobs running asks first:N jobs running — stop them and quit? - Over the link (capability
jobs, harness spec 2.0.0): a LLeMbas server lists a session's jobs, reads a job's output, stops one, messages a subagent and reads its transcript (_lembas/jobs,_lembas/job/output|stop|send|transcript);jobandjob_noteevents, the jobs in_lembas/session/status, the subagent on an approval request, and a job's note as amachineprompt. A session a terminal holds answers the same through the hub. limits.jobs(background commands a session may run at once, default 8) andlimits.subagent_steps(a subagent's step backstop, default 50) in the configuration.lembas -pwaits for the jobs the prompt started and gives the model their notes before it exits (--no-waitskips that);/agentslists and describes agents over the link too.
Changed
- A command's
timeoutis when it stops blocking, not when it dies. A foregroundbashstill running at its timeout (defaultlimits.bash_timeout, 2 minutes) goes on in the background as a job, and the call returns what it had printed with the job id;Escstill kills it, so doesjob_stop.background: truereturns at once instead of after 300 ms. - A finished job wakes the model in every front end — the terminal,
lembas -pand a session the web UI holds — where it used to reach only the terminal, and there as an unmarked message to whatever session was open. Every such message now carries its mark, and the terminal shows it as the harness's turn, not the person's. - A stopped command reads "stopped (SIGTERM)" rather than "exited with null".
- The subagent's preamble and the built-in
exploreandgeneralinstructions are prompt texts of the harness spec (blocks/subagent.md,agents/*.md), shared with the server; a subagent is no longer told aboutplan_writeandask_user, which it does not have, nor aboutskill_viewwhen it lacks it.exploregets the job tools; every subagent getsreport. - The capacity rule also counts the subagents already running.
Fixed
- A subagent in a worktree that was stopped or failed kept its branch silently; the branch is
named in its report now. In a worktree, the edit-mode guard and the plan directory pointed at
the main checkout's
.agent. - A subagent's error or notice was dropped: its report said
ended: errorwith no message. /reloadwith background jobs running lost them as orphans; so did quitting with one that ignored SIGTERM (the kill timer never fired at exit). A command whose child kept stdout open stayed "running" after it had exited.- An agent file with broken YAML frontmatter was silently taken as having none; it is reported at start.
- A
!commandin the terminal could not be stopped. - Headless runs opened a second line-reader for a parallel subagent's approval.
- Ctrl+D on an empty prompt quit only in a comment; it does now.
bun testran with a 5-second timeout per test, whateverbunfig.tomlsaid: Bun 1.4 does not read[test] timeout. The test script andscripts/ci.shpass--timeoutexplicitly.
[1.4.0] — 2026-10-20
Harness spec 1.2.0: the library's tools are the same tools in LLeMbas.
Changed
- The harness spec's memory, notes and skills tools now fit both projects. The CLI's facts in
their descriptions — memory files and targets, project notes, supporting files, project skills,
session_search— are the spec'svariables, filled with the CLI's own values, so what a model is sent here is word for word what it was; LLeMbas sends the same tools with its own facts (LLeMbas 1.5.0). A CLI linked to an instance (library: lembas) therefore seesmemory,note_view,note_manage,skills_list,skill_viewandskill_managewhether the library is its own or the instance's, where it used to see the instance'smemory_add,notes_createand the rest. - Note and knowledge-document ids are strings in the tools' parameters, as they are on an instance; the number is still accepted.
- Tool descriptions are filled by the prompt texts' rules, and the descriptions inside a tool's parameters are filled too.
Added
narrowin the harness spec: what a project offers of a shared tool's parameters where it offers less than all. Three conformance areas, run by both projects:fill,narrow, andmemory— one change or a batch, applied together, against the size limit, messages included.
[1.3.0] — 2026-10-18
Harness spec 1.1.0: planning as one structure shared with LLeMbas.
Added
plan_writeandplan_update, offered in every mode: the model writes its plan as a structure — title, summary, findings, objectives, phases of tasks — and keeps it current as it works (a task doing, done, or dropped with why; work added; a finding recorded). Ids (p1,t3,o2…) are given by the CLI, never by the model, and an unknown id is an error naming the known ones. The plan is the session's: it is stored with it, comes back on resume, and is gone on/new. The panel above the prompt shows the active phase, the task being done, what is next, the last two done and the count while anything is open;/plan showprints the whole plan with its ids,/plan cleardrops it, and/planssays whether this session has one.- A
planblock kind: a plan change is not drawn as a tool line in the transcript; the panel and the card follow the plan itself. - Over the link, an instance now hands the device what only it knows about a chat
(
_meta.lembasofsession/newandsession/prompt, capabilitiescontext,library,prototypes): the chat's own instructions reach the prompt under## Instructions from <instance>, the account's personalization is used for that session in place of the device's, the knowledge bases the chat may search are named to the model, and whether it may write a prototype. A later prompt's context replaces the earlier one. - The plan travels as a structure (capability
plan_state): theplansession update carries it as_meta.lembas.planbeside ACP's flat entries (null when cleared),_lembas/plancarries it with the card,_lembas/session/statusanswers it, and a session opened from the store says its plan at once. _lembas/session/rewind(capabilityrewind): the web UI editing or regenerating from a turn takes that turn and every later one out of the conversation and the history — as/undodoes, through the same store marking — without touching the files; a session a terminal runs is rewound there, and its transcript redrawn. A rewound turn's id is forgotten, so the web UI re-sending it runs the turn anew rather than being answered what the reverted turn said.- Prototypes in the terminal: a completed
prototype-chat/prototype-pagefence in a reply is saved as a file — the model's output as it is, under~/.local/state/lembas/prototypes/<session>/<n>-<slug>.html, never in the project — and drawn as one line saying where;/prototypelists this session's,/prototype <n>prints one's path. The prompt offers them only when the instance says so for the chat, or withprototypes: truein the global config for a terminal session. - The library's scope: every call to the instance's library made for a session the instance
gave a library context carries
_meta.lembas.scope(the session id), so the instance answers within that chat's bases and data group;knowledge_search'sbaseis read against the bases in scope as LLeMbas reads it — by id, then by name whatever its case, an unknown one answered with the bases there are (resolveBase). - Conformance areas
plan(normalise, update, todos),toolcall_index,prototypeandlibrary_scope; an area the spec has and this implementation does not answer yet is skipped by name rather than failed.
Changed
plan_submitpresents the plan written withplan_write, not a file: the card shows the plan with its ids, and a copy still goes under.agent/plans/<date>-<slug>.mdfor the record. Itspathargument is kept for callers that send it and ignored. With no plan written it says to callplan_writefirst.- The system prompt is the spec's one shared text (
system/default.md), with the CLI's facts filled into its variables — the opening line, the terminal as the surface, the file tools, the background-command and git sections, and the current plan with its ids on every step while one exists; the sharedblocks/library.mdandblocks/prototypes.mdjoin it when their tools are offered. A bullet whose variable is empty is left out, and a variable left unfilled is an error rather than text sent to a model. - The loop's numbers come from the spec's
loop.json(the step backstop, how many calls run together, how often an empty reply is asked again), and so does the wrap-up message, which now names the limit reached: "The time budget for this prompt has been reached…". - The default theme is
moria, the LLeMbas web UI's own;lembasandlembas-lightremain selectable. The working line is a plain braille spinner with the verb, without the faces, and the welcome box no longer carries the ☤ glyph. - A tool-call fragment streamed without an index continues the call started last, not call 0, so a server that numbers only the first fragment of each call no longer merges two calls.
- A permission rule written for
todoapplies toplan(the keyplan_writeandplan_updateare checked under), asquestionapplies toask_user.
Removed
- The
todotool.todois now a former name ofplan_write: a call under it — from a stored session, an agent file, or a model trained on it — becomes one phase called "Work" with its items translated (pending → todo, in_progress → doing, completed → done, cancelled → dropped). - The
☤glyph and the face frames of the spinner, from the TUI.
[1.2.0] — 2026-10-14
Added
lembas remote list | add <dir>… | remove <dir>… | enable | disable | mode <m> | terminal <on|off>manages theremote:block without editing YAML, keeping the file's comments.addstores each directory as an absolute real path, skips one already covered by a root, refuses a missing one (nothing is written), and turns remote work on.--jsonprints one object,{"enabled", "roots", "max_mode", "terminal"}, with the defaults applied — for a program such as LLeMbas Desktop.lembas -l/lembas --local: local mode. Config, sessions, memory, skills, the library, snapshots, worktrees, caches, trust and history live in the project's git-ignored.agent/local/lembas/(.lembas/where.agentis another tool's), and nothing is written anywhere else — not even temporary files: the TUI starts with TMPDIR there, and the TUI library's cache goes there too (the commands the agent runs keep your TMPDIR). Your logins and connections.yaml are read, never written; your config.yaml is not read. A LLeMbas instance is used for its models, chat, speech in and out and the balance only: no link,/remote, service or hub, no deletes sent, no server library, no search, fetch or embeddings through it, no account personalization, and no self-update. The instance still records each request's usage, as any API does.-ldoes not trust the project by itself; the first start asks, and the answer is kept in the local directory. A local directory the repository carries is refused,hardline_disableis ignored, and tools treat the local directory as outside the project: no tool writes there (but in its worktrees), and reading it asks as anything outside the project does. The status bar sayslocal, andlembas -l --helpexplains it.
Changed
- A running
lembas servicefollows theremote:block without a restart: roots, mode, trust, terminals andenabledare read again whenever they are used (a stat of config.yaml; parsed only when it changed). When what the instance was told changes, the link is dialled again once nothing is working, so the web UI hears the new limits. lembas servicelinks even before any folder is allowed; it then accepts no session until one is added. With remote work off or no roots it tells the instanceroots: []and refuses every session, directory and terminal; before,service runexited at once and the instance could not tell "remote off" from "not running".- Harness spec 1.0.1:
acp.mdsays so.
[1.1.0] — 2026-10-14
Added
lembas login --jsonprints the code to approve and the outcome as one JSON object per line, for a program that drives the login (LLeMbas Desktop).
[1.0.0] — 2026-10-09
The first public release of LLeMbas CLI: a terminal coding agent and project manager for any LLM API, with permission modes, git snapshots, memory and skills, knowledge bases, MCP, voice, and a link to a LLeMbas instance whose web UI can work its sessions too. Signed Linux binaries for x64 and arm64.