Repository navigation
Releases
kb v0.55
kb v0.55 — web terminal 2, follow-up
A minor release on v0.54. It is mostly polish and follow-ups to the web
terminal: a Files tab that shows what the agent wrote, links and text you can
add as files, End all live on the Terminals hub, phone direct typing on by
default, a terminal page that no longer scrolls as a whole, and whole-session
find and notes on the Conversation rail. It also keeps the terminal files
corpus out of everyday search, shows Claude session cost when the harness
reported it, and adds kb doctor --hooks rows for the terminal Files tier.
There is no schema migration, and kb-code is unchanged.
Before you upgrade
- Schema: unchanged, V0048. No migration changed since v0.54, so a v0.54
volume opens on v0.55 and the reverse. There is no new rollback boundary; the
only limit is the existing V0048 one (a v0.52.x daemon refuses a V0048
volume). - One new config key, and one behaviour change that follows from it
(#460).[terminal.files] federatedis a bool, defaultfalse. The corpus
named by[terminal.files] kbused to joinscope=allsearch and the
/api/contextpack like any other corpus, so uploaded and kept files showed
up in everyday results. It is now left out of those federated reads, the way
transcripts are left out of default search. A request that names the kb
(kb=<name>) still gets it,scope=oneon the kb is unchanged, and the skip
is never adegraded[]entry. Setfederated = trueto restore the old
behaviour. Recall is unaffected. If you never set[terminal.files], nothing
changes. - Two defaults changed in the SPA, both browser-local and reversible.
- Phone direct typing is now on by default (#463). It was off and marked
experimental in v0.54. Every browser that gets the phone panel now types
straight into the terminal. Turn it off in Settings > Terminal, in the dock,
or with?direct=0(a stored opt-out is kept;?direct=1clears it). While
direct typing is on, the inline composer is not mounted; a Long key
opens the same composer in a sheet. - The Files tab upload box now starts ticked for "index content" (#461).
Keep in kb is unchanged and stays opt-in. Untick the box before uploading
anything you do not want indexed.
- Phone direct typing is now on by default (#463). It was off and marked
GET /api/identitygains one additive field,terminal(#484). It
carriesenabledand, when a files corpus is configured,fileswith the
corpuskbname and thefederatedflag. Names and flags only, never a path.
Nothing else on the wire is removed or renamed.- Update the plugin checkout (#470). Two small hook fixes live in the
kb-memoryplugin scripts, which run from the checkout, so fast-forward it
(see "Server, hooks and plugin"). - Upgrade the kb-term runner with the daemon for the Files "Recent" section.
The runner changed in this release (a new read-onlyfs_recentop, and
kb-termd --ops). Suggested order: redeploy the daemon, re-run thekb-term
installer andsystemctl --user restart kb-termd.service(restartkb-termd
only, never thekb-term@*holder units; open terminals survive), then update
the hostkbCLI and the plugin checkout.- With an older runner, the Files tab's Recent from the agent section
shows a plain "runner too old" caption instead of a list (the daemon answers
501terminal-runner-too-old). Nothing else on the tab breaks. - The
term-runnerrow ofkb doctor --hooksalso needs the new runner to
list its ops; with an older one it reports a WARN with a fix.
- With an older runner, the Files tab's Recent from the agent section
- kb-code stays at v9.2. No kb-code feature, server or SPA change. Rolling
out a new kb-code image is not needed.kb-code-cliandkb-lipare
unchanged.
All terminal features need [terminal] enabled = true and a caller the terminal
tier admits (terminal_admitted on GET /api/identity). With the tier off
there is no door, badge or route.
Web terminal: terminals hub and page
- End all live (#479). A bulk action on the Terminals hub. It targets only
the live rows of the current filtered view; ended and filtered-out rows are
never touched. One confirm names the count and asks you to typeEND. Kills
go through the existing End path, and a partial failure is reported in a toast. - Clear ended moved out of the Ended summary (#466). The button was nested
inside the disclosure's summary, which assistive technology flattens. It is now
a sibling of the disclosure on the same row. Behaviour is unchanged. - Restart on the Ended card (#462). An ended terminal's card now offers
Restart as well as Back to terminals, through the hub row's own restart path,
and the next terminal id no longer briefly shows "Terminal not found". Dead
status-chip code was removed, and the reconnecting, ended and ANSI frames have
visual baselines. - The terminal page no longer scrolls as a whole (#487, SCROLLPIN). The
routed view used to be the page scroller, so a wheel over the header or other
chrome moved the whole page. The terminal route is now pinned to a fixed-height
column; the terminal font refits as before. Wheel events over the panel chrome
scroll the terminal scrollback, and on a phone, drags that start outside the
terminal and outside the rail's own scroll areas are cancelled. The terminal
itself, the rail, dialogs, inputs and any element that scrolls on its own are
left alone. - Configurable palette chord (#464). The desktop Commands palette shortcut
is no longer fixed at Alt+K. Pick a chord from a closed set of safe Alt chords,
or Off, in Settings > Terminal. The choice is browser-local; Off registers no
listener. The header tooltip and the dialog footer show the current chord.
Alt+K remains the default.
Web terminal: the right rail
- Files: Recent from the agent (#474). A new section lists the files the
agent wrote since the terminal started, newest first, up to 500, from the
launch directory down three levels (.git,node_modulesandtargetare
skipped; the same hard deny list as browsing applies). Each file has Download,
and the section has a manual Refresh and a freshness caption. It does not poll.
The daemon relays it on the existingGET /api/terms/{id}/lsroute with
recent=1; there is no new route. Needs the v0.55 runner (see "Before you
upgrade"). - Files: Add link or text (#473). Paste a URL or a note, give it a name
(link-<host>.url.txtornote-<date>.txtby default) and optionally index
it. It is stored as a small text file through the normal upload queue, so the
size cap, progress, Kept in kb and Send to terminal all apply. A URL is stored
as text and never fetched. - Files: Pictures strip (#461). Shows the pictures the session's transcript
refers to, with download, and clear states for no session, not captured,
loading, error, empty and a presumed binding. It uses the existing session
view read. - Now: subagent drill-down (#467). "Subagents: N" now expands into read-only
rows with the label, harness, captured or "no end recorded as of last
capture", tool calls, files edited and an error flag. It reads the session
card the tab already fetches. A child's counts are never added to the parent's.
The card's child rows gain one additive field,error_count. - Now: Claude session cost (#486). Claude Code sometimes writes a cost
record into the transcript. When it did, the Cost row shows the latest value
labelled "as reported at ". Nothing is estimated; without a reported
cost the row is as before. omp's per-response sum is unchanged. The value is
shown, never used to rank anything. - Conversation: Copy answer (#482). Copies the turn's full final answer
rather than the capped preview. It fetches the turn on click through the
existing session view route, checks that the span starts at that row, and
copies the last assistant prose. Busy, error and not-captured states are
shown. Nothing is prefetched. - Conversation: turn notes and whole-session find (#465).
- Notes sit beside the star: up to 280 characters each, 100 per session,
for 100 sessions, kept in the browser and never sent anywhere. The Bookmarks
filter now means starred or noted, and note text is searchable. - Find now asks the daemon over the whole session when not every turn is
loaded, matching the full prompt, final answer and ask text rather than only
the previews. The list shows what was searched, with Open turn and Show in
list for turns already loaded, and honest pending and failure states. Once
every turn is loaded, search stays in the browser. The wire change is an
additiveconv_q(andconv_q_in=prompt) on?fields=conversation: at most
100 matches are listed,total_matchescounts all, excerpts are at most 160
characters, an absent or too-short query leaves the response unchanged, and
nothing is stored.
- Notes sit beside the star: up to 280 characters each, 100 per session,
- Knowledge fixes (#468). Remember waits while the bound session's project
is loading, captions a project taken from the folder, and derives its
visibility from one function that the caption also uses. A project corpus now
sends the same global flag as the CLI. Flagged chips survive a rail tab
switch. - Quick replies come from the catalogue (#464). The phone's quick-reply
chips are now the command catalogue's reply items for the terminal's harness,
shared across devices, instead of living only in browser storage.
Web terminal: phone
- Direct typing on by default, Long message sheet (#463). See "Before you
upgrade". The dock row, Settings and the one-time notice are now worded as an
opt-out rather than experimental. - Phone minors (#475). The Long message sheet closes on send only, not when
you start typing; the status pill steps aside while the sheet is open; and the
sheet is bounded so its head and Send stay visible in a short landscape
viewport. The dock toggle sa...
kb v0.54
kb v0.54 — web terminal 2
A minor release on v0.53. It turns the opt-in web terminal into a fuller
workspace: a Terminals hub with a launcher and switcher, a seven-tab right rail,
a command palette, file upload and download, and a much better phone view. It
also makes memory recall quieter when it has nothing new to say, fixes the
session chain walker across current Claude Code compactions, and widens the
terminal file deny list. There is no schema migration.
Before you upgrade
- Schema: unchanged, V0048. No migration changed since v0.53, so a v0.53
volume opens on v0.54 and the reverse. There is no new rollback boundary; the
only limit is the existing V0048 one (a v0.52.x daemon refuses a V0048
volume). - No breaking change and no config key changed default. The daemon side
is additive or opt-in.GET /api/identitygains one additive field,
state_instance. - One hook behaviour change (#306). After you update the plugin checkout,
kb-memoryrecall omits memories already served in the same session and
skips recall for trivial prompts. Both are on by default, with kill switches
KB_RECALL_DEDUP=0andKB_RECALL_SKIP_TRIVIAL=0. Context-aware recall
stays off unlessKB_RECALL_CONTEXT=1. - Token totals shift down (#382). Token usage is now deduped by message
id; Claude transcripts repeat usage per content block, so earlier totals
were over-counted by roughly two to three times. The session view header and
the cardstatslane show the corrected totals at once. The stored
per-sessiontoken_totalused by list rows and rollups keeps its old value
until that session is captured again or you runkb reindex. Nothing else
is rewritten. - kb-code stays at v9.2. No kb-code feature change; a new image is optional
and only picks up two small SPA fixes (see "kb-code"). - Update the plugin checkout. Recall dedup, the trivial skip, the epoch
marker and the detached spool drain live in thekb-memoryplugin scripts,
which run from the checkout, so fast-forward it. - Upgrade the kb-term runner with the daemon for runner-side features.
Suggested order: redeploy the daemon, re-run thekb-terminstaller and
systemctl --user restart kb-termd.service(restartkb-termdonly, never
thekb-term@*holder units; open terminals survive), then update the host
kbCLI and the plugin checkout.- An older runner answers the per-file diff with 200
{"state":"runner-too-old"}, and a Files request for an extra browse root
with 501urn:kb:errors:terminal-runner-too-old. The SPA says to update
the runner (#442, #443). Only the old runner's own "unknown field"
messages map to these; other runner validation errors stay 400 (#455). - A new daemon with an older runner does not break otherwise. The one-request
send (#353) needs the new runner. - An older daemon with the new plugin leaves the status chips empty; the
daemon needs the typed status beat (#379).
- An older runner answers the per-file diff with 200
- Opt-in host steps are in "Host steps for the web terminal 2 features" in
docs/kb-term-install.md. None changes a default:- Files corpus (upload, download, Keep in kb). Add a corpus on a
writable directory the daemon user owns (a read-write volume in the compose
layout), then set[terminal.files] kb = "<corpus>". Without it an upload
still reaches the terminal's own working area, and Keep in kb answers 409
terminal-files-not-configured(#368, #405). - Live capture. Set
KB_CAPTURE_LIVE=1in the harness environment
(optionallyKB_CAPTURE_MIN_INTERVAL_SECS). Off by default; each capture
re-embeds and reindexes that session, so keep the interval long on a slow
disk (#376). - Status chips. For Claude Code, wrap the user settings'
statusLine.commandwithkb-status-tee.sh. For omp, fast-forward the
plugin checkout and restart omp (#387). - Extra browse roots (optional):
[terminal.files] browse_roots, empty
by default (#443).
- Files corpus (upload, download, Keep in kb). Add a corpus on a
- PATH drop-in order (#366). The installer's
kb-termdPATH drop-in now
lists thekband harness directories in your shell's order, then
/usr/local/bin:/usr/bin. An earlier directory shadows a later one, so a
stale harness copy earlier in the path is what every pane launches.
kb-term doctorwarns when the runner and your shell resolve a harness to
different files. After moving or reinstalling a harness, re-run the installer
or reorder the PATH by hand.
All terminal features need [terminal] enabled = true and a caller the terminal
tier admits (terminal_admitted on GET /api/identity). With the tier off
there is no door, badge or route.
New: start, resume and manage terminals from the web (#333, #385, #375, #395)
- Start or resume from the SPA (#333). Launch a new kb-term session or
resume one without a shell on the host. - Terminals door and hub (#385). A new Terminals door in the top bar
carries a badge counting blocked terminals./terminalslists every terminal
in order: needs you (oldest block first), pinned, working, idle, then a
collapsed Ended group. Project, harness and needs-you filters live in the
URL./term/:idand the old/sessions?term=<id>redirect to
/terminals/:id. - Launcher (#375, #395).
- New session opens a dialog on desktop and a sheet on a phone, with a
working-directory field, harness chips (claude, codex, omp; opencode and
grok marked experimental) and a Resume tab that searches kb sessions. - A confirm step shows the exact directory and harness before the single
launch request. - An optional one-line first prompt is pasted without Enter once the
terminal is live. It never appears in a URL, request body or log (#406). - Continue in terminal on a session page or list row opens the launcher
prefilled and never launches by itself. Deep link:
/terminals?launch=1&resume=<sid>.
- New session opens a dialog on desktop and a sheet on a phone, with a
- Terminal limit (#391, #439). A launch over
[terminal] max_termsis
refused with 429terminal-cap. The check and the spawn run under one lock,
and each attempt writes one audit log line with no prompt text. The hub
header reads "N of M terminals" and the confirm step disables Launch at the
cap. A daemon without the new fields shows neither. - Row actions (#418). Pin, rename (a browser-local label), End or Remove,
Restart, Duplicate and Copy attach command. Clear ended removes every
ended row after one confirm. End asks first and names the harness and
directory. - Switcher (#408, #409). A header popover lists terminals grouped This
project and Everywhere, needs-you first, and marks an ask differently from a
finished turn. Alt+Down, Alt+Up and Alt+N move between terminals; on desktop
[]nNdo the same when focus is outside the pane. Wide windows get
a switcher column beside the page. - Phone hub (#417). One column with a fixed New session bar and a scrolling
filter strip.
New: the terminal page, header and grid ownership (#388, #394, #332, #337, #334, #347)
- One-row header (#388). Harness, project, state dot, the program's own
title, a More menu, the Commands button and the switcher. The status chips
(model, context %, cost, permission mode, branch) come only from the typed
status beat. - State overlays (#394). Calm cards cover first connect, reconnecting,
ended, expired and blocked, and never resize the pane. A needs-you banner
names the pending tool and question and links to the Conversation row (#407). - Fit and grid ownership (#332, #334). The panel fits the font, not the
grid, and shows "Cropped" when even the smallest font cannot hold the grid. A
chip shows the owner and size, for example201x48 · web,· local attach
or· free. Fit to window takes the grid and Release grid gives it
back. The web outranks a local attach. A grid change from another client no
longer leaves the panel cropped with a small font (#347). - Full screen (#337) never takes the grid, and adds a visible typing state,
copy and links. A picture can be pasted or dropped onto the panel (#350). - Fonts and colour. Real bold and italic JetBrains Mono plus terminal
symbol faces for box drawing and powerline (#454). The ANSI 16 colours are
derived from the theme with a minimum contrast ratio of 4.5 (#367). - Accessibility and visual passes (#401, #422, #441). The pane is a labelled
region, screen-reader mode is a browser-local switch, and rail tabs follow the
WAI-ARIA tabs pattern with one polite announce region. The second visual pass
fixed overflow and sizing problems.
New: the right rail (#371, #384, #413, #399, #404, #398, #400)
Seven tabs in fixed order: Now, Conversation, Changes, Files, Knowledge, Board,
Commands. The open state and selected tab are remembered in the browser. Each
section says how fresh it is.
- Conversation (#384). One row per human turn, with prompt, answer excerpt,
asks and commits. Resend pastes a prompt or answer back without Enter
(#416). The tab shows the newest 100 turns; Load earlier fetches more and
Load all stops at 2,000 (#428). Client-side search, a Mine-only view and
browser-local bookmarks (a star per turn, never leaving the browser), with a
compact two-row header (#449). A session the daemon has not yet bound shows a
presumed binding, captioned "Session linked by folder"; presumed sessions feed
reads only (#383, #427). - Now (#413, #414). Needs-you, current activity, status, the latest answer,
slate asks, sibling terminals and compact session stats. It also holds the
prompt queue, a per-project to-do list shared across devices. Send pastes
the prompt without Enter and marks it done. The daemon never sends a queued
prompt itself. - Changes (#399, #442). Files touched and commits. An edited file expands to
its working-tree diff against HEAD, fetched on d...
kb v0.53
kb v0.53 — session handoff, kimi removed
A minor release on v0.52.1. It adds a cross-harness session handoff between omp
and Claude Code (with one schema migration), removes kimi harness support, fixes
a watcher race that could keep a deleted file indexed, and makes the kb-term
binaries report their real version.
Before you upgrade
- Schema: V0048. It adds two nullable columns and an index to
sessions
and backfills nothing. Like every migration it raises the volume's schema
epoch, so a v0.52.x daemon refuses to boot on a migrated volume. If you
might roll back, runkb backupfirst; see "Rolling back across V0048" in
docs/self-host.md. - Breaking: kimi support is removed (#312). See "Removed" below for what is
refused, what stays readable and what to clean up on a host that had the
kimi hooks installed. - kb-code stays at v9.2. The only kb-code changes drop kimi from the
worktree lock-owner list and keep old kimi-authored comments labelled as agent
comments. There is no kb-code feature change and no need to roll out a new
kb-code image.
New: hand a session over between omp and Claude Code (#300)
kb sessions handoff <id> [--to claude|omp]writes a brief: a
deterministic, LLM-free first prompt for a new session of the other harness
(the source's own summary, the user prompts, open todos, files touched, the
recent turns and pointers to pull more), within a character budget.--transplantwrites a native session file instead, which the target
resumes withclaude -roromp -r. It never overwrites an existing file,
and--dry-runwrites nothing.--launchstarts the target harness in the
session's directory;--printwrites only the brief to stdout. It works
offline: it reads the harness's own session file first and falls back to the
newest kb capture (lossy for omp).- Lineage. Every brief and transplant opens with a
[kb-handoff from <harness> session <id>]line. kb reads it back as
continued_from, shown on the session detail and card next to
continued_in. It is displayed, never used for ranking. Captures indexed
before the upgrade show no lineage untilkb reindexre-parses them. - Daemon:
GET /api/sessions/{id}/handoffreturns the brief from the
capture. For a non-loopback client the secrets scrub runs on the transcript
before rendering and on the text after. - Web: a "Continue in Claude Code / omp" panel on the session page and in
the list inspector renders the brief on request and offers copy-only
commands. With[terminal] enabled = true, "Open in terminal" launches the
transplant in a kb-term pane.
Removed: kimi harness support (#312)
- kb no longer captures, beats, wakes or launches kimi sessions. The kimi hook
scripts (install-kimi-hooks.sh,kb-capture-kimi.sh,kb-wake-kimi.sh,
kb-distill-nudge-kimi.sh), the kimi live adapter, the kb-term kimi profile
and its doctor checks, and the SPA's kimi options are gone. The closed harness
set is now claude, codex, grok, omp and opencode. - Old kimi sessions stay readable. They are still listed, labelled "kimi",
with no resume command. New kimi input (a beat, a filter, a slate post, a
launch) is refused with a 400, like any unknown harness. - Clean up a host that had the kimi hooks:
- Remove kb's entries from the
[[hooks]]list in your kimi config by hand.
The removed installer could only uninstall entries it had marked, and older
installs carry no markers. - Drop the kimi binary directory from the kb-termd
PATHdrop-in if you
added it, thensystemctl --user restart kb-termd.service. KB_HOOK_FMT=kimiis no longer recognised; an unknown value falls back to
the default JSON envelope.
- Remove kb's entries from the
Fixes
- A deleted file could stay indexed (#310). The file watcher drops a create
followed by a delete inside its 400 ms debounce window. If a reconcile pass
had just indexed such a file, it stayed searchable until the next pass (up to
a minute). A reconcile pass now re-checks the files it just indexed after 3 s
and removes any that are gone. A file that arrives with an old modification
time (mv,cp -p,rsync -t) and is deleted that quickly still waits for
the next pass. - kb-term reports its real version (#309).
kb-term,kb-termdand
kb-tapprint the release version (they printed0.0.0); a local build says
0.0.0-dev.kb-term doctorshows the tap's version and warns when it
differs from kb-term's own (a mixed install). Packaging refuses an archive
whose three binaries disagree with its version. - Terminal tier (#311):
- The relay retries a re-open refused with "too many viewers" within its
existing retry budget; the old stream's slot can still be held for a
moment while its pane closes. kb-term killreaps a stale entry only when tmux answers that no server
is running; any other error keeps the files.docs/http-api.mdnow documents that a REST kill of a stale id returns
200 withstale_removed: true(the behaviour since v0.52.1).- The installer warns about a
PATHdirectory containing:. - A poisoned viewer-slot lock no longer reads as "no viewers".
- The relay retries a re-open refused with "too many viewers" within its
- Supply chain (#313). RustSec published an "unmaintained" notice for
chrono(RUSTSEC-2026-0543) with no successor release. kb accepts it with an
audited exception indeny.toml. It is not a vulnerability: any future
chrono vulnerability gets its own id and still fails CI. The exception is due
for review by 2027-02-28; the lasting fix is moving kb's own date code off
chrono. - Tests and CI (#308). Terminal end-to-end documentation, a processing
barrier for one negative check, pixel-delta evidence kept on green runs, and a
self-test for the hook-test diagnostics. Invisible to an operator.
Upgrading a terminal host
- Re-run
scripts/install-kb-term.shfrom this release, then restart
kb-termdonly (systemctl --user restart kb-termd.service). Do not restart
thekb-term@*holder units: that ends every live session. kb-term --versionshould print0.53, andkb-term doctorshows the tap
at the same version.- Update the kb daemon image to this release for the relay changes and V0048.
Known limits still open
--graphicsis not wired inkb-term attach; the kitty graphics core
has never run against a real Ghostty or kitty.- Real-device phone checks are still pending. Read and Drive modes are
covered by unit and end-to-end tests, not by a pass on physical phones. - A same-pid, same-terminal
startbeat from another session can steal a
terminal's binding. Recorded and pinned as a known limit, not fixed. - Within one epoch a full join does not tell the SPA the tap's current marker
sequence, so a later resume may resend markers already folded into the
join. Unchanged since v0.52. - The viewer cap (8 per session) is shared by SPA and CLI viewers. A ninth
viewer is refused with the specific "too many viewers" error. - Linux x86_64 only for the kb-term archive; the terminal tier is not exposed on
a public mirror, and none may be added.
kb v0.52.1
kb v0.52.1 — terminal tier fixes
A patch release on v0.52. It fixes what the first real-host deploy of the
terminal tier turned up and closes the review follow-ups of the terminal build.
There is no new feature, no new route, no new config key and no schema change.
Before you upgrade
- Schema: none. There is no migration since v0.52 (the newest stays V0047),
so a rollback to v0.52 needs nokb backupfirst. - Nothing changes unless
[terminal] enabled = true. If you do not run the
terminal tier, this release changes nothing you can see. - kb-code is unchanged at v9.2. Between v0.52 and this release the only
change under kb-code is a flake fix in its end-to-end test
(web-code/e2e/presence.spec.ts, #297); the daemon, CLI and SPA are the same.
There is no new kb-code image to roll out.
Upgrading an existing v0.52 terminal host
- Re-run
scripts/install-kb-term.shfrom this release. It replaces
kb-termd,kb-term,kb-tapand the unit files, and now also prints (never
writes) the runner environment drop-in, pre-filled from your shell. - Restart
kb-termdonly (systemctl --user restart kb-termd.service). Do not
restart thekb-term@*holder units: that ends every live session. - Give the runner its environment if you have not (docs/kb-term-install.md,
"Give the runner its environment"): akb-termd.service.d/env.confdrop-in
with aPATHthat holds the directory ofkband of each harness, and
KB_SESSIONS_DIR. Without it a harness installed in a per-user directory
exits 127 in the pane, and the capture and beat hooks do nothing, so a
launched session gets no beat, no binding and no capture. - Run
systemctl --user enable kb-termd.service. This now works: the unit has an
[Install]section (it had none, soenablefailed andkb-termddid not
start after a reboot). Already-running sessions are unaffected. - Run
kb-term doctor. It now reads the running runner's environment and
checks thatkb-termdis enabled. - Update the kb daemon image to this release for the relay changes below.
Fixes in the terminal tier
- Live-pane grid (#299, FXHOST). A live pane was listed with the wrong size
because tmux's empty exit-status field collapsed the parsed line. The runner
now reads tab-separated pane facts, sokb-term lsand the SPA see the real
columns and rows. kb-termdstarts on boot (#299, FXHOST). The unit has[Install]
WantedBy=default.target;systemctl --user enableworks.kb-term doctorchecks the runner's environment (#299, FXHOST; refined in
#304). It reads the environment of the runningkb-termd: a missing
KB_SESSIONS_DIRis a FAIL;kbor a harness not on the runner'sPATH
is a WARN, as is a harness that is missing, fails, times out or prints
nothing when probed, each told apart. The runner is found through systemd's
MainPID, and a/procscan is only the fallback.kb-term kill <id>(#304, FXTERMCLI). A new host-local verb that ends a
session through the runner, and also reaps the files of a stale entry (a session
whose tmux is gone), so it disappears fromkb-term ls. It refuses a malformed
id or a symlinked entry and removes nothing in that case. It is akb-term
verb, not a kb verb.- Installer drop-in (#304, FXTERMCLI). The printed drop-in now includes the
directorykbresolves from, and quotes each value the way systemd requires
(spaces,%, backslash, quote). - Runner client (#298, FXRUNNER2; #302, FXSTREAM). A reply arriving after
its call timed out can no longer be taken for the answer to the next call on
that session; the connection is dropped and re-dialled. A call cancelled
mid-flight no longer poisons the connection either. - Viewer limit (#298, #302). A stream open now reserves its viewer slot, so
two simultaneous opens cannot both take the last one, and a browser that hits
the per-session limit gets a specific 409terminal-conflict("too many
viewers") instead of a generic failure. Stream viewers are marked by
construction, not by a name prefix, so a viewer a user happened to namews-...
is persisted like any other. - Relay (#295, FXRELAY; #302). The retry of a join the tap deferred with
"busy" keeps its 150/300/600 ms schedule while the browser keeps typing, a seed
or hello frame counts as a live join, and a re-open that is cancelled
mid-flight is replayed without losing input. One epoch grammar now governs
kb-server,kb-termand the tap. - Doctor pins (#298).
kb-term doctor'sxterm_pinscheck expected the
SPA's pins from the tap and reported a false FAIL; it now expects the tap's
own set. - Tests and CI (#296, FXTESTS; #301, FXE2E2; #297, FXFLAKES; #303,
FXHANG). The terminal-stack end-to-end lane now proves its timing joins,
covers the whole gate matrix (every/api/termsroute refuses a missing
intent and a wrong or absent Origin) and cleans up after a failed bring-up;
the long segmented-capture hook test is split into groups with deadlines.
The semantic-zoom ladder follows the URL when a step is superseded from outside
(#301, a change in the web app, not only a test). These are mostly
invisible to an operator.
Fix in the kb-memory plugin
- omp slate wakes keep their order (#297, FXFLAKES). The omp hook looked
up each resolution of an ask in its own concurrent process, so the wake for
an answer could arrive after the wake for the laterdone. Lookups now run
one at a time. Update the kb-memory plugin to get it; without the update
nothing breaks.
Known limits still open
- T4 local-mirror tail re-check is still pending. The scrollback result for
the local mirror was measured once; the re-check of its tail has not been done. --graphicsis not wired inkb-term attach; the kitty graphics core has
never run against a real Ghostty or kitty.- Real-device phone checks are still pending. Read and Drive modes are
covered by unit and end-to-end tests, not by a pass on physical phones. - A same-pid, same-terminal
startbeat from another session can steal a
terminal's binding. This is recorded and pinned as a known limit by the
end-to-end lane, not fixed. - Within one epoch a full join does not tell the SPA the tap's current marker
sequence, so a later resume may resend markers already folded into the join.
It is unchanged from v0.52. - The viewer cap (8 per session) is shared by SPA and CLI viewers. A ninth
viewer is refused with the specific error above. - Linux x86_64 only for the kb-term archive; the terminal tier is not exposed on
a public mirror, and none may be added.
kb v0.52
kb v0.52 and kb-code v9.2 — "Mirror"
kb gets a terminal. An agent session running on your machine can now be watched
and typed into from the session page in the browser, on a desktop or a phone,
and mirrored into a local terminal's own scrollback. The terminal tier is
SPA-only and off by default. The release also brings the session catalogue: one
page per session, parent and child lineage, a session card, and a work view that
groups sessions. kb-code shows that card's code side.
kb-code v9.2 ships in this same release and shares this note (see "kb-code"
below); there is no separate kb-code-v9.2 note file, as with v0.51 and kb-code
v9.1.
Before you upgrade
- The terminal is off. Nothing changes unless you add
[terminal]with
enabled = truetokb.toml. The keys areenabled,runner_socket
(default/run/kb-term/runner/runner.sock),ticket_ttl_secs(default 30,
1 to 120),refuse_token_callers(default true) andrunner_timeout_secs
(default 5, 1 to 60); see docs/configuration.md. Terminal routes need an exact
browserOriginand an intent header, the WebSocket needs a single-use ticket,
and the loopback bypass does not apply. There is no kb CLI verb for it. - The terminal needs host pieces the kb container cannot hold: the runner
kb-termd, the local clientkb-term, the compiled tap and a pinned private
tmux 3.7c.scripts/install-kb-term.shinstalls them from the new
kb-term-<ver>-x86_64-unknown-linux-gnu.tar.gzrelease archive (Linux x86_64,
glibc 2.39 or newer, a systemd user manager). The installer verifies the
checksum and, withghsigned in, the build provenance. Full steps and
rollback: docs/kb-term-install.md. - Three operator steps, in order: (1) one
sudoline installs the tmpfiles
file so/run/kb-termexists with a stable inode; (2) startkb-termd;
(3) add the bind mount/run/kb-term/runner:/run/kb-term/runnerto the kb
container (only that directory; the per-session holder sockets never go in).
kb-termdmust run as the same uid as the kb container user that reads the
socket, because the runner socket is mode 0600 and peer-uid checked. Order is
tmpfiles, thenkb-termd, then the container. - One kb schema migration: V0047 adds three nullable columns to
sessions
(parent_session_id,root_session_id,project_slug) and an index on
root_session_id(kb schema 46 to 47). It is additive, backfills nothing and
runs on boot. A daemon built before V0047 refuses to boot on an upgraded
index.db, as with V0046: take akb backupfirst if you may roll back.
kb-code has no new migration. - omp lineage for old sessions is filled by
kb sessions backfill-tree
(dry run by default,--applywrites, never overwrites a value). It reads the
host's omp sessions tree and needs a running daemon. - To stop omp subagents showing up as live sessions of their own, update the
kb-memory plugin hooks (A1 below). Without the update nothing breaks; those
rows simply stay as before.
kb-term: "Mirror"
The terminal tier is one design in five pieces: a tmux holder per session, a tap
that reads it, a runner that owns them, a WebSocket relay in the kb daemon and
two readers (the SPA and the local mirror).
- Holder, tap and runner (T0 to T10, T13).
kb-termdstarts a private tmux
per session and servesrunner.sock; the tap decodes tmux control mode, strips
the escape sequences the viewer must not receive, keeps a numbered ring so a
reconnect resumes where it left off, and seeds a new viewer from a twin of the
screen at a quiet point. Viewers can answer terminal queries, paste, press
Enter and send named keys, and a grid-ownership rule decides who sets the size.
Per-harness launch profiles andkb-term doctorcheck the setup (#222, #219,
#220, #226, #227, #229, #230, #232, #236, #237, #240, #233). - The WebSocket relay (T12, T11).
/api/termsand the terminal WebSocket sit
behind[terminal] enabled, with the gate in the handler andterm.*events;
a config edit restarts the daemon in place and open terminal sockets close with
code 1012 while the holders keep running (#225, #268). - Desktop panel (T14). The terminal panel on
/sessions/:sid, with seed and
resume and guards so a reply cannot go to the wrong session (#260). - Phone: Watch/Read and Drive (T17, T18). Read mode is a scroller with pinch
and resume handling. Drive mode adds a composer, a key bar, a choice bar, guards
for Claude's prompts, Fit to phone and image upload (#284, #289). - Pictures (T15, T21, T24). omp pictures draw in place from a content-hash
store through a media route with a lightbox; the live tail swaps inline images
for references and the page has an Images strip (#282, #286). The kitty
graphics core forkb-term attachlanded with T24 (#285), but see "Known
limits". - Local mirror (T16).
kb-term attach|new|ls|doctormirrors a session into the
terminal's own scrollback, with a dim one-row label for each picture. It is a
host-local tool, not a kb verb (#258). - Install archive (T19). The release workflow builds the kb-term archive and
install-kb-term.shinstalls it (#244). - Tests and docs (T25, T23). A real-stack end-to-end lane runs real tmux, the
tap,kb-termd, kb-server and the SPA with a fake harness (#287). The
reference is docs/kb-term.md, the install guide is docs/kb-term-install.md, and
docs/configuration.md and docs/http-api.md carry the keys and routes (#292).
The terminal rulings are amendments to existing invariants, not new ones (T22,
#218).
Track A: the session catalogue
- omp identity (A1 to A6). An omp subagent no longer takes the process's
identity or creates a live row, and the adapters stamp the job id (#221).
Commit trailers readKB_SESSION_ID, andkb doctornames where the trailer
id comes from (#238). - Lineage (A2, V0047). Sessions carry parent, root and project slug, stamped at
capture time (#223). - The session card (A3).
GET /api/sessions/{session_id}/cardis one read
model with paged children andkb sessions card; resume targets the root
session (#231). - The
/sessions/:sidpage (A4). A per-session page with a collapsed
subagent list and the slot the terminal panel fills (#234). - kb-code's card lane (A5). Commits, reviews, findings and presence by
session, fetched by kb's SPA (#239). - The work view (A6).
GET /api/sessions/workgroups sessions by a named
ladder rather than a score (#238).
Post-merge fixes
- FXA4 (#253): the A4 session page, post-merge fix-ups.
- FXT0, FXT2, FXT3, FXT4, FXT5, FXT6 (#264): tap, mirror stand-in checker and
tmux-script fix-ups. - FXT1, FXT8, FXT10 (#265): runner, wire and launch-profile fix-ups.
- FXA2, FXA3, FXA5, FXA6, FXT20, FXT22 (#266): lineage, card, work view,
image-reference and doc-gate fix-ups. - FXT9 (#250): legacy resize ownership, pump teardown.
- FXT13 (#246): a malformed runner answer can no longer wipe the terminal
directory; the beat tolerates a bad terminal id. - FXIDS (#272): the runner client no longer overwrites an operation's session id
with the envelope id. - FXINTRUN (#271): the relay maps every runner error code to a proper 4xx or
503 instead of 502, opens the SPA viewer before input, adds the grid, resize and
viewer-close routes, and uses one terminal-id grammar everywhere. - FXBUSY (#283): the relay retries a tap join the tap deferred with "busy".
- FXEPOCH (#290): a terminal reconnect carries the tap epoch, so it continues
instead of reseeding. - FXINPUT (#291): keys typed in the panel reach the pane.
- FXUPLOAD (#293): the upload quota scan tolerates files renamed or removed by
a concurrent upload. - FXZOOM (#288): Library semantic-zoom keys and pinch step from the current
rung, not a stale one. - FXDENY (#262): audited advisory exception for libsqlite3-sys
RUSTSEC-2026-0459 indeny.toml.
kb-code
- Session card lane (v9.2). kb-code answers kb's session card with the commits,
reviews, findings and presence for a session (A5, #239). kb-code gains no
terminal concept: the one live call direction is still kb-code to kb. - No kb-code schema migration.
Also in this release
Not part of kb-term or Track A, but merged since v0.51:
- Addressed asks on the slate.
kb slate ask --to,kb slate wait #n, the
per-prompt delta carrying answers on a session's own asks, and the phone
answering and addressing asks. - Agent-hardening round (AH1 to AH12). A verified resume-command table, slate
deltas that open with the untrusted-data frame, a timed-outkbwrite that says it
may have landed (#210),kb daemonproving "still ours" with a lifetime lock
(#216), mobile sheets that answer the platform close request (#215), and a
compile-free gate pinning that ONNX Runtime stays in kb-embedder (#211). - Dependencies. Rust 1.96.1 pinned, the web and actions groups, rusqlite 0.40,
scraper 0.29, and a lock bump that clears the ammonia, zstd, rustix and
event-listener advisories.
Known limits
- T4 local-mirror tail re-check is pending. The scrollback result for the local
mirror was measured once (docs/kb-term.md records it); the re-check of its tail
has not been done. --graphicsis not wired. T24 shipped its core only:kb-term attach --graphicsis not available, and the core has never run against a real Ghostty or
kitty.- Real-device phone checks are pending. The phone Read and Drive modes are
covered by unit and end-to-end tests, not yet by a pass on physical phones. - Linux x86_64 only for the kb-term archive; no aarch64 build.
- The terminal tier is not exposed on a public mirror, and none may be added.
API
- New, behind
[terminal] enabledand the handler gate: the/api/termsfamily
(list, launch, kill, read, history, paste, enter, k...
kb v0.51
kb v0.51 and kb-code v9.1 — "Crossings"
kb and kb-code now cross into each other, and kb shows more of what is happening
around you. Cited code paths open kb-code at that file, kb-code shows which
documents cite a file and which files agents are editing, and kb answers "what
changed since I was last here" for a whole project, for one artifact, and for any
past date. Agent sessions waiting on you are a live state, sessions say whether
their code was checked after the last edit, and artifacts have a reading mode.
Before you upgrade
- One kb schema migration: V0046 adds a nullable
evidence_jsoncolumn to
sessions(kb schema 45 to 46). It backfills nothing and runs on boot; no
kb reindexis required to start. Captures indexed before the upgrade show the
session checks as "not extracted" until you runkb reindex <kb>on the
sessions corpus; new captures are filled at capture time. kb-code has no new
migration (its own schema epoch, V0046__finding_reanchor, is unchanged). - A daemon built before V0046 refuses to boot on an upgraded
index.db. Take a
kb backupbefore upgrading if you may roll back; see "Rolling back across
V0046" in docs/self-host.md. - To get the new live states in daemon mode, update the kb-memory plugin hooks:
the "blocked on you" state, the last-tool line and the file presence beat each
need hook changes (Claude Code only). Without them nothing breaks; those
features simply stay empty.KB_BEAT_PATHS=0andKB_BEAT_TOOLS=0opt out. - The reader's time machine reads the artifact's git history. A deployment whose
corpus has no.git(for example a container bind-mount without it) gets only
index-snapshot and working-tree versions. - All-corpora search now ranks by relevance across corpora. There is no measured
before-and-after on a real bench yet;kb bench run --federatedis the way to
measure it on your own corpora. - Four zstd advisories (RUSTSEC-2026-0391, -0398, -0403, -0410) are ignored in
deny.tomlwith a recorded reachability review: arrow and lance still need
zstd 0.13 and the patched line needs arrow 60. The exception is reviewed by
2027-01-31, or sooner when a lance release supports arrow 60 or newer. - The
[kb_daemon],[doclens]andcode_urlsettings are unchanged. For the
"verified" state of the Code chip, kb's origin must be in kb-code's
[doclens] origins. To let kb-code attribute edits made in a differently named
checkout directory (bind mounts), setprojects = ["<dir name>"]on its
[[repos]]entry. - GitHub Actions version bumps (#160) are not part of this release.
kb
- Since you left. The Front Page opens with a strip naming, per project, the
sessions that ran, the commits they recorded and the slate posts made since your
last visit.kb changes --since 2hanswers the same question in a terminal.
Nothing is marked read. - Since your last visit, per artifact. Open an artifact that changed since
you last visited and a one-line banner names the changed sections; click one to
jump to it, or View changes for the diff from the version you last saw. The
Library's Reading filter gains "changed since visit", andkb diff <doc> --since-visitgives agents the same answer. Agent reads (kb cat,get,
read) never count as your visit, and a browser open right afterkb readis
now its own visit. - The reader's time machine. Open any artifact as it stood at a date
(?at=): older body, captioned, with a then | now split and an "Open as of..."
control in the versions panel. Historical views are not counted as reads. - Reading mode. Press
rin the reader (or More > Reading mode) for kb's
reading style: a serif, narrow column in light or dark. Tick a corpus under
Settings > Preferences to open its artifacts that way by default. Pages that are
mostly media, or that carry<meta name="kb-reading" content="off">, are left
as authored. Memory artifacts and other unstyled pages now open in the same
voice from the daemon, with the fonts served by kb. - Blocked on you. An agent session waiting on a permission prompt or an MCP
question is a live state: the Sessions page lists it first under "Needs you",
the header chip reads "1 blocked", andkb sessions statusmarks the row. A
session.stateevent fires when a session becomes blocked or unblocked, so a
[webhooks]orkb eventsnotifier can alert you. The flag clears when the
approved tool finishes, at your next prompt or when the turn ends. codex, Kimi
and Grok have no equivalent hook and never show as blocked. - A quiet session names its last tool.
kb sessions statusand the Now band
show e.g.stalled? · last: Bash 38m, so a long build reads as work and not as
death. It is the tool name only, never arguments, and means started, not running. - Did the code get checked? Sessions carry a one-sentence verdict such as
"cargo test passed after the last edit" or "edited, no checks ran", read from a
fixed list of test, lint and build commands in the main transcript. It never
guesses: a result that cannot be attributed reads as outcome unknown. It shows
on the Worklog row, in the inspector's Checks section and inkb sessions list|show|resume. - The citation is the door. A cited code path in an artifact is a link that
opens kb-code at that file and line. A dashed underline is kb's unverified
guess; it turns solid once a checkout is chosen and kb-code has checked it. - A Code chip in the reader names where the nearest cited code lives and
opens it in kb-code, saying plainly when kb has only read the citation. - Cross-corpus search ranks by relevance. All-corpora search no longer lists
the alphabetically-first corpus's top hit first.kb bench run --federated
adds ascope=allcase; relevance labels may bekb:id. - Claude Code sessions report which files they edit (in memory only, relative
to the repo root) so kb-code can show them. - Phones. Library cards and Index rows no longer carry action buttons on
touch devices; open the artifact and use More for Download and Exclude. - Fixed in passing: an idle Claude session no longer flips back to "in progress"
a minute after it finishes.
kb-code
- Cited by on a file now also reads kb's live code references, so documents
that were never pinned are listed (marked "unpinned"), and the strip says when
kb could not be asked. With one citing document the top-bar chip opens that
document at the cited section. - Files glow as agents change them. A solid rail in the session's colour means
kb saw that session touch that exact file; a dotted rail means it is probably the
one active session; a plain rail means something changed it and we cannot say who.
Marks stay, dimmed, until you open the file (up to an hour). Home and the top bar
show "1 session working · 4 files in 10 min". Toggle: "presence" in the tree
header. Edits in linked worktrees are reported separately from the main checkout. - Home shows blocked sessions: "1 session blocked on you · kb · permission: Bash".
Fixes
- Stale ingest errors. An ingest error for a file that no longer exists now
closes itself: a file that vanishes during ingest counts as a delete, and the
reconcile pass dismisses open errors whose path is gone. - Made-up style tokens. The css-vars lint rejects an undeclared custom
property even when it has a fallback; every existing hit now uses a real token,
so a few spacing, radius and shadow values shift by a pixel or two.
API
GET /api/changes(kb): per-project sessions, commits and slate posts since a
time; alsokb changes.GET /api/kb/{kb}/artifacts/{id}/since-visit(kb): the changed sections since
your last web visit; the docs list accepts?read=changed.GET /api/kb/{kb}/docs/as-of?at=&ids=(kb): which version each of up to 100
artifacts stood at for an instant.GET /?at=<unix>on an artifact's own
origin serves that version's body.GET /_kb/reading.cssandGET /_kb/fonts/<name>.woff2(kb, on an artifact's
own origin): the reading-mode stylesheet and the fonts it uses.GET /api/sessions/live-touches(kb, kb-live-touches/1): recent file touches
per live session, scrubbed to repo-relative paths.POST /api/sessions/beatacceptsdetail.paths,root,project,tooland a
blocked/unblocked event;GET /api/sessions/live-statusacceptsblocked=1,
and its rows carryblocked,blocked_tooland the last started tool.- Sessions responses carry the checks verdict (
evidence);session.state
fires on a change of(state, blocked). - kb-code adds the read-only relays
GET /api/kb/presence(kbc-presence/1) and
GET /api/kb/blocked;GET /api/doc-refsclaims carrysource
(pinnedorkb-live) and the response carrieslive_lookup. - kb-code's Cited by now also calls kb's existing
GET /api/kb/{kb}/code-refs?by_target=<path>(unchanged since v0.38) as its
live lookup. kb changes,kb diff <doc> --since-visitandkb bench run --federated
are new CLI forms.
Dependencies
- Dependabot: the web and web-code minor and patch groups,
@playwright/test
1.64.1 in both e2e directories,refinery0.9 to 0.10,mermaid11 to 12 (the
katex override is dropped because mermaid 12 ships katex 0.18), and the cargo
minor and patch group of 20 updates (with a reviewed skip of the older
rand_core0.9 line). comrak0.52 to 0.56 with an explicitsyntect-onigbackend; highlighted code
output is unchanged.@vitejs/plugin-react6 in kb's web app, with
@babel/parsernow an explicit dev dependency of the annotate-bundle guard.- Security:
rustls-webpki,webpki-rootsanddompurifymove to patched
versions. Four zstd advisories remain with the audited exception above. - Dependabot no longer opens
@types/nodemajor bumps; the runtime is Node 22.
kb v0.50
kb v0.50 and kb-code v9.0 — "One Language"
kb and kb-code now share one interface language: the same 44px bar, labelled
control rows, state cards, icon set and generated themes.
Before you upgrade
- No migration (kb schema 45, kb-code epoch 46); no config key is required.
- After upgrading the
kbCLI, runkb reindexonce. Gallery excerpts now skip
skip-links, navigation and page headers, but existing rows keep their old
excerpt until they are reindexed. - A stored accent colour from earlier versions is ignored; the look is now
chosen by theme family in Settings. - Building from source now needs Rust 1.91 or newer. The declared minimum was
1.86, but the locked dependencies already required 1.91. - If you are upgrading from v0.48, also run the v0.49 step:
kb sessions rescrub, thenkb sessions rescrub --applyonce.
Fixes
- Duplicate artifact cards. If one batch of changes contained the same
artifact twice, the corpus could end up with two rows for it, and the Library
showed two cards. The daemon now keeps one row per artifact within a save and
logs a warning when it collapses a repeat. Its reconcile pass andkb reindex
remove duplicate rows already stored, and the Library never draws two cards
for the same artifact.
kb
- One 44px bar. The 52px header, 34px context line and 28px status bar
(114px of persistent chrome) are one bar. Daemon status is a single dot and
word in it; click it for the daemon name, counts, ingest rate, embedder state
and warnings. - Five labelled doors replace eleven icon tabs: Library, Search, Memory,
Worklog (sessions, slates) and Lists (lists, notes). - The Library says what it is showing. A labelled View as control picks
Front page, Shelf, Index, Atlas, Timeline or Canvas (the?view=URLs andg
chords are unchanged), with Arrange (sort, group) and Density beside it. - A Front Page band tops the unfiltered Library: lead story, features,
"On this day" briefs and a Continuing coverage column. It hides when you
filter, search or sort, and can be collapsed. - Calmer cards, a real Index. Cards show a serif title, a two-line excerpt,
two tags and one meta line. The Index view has sticky, sortable columns and a
Columns chooser that remembers your choice per kb. - Reader. The context bar keeps four actions and a More menu (anchor, copy
link, split, folio, fullscreen, bare, exclude from index). The rail's About
tab reads Explore, Passport, one Reading line, collapsed Topics. - Memory, Worklog, Search, Settings. Memory rows lead with the memory; the
worklog rows are title, outcome and one facts line; search says up front when
a kb has no embedding model; Settings is grouped under This daemon, Pipeline
and You. - Semantic zoom. Pinch (or Ctrl-wheel) over the Library steps Atlas, Index
and Shelf;-and=do it from the keyboard. Settings, Preferences has a
"pinch to change Library view" switch. - Chords teach themselves. A which-key overlay follows a chord prefix and
?opens a keyboard sheet built from the same registry that binds the keys. - Polish. The unfiltered Library has no header above the Front Page (the
count sits in the view bar, with Notes beside it); the Search page has one
search box and a caption when the kb has no embedding model; the Spine's status
word is the one status home on desktop (its popover has the per-daemon rows and
fleet metrics, and reads "warn" while there are open errors); category and
folder labels in the sidebar are readable; reader rail badges sit on their
icon and highlights no longer overshoot a scrolling table; Memory shows Health
only once something has been recalled; Lists, Notes and Settings share one page
frame. Solid accent surfaces (rail count badges, the phone reader's comment
count, error cards) are filled again, and paper, card and terminal surfaces use
their intended light and dark colours in every theme. - On a phone. A bottom tab bar (Library, Search, Memory, Lists, Capture), a
one-column Front Page band, 44px controls in the view bars, card actions as
three chips along each card's bottom edge on touch devices, and a reader strip
that keeps More visible on narrow phones. - 29 themes in 14 families, shared with kb-code, with
kb-classicas the
default.
kb-code
- Top bar doors: Code, Search, Review, Collections, plus Inbox and Settings.
The 12-item Explore menu is gone; its destinations are on the new
Collections page. - Settings page (
/~settings): appearance, keyboard, repositories, review
store, sibling. - The quiet reader. Breadcrumbs move into the top bar and the editor now
starts about 81px from the top at 1280x720 (was about 147px). The toolbar is a
labelled row of verbs with the rest under More. - The rail has five homes (Understand, History, Notes, Facts, Review) plus
All, down from nine tabs. Old tab ids and saved desk state still work. - Review diff toolbar: three labelled clusters, nine visible controls
(was eighteen). - Search page, Home and loading states. Search is one box and one labelled
row, with grammar on request and an honest zero-hit card. Home leads with where
you were and what needs you. Loading, empty and degraded states look the same
everywhere. - The two apps know each other. kb-code's omnibox has a Documents lane
fed by kb's search, kb's Cmd+K has a "Search code" row, and kb-code follows the
theme family set in kb until you pick one in kb-code (the picker says
"Following kb" or "Chosen here"). - Polish. The four doors appear on every page and link to the repo you are
in, else the last one you used; on desktop the right-hand Stripe is the only
rail switcher; the review diff title has its own row and the drafts tray no
longer covers the last lines; on desktop, when trails are enabled, the
trail chip names the state ("Trail off", "Recording", "Trail paused"); the Search page has no duplicate search field
in the top bar. - The pre-Desk reader (
?shell=legacy) is removed; the URL now opens the Desk.
API
GET /api/kbsentries carryembedding_model.PATCH /api/settingsaccepts, andGETreturns,theme_family.- kb-code adds
GET /api/kb/searchandGET /api/kb/ui, read-only relays to kb.
Dependencies
zipmoves from 2.4.2 (yanked upstream) to 9.0.3. No user-visible change.- Security:
katexis pinned to the patched 0.18.2 in kb's web app, and
source-map-jsmoves to 1.2.2 in both web apps. Both are build or rendering
dependencies; kb's own API does not change. The katex override is newer than
the range mermaid declares, and mermaid's math rendering is not covered by CI. - Minor and patch updates to the web apps' CodeMirror, TanStack, Vite and Vitest
packages.
kb v0.49
kb v0.49 — idempotent secret scrub
Before you upgrade
- No migration (kb schema 45, kb-code epoch 46).
- After upgrading the
kbCLI, runkb sessions rescrub(dry run) and then
kb sessions rescrub --applyonce: captures already re-scrubbed with v0.48
should report only the secrets v0.48 could miss (below); a following dry run
must report 0.
Fixes
- The scrubber is idempotent. The environment-variable rule matched the
scrubber's own[masked]marker, soKEY=[masked]was "redacted" again on
every pass andkb sessions rescrub(andkb doctor --hooks) reported
captures as affected forever; a second--applyrewrote identical bytes. A
value that is exactly a scrub marker is now skipped, and rescrub counts a lane
only when its bytes actually change.scrub(scrub(x)) == scrub(x)is pinned
by a property test over every rule. - A vetoed match no longer hides a secret. When a newline-tolerant labeled
match was vetoed (its value did not look like a credential), the scrubber
skipped past the whole span, so a real secret behind an inner label
(password:then"client_secret": "…"on the following lines) survived the
first pass. The scrubber now resumes right after a vetoed match. - A labeled environment variable such as
MY_PASSWORD=…now stays
[redacted:labeled-secret]instead of becoming[masked]on a later pass.
kb v0.48
kb v0.48 — sidecar-heavy omp sessions, bounded capture, wider secret scrub
Before you upgrade
- No migration in this release (kb schema 45, kb-code epoch 46 unchanged).
- The secret scrubber covers more shapes (below). Captures already on disk are
not rewritten automatically: after upgrading thekbCLI, run
kb sessions rescrub(dry run, prints per-lane counts) and then
kb sessions rescrub --apply. - The omp capture changes are in the hook scripts (live from the checkout or
plugin the extension loads); the scrub and capture changes are in thekb
binary — update both.
Fixes
- Segmented omp capture catches up sidecar-heavy sessions. Subagent
sidecars were all placed in the newest part because their first line (omp's
title slot) carries no timestamp; placement now reads the session header
(then the first message, then the slot's update time, then the file mtime).
Translated sidecars are cached per file and reused until the file changes, so
a pass cut off by its deadline keeps its work. While older parts wait, the
tail gets at most half a pass and a failed tail makes the next pass
frozen-first; a landing reserve keeps time for writing; the per-part landing
cap scales with the payload (20 s + 1 s per 8 MiB, at most 90 s). Measured
live: a 545 MB omp session with 435 subagents, previously never captured,
is now a complete 27-part chain and a turn costs seconds. kb sessions captureno longer holds every subagent sidecar in memory.
Each sidecar is streamed once (digest and scrub in one pass) and only the
head/tail windows the capture can keep are retained; output is byte-identical
to the previous release. Scrub CPU still scales with the total sidecar bytes.- Secret scrub coverage: labeled secrets, bearer tokens and shell
continuations split by a JSON-escaped (or double-escaped) newline are now
redacted when the value looks like a credential (it contains a digit,+or
=); a private key written with real newlines is redacted (bounded body,
never across transcript records). A purely alphabetic passphrase on the line
after its label is still not redacted. - Atlas place mode: a drop that lands before the screen redraws no longer
loses the placement.
Known issues
- The existing same-line labeled-secret rule also redacts a non-secret word of
8+ characters that follows a label on the next real line (over-redaction,
not a leak).
kb v0.47
kb v0.47 — segmented omp capture, kb-code finding anchors, sticky diff headers
Before you upgrade
- kb-code migration V0046 adds one nullable column
(review_findings.reanchor_json) and moves the kb-code schema epoch to 46.
It is additive and fast, but it is not a gated epoch, so no automatic
pre-migration snapshot is taken: back up the kb-code state first. After the
upgrade an older kb-code refuses the volume (refuse_if_volume_ahead);
rollback means restoring that backup. The kb daemon has no migration in this
release (schema stays 45). - Segmented omp capture is off by default. Turn it on for running omp
sessions without a restart by creating
${XDG_CONFIG_HOME:-~/.config}/kb/capture-segments(or start omp with
KB_CAPTURE_SEGMENTS=1;KB_CAPTURE_SEGMENTS=0forces it off). It needs a
kbCLI that haskb sessions segment-plan(v0.46) and
kb sessions drop-part(this release) on the PATH the hooks use.
New
- Segmented omp capture (behind the flag above). An omp session whose
translation outgrows the 16 MiB part target is captured as an ordered chain
of ordinary sessions (part 1 under the session id, parts 2+ under
<id>-pNN, read side from v0.46). Each pass lands the live tail first and
freezes up to four older parts, so a turn costs the tail only (synthetic
152 MiB session: 11.2 s per turn with the single capture, 1.0 s per turn
segmented after a one-time 10 s catch-up; peak RSS 427 -> 69 MiB). A part
counts as landed only when its write succeeded; a part whose translation
would exceed 40 MiB is re-planned smaller, never truncated;/clearor a
rewind behind a frozen part drops the superseded parts through
kb sessions drop-part, which verifies the file's embedded ids and never
touches anything else. kb-code review findings reanchor <review> <slug> --path P --lines A[-B]
andPOST /api/reviews/{id}/findings/{slug}/reanchor: move a finding's
anchor explicitly. Refused with 409 and a named reason unless the new anchor
resolves exactly; same admission as dispositions; emits
review.changed(finding.reanchored); records who, when and from where;
a later re-import never overwrites it.- kb-code review diff: the current file's header stays pinned under the
toolbar while you scroll a long file, so "viewed" is always one click away
(map open or closed).
Fixes
- kb-code findings no longer go orphaned after a re-import with corrected
lines. A finding's anchor is re-derived from its claimed location when the
location changed, the anchor is missing, or the stored anchor no longer
resolves (orphaned) or resolves only approximately to the claimed lines. An
anchor that still resolves to OTHER lines than the claim is kept and the
import reportsclaim_disagrees_with_anchor(with its confidence) instead
of silently trusting either side. Citations that cannot be anchored (path
absent, file too large or unreadable, line past the end) are reported per
finding inanchor_warnings[]and never stored as an empty anchor. Non-UTF-8
files are read with one lossy decoding on both the anchor and the resolve
path, long non-ASCII lines resolve correctly, and an orphaned finding now
says why (resolution.orphan_reason).
Known issues
- After a SIGKILL of a capture's owner, orphan cleanup is load-dependent
(about 2.4 s measured idle); a few constant-size reads in the omp capture
still run in command substitutions, so only an IO stall there could delay a
TERM. - With segmented capture on and a
kbolder than this release, superseded
parts cannot be dropped: the session re-runs its (cheap) pass on every
trigger and repeats a warning untilkbis upgraded.