monty / limitations
AGENTS.md8.6k starsChanged 3 months agoMITView on GitHub
This file is for contributors and agents editing this directory. It is excluded from the docs build (exclude_docs in mkdocs.yml, exclude in the unified-docs sync), so nothing here is published. Every pull request that changes a CPython divergence MUST update its topic page here. Docstrings and inline comments do not count: the divergence has to be written down here. Host-API contracts belong in the relevant docs/ topic and binding reference; implementation rationale belongs in crate READMEs or code comments, not…
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
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- crates/monty/src/modules/CLAUDE.mdCLAUDE.md
- coverageSkill
- fastmodSkill
- fix-pr-commentsSkill
- python-playgroundSkill
- review-generalSkill
- review-securitySkill
- review-usabilitySkill
- review-verbositySkill
- writing-styleSkill
The file
We split this AGENTS.md 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
- Very specific: line 9
Every pull request that changes a CPython divergence MUST update its topic page here.
- Very specific: line 13
Do not record migration history or differences from a removed Monty API.
- Distinctive: line 14
Check for an existing explanation before adding a caveat, and link to its owner rather than duplicating it.
- Very specific: line 17
Add a section to an existing file when the feature is already documented.
- Distinctive: line 21
Keep that section flat: unified-docs turns nested nav groups into subdirectories, which would break the relative links between pages.
- Distinctive: line 31
Avoid implementation detail unless it explains a user-visible quirk.
- Distinctive: line 32
Only divergences belong here.
- Very specific: line 54
When a change alters the shape of the subset — a stdlib module becomes importable, a parse-time rejection is added or lifted — update …
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md 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
Writing limitations pages
This file is for contributors and agents editing this directory.
It is excluded from the docs build (exclude_docs in mkdocs.yml, exclude in the unified-docs sync), so nothing
here is published.
What goes here
Every pull request that changes a CPython divergence MUST update its topic page here.
Docstrings and inline comments do not count: the divergence has to be written down here.
Host-API contracts belong in the relevant docs/ topic and binding reference; implementation rationale belongs in
crate READMEs or code comments, not a general limitations page.
Do not record migration history or differences from a removed Monty API.
Check for an existing explanation before adding a caveat, and link to its owner rather than duplicating it.
One file per feature, named after the builtin, module, or construct it covers (open.md, asyncio.md, re.md).
Add a section to an existing file when the feature is already documented; create a new file only when there is no
fit.
A new file also needs an entry in the Limitations section of the mkdocs.yml nav, which orders these pages on the
site.
Keep that section flat: unified-docs turns nested nav groups into subdirectories, which would break the relative
links between pages.
Structure each file around what a Python user would actually try:
- Arguments/options that are rejected or ignored.
- Methods/attributes that raise
AttributeError. - Behaviour that differs from CPython even when the API exists.
- Error types / messages that differ from CPython.
Avoid implementation detail unless it explains a user-visible quirk. Only divergences belong here; behaviour that matches CPython is not recorded.
Links and snippets
Link between pages with relative markdown links (see [classes.md](classes.md)) rather than naming the file in
prose, so the reference works on the site as well as in the repository.
mkdocs build --strict fails on a link to a page that does not exist.
Host-side pydantic_monty types link to their API page as [MountDir][pydantic_monty.MountDir] and Rust items as
[Checkout](../api/rust/monty-pool.md#checkout), per the docs rules in the root CLAUDE.md.
Python snippets on these pages are sandbox-side code, so they are marked ```python test="skip";
make test-docs would otherwise run them under CPython.
Skipped snippets are still formatted and linted, so they need imports and definitions for every name they use.
Relationship to the rest of the docs
index.md is the one page here most users read: the shape of the subset, linking to the other pages for the
detail.
The pages outside this directory are conceptual and how-to material.
They link here rather than restating divergences, and these pages never duplicate them.
A divergence belongs here, not in a concept page.
When a change alters the shape of the subset — a stdlib module becomes importable, a parse-time rejection is added or
lifted — update index.md as well as the page for the feature.
The root README.md links to the subset overview rather than maintaining its own feature list.
See "Documentation surfaces that must stay in sync" in the repository's CLAUDE.md.
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.

