Pydantic Monty ships TypeScript bindings to sandbox model-written Python in Node and browsers
samuelcolvin · x · 2026-10-17
Pydantic's Monty, a lightweight Rust Python interpreter for AI workloads, now ships TypeScript bindings (npm install @pydantic/monty). Node apps can safely execute model-generated Python, expose TS functions to it as sync/async host functions, and enforce per-session memory and time limits. Execution runs in monty worker subprocesses so adversarial code crashes only the worker; a WebAssembly build (@pydantic/monty/wasm) runs in browsers via Web Workers.
More from coding & agent
- Open-source Claude Code skill embeds a live website inside a tweet via player cards — doooyle · 2026-10-17
- YC Partner: Personal Software Is Cheaper Than Ever, and Open-Sourced Code Lets Others' Agents Fill the Gaps — ycombinator · 2026-10-17
- Claude Code's contextual UX hints earn praise from a heavy daily user — iamsahaj_xyz · 2026-10-17
- Codex-created worktrees blamed for killing a 600GB-battered SSD; users say disk bloat is the worst part of AI coding tools — natesiggard · 2026-10-17
- Engineer: I'm not smarter than AI anymore — time to learn to orchestrate it — KevinNaughtonJr · 2026-10-17
- Open-source OODA pentest agent drives Kali and Playwright tools directly over MCP — irraz_rulez · 2026-10-17