Pydantic Agent Sandboxes: Monty interpreter lifts long-task success by up to 44 pts
samuelcolvin · x · 2026-12-01
Pydantic's Samuel Colvin demos Agent Sandboxes in Logfire, powered by Monty, a lightweight Rust-based open-source interpreter:
- Live demo: agent-written sandboxed code calls external functions in real time to play a tune — possibly a first, and it sounds good.
- Positioning: agent code is usually short tool-glue, so an isolated interpreter beats booting a full VM. The workbench logged 298 sessions / 485 code runs at an estimated cost of $0.05.
- Benchmarks: 5,276 graded runs across 5 Pydantic AI apps and 8 models show code mode dramatically improves long-task success — gpt-6-luna jumps from 14% to 58% (+44 pts), claude-haiku-5-5 +30 pts.
Strong evidence that 'code mode + lightweight sandboxing' outperforms plain tool calling for long agent tasks.
Related event: Pydantic Author Demos Agent Sandboxes Capabilities(2 posts)→
More from coding & agent
- RELAY: training-free early stopping cuts token cost in multimodal multi-agent reasoning — showlab · 2026-12-01
- SEO Skill reverse-engineers rivals' AI search playbooks for $0.86 a report — iannuttall · 2026-12-01
- Agentests turns engineering rules into tests, reserving LLMs for semantic calls — Ok-Buyer-9421 · 2026-12-01
- Three tries, no PR: GitHub Copilot agent struggles with its own bread-and-butter — craig_macdonald · 2026-12-01
- One guy + 6 AI bots: Grok Bot content team pulled 3.5M+ views in 48 hours — mhdfaran · 2026-12-01
- Grok Bot 'AI employees' prompt templates: research analyst + social media manager roles — TawohAwa · 2026-12-01