• LLeMbas CLI 2.0.0-beta.19
    ci / check (push) Canceled after 0s
    Pre-Release

    Homer released this 2026-12-02 12:16:38 +00:00 | -143 commits to main since this release

    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 (y allow, a always, n deny, 1…9
      for 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_run and terminal_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: no bash, 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_run now 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_read gains wait. 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; /new or --new begins 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: seq per 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), -m and /model switch a conversation, and
      lembas complete --shell takes --model and otherwise asks for the terminal's autocomplete
      model. They are kept on this machine (terminal.json in the configuration directory).
    • lembas --version --json says terminal_contract: 2 and the capabilities
      terminal_surface, terminal_await, terminal_context_2, terminal_models. The display
      publishes two more user vars, lembas_surface (display) and lembas_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_run now waits where a status record exists,
      and looks at the pane before it types.
    Downloads