Show HN: A live Python REPL with an agentic LLM that edits and evaluates code I built PyChat.ai, an open-source Python REPL written in Rust that embeds an LLM agent capable of inspecting and modifying the live Python runtime state. A sample interaction:
Unlike typical AI coding assistants, the model isn’t just generating text — it can introspect the interpreter state and execute code inside the live session.Everything runs inside a Rust process embedding the Python interpreter, with a terminal UI where you can switch between Python and the agent via <tab>. It’s very much a prototype, and definitely insecure, but I think the interaction model is interesting and potentially generalizable. |