Announcing the second edition of Principles of Building AI Agents

We're excited to announce the release of v2 of Principles of Building AI Agents.

Sam BhagwatSam Bhagwat·

Jun 2, 2025

·

1 min read

Two months is a short time to write a new edition of a book, but life moves fast in AI.

This edition has new content on MCP, image gen, voice, A2A, web browsing and computer use, workflow streaming, code generation, agentic RAG, and deployment.

AI engineering continues to get hotter and hotter. Mastra’s weekly downloads have doubled each of the last two months. At a typical SF AI evening meetup, I give away a hundred copies of this book.

Then two days ago, a popular developer newsletter tweeted about this book and 3,500 people (!) downloaded a digital copy (available for free at mastra.ai/book if you are reading a paper copy).

So yes, 2025 is truly the year of agents. Thanks for reading, and happy building!

Getting the book

The book is available as a download to everyone online. You can also purchase a print copy on Amazon.

Share:
Sam Bhagwat

Sam Bhagwat is the founder and CEO of Mastra. He co-founded Gatsby, which was used by hundreds of thousands of developers. A Stanford graduate and veteran of web development, he authored 'Principles of Building AI Agents' (2025).

All articles by Sam Bhagwat