New every Friday: the week's best founder lessons in one email. Subscribe free
Back to All Episodes
S11 E24: Running Thousands of AI Agents at Once with Mrinal Wadhwa of Autonomy
Nov 04, 2025 30:50 S11 E24

S11 E24: Running Thousands of AI Agents at Once with Mrinal Wadhwa of Autonomy

0:00 / 30:50

About this episode

Running thousands of AI agents at once: Mrinal Wadhwa of Autonomy on what infrastructure that scale requires.

———

Mrinal Wadhwa grew up in India with a Dad in the Armed Forces, so he moved around a lot. His mother was a teacher for 40+ years, and greatly influenced his love for teaching. In addition to this, he grew up loving to build things. He was introduced to computers and the internet by his cousin - and at that point he was hooked. Outside of tech, he is married and enjoys attending concerts in the Bay Area. He plays pool, very seriously. In fact, he is the guy carrying the little bag into a party with his own pool stick.

Mrinal is one of the minds behind Okham, a popular open source Rust toolkit to build secure communications between applications. Late last year, he observed people desiring to build the layer between agent communications... and decided to build something to do it the right way.

This is the creation story of Autonomy.

Sponsors

Links

  • https://autonomy.computer/
  • https://docs.ockam.io/
  • https://www.linkedin.com/in/mrinalwadhwa/

Times are from the episode recording; ad breaks in your player may shift them a bit later.

Read the key answers from this episode, with quotes and timestamps from Mrinal Wadhwa from Autonomy: https://www.codestory.co/episodes/s11-e24-the-agent-swarm-architecture-moving-beyond-single-prompt-bots-to-orchestrate-5000-parallel-ai-agents-safely-in-production-with-mrinal-wadhwa-founder-cto-of-autonomy/



Current Sponsors:

Checkout our Substack

Checkout our Stacklist!

Checkout our Patreon!

Hosted by Noah Labhart.



Our Sponsors:
* Check out Granola and use my code granola.ai/CODESTORY for a great deal: https://granola.ai
* Check out Perplexity: https://pplx.ai/codestory


Advertising Inquiries: https://redcircle.com/brands

Privacy & Opt-Out: https://redcircle.com/privacy

Chapters

Featured Guest

Latest Season of the Podcast is Sponsored By

Key Takeaways

  • Every Agent Is an Actor: Autonomy runs each agent as a stateful actor on a Rust runtime wrapped in Python. Agents can create thousands of sub-agents to finish jobs faster while keeping each agent's context small.
  • Scale Beyond Containers per Agent: Tests fit tens of thousands of agents in one 250 MB container. Connecting containers securely with Ockam pushed that to hundreds of thousands, even millions, working in parallel.
  • Demo First, Then Co-Build: After about two months of building in isolation, the team showed a demo to spark ideas. A bank asked for parallel loan document analysis, and building it exposed API and library interface gaps.
  • Documentation for Coding Agents: When a bank engineering director adapted their example in Cursor, the team made docs coding-agent friendly and began handing customers example prompts that build and deploy apps.
  • Prune Context to Stop Rot: Feeding full history back to the LLM worked for 5 or 10 steps but derailed longer runs. Carefully trimming each loop's input let agents stay coherent, including in hour-long voice interviews.

Frequently Asked Questions

What is Autonomy and who is it for?

Mrinal Wadhwa, Founder and CTO, describes it this way: "Autonomy is a platform for developers to build and ship autonomous AI products." [02:46] It is meant for products delivered to internal or external customers, not personal scripts.

Why does Autonomy use the actor model for AI agents?

Mrinal explains that the properties of highly scalable actor systems suit agents because "agents are these long-lived concurrent state machines" [08:50]. Making each agent an actor lets developers create thousands of parallel agents easily and cheaply.

How many AI agents can run in parallel on Autonomy?

Mrinal says that after making the core design decisions, "we tested how many agents can we spin up in a single 250 megabyte container," [18:59] and the answer was tens of thousands. Across a distributed fleet of containers connected with Ockam, he puts it at hundreds of thousands, even millions.

How do you stop context rot in long-running AI agents?

Mrinal's team found that replaying the full history made the LLM noisy and confused over many iterations. As he put it, "the learning from that was actually what we need to do is prune and trim very carefully" [23:49] what goes to the model in each loop.

How did Autonomy build its MVP and find early customers?

The team spent two to two and a half months building before reaching out to people in their network. Mrinal says "It was minimum demo-able thing that we could go show to someone so it would evoke their ideas." [11:44] By the public announcement, five customers were live in production.

Media List 5000, Podcasts, Fall 2026