github opensec-git/Pi-Bolt bolt-v0.9.2
Pi-Bolt 0.9.2

latest releases: bolt-v1.4.0, bolt-v1.3.2, bolt-v1.3.1...
one month ago

Pi-Bolt 0.9.2 makes streaming cheaper and memory smaller: a long answer, a large file written through a tool call, and the
frames in between take less CPU, and on Linux the startup peak is up to 30% lower. What Pi draws and does is unchanged.
Everything else is 0.9.1.

Measured on GitHub's runners (one CPU, against 0.9.1's release builds; x86-64 / ARM64):

0.9.1 0.9.2 Pi on stock Bun
Streaming a 60,000-character answer, CPU s 4.53 / 4.73 3.06 / 3.16 3.17 / 3.31
A 400 KB file written through a tool call, CPU s 3.54 / 3.71 2.79 / 2.61 3.01 / 2.75
The same in tmux (write:50), Pi / tmux CPU s 2.94 / 0.47, 2.93 / 0.33 1.43 / 0.29, 1.16 / 0.24 1.82 / 0.29, 1.49 / 0.24
Startup peak memory, MB 64 / 42 45 / 41 51 / 57
Headless prompt peak memory, MB 123 / 109 112 / 108 119 / 122

Streaming

  • A long answer: a chunk's frame no longer costs time in proportion to the length of the message. The Markdown of the blocks
    that did not change is kept, and the TUI no longer compares the whole message with the previous frame line by line.
  • A large tool call: a chunk of a tool call's arguments draws a frame only when the arguments shown change. A 400 KB file used
    to draw thousands of identical frames.
  • Every frame: the input area (editor, status, footer) is drawn once a frame instead of twice, and the spinner's line once per
    spinner frame.

Memory on Linux

Where transparent huge pages are always (the default on many distributions), the part of the prebuilt heap's region that is
used sparsely took a 2 MB page for every page touched: about 11 MB more at startup. It now takes small pages. Where they are
madvise, nothing changes.

Fixes

  • Ahead-of-time compiling: a function whose constants add up to a number that happens to be an address in the compiling
    process (on macOS, in the system libraries' shared region) is compiled, no longer refused. A build of Pi, or pi-bolt compile, could fail on it on some machines.
  • Editor: a wide character in an editor 1 column wide no longer overflows the stack.

Engine

All four runtimes are new, built by the runtime workflow on GitHub's runners (run 38823518186): the memory change and the
compiler fix above. From the engine trees that patches/webkit.patch and patches/bun.patch make on the pinned sources
(git rev-parse HEAD^{tree}): WebKit bd2908c52d34f79f25f2656ef559b758071ad5f4, Bun f2b730c9597b4ecf76dc699975eac84aa16952b2.

Runtime Built on bun.exe / bun SHA-256
Linux x86-64 GitHub's ubuntu-24.04 runner, glibc 2.17 sysroot 88ce527d6aa610d9d3eba49ca881c54ffb097917dd2ec067694bd770340128a8
Linux ARM64 GitHub's ubuntu-24.04-arm runner, glibc 2.17 sysroot 0788f901dbfe97da885eaf9b6ff6e393437ee8fdba25e1b04ff1d11ba3f7d579
macOS arm64 GitHub's macos-15 runner 6a1e3af8736097c9d55357f1149ffeb6aa9f71bf50bead2ccacb892ee675a7fa
Windows x64 GitHub's windows-2025 runner 6b9f27b302c8772303476ac7f01bcbdeb46b7ccb70e05da82210468568617ad0

Install

curl -fsSL https://pi-bolt.opensec.in/install.sh | sh
irm https://pi-bolt.opensec.in/install.ps1 | iex
powershell -c "irm https://pi-bolt.opensec.in/install.ps1 | iex"

or pi-bolt update, or npm install -g --allow-scripts=pi-bolt pi-bolt, or bun add -g --trust pi-bolt.

Asset For
pi-bolt-linux-x64.tar.xz / .tar.gz Recommended on Linux x86-64. CPUs with AVX2 (Intel Haswell 2013+, AMD Zen+).
pi-bolt-linux-x64-baseline.tar.xz / .tar.gz Any x86-64 CPU with SSE4.2.
pi-bolt-linux-x64-jit.tar.xz / .tar.gz JIT also on, for plugins loaded at run time.
pi-bolt-linux-arm64.tar.xz / .tar.gz Linux on ARM64, any 64-bit ARM CPU; Android in Termux, with the installer.
pi-bolt-linux-arm64-jit.tar.xz / .tar.gz Linux on ARM64, JIT also on.
pi-bolt-darwin-arm64.tar.xz / .tar.gz macOS. Macs with Apple silicon, macOS 13 or later.
pi-bolt-darwin-arm64-jit.tar.xz / .tar.gz macOS, JIT also on.
pi-bolt-win32-x64.zip Windows. Windows 10 (1809) or 11 on x64; compiled code on AVX2 CPUs, bytecode on others.
pi-bolt-win32-x64-jit.zip Windows, JIT also on.
pi-bolt-runtime-linux-x64.tar.gz, pi-bolt-runtime-linux-arm64.tar.gz, pi-bolt-runtime-darwin-arm64.tar.gz, pi-bolt-runtime-win32-x64.zip The Pi-Bolt Bun runtime, for compiling plugins in.
pi-bolt-kit-linux-x64.tar.gz, pi-bolt-kit-linux-arm64.tar.gz, pi-bolt-kit-darwin-arm64.tar.gz What pi-bolt compile builds with, besides the runtime.

Linux x86-64 or ARM64 with glibc 2.17 or later; Android 7 or later on 64-bit ARM, in Termux; macOS 13 or later on Apple silicon;
Windows 10 1809 or later, or Windows 11, on x64.

Don't miss a new Pi-Bolt release

NewReleases is sending notifications on new releases.