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

Published: 2025-11-04
Duration: 1850s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/e6882320-7531-42d8-af84-5d0962628b14/stream.mp3

## 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.

**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](https://docs.ockam.io/), 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](https://autonomy.computer/).

Sponsors

- [Vention](https://ventionteams.com/codestory)
- CodeCrafters helps you become a better engineer by building real-world, production-grade projects. Learn hands-on by creating your own Git, Redis, HTTP server, SQLite, or DNS server from scratch. Sign up for free today using this [link](https://l.mailtrack.com/l/23126a66ca05e0f5c6fed5631effe0f55a6e32d1?u=12932909) and enjoy 40% off.
- [Full Scale](https://productdriven.com/codestory)
- [Paddle.com](https://www.paddle.com/)
- [Sema Software](https://www.semasoftware.com/)
- [PropelAuth](https://www.propelauth.com/)
- [Postman](https://www.postman.com/podcast/codestory)
- [Meilisearch](https://www.meilisearch.com/?utm_campaign=podcast&utm_medium=ad&utm_source=codestory)

Links

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

  

Timestamps

00:00 – Intro

06:37 – Building the Autonomy MVP

10:23 – Maturing the Product Roadmap

14:41 – Building the Team

16:09 – Tackling Scalability

20:56 – Proudest Moments at Autonomy

22:15 – Mistakes and Lessons Learned

24:42 – The Future of Autonomy

27:31 – Influences on Mrinal's Work

28:21 – Advice for Young Entrepreneurs

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/](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:

- [Tiger Data](https://tigerdata.com/)

- [Protected Harbor](http://protectedharbor.com/codestory)

- [Render](https://render.com/)

- [Fitnexa](https://www.fitnexa.com/)

- [Perplexity](https://pplx.ai/codestory)

- [Entelligence](https://entelligence.ai/)

Checkout our [Substack](https://news.codestory.co/subscribe)

Checkout our [Stacklist!](https://stacks.codestory.co/)

Checkout our [Patreon!](https://www.patreon.com/cw/codestory)

Hosted by  [Noah Labhart.](https://noahlabhart.com/)

  
  
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](https://redcircle.com/brands)  
  
Privacy & Opt-Out: [https://redcircle.com/privacy](https://redcircle.com/privacy)

## Chapters
- 0:00 — Intro
- 6:37 — Building the Autonomy MVP
- 10:23 — Maturing the Product Roadmap
- 14:41 — Building the Team
- 16:09 — Tackling Scalability
- 20:56 — Proudest Moments at Autonomy
- 22:15 — Mistakes and Lessons Learned
- 24:42 — The Future of Autonomy
- 27:31 — Influences on Mrinal's Work
- 28:21 — Advice for Young Entrepreneurs

## Frequently Asked Questions
- **Q:** What is Autonomy and who is it for? — **A:** 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.
- **Q:** Why does Autonomy use the actor model for AI agents? — **A:** 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.
- **Q:** How many AI agents can run in parallel on Autonomy? — **A:** 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.
- **Q:** How do you stop context rot in long-running AI agents? — **A:** 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.
- **Q:** How did Autonomy build its MVP and find early customers? — **A:** 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.
