r/PiCodingAgent • u/opensecai • Oct 05 '26
News Introducing Pi-Bolt ⚡,the same Pi you all ❤️ with 35× faster large file writes, 2.4× less CPU, 3.3× less memory
https://github.com/opensec-git/Pi-BoltHey everyone 👋
We've been working on this for a while and it's finally out. Pi-Bolt is Pi 1.0.3 compiled ahead of time to native code (AOT, no JIT).
Same Pi you already use, and it works with all your Pi plugins. It's just faster and lighter. ⚡
Benchmarks
Linux x86-64 (Benchmarked on AMD EPYC 7B13)
| Benchmark | Pi-Bolt | Bun 1.4.2 | Node 22 | Node 24 |
|---|---|---|---|---|
| Writing a 200 KB file through a tool call | 0.8 s | 27.8 s | 44.3 s | 33.6 s |
| CPU, streaming a 60k-char answer | 3.8 s | 43.1 s | 43.7 s | 40.3 s |
| CPU per tool turn, real hosted model | 0.20 s | 0.49 s | 0.77 s | 0.76 s |
| Memory of a session in tmux | 27 MB | 89 MB | 132 MB | 209 MB |
| CPU, interactive session (5 prompts) | 303 ms | 844 ms | 1,242 ms | 1,233 ms |
| Ready to type | 45 ms | 128 ms | 303 ms | 307 ms |
macOS on Apple silicon (Benchmarked on M5 MacBook Air)
| Benchmark | Pi-Bolt | Bun 1.4.2 | Node 26 |
|---|---|---|---|
| Writing a 200 KB file through a tool call | 0.3 s | 12.0 s | 14.2 s |
| CPU, streaming a 60k-char answer | 6.9 s | 25.3 s | 24.0 s |
| Memory of a session in tmux | 31 MB | 85 MB | 161 MB |
| Memory after a 4.2M-token session | 64 MB | 95 MB | 1,890 MB |
| CPU, interactive session (5 prompts) | 126 ms | 363 ms | 544 ms |
| Ready to type | 31 ms | 63 ms | 193 ms |
The full method and raw benchmark data are in the repo.
What we changed
- Native code instead of a JIT. Pi is compiled to machine code ahead of time and starts from a prebuilt snapshot, so there's no warm-up and much less work at runtime. The compiler builds on Jarred Sumner's in-progress AOT work for Bun (oven-sh/WebKit#743), which we brought to x86-64 and macOS.
- No more slowdown on long outputs. Stock Pi redoes more and more work as an answer or file grows. Pi-Bolt only processes what's new, and that's where most of the 35× comes from.
Try it 🔥
curl -fsSL https://pi-bolt.opensec.in/install.sh | sh
Works on Linux x86-64 and Apple silicon. Windows support is coming soon, along with Linux ARM64.
Bonus plugins: the installer also offers subagents and a live todo list, two things people often miss in stock Pi. Both come prebuilt, so they load instantly.
Note: It will not modify your existing Pi Coding Agent Installation, So Feel Free to try it out !
Using plugins? They all work as-is. If you rely on heavy ones, use the -jit build of Pi-Bolt, or compile them into your own Pi-Bolt binary so they run as native code too (plugin guide).
🔗 Links
- Website: https://pi-bolt.opensec.in
- GitHub: https://github.com/opensec-git/Pi-Bolt
It's MIT licensed. If Pi-Bolt saves you some CPU and RAM, a ⭐ on the repo really helps us out.
Throw your heaviest sessions at it and tell us what breaks. We'll be in the comments ❤️
43
u/AdCurious4788 Oct 05 '26
Did you considered raising a PR in Pi to solve this issue or just made a fork on your own?
8
u/AlessandroPiccione Oct 05 '26
What does this mean?
It seems to suggest that Pi 1.0.3 (is it Bun, Node 22 or Node 24?), takes 27, 44 or 33 seconds to write a file of 200KB ?
19
u/ConsiderationLate768 Oct 05 '26
Second time they posted this, gonna post again what I said on their previous one that got banned
Am I reading correctly that you're patching the bun runtime..? Wtf, completely unmaintainable. Why not look at what makes PI actually "slow" (it's not at all) instead of resorting to runtime hacks.
/opensec-git/Pi-Bolt/blob/pi-bolt/patches/bun/0010-macOS-a-static-heap-is-built-and-used-with-the-execu.patch
Do you even know what this is doing at all? Who knows what kind of security flaws this introduced. Vibecoded C++ slop, big nope from me
6
u/CevicheMixto Oct 05 '26
What the heck are y'all doing with Pi that you would notice the difference?
5
u/zebedeolo Oct 05 '26
i'll have to check this out. what are your long-term plans for mantaining it?
8
u/kjesks Oct 05 '26
Too good to be true?
2
u/Megamygdala Oct 09 '26
Not sure i understand the benchmarks? How was it recorded? How is a single file write ever taking 28 seconds?
1
u/either-15-or-40 Oct 05 '26
Does it improve startup times?
1
u/peculiar-ragdoll Oct 05 '26
Really cool! Good job :)
2
u/giovanikx 27d ago
Awesome! There was another similar project in Go, but they focused too much on cool (but useless) visual stuff so I was waiting for a better option! Thank you!
1
u/icarus0228 Oct 06 '26
Already using it. So far, it seems fine. These kinds of versions of the original tool are what interest me the most, especially those leaning toward micro-optimizations.
1
u/Ang_Drew Oct 06 '26
wow this is so cool but it took tons of effort to maintain.
asked my agent briefly what you does here; patching webkit and bun, that's so much work to be done, but it is doable because of AI. i dont think this is good approaches but idk i have little experience on this kind of stuff.. will study your case and see if i can learn useful lessons 👍
1
u/TomHale Oct 06 '26
The config is byte compatible, right?
And you use the same test suite?
1
u/Gonjanaenae319 Oct 06 '26
What was the your eval system for this? Purely time to completion?
1
u/HyperWinX Oct 10 '26 edited Oct 10 '26
The project is absolutely impossible to build locally. I havent seen such a horrendous build process in a while.
prepare-pi.sh attempts to reach for all of the model providers in existence, keeps failing. After finding out that there is offline build mode, it kinda runs, but immediately fails because model catalog is empty. After slopping it together it still complains about amazon-bedrock.json not existing. This is absolutely impossible to work with, as expected from vibeslopped project
OP, do it, downvote me once again, like a little bitch you are, your slop is just pure slop
1
u/Lower-Philosophy-604 Oct 05 '26
Great stuff
0
u/swamprg Oct 05 '26
What are the plans to port it to other architectures?
0
u/IronKarmic Oct 05 '26
Do you recommend the Linux build for WSL?
0
u/meintabhikuchkhasnhi Oct 05 '26
crazy
0
u/Equivalent-Shock-142 Oct 05 '26
What?😱
0
u/Competitive-Yak-8255 Oct 06 '26
Nice
0
u/caraxeskalund Oct 06 '26
tbh, it's really great!!
0
u/abnormity54 Oct 07 '26
Too many emotes bruh
-1
u/heisenberg_cookss Oct 05 '26
w
-1
u/HyperWinX Oct 10 '26
The project is absolutely impossible to build locally. I havent seen such a horrendous build process in a while.
prepare-pi.sh attempts to reach for all of the model providers in existence, keeps failing. After finding out that there is offline build mode, it kinda runs, but immediately fails because model catalog is empty. After slopping it together it still complains about amazon-bedrock.json not existing. This is absolutely impossible to work with, as expected from vibeslopped project