Tool · curated 14 Jul 2026

GitHub - pydantic/monty: A minimal, secure Python interpreter written in Rust for use by AI

Coverage timeline

14 Jul 2026github.com

Single-source analysis — first reported, latest, and curated coincide.

Why it matters

Monty addresses a growing agentic-AI attack surface — the execution of untrusted LLM-generated code — by providing a constrained interpreter that defenders can use to contain what AI agents run.

Monty, from Pydantic, is a minimal, secure Python interpreter written in Rust intended for use by AI agents to execute generated code safely. It targets the emerging 'code mode' pattern where LLM agents write and run code to call MCP tools rather than invoking them directly, aiming to sandbox that execution.