HomerandClaude Fable 5.2 635c68e908 A terminal as the client: user vars, terminal context, terminal_run/terminal_read, complete --shell
The CLI's side of harness spec 3.12.0, for a terminal emulator with LLeMbas
built in. Without LLEMBAS_TTY nothing here applies.

- src/terminal/env.ts: the terminal's environment; `lembas --version --json`.
- src/terminal/uservars.ts, tui.ts: the TUI's state as user vars (OSC 1337
  SetUserVar), on start and on change, emptied on every way out.
- src/terminal/context.ts, session.ts, command.ts: the context file — read
  once, removed, checked — as one <terminal> block on the person's next
  message; `--terminal-context` for the TUI and `lembas run`,
  `/terminal-context` in the TUI; a chip in the transcript.
- src/tool/terminal.ts, src/terminal/pane.ts: terminal_run and terminal_read
  through the terminal's own program, as an argument list.
- src/permission/evaluate.ts: a typed command is judged as bash would judge
  it, then asked every time outside auto mode, never always.
- src/terminal/complete.ts: `lembas complete --shell`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 19:21:07 +00:00
2026-10-09 21:59:03 +00:00
2026-10-09 21:59:03 +00:00
2026-10-09 21:59:03 +00:00
2026-10-09 21:59:03 +00:00
2026-10-09 21:59:03 +00:00
2026-10-09 21:59:03 +00:00
2026-10-09 21:59:03 +00:00
2026-10-09 21:59:03 +00:00
2026-10-09 21:59:03 +00:00
2026-10-09 21:59:03 +00:00
2026-10-09 21:59:03 +00:00
2026-10-09 21:59:03 +00:00

LLeMbas CLI — terminal coding agent

LLeMbas CLI

A terminal coding agent and project manager: the lembas command. It signs in to a LLeMbas server and uses its models, memory and search, works in your project with four permission modes and a git snapshot of every turn, keeps its own notes, knowledge bases and skills on your machine, and lets the server's web UI work the same sessions. Linux, x64 and arm64.

Install

curl -fsSL https://github.com/LLeMbas/LLeMbas-CLI/releases/latest/download/get.sh | bash

Or download a binary from Releases. Every release's SHA256SUMS is signed with the release key, and get.sh checks the signature and the checksum before installing anything (SECURITY.md shows how to check by hand).

First steps

lembas login https://your-server       # sign in to your LLeMbas server
cd your-project && lembas              # the TUI, on the server's models

A program that already holds an agent's token for this machine (LLeMbas Desktop does, from the same approval as its own) hands it over on stdin, never as an argument: … | lembas login --token-stdin --server https://your-server [--json].

From 2.0 the CLI talks only to the LLeMbas server it is logged in to; the custom connections of 1.x (dialect: entries in connections.yaml) are gone.

lembas updates itself (lembas update does it now); lembas uninstall removes it, and --purge takes settings and sessions too.

Licence

MIT — see LICENSE and THIRD_PARTY.md.

2026-10-25 19:50:11 +00:00
Languages
TypeScript 98.6%
Shell 1.4%