monty: A minimal, secure Python interpreter written in Rust for use by AI
Summary
Monty is a minimal, secure Python interpreter written in Rust designed for AI agents. It provides a fast, sandboxed runtime to execute Python code written by LLMs while strictly limiting host access, supports external function calls, type checking, and serialization, and can be called from Python, JavaScript, or Rust. It intentionally omits full stdlib and third-party libraries and aims to power code-mode workflows with low startup latency and safety guarantees.