`!`…`` in a command file ran through bash -c with the arguments pasted in
and only the hardline checked — for a prompt from the link too, before any
mode applied. It is now judged as a bash call of the line in the session's
mode and rules and runs only on allow; the arguments are positional
parameters and ARGUMENTS in the environment; placeholders are filled in one
pass; a substitution has the bash tool's environment and a 10 s limit.
Spec: permission/rules.md §6.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
terminal_run in the display's manual mode types the command without Enter and opens no card;
the call waits for the person and answers ran, dismissed, left or unknown. lembas terminal
settings reads, sets and forgets; the display and lembas complete use what holds in their
directory. lembas complete: --cwd may be left out, --debug says each decision.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A header, the conversation, one row per tool call and cards; input is what the terminal
writes to the pane. The terminal profile of tools (no bash, no file tool), two modes, a typed
command waited for by the pane's status record, context that continues, one conversation per
window, the terminal's two models. The TUI in a split pane keeps working for contract 1.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- lembas_state is empty until the TUI's prompt box takes what is typed, and
while a menu, panel or subagent's view is in front of it: the first `idle`
means a typed line reaches the box.
- /terminal-context is in no menu (found only in a LLeMbas terminal); a test
drives the real Root with the terminal's one write — the command line,
Enter, the question as a bracketed paste, Enter.
- `lembas sessions --json`: the recent sessions as one array.
- Spec: those three, and that a terminal decides by terminal_contract and
capabilities, not by the version number.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A session whose prefix was kept before the terminal tools existed, or in a
LLeMbas terminal, listed them when carried on outside one. The headless
approval offers a typed command once only; the state publisher is started once.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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>
The display pane is a column of the root now: it stands at the right over the
terminal's full height, beside the prompt and the status bar, from 80 columns
(layout.ts decides both columns' widths from the terminal's width alone). Below
that it is no longer silently absent: the status bar names the key, and alt+d
puts the display in the transcript's place and back.
An images tab shows what view_image viewed, what show showed and what was
attached, drawn by OpenTUI's own image renderable (kitty graphics where the
terminal is found to support them, sixel, else blocks); `images: auto|on|off`.
The transcript has two views over the same items: full, and compact, where a
round of tool calls is one line and a failure or a refusal always has its own.
`transcript: auto|full|compact`, alt+t, /transcript.
The pane gets a session header, a tab bar that fits its width, clickable tabs
and rows of known width; the status bar has a short form for a narrow column,
and the welcome box's hints and the prompt's placeholder no longer wrap inside
a phrase.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
After an independent review of the spec 3.11.0 work.
- acp/files.ts: a write judged its path, waited for the base hash, then
opened and renamed by name - a move in between could swap a link in and
send the write out of remote.roots. Changes now run one at a time for
every link of the process, a path is judged again after each wait and
must be the same place, the part file is proved to lie in the target's
own directory before the rename, and hashes and reads go through an open
descriptor. A part file is never removed by a name that may lead
elsewhere. Copy, delete and the listing of names for a search no longer
block; uploads are capped in all; a listing is cut before its entries
are looked at; names are kept for four folders; part files are hidden,
journalled and swept at start.
- remote.files_that_run_code (off by default; lembas remote
files-that-run-code on|off): off, _lembas/fs write, mkdir, move, copy
and delete refuse git's own directory, a project's agent configuration
and the user's start-up files with the reason runs_code. Said in the
limits.
- tool/buffers.ts: a file read through the editor is never read or written
from the disk behind it; previews record nothing; a write the client
never answered is not repeated. The client's fs capabilities are read on
stdio only.
- Rewrites are tracked from the start, capped at four, stopped with the
client; the id is read one way. show's handle is an open descriptor.
- A typed message beginning like the editor's block is shown; a closing
tag in a diagnostic or a selection cannot end the block.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The CLI's side of harness spec 3.11.0, on serve --stdio and on the link.
- acp/editor.ts: _lembas/complete (one HTTP request with the login the
agent holds, the window trimmed, a newer request closes the older one's
connection and that one is answered as cancelled), _lembas/edit (one
model request with no tools; the stream cleaned of a fence around the
whole answer and given the selection's ending; deltas; cancel),
_lembas/models, _lembas/editor/settings, the editor block of a prompt,
and ACP diff items.
- acp/files.ts: _lembas/fs/list, stat, read, write, mkdir, move, copy,
delete, search. A path is judged where it really is, symlinks followed
first; outside remote.roots, the CLI's own directories and protected
paths are refused, and so is a folder that holds them; read-only where
the device allows plan mode only. A write is checked against the hash
the client last saw, twice for an upload in parts, and put in place
whole. A delete goes to the system's trash or is refused until the
client says permanent.
- tool/buffers.ts: read, write, edit, multiedit and apply_patch take a
file's text from the client's editor and write through it where the
client offers ACP's fs methods; any failure there is the disk. The call
is judged before any of it, as before. An overwrite of text that changed
in the editor since it was read is refused.
- A tool's preview gives each file's text before and after beside the
unified diff; a client that said editor: true gets them as diff items on
the approval card and on every finished edit. The texts are kept only
for such a client.
- tool/show.ts: to a client that said media: true a file that is not text
is handed over by a handle (_lembas/show/read), good while the request
is open and for that file as it was; a table, an SVG and a notebook are
named. On stdio the request also says where the file is.
- The hardline, the modes and the rules are untouched; tool/replace.ts is
untouched.
Tests: tests/acp-editor.test.ts (19), tests/acp-files.test.ts (13), and
the conformance areas editor, device_files and show.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
From an independent review of the round. Spec and CLI together.
- A scheduled prompt for a session open in a terminal is judged, then
refused (data.reason terminal) instead of being passed to the terminal as
a person's turn on the terminal's model.
- A schedule's session keeps its model with it: opened from the store again
— or in a terminal — it is on the model it had, and stays a schedule's
session there (nothing in it becomes the directory's model).
- On a refused scheduled turn nothing about the session is changed; a
command's interactive-only model in one is the same -32602 with its
reason. In a schedule's session a turn a job wakes, and a subagent started
with no person's turn running, are still scheduled work.
- A rerouted title or summary is counted under the model that was asked and
that model is named; a model that cannot take a summary (window too
small, no tools) is nowhere to go.
- A borrowed model is given back with returnModel, so a command whose model
is the session's own leaves nothing borrowed. What is remembered goes
through records(), the rule the conformance cases test; a change of model
inside a turn the harness started is not remembered.
- models.json: a directory's time is refreshed as it is used; a write stats
nothing, and gone directories are dropped apart from any turn.
- lembas run with no terminal says the way forward, in the refusal and in
--help.
- Permission rules: a rule written again (the same permission and pattern,
later) sets the earlier one aside, as a narrower one does. Cases pin it.
- Conformance and the examples use made-up model names.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Harness spec 3.9.0 (interactive.md), the CLI's side.
- interactive_only is read from /v1/models; /model says which models are
for interactive use only.
- A session's title and its compaction, asked for or automatic, are not
asked of an interactive-only model: they go to its twin, else to the
global model or the server's default when that is not interactive-only;
with none the title is left, automatic compaction is skipped and said
once, and a compaction asked for is refused in the spec's words.
- Scheduled work never uses one: a scheduled session/new or session/prompt
is refused with the sentence and data.reason interactive_only before
anything is sent, a scheduled turn cannot switch to one or start a
subagent on one, and a scheduled session opened with no model skips one
the directory remembers. lembas run with no terminal at all is the same.
- A person's turns, and the subagents of their session, are untouched.
Also the type of LOOP.interactive, which the spec commit left too narrow
for the JSON it reads.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Harness spec 3.9.0, the CLI's side.
- A session starts on: the model asked for, the project's setting, the
model last used in exactly this directory (while the login serves it),
the global setting, the server's default.
- The directory's model is written when a person's prompt starts a turn and
when the person changes the model (/model, a setting, _lembas/configure, a
shared terminal's session) — to models.json in the state directory, and
nowhere else. Not for a turn the harness started, a command's own model, a
one-shot run, or anything in a session a schedule opened (kept in the
session's meta, so it holds after a restart).
- _lembas/directories: `model` on each directory a session may be opened
in, and `list: false` for one directory alone; capability
directory_model.
- /schedule names each schedule's type, Chat or Agentic, and /schedule new
offers the two by name.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On the shared menu: unread first with the schedule and when; a report's
own menu — read it here (rendered in the transcript, a page as its note,
marked read), reply (the report and the person's words to this session's
agent), mark read, delete (asked once); ctrl+r and ctrl+d in the list.
/reports <id or title> reads one; lembas run prints the list or a report
as text. Built against a provisional /api/v2/reports contract, marked in
src/lembas/reports.ts. /schedule new takes notify-when: the default
condition, the person's own words, every run, never.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
reports.md, tools/report_write.json (requires: scheduled), loop.json
scheduled.notify: a schedule's run files a report or leaves a history
line; notify when always | when | never with the instruction for each, in
the run's prompt; one report per run; the answer filed under always;
[SILENT] retired. A run on a linked computer carries its report in the
turn's answer (acp.md, capability reports). conformance/reports.json.
pages.md, prompts/blocks/html-pages.md, loop.json pages, models/schema.json
html_pages: a reply may carry a complete page in an html-view fence, when
the instance, the model and the chat all say so; never to a subagent, the
phone assistant or an agent chat. The note, the text projection, the
session note. blocks/prototypes.md, the prototypes context field and
capability, and conformance/prototype.json are gone; conformance/pages.json.
permission/rules.md, conformance/rules.json: the candidate and the floors
a later-made rule gives way to, and what making a rule does — for a rule
typed into a file as for one a menu wrote.
The CLI carries it: report_write in a scheduled turn, the pages fence read
and noted in the transcript (/pages; prototypes: true dropped with a
line), the model's html_pages kept and unused, lookupRule the strictest of
the floors, judgeNewRule.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A command that takes no words is the command only alone, and /mcp <word>
only for a server's name: anything else is a prompt. lembas run --json
gets the text as an event and the end; a command that could not do what
was asked exits 1. /command <name> runs a custom command by name (TUI and
link), /skill works over the link, and a custom command hidden by a
built-in's name is said once at start. The start-up line for a failed MCP
server is cleaned, redacted, and promises only what every front end has.
The status bar's MCP subscription is dropped with the screen.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
One function (mcp/clean.ts) takes control characters out of everything a
server supplies, where it enters and where a name is shown. /mcp's text
shows an address without credentials or query, a local server by its
program's name, an error by its first line with secrets out, never stderr;
as a markdown reply, names are code and descriptions escaped. A prompt is
listed and inserted under its registered name. Both of two colliding tool
names get a hash; a library server's tools other than the one it is there
for are ordinary MCP tools. In the menu: sign-out asks once, a failure is
said once, a failed save is said, a server the user's own config switches
off is switched on for the session only (and says why).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The box is laid out in the rows there are (the detail under the list and
then the body above it give way first); a menu whose rows have a detail
keeps that space, so the list does not jump; a paste goes into the filter
or the text a menu takes (Add a rule); Enter on an inert row (a key in
/help, a /status row with nothing behind it, a line of an error) does
nothing. A finished job's line keeps the warning sign when it did not end
well.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
They ran the command directly, past submit()'s mid-task check: /new,
/compact, /undo, /model and the rest could start while a reply ran. A
menu now hands the line to the same function a typed line goes through.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
setRule appended a sourceless rule last, so 'read * allow' shadowed the
default 'read *.env: ask' and 'bash allow' the user's own 'rm *' deny, and
wrote it to the project. Now: choosing what is in force is a no-op; a rule
the user's own config or a written deny takes in whole is refused; a rule
that is made is a project's rule in the session as in the saved file, and
a rule made after the written ones (project, 'always', menu) decides what
a broader rule decided, never what a narrower stricter one did — lookupRule
keeps the strictest narrower match. The menu says where the rule holds,
whether it was saved (a failed save is said), and which stricter rules
still apply. Removing a session rule removes its saved copy.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
/help: every command under a heading, found by typing, run or put in the
box. /permissions (new): the rules in force by where they were made;
change, add, remove. /status (new): server, model, session, project, MCP
and terminal on one screen, what needs attention marked, enter opens what
changes it. /agents: a menu. Each has its text for where there is no menu
(session/report.ts): over the link, and lembas run now prints a
message-kind command instead of sending it to the model.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The dialog every picker uses gains sections, state marks, a body, a line
about the highlighted row, esc-goes-back, paging and a position in long
lists. /mcp is a menu on it: the servers by where they come from, with
state and what they offer; a server's actions (reconnect, off/on — kept
for a trusted project —, sign in/out, the last error in full), its tools
with their permission rule, changeable there (engine.setRule: the session,
and the project when trusted; never under the user's own stricter rule),
and its prompts. /mcp <name> opens one. Where there is no menu — over the
link, lembas run — /mcp is a plain table (mcp/text.ts).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Every bus notice was drawn with the warning sign, whatever it said, and a
server that connected said so at each start. A connect now says nothing
(the status bar counts: MCP 2, MCP 1/2); a server that failed or needs a
sign-in gets one line naming it and /mcp <name>. Notices carry a level —
info, success, warn, error — drawn from one table (tui/notices.ts) in the
transcript and in lembas run; the informational ones say so.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Paste placeholders: the extmark is placed from the cursor after the insert
(a paste over a selection put it at the wrong range and sent the bare
label); a placeholder is atomic (cutting into its label removes all of
it); the same paste opens a placeholder only with the cursor where the
first paste left it; a paste of white space is not a clipboard read; a
data URL that is no image is pasted as text. The label is shown in this
transcript only: the prompt event and the session's title get the words.
kitty OSC 5522: the box's input is held during a read, input that arrives
meanwhile means a packet was lost (OpenTUI flushes an unfinished OSC after
about 20 ms), what arrives is believed by its bytes and must be a whole
image — else one line and nothing saved. It can still fail on a stalling
connection, so it is off unless kitty_clipboard: true.
The approval card over the link keeps the whole command (or the tool's
name) as its title and carries _meta.lembas.tool; spec text says so. The
stored end of a turn is tied to the conversation's length, so /undo, a
rewind or a compaction takes it away. A refused call is titled from
schema-parsed arguments. A stored call with no result is failed; the
person's own !command is not failed by the turn's end; 59.96 s is 1m 00s
(conformance case).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A denied call was sent as a tool_call_update of an id no plain ACP client
had been given (the approval card carries its own), which a client drops:
it is one tool_call, failed, with its title, arguments and reason, and
_meta.lembas.denied. acp.md says so.
Dictated text is inserted at the end of the box instead of setting its
whole text, which dropped every paste placeholder.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
callTitle is the one title of a tool call: on the tool_start event, in the
transcript (argSummary is gone), as running_tool's what (callWhat is
gone), in lembas run and as the link's tool_call title; a refused call
carries _meta.lembas.denied and its title. A finished call shows what its
result adds and how long it took; a denied one its reason and no time; a
call still running when its turn ends is failed.
stopped and failed are drawn as the spec's line on the reply (budget too),
once, in the TUI and in lembas run, and kept with the session (meta
'ended') so a resumed session says it again. waiting_for_subagents counts
the foreground task calls and the session's running subagent jobs. Numbers
go through the terminal's locale; the working line has one clock.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ctrl+v reads the clipboard with OpenTUI's createHostClipboard (macOS,
Windows, Wayland, X11; PNG, JPEG, WebP, GIF, known by their bytes), with
wl-paste / xclip behind it, awaited instead of spawnSync so the screen is
never held. Pasted copies live in the state directory's clipboard/ and go
after a week.
Over SSH: an image pasted as a data URL or bare base64 is decoded,
size-checked, saved and shown as [Image N]; with a forwarded X display the
X clipboard is read; in kitty the terminal is asked for its clipboard over
OSC 5522 (listed first, then read with a name and password so it asks
once), through renderer.subscribeOsc; and when nothing came through, one
line names the ways that work.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A paste of three lines or more, or over 150 characters, is shown as
[Pasted text N lines] / [Pasted text N chars]; an image as [Image N],
numbered after the highest in the box. They are OpenTUI extmarks over the
label; the content is kept beside them and sent in full (an image as its
@path). Deleting a placeholder removes its content; the same paste again
opens it. The transcript shows the box as it looked; history, /undo, a
refused send and a copy of a selection in the box use the full text.
paste: full shows pastes whole.
The box's offsets are columns: the @file list and the edge-line check now
take text by range instead of slicing by offset.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
acp.md: a turn without agents keeps the device's own setting (an older server), as before 3.4.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/effort's Subagents row and /team size are a two-handle range from 1 to the cap (left/right move
the handle in focus, tab the other, enter sets both); the dialog gains a range row. Every text says
Min and Max, never fewest/most, and that the count includes this agent: "Subagents: Min 1, Max 4 -
1 is this agent alone". /settings shows the same beside agents.min / agents.max; config schema
and the bounds refusal likewise. CHANGELOG in the 2.0.0-beta.5 section.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A task subagent or a team member runs on the session's model unless the
person named another in this session's own messages (team/subagents.ts;
engine.personSaid reads every prompt and mid-turn message, compacted ones
included). Not named: refused; an agent file's own model is not used.
- Another model on the session's one-model server is refused; a one-request
session model is not its own subagent, and nothing else is picked.
- The team is offered when a model could serve: the session's with two
slots, or any usable model off its one-model server; the size note adds
team_own when the session's model cannot serve its own.
- "Subagents" in /effort, /team, /settings and the config schema; the status
bar reads "agents 3/4 · 2 subagents working".
- /context: used of the window, one bar by category, each category's share,
what is free, and "N until auto-compact".
- Conformance runner for the subagents area (26 cases); helper -> task.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The four team tools (tool/team_tools.ts) on the rules of team/team.ts,
driven from real turns by team/runtime.ts:
- Members run on the subagent job machinery (app.ts spawn with `member`):
background, unattended, their own prompt from blocks/team_member.md
(the whole of team_lead.md for one with lead: true), team_send and
team_read (team_add and team_stop for one that leads). Not jobs to the
model: job_list and the job_* tools skip them; a client over the link
still sees them as subagent jobs named "<name>: <role>".
- The room: messages and reports with their marks, delivered at the next
step boundary or waking a finished member or the idle lead; report
posts to the manager.
- A manager's work calls answer the refusal before the permission check,
by risk class (an MCP tool by its readOnlyHint); the tool list is
unchanged. job_stop and reading bash stay.
- Slots: the lead waits for one before its turn (Esc stops the wait);
members wait in order; task helpers in a team count toward the size
and hold a slot; job_send restarting a helper is refused when full.
- The offer is decided with the prompt and kept with it: a resumed
session takes it from its kept tool list.
- The size: agents.min/max settings, refused outside 1 <= min <= max <=
cap, kept across /new and resume; said in a note on the first message,
after a change, after a compaction and a rewind.
- TUI: /team (tree and room, size, stop a member, dialogs for both), an
"agents" row beside the effort in /effort, "team n/max" in the status
bar. /team works over ACP too.
tests/team.test.ts runs a lead, a member and its report through the app.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Levels (models/schema.json levels): provider/effort.ts levelsOf/levelFields/
readLevel — `off` only with thinking_switch and sends enable_thinking false
and no effort, `default` for a model that takes no efforts and sends
nothing, a level not offered is read as the start level. The engine's
effort is a level; /effort shows nothing for one level, a Thinking switch
for [off, X], a list otherwise; the status bar follows. /v1/models'
thinking_switch, efforts [] and capacity.parallel are read
(lembas/webui.ts); session/capacity.ts counts parallel slots.
Reasoning (context.md §8): an assistant message of the current turn
carries reasoning_content (provider/common.ts turnReasoning,
openai-chat.ts); step-boundary deliveries, nudges and the wrap-up are
marked turn: false and do not start a turn.
Paths (context.md §11): the <env> block names the project and, started
below the root, that directory relative to it (assemble.ts envLines);
instruction files and @ attachments are named from the root or as ~/…;
file tools and bash resolve relative paths against the project root.
The team rules (team/team.ts) and conformance runners for levels,
reasoning, paths and team; the team runtime follows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The system prompt is made once per session (start, compaction, model
switch), kept in session_meta and resent byte for byte; it holds no
date. What changes mid-session -- the date, a mode the person chose, a
plan or memory or instruction file they edited, a personality, MCP
instructions that arrived later -- is a <session-note> on the next user
message, stored with it. The tool list is fixed for the session:
plan_submit is always offered and answers unavailable outside plan
mode, the wrap-up keeps the tools and runs no call, a withdrawn tool
stays listed and answers its refusal; the first request waits up to
mcp_wait_ms for MCP servers. Compaction asks for its summary as the
next turn of the same conversation. Cached input tokens are parsed
(incl. llama.cpp timings), stored per request and shown in /context.
Spec: context.md §7/§10, loop.json context.note (+ plan_ended,
plan_own, personal, empty, mcp_wait_ms), modes.json plan.refused,
compact.md without the transcript heading. Conformance area prefix.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The login asks the server for the memory scope in place of library (the
server accepts both; library is no longer offered for new tokens).
/v1/usage is read in the server's 2.0 shape: no plan, balance, credit
costs or windows. The status bar shows what the month has cost so far and
/usage the month's tokens and cost and this device's tokens, each
currency's amount on its own (month.cost_by_currency, else cost_money in
currency). The credit wording is gone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LLeMbas CLI 2.0 is LLeMbas-server-specific (CLI rule 2). Removed: the
anthropic, gemini, ollama and responses clients, context discovery and
llama-swap unloading (discover.ts), the Connection schema with its dialect,
auth, key_cmd, discover, unload_url and one_model_at_a_time, the model
`fallback` (it only ever moved to another server), effort_map and cache, and
the multi-connection refs. Kept: openai-chat, http, sse, think, effort,
tokens and all of src/lembas.
- connections.yaml holds the login (`type: webui`, as lembas login writes
it). A custom entry from 1.x is read past with a warning that says how to
log in, so an old file still starts; with several logins left, the latest
is used and the others named.
- A model's ref is the id the server serves it under; the older forms
(`<login>/<id>`, `<login>/<model>`) still resolve and config.yaml is
rewritten once. Without a login there is no model, and the error (and the
first-run screen, now the sign-in alone) says `lembas login <address>`.
- A login to another server signs this machine out of the previous one.
- The window is the server's word (no discovery); a capacity group comes
from the server's `capacity.group` alone; embeddings use the server's
/v1/embeddings.
- `lembas models` lists the server's models; install.sh's starter files, the
README and the JSON schemas say the same.
Tests: every fixture is a login now (the fake server lists models, answers
other GETs with 404, and can hand one model to another script, as a server
with several backends); the dialect suites and the cross-connection tests are
gone with their code.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One registry per process, every job owned by a session: bash's background commands (and a command
still running at its timeout, which now goes to the background instead of being killed) and
subagents started with task background: true. job_list, job_output, job_stop (the former
bash_list, bash_output, bash_kill) and the new job_send and report; a finished job wakes the owning
session in every front end with its marked note. The TUI counts jobs, lists them (/jobs), opens a
command's output, enters a subagent and messages it, moves a command to the background (ctrl+b)
and asks before quitting with jobs running. The link gains the jobs capability. Subagents get a
session row of their own, the spec's preamble and agent texts, and their errors reach the report.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The spec: plan_write and plan_update (new, shared, offered in every mode) and
plan_submit (now shared) keep one structured plan — findings, objectives,
phases of tasks — in place of the todo list, which lives on as a former name
of plan_write. The shared system text is one text for both projects, with
variables for what differs; the mode texts, a prototypes block and a library
block are shared. acp.md: the client hands the device what only it knows
(context, library, prototypes), the plan travels as a structure (plan_state),
library calls carry the chat's scope, and a client may rewind a session.
loop.json says its numbers as numbers. Four conformance areas: plan,
prototype, library_scope, toolcall_index.
The CLI: the plan is kept per session in the store and drawn above the prompt
and on the approval card; the prompt is assembled from the spec's texts with
their variables filled; the link reads the instance's instructions,
personalization, knowledge scope and prototype offer, sends the plan as a
structure and answers rewind; library calls to the instance carry the session
as scope; a prototype written in the terminal is saved as a file and named in
the transcript; a tool-call fragment without an index continues the last call;
the default theme is Moria; dead exports and Hermes leftovers removed.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Config, data and state are rooted at <project>/.agent/local/lembas (or
.lembas/), kept out of git; a local directory the repository carries is
refused. The user's logins and connections.yaml are read, never written; the
user's config.yaml is not read. The TUI is started with TMPDIR inside it (the
compiled binary unpacks its native library there) and OpenTUI's cache goes
there too; the agent's commands keep the user's TMPDIR.
An instance serves models, chat, speech and the balance only: the link,
/remote, the service and the hub are off, deletes are not sent, and the server
library, search, fetch, embeddings and personalization are not used.
Self-update and uninstall are refused. hardline_disable is ignored, and tools
treat the local directory as outside the project.
The smoke test runs a whole local session in the compiled binary and checks
that HOME, the XDG directories and TMPDIR gained nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>