Loading video...

Video Failed to Load

Go Home

๐Ÿš€ Today we're launching Agent Sandboxes in Pydantic Logfire: a profoundly different kind of sandbox. "The world doesn't need another sandbox" they say. Maybe. Or maybe the world doesn't need another firecracker/gVisor/VM infra-fest. Our Agent Sandboxes are different. They're just an isolated interpreter with cold start times measured in...

1,514,946 views โ€ข 2 days ago โ€ขvia X (Twitter)

44 Comments

Samuel Colvin's profile picture
Samuel Colvin2 days ago

It's powered by Pydantic Monty, our open-source interpreter written in Rust, already used by @fastmcp, @AWS Stands, @Microsoft Agent Framework, @huggingface's MCP server, and and many more.

Qian Li's profile picture
Qian Li2 days ago

@pydantic Very cool, congrats! Did you actually drive the excavator ๐Ÿ˜‚

Samuel Colvin's profile picture
Samuel Colvin2 days ago

@pydantic No, it's AI sadly.

Niko(la)'s profile picture
Niko(la)2 days ago

@pydantic crazy video, love it

Linghua Jin ๐Ÿฅฅ ๐ŸŒด's profile picture
Linghua Jin ๐Ÿฅฅ ๐ŸŒด2 days ago

@mmatthias @pydantic Congrats Samuel!

kg's profile picture
kg2 days ago

@pydantic saweeeeet - excited to try it out

Deok's profile picture
Deok2 days ago

@zeeg @pydantic CoreWeave Sandboxes welcomes you to this space!

Kayvon Beykpour's profile picture
Kayvon Beykpour2 days ago

@pydantic congrats!

Mish Ushakov's profile picture
Mish Ushakov2 days ago

@pydantic i wanted to try this for a codemode use-case, but then it couldnโ€™t run because we have a Rust dependency in our Python SDK ๐Ÿคทโ€โ™‚๏ธ

Samuel Colvin's profile picture
Samuel Colvin2 days ago

@pydantic Just register an external function that calls the rust code.

Mish Ushakov's profile picture
Mish Ushakov2 days ago

@pydantic where does the external function run then?

Vishal Anton's profile picture
Vishal Anton2 days ago

@pydantic Code mode gonna raise further up

Frank Wiles's profile picture
Frank Wiles2 days ago

@intellectronica @pydantic Love the video!

Aapakari's profile picture
Aapakari2 days ago

@pydantic Resuming a REPL weeks later for virtually nothing is such a sharp feature. ๐Ÿš€

Bogdan Veliscu's profile picture
Bogdan Veliscu2 days ago

@pydantic I was always curious what would be the the ideal use case for Monty. Time to experiment with the new pydantic ai toolbox.

Anthony Corletti's profile picture
Anthony Corletti2 days ago

@pydantic this is incredible @pydantic !!!

1Password Developers's profile picture
1Password Developers2 days ago

@pydantic Congrats on the launch. Sandboxes limit what an agent can break; the other half is what it can reach. Watch for the "lethal trifecta": untrusted input, access to sensitive data, and a way to send it out. Take away any one leg and that attack path closes. ๐Ÿ”’

Dominik Picheta's profile picture
Dominik Picheta2 days ago

@pydantic awesome launch video

Fernando Dingler's profile picture
Fernando Dingler2 days ago

@pydantic lol great video, congrats on the launch!

Sebastian Rojo's profile picture
Sebastian Rojo2 days ago

@pydantic @bot we need to test this! Find some time on my calendar so we can thoroughly test this brilliant creation @samuelcolvin and @pydantic

Samuel Colvin's profile picture
Samuel Colvin2 days ago

@pydantic @bot thanks!

Sebastian Rojo's profile picture
Sebastian Rojo2 days ago

@pydantic @bot Thanks to you. This is going to be awesome ๐Ÿ˜Ž

InterfaceDelta, Inc.'s profile picture
InterfaceDelta, Inc.2 days ago

@pydantic This sounds rather amazing, will definitely give it a shot.

Sebastian Rojo's profile picture
Sebastian Rojo2 days ago

@pydantic I love it... ๐Ÿ˜๐Ÿ˜๐Ÿ˜

Parth Sharma's profile picture
Parth Sharma2 days ago

@pydantic Is this Monty?

Samuel Colvin's profile picture
Samuel Colvin2 days ago

@pydantic Yes.

Marko Kraemer's profile picture
Marko Kraemer2 days ago

@pydantic Nice!

Balรกzs Nรฉmethi's profile picture
Balรกzs Nรฉmethi2 days ago

@pydantic excited to give it a shot!!

Jack Bridger's profile picture
Jack Bridger2 days ago

@pydantic awesome!!

Rictus ๐Ÿฅโ's profile picture
Rictus ๐Ÿฅโ2 days ago

@pydantic Well I should join Pydantic at this point!

Mehmet ร–ner YALร‡IN's profile picture
Mehmet ร–ner YALร‡IN2 days ago

@pydantic @samuelcolvin great to see monty graduated ! we're very happily using it in

Bogdan Veliscu's profile picture
Bogdan Veliscu2 days ago

@pydantic Login with gmail doesn't seem to work.

ไธ‰ๅˆ†้’Ÿๆ‡‚่กŒ's profile picture
ไธ‰ๅˆ†้’Ÿๆ‡‚่กŒ2 days ago

@pydantic ้š”ๅ‡ ๅ‘จ่ฟ˜่ƒฝๆŽฅ็€ๅŽŸๆฅ็š„่งฃ้‡Šๅ™จ็Šถๆ€็ปง็ปญๅš๏ผŒ่ฟ™ไธช็”จ้€”ๅพˆๅฎžๅœจใ€‚้•ฟไปปๅŠกไธญๆ–ญๅŽ๏ผŒไธ็”จๅ…ˆ่ŠฑๅŠๅคฉๆŠŠๅทฅไฝœ็Šถๆ€้‡ๆ–ฐๆญ่ตทๆฅใ€‚

Rohit Gite's profile picture
Rohit Gite2 days ago

@pydantic Interesting, how much is this better than v8 isolates ?

Samuel Colvin's profile picture
Samuel Colvin2 days ago

LLMs generally find Python easier to write than js/ts (except for UI rendering). Memory usage should be lower. v8 doesn't support full suspend and resuming with serializable snapshots. v8 is ultimately 400k lines of c++ in the chromium codebase. Monty is ultimately ~100k lines of purpose built modern Rust.

Rohit Gite's profile picture
Rohit Gite2 days ago

@pydantic Hmm, reusable snapshots !

Juan Velasquez's profile picture
Juan Velasquez2 days ago

@pydantic Trying them now, I will compare it with E2B and Smol with MicroVM !

Adam Wright's profile picture
Adam Wright2 days ago

@pydantic the snapshot part is the one i'd use. when a repl resumes weeks later, what happens to the tool credentials it had, does it re-auth or fail closed?

๐ŸŽฏ๐Ÿ”ซ๐Ÿ‘Œ's profile picture
๐ŸŽฏ๐Ÿ”ซ๐Ÿ‘Œ2 days ago

@pydantic How would you compare this to OMP

Samuel Colvin's profile picture
Samuel Colvin2 days ago

@pydantic Pretty different. Agent Sandboxes isn't supposed to give a full development environment for the agent. Just a place to run python code, read/write files and call some external functions.

๐ŸŽฏ๐Ÿ”ซ๐Ÿ‘Œ's profile picture
๐ŸŽฏ๐Ÿ”ซ๐Ÿ‘Œ2 days ago

@pydantic Would OMP in a dicker approximate this?

๐ŸŽฏ๐Ÿ”ซ๐Ÿ‘Œ's profile picture
๐ŸŽฏ๐Ÿ”ซ๐Ÿ‘Œ2 days ago

@pydantic *docker

Shashi ๐Ÿ‡ฌ๐Ÿ‡ง ๐ŸŒ‰'s profile picture
Shashi ๐Ÿ‡ฌ๐Ÿ‡ง ๐ŸŒ‰2 days ago

@pydantic Insane Launch Video ๐Ÿ“ฝ๏ธ

Openfort's profile picture
Openfort2 days ago

@pydantic Least privilege inside the sandbox is the right call, the gap opens when the agent steps out of it to move money. A session key scoped to the same allowlist would let it pay only for the tools it was given.

Related Videos

Bash is all you need! Which is why I'm introducing my holiday project: just-bash just-bash is a pretty complete implementation of bash in TypeScript designed to be used as a bash tool by AI agents. Because it turns out agents love exploring data via shell scripts, even beyond coding. It comes with grep, sed, awk and the 99th percentile features that an agent like Claude Code or Cursor would use. In fact, Claude Code can use it for secure bash execution. In the package - A bash-tool for AI SDK - A binary for use by yourself or your coding agents - An overlay filesystem to feed files to your agent securely - A Vercel Sandbox compatible API, so you can quickly upgrade to a real VM if you need to run binaries - An example AI agent that explores the just-bash code base using just-bash - I imported the Oils shell bash compatibility suite and just-bash passes a very good chunk What is interesting about this codebase: It was essentially entirely written by Opus 4.5. Coding agents love bash and they are good at reproducing it. They are also great at text-book recursive descent parsers and AST tweet-walk interpreters. That said, it is, like, a lot of code and I didn't read it all ๐Ÿ˜…. This is very much a hack, but it also seems to be _really_ useful. I haven't really found anything agents want to use that it doesn't support and it's fast and secure (caveats apply). It doesn't have write access to your computer and the filesystem is given a root that the agent cannot escape from. Find it at Related: Our recent blog post how we migrated our data analysis agent to bash tools and achieved incredible quality improvements The video shows the example agent investigating the just-bash code base

Malte Ubl

125,326 views โ€ข 10 months ago