Hacker GitHub

← All repos

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

Mentions per year 13 mentions · busiest year 2026 (13)
20082026
  1. 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)
  2. 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
  3. …~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?
  4. 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
  5. > Maybe even Python if it can be made safe. https://github.com/pydantic/monty
    comment by yencabulator · 2026-05-31 · in MCP is dead?
  6. …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
  7. Benchmark it against a fast Python interpreter optimized for AI tool calling, like Monty: https://github.com/pydantic/monty
  8. …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):…
  9. …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
  10. ▲ 323
    Monty: A minimal, secure Python interpreter written in Rust for use by AI
    story by dmpetrov · 2026-02-06 · 164 comments
  11. ▲ 4
    Monty – A minimal, secure Python interpreter written in Rust for use by AI
    story by areski · 2026-02-06 · 0 comments
  12. ▲ 25
    Monty: A minimal, secure Python interpreter written in Rust for use by AI
    story by scolvin · 2026-02-06 · 1 comment
  13. ▲ 3
    Pydantic Monty: A minimal, secure Python interpreter (in Rust) for use by AI
    story by patrick91 · 2026-01-31 · 0 comments