Tool

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

Page published

Coverage timeline

14 Jul 2026github.comobserved

Single-source analysis — one report is available.

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.