Skip to content

Releases

kb v0.55

Choose a tag to compare

@github-actions github-actions released this 04 Dec 22:47
8832222

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] federated is a bool, default false. The corpus
    named by [terminal.files] kb used to join scope=all search and the
    /api/context pack 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=one on the kb is unchanged, and the skip
    is never a degraded[] entry. Set federated = true to 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=1 clears 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.
  • GET /api/identity gains one additive field, terminal (#484). It
    carries enabled and, when a files corpus is configured, files with the
    corpus kb name and the federated flag. 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-memory plugin 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-only fs_recent op, and
    kb-termd --ops). Suggested order: redeploy the daemon, re-run the kb-term
    installer and systemctl --user restart kb-termd.service (restart kb-termd
    only, never the kb-term@* holder units; open terminals survive), then update
    the host kb CLI 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
      501 terminal-runner-too-old). Nothing else on the tab breaks.
    • The term-runner row of kb doctor --hooks also needs the new runner to
      list its ops; with an older one it reports a WARN with a fix.
  • 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-cli and kb-lip are
    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 type END. 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_modules and target are
    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 existing GET /api/terms/{id}/ls route 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.txt or note-<date>.txt by 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
      additive conv_q (and conv_q_in=prompt) on ?fields=conversation: at most
      100 matches are listed, total_matches counts all, excerpts are at most 160
      characters, an absent or too-short query leaves the response unchanged, and
      nothing is stored.
  • 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...
Read more

kb v0.54

Choose a tag to compare

@github-actions github-actions released this 03 Dec 20:05
33f4526

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/identity gains one additive field,
    state_instance.
  • One hook behaviour change (#306). After you update the plugin checkout,
    kb-memory recall 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=0 and KB_RECALL_SKIP_TRIVIAL=0. Context-aware recall
    stays off unless KB_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 card stats lane show the corrected totals at once. The stored
    per-session token_total used by list rows and rollups keeps its old value
    until that session is captured again or you run kb 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 the kb-memory plugin 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 the kb-term installer and
    systemctl --user restart kb-termd.service (restart kb-termd only, never
    the kb-term@* holder units; open terminals survive), then update the host
    kb CLI 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 501 urn: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).
  • Opt-in host steps are in "Host steps for the web terminal 2 features" in
    docs/kb-term-install.md. None changes a default:
    1. 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).
    2. Live capture. Set KB_CAPTURE_LIVE=1 in the harness environment
      (optionally KB_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).
    3. Status chips. For Claude Code, wrap the user settings'
      statusLine.command with kb-status-tee.sh. For omp, fast-forward the
      plugin checkout and restart omp (#387).
    4. Extra browse roots (optional): [terminal.files] browse_roots, empty
      by default (#443).
  • PATH drop-in order (#366). The installer's kb-termd PATH drop-in now
    lists the kb and 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 doctor warns 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. /terminals lists 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/:id and 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>.
  • Terminal limit (#391, #439). A launch over [terminal] max_terms is
    refused with 429 terminal-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
    [ ] n N do 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 example 201x48 · 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...
Read more

kb v0.53

Choose a tag to compare

@github-actions github-actions released this 18 Nov 09:29
8e3bdf5

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, run kb backup first; 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.
  • --transplant writes a native session file instead, which the target
    resumes with claude -r or omp -r. It never overwrites an existing file,
    and --dry-run writes nothing. --launch starts the target harness in the
    session's directory; --print writes 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 until kb reindex re-parses them.
  • Daemon: GET /api/sessions/{id}/handoff returns 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:
    1. 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.
    2. Drop the kimi binary directory from the kb-termd PATH drop-in if you
      added it, then systemctl --user restart kb-termd.service.
    3. KB_HOOK_FMT=kimi is no longer recognised; an unknown value falls back to
      the default JSON envelope.

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-termd and
    kb-tap print the release version (they printed 0.0.0); a local build says
    0.0.0-dev. kb-term doctor shows 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 kill reaps a stale entry only when tmux answers that no server
      is running; any other error keeps the files.
    • docs/http-api.md now documents that a REST kill of a stale id returns
      200 with stale_removed: true (the behaviour since v0.52.1).
    • The installer warns about a PATH directory containing :.
    • A poisoned viewer-slot lock no longer reads as "no viewers".
  • Supply chain (#313). RustSec published an "unmaintained" notice for
    chrono (RUSTSEC-2026-0543) with no successor release. kb accepts it with an
    audited exception in deny.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

  1. Re-run scripts/install-kb-term.sh from this release, then restart
    kb-termd only (systemctl --user restart kb-termd.service). Do not restart
    the kb-term@* holder units: that ends every live session.
  2. kb-term --version should print 0.53, and kb-term doctor shows the tap
    at the same version.
  3. Update the kb daemon image to this release for the relay changes and V0048.

Known limits still open

  • --graphics is not wired in kb-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 start beat 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

Choose a tag to compare

@github-actions github-actions released this 17 Nov 01:41
8218c72

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 no kb backup first.
  • 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

  1. Re-run scripts/install-kb-term.sh from this release. It replaces
    kb-termd, kb-term, kb-tap and the unit files, and now also prints (never
    writes) the runner environment drop-in, pre-filled from your shell.
  2. Restart kb-termd only (systemctl --user restart kb-termd.service). Do not
    restart the kb-term@* holder units: that ends every live session.
  3. Give the runner its environment if you have not (docs/kb-term-install.md,
    "Give the runner its environment"): a kb-termd.service.d/env.conf drop-in
    with a PATH that holds the directory of kb and 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.
  4. Run systemctl --user enable kb-termd.service. This now works: the unit has an
    [Install] section (it had none, so enable failed and kb-termd did not
    start after a reboot). Already-running sessions are unaffected.
  5. Run kb-term doctor. It now reads the running runner's environment and
    checks that kb-termd is enabled.
  6. 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, so kb-term ls and the SPA see the real
    columns and rows.
  • kb-termd starts on boot (#299, FXHOST). The unit has [Install]
    WantedBy=default.target; systemctl --user enable works.
  • kb-term doctor checks the runner's environment (#299, FXHOST; refined in
    #304).
    It reads the environment of the running kb-termd: a missing
    KB_SESSIONS_DIR is a FAIL; kb or a harness not on the runner's PATH
    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 /proc scan 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 from kb-term ls. It refuses a malformed
    id or a symlinked entry and removes nothing in that case. It is a kb-term
    verb, not a kb verb.
  • Installer drop-in (#304, FXTERMCLI). The printed drop-in now includes the
    directory kb resolves 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 409 terminal-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 name ws-...
    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-term and the tap.
  • Doctor pins (#298). kb-term doctor's xterm_pins check 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/terms route 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 later done. 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.
  • --graphics is not wired in kb-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 start beat 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

Choose a tag to compare

@github-actions github-actions released this 16 Nov 14:49
fae028a

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 = true to kb.toml. The keys are enabled, runner_socket
    (default /run/kb-term/runner/runner.sock), ticket_ttl_secs (default 30,
    1 to 120), refuse_token_callers (default true) and runner_timeout_secs
    (default 5, 1 to 60); see docs/configuration.md. Terminal routes need an exact
    browser Origin and 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 client kb-term, the compiled tap and a pinned private
    tmux 3.7c. scripts/install-kb-term.sh installs them from the new
    kb-term-<ver>-x86_64-unknown-linux-gnu.tar.gz release archive (Linux x86_64,
    glibc 2.39 or newer, a systemd user manager). The installer verifies the
    checksum and, with gh signed in, the build provenance. Full steps and
    rollback: docs/kb-term-install.md.
  • Three operator steps, in order: (1) one sudo line installs the tmpfiles
    file so /run/kb-term exists with a stable inode; (2) start kb-termd;
    (3) add the bind mount /run/kb-term/runner:/run/kb-term/runner to the kb
    container (only that directory; the per-session holder sockets never go in).
    kb-termd must 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, then kb-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 a kb backup first 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, --apply writes, 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-termd starts a private tmux
    per session and serves runner.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 and kb-term doctor check the setup (#222, #219,
    #220, #226, #227, #229, #230, #232, #236, #237, #240, #233).
  • The WebSocket relay (T12, T11). /api/terms and the terminal WebSocket sit
    behind [terminal] enabled, with the gate in the handler and term.* 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 for kb-term attach landed with T24 (#285), but see "Known
    limits".
  • Local mirror (T16). kb-term attach|new|ls|doctor mirrors 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.sh installs 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 read KB_SESSION_ID, and kb doctor names 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}/card is one read
    model with paged children and kb sessions card; resume targets the root
    session (#231).
  • The /sessions/:sid page (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/work groups 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 in deny.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-out kb write that says it
    may have landed (#210), kb daemon proving "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.
  • --graphics is not wired. T24 shipped its core only: kb-term attach --graphics is 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] enabled and the handler gate: the /api/terms family
    (list, launch, kill, read, history, paste, enter, k...
Read more

kb v0.51

Choose a tag to compare

@github-actions github-actions released this 01 Nov 15:16
5613b8f

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_json column to
    sessions (kb schema 45 to 46). It backfills nothing and runs on boot; no
    kb reindex is required to start. Captures indexed before the upgrade show the
    session checks as "not extracted" until you run kb 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 backup before 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=0 and KB_BEAT_TOOLS=0 opt 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 --federated is the way to
    measure it on your own corpora.
  • Four zstd advisories (RUSTSEC-2026-0391, -0398, -0403, -0410) are ignored in
    deny.toml with 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] and code_url settings 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), set projects = ["<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 2h answers 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", and kb diff <doc> --since-visit gives agents the same answer. Agent reads (kb cat, get,
    read) never count as your visit, and a browser open right after kb read is
    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 r in 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", and kb sessions status marks the row. A
    session.state event fires when a session becomes blocked or unblocked, so a
    [webhooks] or kb events notifier 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 status and 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 in kb 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 a scope=all case; relevance labels may be kb: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; also kb 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.css and GET /_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/beat accepts detail.paths, root, project, tool and a
    blocked/unblocked event; GET /api/sessions/live-status accepts blocked=1,
    and its rows carry blocked, blocked_tool and 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-refs claims carry source
    (pinned or kb-live) and the response carries live_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-visit and kb 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, refinery 0.9 to 0.10, mermaid 11 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_core 0.9 line).
  • comrak 0.52 to 0.56 with an explicit syntect-onig backend; highlighted code
    output is unchanged. @vitejs/plugin-react 6 in kb's web app, with
    @babel/parser now an explicit dev dependency of the annotate-bundle guard.
  • Security: rustls-webpki, webpki-roots and dompurify move to patched
    versions. Four zstd advisories remain with the audited exception above.
  • Dependabot no longer opens @types/node major bumps; the runtime is Node 22.

kb v0.50

Choose a tag to compare

@github-actions github-actions released this 16 Oct 23:04
8cd32e8

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 kb CLI, run kb reindex once. 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, then kb sessions rescrub --apply once.

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 and kb 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 and g
    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-classic as 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/kbs entries carry embedding_model.
  • PATCH /api/settings accepts, and GET returns, theme_family.
  • kb-code adds GET /api/kb/search and GET /api/kb/ui, read-only relays to kb.

Dependencies

  • zip moves from 2.4.2 (yanked upstream) to 9.0.3. No user-visible change.
  • Security: katex is pinned to the patched 0.18.2 in kb's web app, and
    source-map-js moves 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

Choose a tag to compare

@github-actions github-actions released this 08 Oct 13:38

kb v0.49 — idempotent secret scrub

Before you upgrade

  • No migration (kb schema 45, kb-code epoch 46).
  • After upgrading the kb CLI, run kb sessions rescrub (dry run) and then
    kb sessions rescrub --apply once: 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, so KEY=[masked] was "redacted" again on
    every pass and kb sessions rescrub (and kb doctor --hooks) reported
    captures as affected forever; a second --apply rewrote 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

Choose a tag to compare

@github-actions github-actions released this 07 Oct 12:20

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 the kb CLI, 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 the kb
    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 capture no 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

Choose a tag to compare

@github-actions github-actions released this 06 Oct 18:07

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=0 forces it off). It needs a
    kb CLI that has kb 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; /clear or 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]
    and POST /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 reports claim_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 in anchor_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 kb older than this release, superseded
    parts cannot be dropped: the session re-runs its (cheap) pass on every
    trigger and repeats a warning until kb is upgraded.