-
LLeMbas CLI 2.0.0-beta.21
Pre-Releaseci / check (push) Waiting to runreleased this
2026-12-03 09:28:25 +00:00 | -170 commits to main since this releaseSecurity
- 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 after
lembas 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 exactlysettingswas 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-code
off 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 atodotool 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,/decisions
and/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 12
decide 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 — inlembas 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 run
lembas 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 setsLLEMBAS_TERM,LLEMBAS_TERM_PANE,
LLEMBAS_TERM_EXECUTABLEandLLEMBAS_TERM_STATUS_DIR; a pane's status record starts
llembas-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.
Downloads
- A shell command is judged by what it will touch, not by how it is spelled (harness spec