Mar 14, 2026 · 34m · latent-space
⚡️Monty: the ultrafast Python interpreter by Agents for Agents — Samuel Colvin, Pydantic
gold bands on the timeline = statements, start to end. Hover to read, click to jump. CC turns on captions
Pydantic creator Samuel Colvin joins Swyx to unveil Monty, a high-performance in-process Python interpreter built in Rust for AI agent execution. The discussion covers runtime sandboxing trade-offs, practical techniques for 100x developer productivity with AI coding assistants, and full-stack agent observability using Pydantic Logfire.
How this conversation actually went
Every chapter scored 0–10 on four independent dynamics. Hover any point for the reasoning behind the score. The hosts hold 17.5% of the talking time here. How this is scored →
speaking balance: gold is the hosts, purple is the guest (3 minute bins)
Samuel bluntly labels relying on Pyodide outside the browser as a classic mistake and outlines its fatal sandboxing and memory management flaws.
Hardest push from the hosts ▶ 30:24 Refusing TOML as an agent specification standardSwyx directly disputes the serializable TOML format, arguing that markup configurations inevitably degrade into poorly implemented general-purpose languages.
Biggest teaching moment ▶ 7:15 Technical deep dive into Deno and Wasm isolation risksSamuel educates the audience and Swyx on why WebAssembly runtimes inside Deno fail to guard against out-of-memory crashes and cross-invocation server tainting.
The host holds their own ▶ 19:52 Correcting assumptions about Google's internal code trainingSwyx demonstrates domain expertise by countering the guest's theory, explaining internal Google toolchains like Jet Ski and why direct training on Borg code would yield nonsense.
the scores for every segment, with the reasoning behind each
| Chapter | Topic | The hosts as informed peer | Guest teaching | Guest disagreement | The hosts pushing back | Why |
|---|---|---|---|---|---|---|
| Welcome Back and Pydantic Logfire AI Observability | 4 | 3 | 1 | 2 | Swyx opens the interview smoothly and probes the specific meaning of an AI-native observability platform. Samuel explains Logfire's architectural design choice to expose raw SQL querying over OpenTelemetry traces. | |
| The Origin of Monty and the Need for Code Mode | 4 | 4 | 1 | 1 | Samuel relates how Anthropic researchers inspired Monty and contrasts code-mode execution directly with heavyweight VM sandboxes like Daytona and Modal. Swyx validates the dynamic between builders and marketers. | |
| Evaluating Runtime Trade-offs and the Limitations of Pyodide | 5 | 6 | 2 | 4 | Samuel details why Pyodide and Deno sandboxing failed security and latency requirements for backend execution. Swyx pushes on the paradoxical nature of a Pydantic runtime unable to run Pydantic. | |
| Accelerating Development: The Four Rules for 100x AI Speed | 5 | 5 | 1 | 2 | Samuel outlines his four rules for achieving 100x acceleration when having LLMs write reimplementations like Python built-ins. Swyx inquires about the internal GitHub importance scoring badge and automated code reviews. | |
| Comparing AI Coding Agents: Claude Code, Codex, and Gemini CLI | 7 | 4 | 2 | 5 | Samuel compares Claude Code, Codex, and Gemini CLI, speculating that Gemini excels because it trained on Google's internal monorepo. Swyx pushes back using firsthand knowledge of Google's internal Jet Ski and Borg infrastructure. | |
| Live Demo: Secure Agentic Web Scraping with Monty and Logfire | 3 | 5 | 1 | 1 | Samuel conducts a walkthrough demonstration of an autonomous web scraper built using Playwright, BeautifulSoup, and Monty with Logfire tracing. Swyx follows along as an appreciative audience. | |
| Standardizing Agent Architecture with Serializable Agents | 7 | 3 | 2 | 6 | Samuel proposes TOML-based serializable agents as a declarative standard. Swyx challenges this framing, pointing out that configuration DSLs inevitably devolve into half-baked programming languages. | |
| Industry Conferences, Monetization, and Concluding Thoughts | 5 | 2 | 1 | 1 | The conversation winds down with promotions for upcoming London and Pydantic conferences. Swyx draws parallels to runtime evolutions like Bun and Deno while discussing monetization paths. |