pydantic/monty

A secure Python sandbox, written in Rust, for code written by AI.

About the project

Monty is a minimal Python interpreter written in Rust that runs AI-generated code in a restricted environment without direct filesystem, environment-variable, or network access. It is for AI agents that need to execute Python and type-checking tasks while allowing developers to control which host functions and objects the code can use, and the catalogue entries integrate it into agent workflows.

Latest release 1.4.0 — v1.4.0 - 2026-10-26 · 26 Oct 2026

13 files for Claude Code, Codex and OpenCode: docs-parity-reviewer, coverage, fastmod, fix-pr-comments and 9 more — 17,077 tokens loaded in every session.

8,801Stars on the repository
13Files it configures its agents with
17,077Tokens loaded in every session
3Agents configured

Instructions

Settings

Skills

Agents

These files are pydantic/monty's own configuration — they tell Claude Code, Codex and OpenCode how to work on this repository, so they are not mods to install elsewhere. Copy one as a starting point and replace the parts that are about this project.