get bothered by CPython development) 3. Safe Prompt Request LLM Generated Python Code Monty (Python Interpreter in Rust) Prompt Response Monty's Limitation (as of 2026 May) 1. Use the rest of the standard library 2. Use third party libraries (like Pydantic) 3. Define classes (to-be-supported) 4. Use match statements (to-be-supported) 5
ex1.py $ python ex1.py messages so far: [] messages so far: [{'role': 'system', 'content': 'example response'}] messages so far: [{'role': 'system', 'content': 'example response'}, {'role': 'system', 'content': 'example response'}] example output, message count 2 So it's still executed by CPython? (In fact, it can be called from also Rust and TS/JS) 9
Features 1. Iterative Execution: start() and resume(). 2. Serialization: can be serialized to bytes and restored later. Sandbox • Application-level sandbox + Easy file mounting 14