Loading video...
Video Failed to Load
Introducing Pi in Rust Me and claude ported the entire pi coding agent to pure rust. Less than 90mb memory usage and much faster startup. Still in the working, but all my custom and installed extensions is working!! Give it a try and follow a long. (plus a little star)
31,341 views • 19 days ago •via X (Twitter)
35 Comments

From one Pi port to the next, nice work! Gonna check this out for sure, if you want I made a pi harness benchmarking repo if you want try it - Also I still wish someone named their pi to rust port Rip haha

rip 😂

You mean like Oh MY Pi or the other rust ports of pi?

What is the issue? just having fun lol

No issue :) I was just pointing out there are a bunch of these ports

There def is!

@eas4ai

@eas4ai 😂

ok that's sick

I was waiting for someone to do it! Thanks!

How does it compare to alternatives like @doodlestein's

Do you (/Claude) plan to actually maintain this?

Yes

90mb?? rust doing rust things

How are the TypeScript extensions running in the Rust port: an embedded JS engine or a separate process?

embeded js engine

Embedding QuickJS or Boa makes total sense to keep it under 90MB. V8 alone would have eaten that entire memory budget on startup.

okey, this is first 'port to rust' project i really excited

how the fuck does all this shit in these LLM api orchestration layers consume more than 2mb it's trivial to write this for these APIs in fucking plain javascript in a single html file. absolutely ridiculous.

The work is great, but I want to know how to be compatible with the extension.

embedded js engine means extensions run on something other than node. which part broke first when you got your installed ones working, the node apis or the extension lifecycle hooks?

If you pin the API to a specific version like 1.0 and try to minimize memory as much as possible you could make something really gd useful for swarms etc

Compare to doodlestein's pi_rust pleaseee

优秀👍,关注一下,期待开源出来玩一下

What is up with ports that are going to be abandoned no matter what. Better stick with the offical one if planning for long term.

I already built this in Elixir

You rust bros need help, lmao

How compatible is this actually using it instead of the main pi. Do I need to know of other incompatibilities

everything is nearly supported by now and its just getting better

Finnaly more and more rust projects I hope it's gonna be maintaned

How does sign in for ai provider provider?

Pi? Is that like OMP without all the cool stuff in it?

Nice drop. 90 MB and quicker boots makes the CLI feel less like a toy. Curious how the JS engine impacts latency

sent you a dm about a founder building a client-side agent runtime with rust i can intro you to

Why tho? It'll just add another layer of embedding and conversion for the extension 👀

