frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: A live Python REPL with an agentic LLM that edits and evaluates code

2•andreabergia•1h ago
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:

    py> def succ(n):
    py>   n + 1
    py> succ(42)
    None
    ai> why is succ not working?
    
        Thinking...
        -> Listing globals
        <- Found 1 globals
        -> Inspecting: succ
        <- Inspection complete: function
        -> Evaluating: succ(5)
        <- Evaluated: None
        Tokens: 2102 in, 142 out, 2488 total
    
    The function `succ` is not working because it calculates the result (`n + 1`) but does not **return** it.
    
    In its current definition:
    ```python
    def succ(n):
        n + 1
    ```
    The result of the addition is discarded, and the function implicitly returns `None`. To fix it, you should add a
    `return` statement:
    ```python
    def succ(n):
        return n + 1
    ```
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.

Source: https://github.com/andreabergia/pychat.ai

Blog post: https://andreabergia.com/blog/2026/02/pychat-ai/

Comments

epr0xe•1h ago
Very cool idea. You can see the applications to debugger interfaces as well, not just REPLs.

Regex engine in Rust (Thompson NFA and bounded lazy DFA cache)

https://github.com/akgitrepos/regex-engine-rust
1•akgitrepos•48s ago•1 comments

Visual-explainer: An agent skill turning complex terminal output into HTML pages

1•pretext•48s ago•0 comments

The Last Mystery of Antarctica's 'Blood Falls' Has Been Solved

https://www.wired.com/story/the-last-mystery-of-antarcticas-blood-falls-has-finally-been-solved/
1•Brajeshwar•1m ago•0 comments

A new eco-friendly water battery could theoretically last for centuries

https://techxplore.com/news/2026-02-eco-friendly-battery-theoretically-centuries.html
1•Brajeshwar•1m ago•0 comments

The archivist preserving decaying floppy disks

https://www.popsci.com/technology/floppy-disk-archivist-project/
1•Brajeshwar•1m ago•0 comments

Meta shut us down. LinkedIn took us to court. We're still building

https://www.texau.com/blogs/texau-v3-launch-from-bombay-to-gtm-platform
1•eulercoder•2m ago•1 comments

LadybugDB: DuckDB for Graphs

https://ladybugdb.com
1•pretext•2m ago•0 comments

Pattern Collider

https://aatishb.com/patterncollider/
1•vinhnx•2m ago•0 comments

AI and My Crisis of Meaning

https://brids.bearblog.dev/ai-and-my-crisis-of-meaning/
1•vinhnx•3m ago•0 comments

Open-weight LLM releases in January and February 2026

https://twitter.com/rasbt/status/2026659971467706603
1•pretext•3m ago•0 comments

The IDE might die – taking my favorite programming language with it

https://thomasbandt.com/ide-death-fsharp
2•asp_net•3m ago•0 comments

Exahash, Zettahash, Yottahash

https://www.johndcook.com/blog/2026/02/22/zettahash/
1•ibobev•3m ago•0 comments

10k,000th Fibonacci Number

https://www.johndcook.com/blog/2026/02/21/f10000000/
1•ibobev•3m ago•0 comments

Computing big, certified Fibonacci numbers

https://www.johndcook.com/blog/2026/02/21/big-certified-fibonacci/
2•ibobev•4m ago•0 comments

KuzuDB was archived after the Apple acquisition – here's a migration guide

https://arcadedb.com/blog/from-kuzudb-to-arcadedb-migration-guide/
1•lvca•6m ago•0 comments

Pg_plan_alternatives – eBPF tracing of all plans the optimizer considers

https://github.com/jnidzwetzki/pg_plan_alternatives
1•dujuku•7m ago•1 comments

Ipynb to PDF Converter| Compile LaTeX to PDF

https://ipynbtopdf.cc
1•leolula•8m ago•0 comments

Ask HN: Starting a New Role with Ada

2•NoNameHaveI•9m ago•1 comments

Nlspec

https://github.com/strongdm/attractor
1•shittysits•9m ago•0 comments

Show HN: Termflux – Animated background for your terminal

https://github.com/tndoan/termflux
1•tndoan•9m ago•0 comments

Frontier Models Exhibit Sophisticated Reasoning in Simulated Nuclear Crises

https://arxiv.org/abs/2602.14740
3•consumer451•12m ago•0 comments

Algorithmic Feeds Need to Be Banned

https://shubhamjain.co/2026/02/25/algorithmic-feeds-need-to-be-banned/
2•shubhamjain•14m ago•1 comments

The Cuban CDN (2016)

https://blog.cloudflare.com/the-cuban-cdn/
1•evah•14m ago•0 comments

Show HN: KeychainPGP – Copy, Encrypt, Paste. Simple PGP for the Rest of Us

https://github.com/KeychainPGP/keychainpgp
1•Sorr0w•15m ago•0 comments

3-Nation chip pact takes shape: Japan's capital, Taiwan's IP, India's talent

https://www.digitimes.com/news/a20260224VL219/taiwan-talent-semiconductor-industry-policy-labor.html
1•alephnerd•15m ago•0 comments

AI Is a Lethal Threat This Year

1•silexia•15m ago•0 comments

Show HN: I built an ML stock picker that runs daily on a single server

https://acis-trading.com/
1•fkratzer•16m ago•0 comments

Show HN: Open-Source EU AI Act Scanner for Python AI Projects

https://airblackbox.ai/demo
2•shotwellj•16m ago•0 comments

Caught in the Hook: RCE and API Token Exfiltration Through Claude Code

https://research.checkpoint.com/2026/rce-and-api-token-exfiltration-through-claude-code-project-f...
1•mvelbaum•17m ago•0 comments

Show HN: Solving "unknown unknowns" while studying with Claude Code

https://github.com/RoundTable02/tutor-skills
1•remocode•17m ago•0 comments