Monty Go
Pure-Go wrapper for Pydantic Monty Python interpreter via WASM + wazero - fugue-labs/monty-go
About Monty Go
Run LLM-generated Python safely from Go — no containers, no CGO, no subprocess.
LLMs work faster, cheaper, and more reliably when they write code instead of making sequential tool calls. Instead of:
One model call instead of three. The Python code calls your Go functions, Monty pauses at each call, your Go code executes it, and Monty resumes. No containers. No sandbox services. No exec() . Just a 2.9MB WASM binary embedded in your Go binary.
Infinite loops, memory bombs, and deep recursion all terminate cleanly with a *MontyError . Go's context.Context deadlines are also respected — cancel the context and the WASM instance stops.
Monty pauses three times (two searches, one calculation), your Go functions handle each one, and the final result flows back through Gollem's typed output pipeline. Three tool calls in one LLM round-trip.
Gollem gives you compile-time type safety, structured output, guardrails, cost tracking, middleware, and multi-provider support. monty-go gives you secure embedded Python execution. Together, your agents do more work per model call.
No subprocess. The WASM binary is embedded via go:embed and compiled once at startup.
Fresh instance per call. Each Execute() gets an isolated WASM instance. No state leaks between calls.
PEP 448 generalized unpacking ( *args , **kwargs in calls, literals, etc.)
Discussion
Sign in to join the discussion.
Loading comments…
Tagged
Alternatives to Monty Go
Tools in the same space, ranked by how they are performing in the directory.
CAIPE
Open-source multi-agent system for AI-powered platform engineering.
Open source/AI Agents
Talos
Hand it a shell. Every tool call passes a gate that grants authority for exact arguments, once, for 30 seconds — and logs the verdict.
/Developer ToolsMetis
Metis is a coding agent that boosts AI/LLM coding performance by 50% - Wholiver/metis
Open source/Developer ToolsXYZZY
Self-hosted multiplayer AI workspace: a team makes hard technical decisions with AI and keeps the receipts.
/AI AgentsSlotstream
Run Qwen3.8-Flash-Next (125B MoE, 104 GB at 4-bit) on Macs with a fraction of that RAM by streaming experts from SSD.
/Developer ToolsCtx
Instant recall for coding agents.
Open source/Developer Tools