• LLeMbas CLI 2.0.0-beta.21
    ci / check (push) Waiting to run
    Pre-Release

    Homer released this 2026-12-03 09:28:25 +00:00 | -170 commits to main since this release

    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 the read rules 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 ~/.ssh or ~/.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,
      through sudo, bash -c or a cd too), 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 grep tool no longer returns lines of a file read would ask about. A search of a
      directory was judged for the directory only, so the lines of a .env in 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 to read one. Names are not content: glob and list still show them.
    • A custom command's !`…` is a bash call 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 a bash call 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 $ARGUMENTS of 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 disable stops 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 exactly settings was ignored; a trusted project's sett* 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 .agent is somebody else's
      directory the project's agent directory is .lembas, and with remote 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.sh refuses 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-context and /terminal-context no 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 --shell sent the line being typed as it was — export API_KEY=…,
      mysql -p…, curl -u user:pass included; 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 bare git push -f while on main. The
      push is now read by its refspecs.

    Fixed

    • lembas run can 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 todo tool with statuses the plan does not have (it is plan_write/plan_update,
      doing and done); a question answered with a question told the model to "call question
      again" (the tool is ask_user); --help showed --model conn/model (2.0 has no connection
      prefix: a model is named by its id); SECURITY.md spoke of an unrestricted mode (auto).
      A check now fails when a prompt, a tool description or a tool's result names a tool that does
      not exist.
    • /trust makes the project directory when the project has none — /tasks, /decisions
      and /decide said "/trust creates it", and it did not — and says /reload loads 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 --help lists files_that_run_code in its JSON.
    • A folder named like ..cache in 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 12 and /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 --json lists terminal_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 update and 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.Z or lembas update --rollback the
      next start installed the newest release again. Automatic updates now pause until you run
      lembas update yourself, 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 update says 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_EXECUTABLE and LLEMBAS_TERM_STATUS_DIR; a pane's status record starts
      llembas-term-status=1, the input mark llembas-term-input=1, and the default status
      directory is llembas-term. Nothing else changes.
    • A terminal from before the rename keeps working unchanged: LLEMBAS_TTY…,
      llembas-tty-status=1, llembas-tty-input=1 and the llembas-tty directory 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 --json says terminal_contract: 4 and the capability terminal_names_2,
      which a terminal that exports only the new names checks.
    Downloads