python-playground
Skill8.6k starsChanged 3 months agoMITView on GitHub
Run and test Python code in a dedicated playground directory. Use when you need to execute Python scripts, test code snippets, investigate CPython behavior, or experiment with Python without affecting the main codebase.
Trending
Quiet since September.about the whole repository
Who's talking about pydantic/monty
- A Hacker News story“Monty: A minimal, secure Python interpreter written in Rust for use by AI”Hacker News · Feb 6, 2026 · 323 points
- @sungkim.bsky.social“Pydantic's Monty A minimal, secure Python interpreter written in Rust for use by AI. github.com/pydantic/monty”Bluesky · Feb 6, 2026 · 66 likes
- A Hacker News story“Monty: A minimal, secure Python interpreter written in Rust for use by AI”Hacker News · Feb 6, 2026 · 25 points
- pydantic/pydantic-ai“CodeExecutionToolset with Code Mode support + ExecutionEnvironmentToolset, for local env, Monty, Docker, E2B”GitHub · Jan 31, 2026 · 12 reactions
- @michaelmclean.me“We are in the golden age of open source software. Holy shit. New python implementation, 100% rust, …”Bluesky · Feb 6, 2026 · 7 likes
The biggest 5 of 40 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 40
Talked about on Bluesky, GitHub and Hacker News (40 times).
On Bluesky · 28
- Feb 6, 2026Pydantic's Monty A minimal, secure Python interpreter written in Rust for use by AI. github.com/pydantic/monty — @sungkim.bsky.social66 likes and reposts · 1 reply
- Feb 6, 2026We are in the golden age of open source software. Holy shit. New python implementation, 100% rust, microsecond startup, no host access 🤩… — @michaelmclean.mesays it tested it7 likes and reposts
- Feb 8, 2026They’re working on it — @gracekind.net6 likes and reposts · 2 replies
- Feb 22, 2026Rust実装のPythonインタプリタ。サードパーティのライブラリは敢えて使えない仕様で、AIが利用することを想定したminimal実装と。なるほど。モンティーパイソンだからmontyか。 — @matsuu.bsky.social5 likes and reposts
- Feb 7, 2026Monty - Run #Python code generated by #LLM safely in a secure #sandbox environment by @pydantic.dev MIT lic #OpenSource #AI #Agents… — @qdrddr.bsky.social4 likes and reposts
23 more on Bluesky
- Feb 6, 2026Python interpréteur en Rust. "Startup extremely fast (<1μs to go from code to execution result), and has runtime performance that is… — @lea-linux.org4 likes and reposts · 1 reply
- Jul 8, 2026Another one but more agent sandbox shaped github.com/pydantic/monty — @jbott.social2 likes and reposts
- Mar 1, 2026📦 pydantic / monty ⭐ 5,838 (+33) 🗒 Rust A minimal, secure Python interpreter written in Rust for use by AI — @github-trending-rs.bsky.social2 likes and reposts
- Feb 26, 2026kind of the idea for this github.com/pydantic/mon... — @jmsdnns.bsky.social2 likes and reposts
- Feb 18, 2026Monty: A minimal, secure Python interpreter written in Rust for use by AI https://github.com/pydantic/monty — @pythonhub.dev2 likes and reposts
- Feb 8, 2026Monty: AI向けにRustで書かれた、最小限で安全なPythonインタプリタ Monty: A minimal, secure Python interpreter written in Rust for use by AI 🔺 316 💬 37 🔗 HN Post… — @hacker-news-jp.bsky.social2 likes and reposts · 1 reply
- Sep 24, 2026pydantic / monty: A minimal, secure Python interpreter written in Rust for use by AI ★8266 https://github.com/pydantic/monty — @rusttrending.bsky.social1 likes and repost
- Jul 21, 2026pydantic / monty: A minimal, secure Python interpreter written in Rust for use by AI ★7911 https://github.com/pydantic/monty — @rusttrending.bsky.social1 likes and repost
- Apr 3, 2026pydantic / monty: A minimal, secure Python interpreter written in Rust for use by AI ★6646 https://github.com/pydantic/monty — @rusttrending.bsky.social1 likes and repost
- Feb 10, 2026These instructions for Mole by pydantic made me laugh more than they should have. github.com/pydantic/monty — @mirkolenz.com1 likes and repost
- Feb 9, 2026Glad to see this type of thinking. github.com/pydantic/monty — @itsdavesanders.com1 likes and repost
- Feb 8, 2026https://github.com/pydantic/monty Montyは、AIエージェント向けにRustで書かれた軽量かつ安全なPythonインタプリタです。 LLMが生成したコードを、高速かつホスト環境から隔離されたサンドボックスで実行します。… — @topickapp.bsky.social1 likes and repost
- Feb 7, 2026Monty: A minimal, secure Python interpreter written in Rust for use by AI View Article | Join the HN Conversation Summary of HN discussion… — @hncompanion.com1 likes and repost · 1 reply
- Feb 6, 2026Monty: A minimal, secure Python interpreter written in Rust for use by AI https://github.com/pydantic/monty… — @betterhn20.e-work.xyz1 likes and repost
- Feb 6, 2026Monty: A minimal, secure Python interpreter written in Rust for use by AI | Discussion — @hackernewsbot.bsky.social1 likes and repost
- Feb 6, 2026Monty: A minimal, secure Python interpreter written in Rust for use by AI https://github.com/pydantic/monty — @mm-hacker-news.bsky.social1 likes and repost
- Feb 6, 2026Monty Repo: github.com/pydantic/monty — @filtra.bsky.social1 likes and repost
- Feb 6, 2026monty: A minimal, secure Python interpreter written in Rust for use by AI https://lobste.rs/s/8rnhnq #vibecoding — @lobsters-feed.bsky.social1 likes and repost
- Feb 22, 2026This is interesting, a 'safe' Python interpreter for use by AI agents. I guess because the LLMs know Python better than Rune or RHAI?… — @coverfire.com0 likes and reposts · 2 replies
- Feb 16, 2026secure python interpreter in rust for running ai-generated code. no container needed, microsecond startup #dailytools — @maheu.co0 likes and reposts · 1 reply
- Feb 9, 20263. The Rust nerds at Pydantic open-sourced monty, a Python tool, written in Rust, that lets LLMs run code without touching the host.… — @rustaceans.bsky.social0 likes and reposts · 1 reply
- Feb 8, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 pydantic / monty ⭐ 2,222 (+442) 🗒 Rust A minimal, secure Python interpreter written in Rust for… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Feb 8, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 pydantic / monty ⭐ 2,222 (+442) 🗒 Rust A minimal, secure Python interpreter written in Rust for… — @github-trending-rs.bsky.social0 likes and reposts · 1 reply
On GitHub · 8
- Jan 31, 2026CodeExecutionToolset with Code Mode support + ExecutionEnvironmentToolset, for local env, Monty, Docker, E2B — pydantic/pydantic-ai12 reactions · 9 comments
- Sep 25, 2026Run the embed Checker inline instead of on a rayon pool — facebook/pyrefly1 reaction · 4 comments
- Sep 14, 2026chore(deps): bump the backend-everything-else group across 1 directory with 15 updates — vstorm-co/agenticos1 reaction · 1 comment
- Sep 14, 2026chore(deps): bump the backend-everything-else group in /backend with 13 updates — vstorm-co/agenticos1 reaction · 2 comments
- Apr 23, 2026chore(deps-dev): bump pydantic-monty from 0.0.16 to 0.0.17 — PrefectHQ/fastmcp1 reaction · 2 comments
3 more on GitHub
- Apr 20, 2026chore(deps-dev): bump pydantic-monty from 0.0.14 to 0.0.16 — PrefectHQ/fastmcp1 reaction
- Apr 15, 2026chore(deps-dev): bump pydantic-monty from 0.0.11 to 0.0.12 — PrefectHQ/fastmcp1 reaction
- Apr 10, 2026chore(deps-dev): bump pydantic-monty from 0.0.9 to 0.0.10 — PrefectHQ/fastmcp1 reaction · 1 comment
On Hacker News · 4
- Feb 6, 2026Monty: A minimal, secure Python interpreter written in Rust for use by AI323 points · 164 comments
- Feb 6, 2026Monty: A minimal, secure Python interpreter written in Rust for use by AI25 points · 1 comment
- Feb 6, 2026Monty – A minimal, secure Python interpreter written in Rust for use by AI4 points
- Jan 31, 2026Pydantic Monty: A minimal, secure Python interpreter (in Rust) for use by AI3 points
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/limitations/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- crates/monty/src/modules/CLAUDE.mdCLAUDE.md
- coverageSkill
- fastmodSkill
- fix-pr-commentsSkill
- review-generalSkill
- review-securitySkill
- review-usabilitySkill
- review-verbositySkill
- writing-styleSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Run Python code in an isolated playground directory for testing and experimentation.
- Very specific: line 13
Use the Write tool to create the Python file at playground/test.py
- Very specific: line 14
Run with: uv run playground/test.py to test cpython behavior or cargo run -- playground/test.py to test monty behavior
- Very specific: line 45
Use a different file name for each test you want to run, give the files recognizable names like test_value_error.py
- Very specific: line 46
Use uv run ... to run scripts (uses project Python)
- Distinctive: line 48
Use Write tool for creating files (avoids permission prompts)
- Distinctive: line 49
Run mkdir and uv as separate commands (not chained)
- Distinctive: line 50
do NOT delete files from playground after you've finished testing
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Python Playground
Run Python code in an isolated playground directory for testing and experimentation.
Instructions
- First, ensure the playground directory exists. If the
playgrounddirectory doesn't already exist, runmkdir playground. - Use the Write tool to create the Python file at
playground/test.py - Run with:
uv run playground/test.pyto test cpython behavior orcargo run -- playground/test.pyto test monty behavior
IMPORTANT: Use separate tool calls for each step - do NOT chain commands with &&. This allows the pre-approved commands to work without prompting.
Example workflow
Step 1 - Create directory if it doesn't already exist (Bash, already allowed):
mkdir playgroundStep 2 - Write code (use Write tool, not cat):
Write to playground/test.py:
def foo():
raise ValueError('test')
foo()Step 3 - Run script (Bash, already allowed):
uv run playground/test.pyGuidelines
- The
playground/directory is gitignored - Use a different file name for each test you want to run, give the files recognizable names like
test_value_error.py - Use
uv run ...to run scripts (uses project Python) - Or,
cargo run -- ...to run scripts using Monty - Use Write tool for creating files (avoids permission prompts)
- Run mkdir and uv as separate commands (not chained)
- do NOT delete files from playground after you've finished testing
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

