pydantic/monty
View on GitHub ↗ ★ 8,809 Rust
A secure Python sandbox, written in Rust, for code written by AI.
13 mentions on Hacker News by 13 people: 4 stories, 9 comments · first 2026-01-31 · latest 2026-09-20
20082026
-
For LLM generated Python code, pydantic's monty is awesome: https://github.com/pydantic/monty Plus, pydantic is funded so it will be well maintained.
comment by aadyachinubhai · 2026-09-20 · in Software sandboxing: The basics (2025) -
Snapshotting programs is also what https://github.com/pydantic/monty enables and aims for. FWIW, I think we'll see a rise of AI-ready interpreters. In some sense, I like that it challenges traditional microservice architectures as an aside.
comment by alex_hirner · 2026-09-13 · in Durable execution without history replay -
…~2.68x median speedup of primitive-to-boolean casting credited to Claude Opus 4.6 - pydantic/monty: https://github.com/pydantic/monty/pull/643 - ~53x speedup (488ms down to 9.2ms) of bytes substring search generated with Claude Code -…
comment by simonw · 2026-08-09 · in Is it all just vapourware? -
there's also monty by pydantic https://github.com/pydantic/monty it's Rust so can be compile to wasm, example: https://github.com/hyper-mcp-rs/monty-plugin
comment by tuananh · 2026-06-06 · in Running Python code in a sandbox with MicroPython and WASM -
> Maybe even Python if it can be made safe. https://github.com/pydantic/monty
comment by yencabulator · 2026-05-31 · in MCP is dead? -
…personal preference for syntax would be Python’s. One day I want to try writing a query tool with https://github.com/pydantic/monty
comment by ivaniscoding · 2026-03-27 · in A Faster Alternative to Jq -
Benchmark it against a fast Python interpreter optimized for AI tool calling, like Monty: https://github.com/pydantic/monty
comment by bonoboTP · 2026-03-13 · in Executing programs inside transformers with exponentially faster inference -
…Rust, Node.js (napi), Python (PyO3), WebAssembly. No runtime dependencies. Inspired by Monty ( https://github.com/pydantic/monty ) which does the same for Python. Zapcode is Monty for TypeScript. Benchmarks (full pipeline, no caching):…
comment by TheUncharted · 2026-03-12 · in Zapcode: A TypeScript interpreter in Rust for AI agents (2µs start, sandbox) -
…unchanged for decades but its not a very nice language. I know pydantic has been experimenting with https://github.com/pydantic/monty (restricted python) and I think Cloudflare and co were experimenting with giving typescript to agents.
comment by IceWreck · 2026-02-26 · in Just-bash: Bash for Agents -
▲ 323
Monty: A minimal, secure Python interpreter written in Rust for use by AIstory by dmpetrov · 2026-02-06 · 164 comments
-
▲ 4
Monty – A minimal, secure Python interpreter written in Rust for use by AIstory by areski · 2026-02-06 · 0 comments
-
▲ 25
Monty: A minimal, secure Python interpreter written in Rust for use by AIstory by scolvin · 2026-02-06 · 1 comment
-
▲ 3
Pydantic Monty: A minimal, secure Python interpreter (in Rust) for use by AIstory by patrick91 · 2026-01-31 · 0 comments