github opensec-git/Pi-Bolt bolt-v1.4.0
Pi-Bolt 1.4.0

44 minutes ago

Pi-Bolt 1.4.0 is 1.3.2 with every bug a full review of Pi-Bolt found fixed, fixes for Pi 1.7.0 bugs that are
still open upstream, and a new engine. Pi is 1.7.0, as in 1.3.2. The engine changed, so the runtimes are new.

Changed

  • grep and find give the results ripgrep and fd give, and stop walking a folder tree once the limit is reached: a search
    with the default limit in a very large tree takes about a second instead of walking all of it. Within a tree of more than
    10,000 entries, results are in path order within each part of 10,000. find treats an all-lowercase pattern without case, as
    fd does. grep's glob applies to folders as well as files, ^$ finds empty lines in files with CRLF line endings, a file
    named on its own is searched even with NUL bytes, UTF-16 files with a byte-order mark are read, ripgrep-style classes such as
    [[:space:]] and \<word\> are understood, and forms JavaScript has no equivalent for are searched with ripgrep. Ignore files
    follow ripgrep and fd: the global gitignore in nested repositories and outside a repository, .ignore files in parent
    folders, and .ignore over .gitignore.
  • Tools that change files run in order within a message: bash, write and edit wait for the calls before them, and later
    calls wait for them; other calls still run at the same time. A read in the same message as a bash that creates the file
    sees it.
  • pi -p "prompt" with a stdin pipe reads stdin only if it sends something within PI_STDIN_TIMEOUT_MS (2 s by
    default; 0 waits for the end of input), and says on stderr when it did not read it.
  • Reasoning a provider removed is not sent again (#346): after the
    system prompt or the tools change, OpenAI, Azure, Copilot, Codex and Anthropic remove earlier reasoning and say so; Pi-Bolt
    leaves those items out of later requests, also after a resume, and the notice names each removal once.
  • A rollback stays: after pi-bolt update --rollback, automatic updates skip the release rolled back from and install
    only a newer one; pi-bolt update installs the latest and clears that.
  • The bash tool's full-output files are kept in a folder of their own per process (readable by you only) in the temporary
    folder, and each is capped at 256 MiB.
  • Long-running tools no longer stop the process when an update listener fails, and an unhandled rejection anywhere now
    reports a crash, keeps a crash record and stops tool processes in every mode, as an uncaught exception does.

Fixed

  • Sessions: forking a version 1 session file; a session file whose last line is not an entry, or whose entries form a
    cycle; an append that fails partway on a full disk; a dangling .jsonl link stopping --continue; a repeated entry id in the
    tree; and the HTML export of such files.
  • Compaction does not retry a failed automatic compaction before every turn, and the request is never limited to one token
    of output.
  • ACP, MCP and RPC: a cancel sent right after a prompt, or while a prompt waits, cancels it; a dialog the client stops
    waiting for no longer holds the session; two loads of one session open it once; an RPC line that is not a JSON object gets an
    error; abort and Esc work while a prompt is still being checked; settings errors are reported on start and after a reload.
  • Interactive: autocomplete keeps working after an extension's suggestions fail; deleting one of two markers of the same
    paste keeps the paste; a paste that never ends stops after a second without input, and Ctrl+C always arrives; a Kitty image
    under an overlay comes back when the overlay closes; a row cut to the terminal width no longer colours the next row; the
    fullscreen spinner moves while you scroll; a dialog over an extension's overlay no longer draws the whole transcript.
  • --tools restrictions stay when an extension registers a tool later. An image whose type does not match its bytes is
    read by its bytes.
  • pi -p exits after the run when an MCP server's child keeps its output open.
  • Providers: Gemini thought signatures are kept when replayed (also through OpenAI-compatible endpoints); an Anthropic
    response that only sends pings times out; more temporary errors are retried and more context-overflow errors recognised, and a
    rate limit no longer starts a compaction; Codex keeps its continuation when the output limit changes and when tool arguments
    were streamed with other spacing, and resends once without compression when the service rejects a compressed request;
    Bedrock retries "Too many tokens"; Copilot shows models the account gains.
  • Engine: fetch() with a slice of a Blob made of Blobs sends the slice; many workers under an address-space limit no
    longer stop the process; import * as ns of a built-in module in a module loaded later is a module namespace.
  • Installer and updates: pi-bolt doctor recognises the Linux x86-64 command and installations outside ~/.pi-bolt, which
    now update automatically; uninstalling stops the remote control service; an interrupted install leaves nothing behind; a full
    disk is reported as one; a stalled download times out; PIBOLT_BIN_DIR with a trailing slash or a relative path; two first
    runs of the npm launcher at once.
  • The service: its control socket is placed in a folder of your own when the agent directory's path is long.
  • Windows: commands longer than about 8,000 characters run whole in Git Bash.
  • More: HTML export keeps the $ of costs; WSL is recognised without its environment variables; the /tree summary keeps
    the prompt you go back to; codemode keeps a bounded list of nested calls; /reload reports settings errors; cache warming
    after /reload uses the reloaded extension; a large edited file is not kept in memory after the edit.

Measured on macOS on Apple silicon (an M5), 1.3.1 / 1.3.2 / 1.4.0, medians of 12 runs, builds interleaved:

Instructions CPU Peak memory
pi --version 56 / 56 / 56 M 5 / 5 / 5 ms 6 / 6 / 6 MB
pi -p (5 model turns), blank home 168 / 168 / 169 M 16 / 16 / 16 ms 19 / 19 / 19 MB
pi -p, typical home 187 / 187 / 188 M 17 / 17 / 18 ms 20 / 20 / 20 MB
pi -p, typical home with opensec-pi-subagents and opensec-pi-todo 560 / 560 / 561 M 49 / 49 / 49 ms 35 / 35 / 36 MB
Interactive, 5 prompts 627 / 629 / 629 M 108 / 109 / 108 ms 31 / 31 / 31 MB
60,000-character answer, per frame (6 runs) 1.36 / 1.35 / 1.35 M
Resuming a 2,292-entry session (pi -c, fullscreen), until the first frame (6 runs) 422 / 422 / 428 M 29 / 30 / 31 MB
grep function in a 51,715-file tree (pi -p) 2,890 / 2,890 / 690 M 495 / 498 / 105 ms
20 codemode scripts at once (PI_CODEMODE_MAX_WORKERS=51) stops / 250,690 / 250,718 M stops / 54,453 / 55,223 ms stops / 139 / 139 MB
4 codemode scripts at once 50,088 / 50,086 / 50,086 M 4,313 / 4,276 / 4,280 ms 39 / 39 / 39 MB

Measured on Linux x86-64 (an AMD EPYC 9355P, shared with other work), 1.3.1 / 1.3.2 / 1.4.0, medians of 12 runs, builds
interleaved:

CPU Peak memory
pi --version 4 / 4 / 4 ms 2 / 2 / 2 MB
pi -p (5 model turns), blank home 22 / 22 / 22 ms 15 / 15 / 15 MB
pi -p, typical home 24 / 23 / 23 ms 16 / 16 / 15 MB
pi -p, typical home with opensec-pi-subagents and opensec-pi-todo 60 / 60 / 60 ms 28 / 28 / 29 MB
Interactive, 5 prompts 71 / 71 / 71 ms 23 / 23 / 24 MB
60,000-character answer, per frame (6 runs) 0.40 / 0.40 / 0.40 ms
Resuming a 2,292-entry session (pi -c, fullscreen), until the first frame (6 runs) 45 / 45 / 45 ms 26 / 26 / 26 MB
grep function in a 51,728-file tree (pi -p) 152 / 152 / 46 ms
20 codemode scripts at once (PI_CODEMODE_MAX_WORKERS=51) stops / 156,493 / 156,091 ms stops / 118 / 113 MB
4 codemode scripts at once 10,945 / 10,975 / 10,910 ms 32 / 32 / 33 MB

Peak memory is the physical footprint (macOS) or the private memory (Linux); for resuming, the footprint once drawing settles.
The three versions were measured together on the same day, so the absolute figures can differ from earlier notes. The grep rows
search a tree of about 51,700 files with the default limit; 1.4.0 stops walking once the limit is reached (elapsed time: 100 / 101
/ 34 ms on macOS, 79 / 80 / 28 ms on Linux). find in the same tree is within 3% of 1.3.2 for the same results; with a
lowercase pattern 1.4.0 returns more, as fd does. With 20 codemode scripts at once, 1.3.1 stops in every run. Against 1.3.2,
startup on Linux takes about 2% more CPU (0.4 ms); no other row is slower beyond noise. Raw results and the scripts:
bench/results/2026-11-28-1.4.0.

Runtimes

Built by the runtime workflow (run 46127404240), run from
pi-bolt on ffc37da1f of release/1.4.0 (runtime stamp 710691eb0ea6cd84; the tag's commit has the same engine), each on its
platform's runner, tested there (tests/aot, tests/runtime) and attested; the release workflow checked those attestations and
packed the runtimes into the archives below, which it attests in turn: gh attestation verify <file> -R opensec-git/Pi-Bolt.

Runtime SHA-256
pi-bolt-runtime-linux-x64.tar.gz c79e77c95ff850b0b9d2d389d225ba69870237e75006ecc26f1bb5d589e6ffd2
pi-bolt-runtime-linux-x64-musl.tar.gz d68792dd5e250c10c7c4c74c1a4358d071f2e0ddc543d9ac2b68cd852566fb3d
pi-bolt-runtime-linux-arm64.tar.gz abb7d73ebb6e0982f437d52226238d27699bdd486294e0d8277cb2fb316fa0cb
pi-bolt-runtime-darwin-arm64.tar.gz d1995f2479bff0b15538ecb107ff946d4e70bfdfed73f08706bb37624dc35fc4
pi-bolt-runtime-win32-x64.zip 2a15e1f7c06d832d757cb7a9c4a4496423feeaece888004d405cd0087d58c901

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, or:

  • Homebrew (macOS on Apple silicon, Linux): brew install opensec-git/tap/pi-bolt
  • Scoop (Windows): scoop bucket add opensec-git https://github.com/opensec-git/scoop-bucket, then scoop install opensec-git/pi-bolt
  • mise: github:opensec-git/Pi-Bolt with the options in the installation guide

The installer checks the release signature with OpenSSL 3, ssh-keygen (OpenSSH 8.1 or later), or an installed Pi-Bolt.
Every archive also has a GitHub build attestation: gh attestation verify <file> -R opensec-git/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-x64-musl.tar.xz / .tar.gz Alpine Linux and other musl systems on x86-64 (AVX2). Needs libstdc++.
pi-bolt-linux-x64-musl-baseline.tar.xz / .tar.gz musl on any x86-64 CPU with SSE4.2.
pi-bolt-linux-x64-musl-jit.tar.xz / .tar.gz musl, JIT also on.
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-x64-musl.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-x64-musl.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.
install.sh, install.ps1 The installers, listed in the signed SHA256SUMS: pi-bolt update runs them only after checking them.

Linux x86-64 or ARM64 with glibc 2.17 or later; Alpine and other musl Linux on x86-64; 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.