Show HN: AI code reviewer with Python agent called from Rust, streaming works
6 sawradip 3 7/28/2025, 2:40:49 PM medium.com ↗
Built an AI code reviewer using Letta (Python) that I can call natively from Rust applications.
The interesting part: real-time streaming works perfectly across the language boundary with zero hassle using RunAgent.
The agent runs in Python with persistent memory, leverages the best in house agentic memory management with Letta (Pythonic AI agent framework), and my rust code just uses it (kinda) natively, though Letta has no Rust bindings. And, streaming works like magic.
No FFI, no complex bridges - just native async/streaming that feels like calling any Rust librar, but without writing a single line of websocket code.
The AI agent remembers coding patterns and learns from previous reviews, but the deployment abstraction is what made this possible.
Code: https://github.com/runagent-dev/runagent/tree/main/examples/...
Comments (3)
pacjam · 14h ago
This is pretty sweet. The Letta SDKs are actually auto-generated off of the REST API spec, which means that adding an (official) SDK for another language is just a matter of having enough demand to justify the spend to generate it. I did see a community-made Rust SDK here: https://github.com/orual/letta-rs
Radeen1 · 11h ago
Actually the platform RunAgent is framework agnostic. And we can also implement this with golang as well
pacjam · 2h ago
I'm talking about the Letta part - unless I'm missing something, the RunAgent framework has to communicate with the Letta server over the Letta API (I'm saying that part can be done w/ Python SDKs, TS SDKs, REST APIs, and down the line Rust natively etc).