· 7 min read

mod_wsgi's Creator Is Building Muru, an Apache-Licensed Rust Front End for Python Web Apps, With AI Agents. It Is Alpha 0.1.0a18. Here Is How I'd Try It Without Betting Production on It.

Graham Dumpleton, the person behind mod_wsgi, is building a new way to run Python web apps, and he's doing it in public and with AI coding agents. Muru is a Rust command-line tool and edge server that sits in front of WSGI and ASGI apps, handles TLS and HTTP/2, manages your Python worker processes, and swaps releases only when the new one has actually started. Simon Willison linked it on November 21 alongside 18 of Graham's posts from November 4 to 22. The PyPI runtime is at 0.1.0a18, marked alpha. For a solo builder running a Django or FastAPI app on one VPS, the design is interesting enough to test now and too young to trust with your only production box.

What Muru is

There are two pieces. muructl is a Rust binary with no Python dependencies. muru is a small runtime library that runs inside your app's interpreter, and you don't install it yourself: muructl fetches the matching version into your user cache on first run. Graham's own description of the project is a routing edge, a control plane and a Python runtime, with zero-downtime releases and Python-aware process management.

The architecture explains why it's more than another gunicorn alternative. The Rust process owns the edge: it accepts connections, terminates TLS, speaks HTTP/1.1 and HTTP/2, serves static files, compresses responses and renders error pages. A separate Python host process imports your app once and forks workers from it. The host never serves requests. Requests travel from the edge to workers over a Unix socket using typed messages rather than raw HTTP. Graham estimates the cost of that extra hop at one more copy of each byte and some tens of microseconds per request.

The features that matter for a one-person app

Most of the feature list targets teams (weighted canaries, A/B splits, preview releases). A few items solve problems I've had on my own servers:

  • A failed release doesn't take the site down. A reload starts a new host and workers next to the old ones and moves traffic only when they're ready. If the new code fails to import, the previous release keeps serving. Graham's own example log shows release r3 failing to start while r2 keeps serving.
  • Process management covers memory limits, soft and hard timeouts, worker groups and scaling, plus free-threaded Python builds.
  • WSGI and ASGI apps can be mounted side by side, which helps if you're halfway through moving a Django app to async.
  • The access log includes queue time, app time, the worker and a request ID that's returned as an X-Request-ID header.
  • There's an MCP server that lets a coding agent deploy a change as a release, test it, read what Muru saw when it failed, and roll back.

That last one is worth a pause. If you already let an agent deploy, a server that exposes "what broke" in a structured way is better than the agent scraping journalctl.

How it was built, and why that's part of the story

The README says Muru is developed with extensive use of AI coding agents, and it takes contributions as requirements, not code: you open an issue describing the problem and the maintainer implements accepted work. Willison points to Graham's post on using AI as worth reading, and in it Graham says deciding what isn't good enough yet still falls to him.

I think this is the most useful part for solo builders. It's an experienced infrastructure maintainer showing what agent-built software looks like when someone with twenty years of context reviews every piece. The design posts are detailed and the trade-offs are explained. That's the bar I'd want to hit with my own agent-built code, and most of us, me included, don't write it down nearly as well.

Where I could be wrong

The case against trying it is strong. It's alpha. PyPI's classifier says Development Status 3, the PyPI page warns that the release may not be stable for production, and the README says commands and configuration may change between releases. When I looked, the GitHub repo had five stars and 118 open issues. It runs on Linux and macOS with CPython 3.11 or later, with no Windows wheels. I found no benchmarks against gunicorn, uvicorn or Granian in anything Graham or Willison published, so I can't tell you it's faster, and I wouldn't assume it.

A one-maintainer project that accepts requirements instead of pull requests is also a bus-factor question. If you build your deploy flow around its release model and the project stalls, you're migrating back. That risk is real. My view is that the rollback-on-failed-import behavior is valuable enough to test, and that testing costs an evening.

What I'd actually do

I'd try it on a side project I don't mind breaking, not on the app that pays bills:

uv tool install muructl
muructl run app:application

The second line serves on http://127.0.0.1:8080, and in development mode it only listens on loopback and reloads when a .py file changes. Watch out for one trap: the install button on the muru PyPI page gives you pip install muru, which is the runtime library. You want muructl. The docs say pipx install muructl works too.

Then I'd test the two things I care about. Push a release with a deliberate import error and confirm the old version keeps serving. Run a slow endpoint past its timeout and see what the logs and the request ID tell you. If both behave the way the posts describe, I'd put it on a staging box with muructl daemon start and leave production on whatever already works until it leaves alpha.

Author

Sources

Newsletter

The week, in one email.

The weekly summary of what happened and what it means for people who build alone. No spam, unsubscribe any time.

Form not showing? Subscribe on this page instead.

Related Posts

Mem0 Publishes 92.5% on LoCoMo. An Independent Paper Measured It at 61% Under a Different Setup. Here Is the 50-Question Memory Eval I'd Run on My Own Data Before Picking a Memory Layer.

Same benchmark name, a 31-point gap. Mem0 says its number describes its managed platform with proprietary optimizations. A rival developer says the judge prompt is generous. For a solo builder choosing agent memory, neither number answers the question that matters, so I'd build a small test once and reuse it.

OpenRouter Pulled 125 Endpoints From Zero Data Retention After Researchers Found Leaking Inference Hosts. Together's Leak Started With a Coding Agent Committing a Credential. Here Is the Provider Audit I'd Run Today.

OpenRouter off-boarded three inference providers and stripped ZDR eligibility from 125 endpoints. Together traced its own prompt leak to an AI coding agent that committed a credential. Two lessons for anyone shipping on cheap open-weight inference, and the audit I'd do this week.

Apple's Siri AI Now Runs in 15 of Its Own Apps, and Third-Party App Intents Work Only for Internal TestFlight Until Spring. Here Is What I'd Build Into an Indie iOS App Before the Door Opens.

Apple opened the Siri AI developer preview on November 3 and has started rolling Siri AI out in its own apps. Your customers can't use your integration until App Store submissions open in the spring, which makes the next few months the cheapest time to get your App Intents right.