The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
Kick off your book project in 2 hours, get started with GhostAI in 2 hours, or do both! Free live workshops, on Zoom. You’ll leave with a real book project and a clear plan to keep going. Saturday, June 27, 2026.
Minimum price
$14.99
$20.99
About the Book
The Revolution of Stateful AI
Stop building chatbots that forget. Start architecting agents that evolve.
In the current AI landscape, we are witnessing a fundamental shift. We are moving away from stateless interactions—where every prompt is an isolated island of computation—toward stateful autonomous agency. Hermes Agent, the groundbreaking open-source framework by NousResearch, sits at the absolute frontier of this transition. This volume is the definitive technical manual for v0.13, the "Workforce Update," providing you with the blueprints to build digital workforces that learn, remember, and grow.
The Methodology: A "Source-Code First" Engineering Manual
This is not your typical AI book filled with surface-level tutorials or repurposed documentation. This 21-chapter, 700+ page elephant was built using a proprietary "Source-First" pipeline.
To ensure absolute technical accuracy and unprecedented depth, each chapter was developed by injecting the actual implementation files of the v0.13 codebase directly into high-reasoning LLM analysis workflows. We didn't just ask the AI to "write about Hermes"; we provided the raw Python source:
The result is a Manual of Record. You are not just reading about an agent; you are performing a surgical post-mortem of a production-grade engine, revealing engineering decisions often left out of official docs—from randomized jitter in SQLite write-contention to the specific mechanics of token budget refunds.
What You Will Learn
This volume is structured to take you from the foundational concepts of statefulness to the complex management of a self-healing, autonomous workforce.
Every Chapter: From Library to Production
To ensure this knowledge is actionable, every technical chapter follows a rigorous dual-code structure:
Who This Book Is For
This book is written for the builders of the next generation of AI:
Prerequisites
To get the most out of this 700-page deep dive, you should have:
Table of contents:
Chapter 1: The Evolution of AI Agents: From Stateless to Stateful
Chapter 2: Meet Hermes: An Introduction to the Self-Learning Agent
Chapter 3: The Memory Engine: How Persistent State Changes Everything
Chapter 4: v0.13 Architecture: Modular Plugins and Agentic Cores
Chapter 5: Installation and Environment Setup (Desktop, Docker & Termux)
Chapter 6: Connecting the Brains: Configuring Providers and Local Models
Chapter 7: The TUI and Web Dashboard: Real-time Agent Monitoring
Chapter 8: The MCP Revolution: Integrating Model Context Protocol Tools
Chapter 9: Toolsets and Sandboxing: Executing Code Safely in v0.13
Chapter 10: The Anatomy of a 'Skill': Writing the Agent's Playbook
Chapter 11: Context Retrieval: Semantic Search and FTS5 Deep Dive
Chapter 12: Managing and Curation: The Background Review Process
Chapter 13: Introduction to DSPy: Programming Instead of Prompting
Chapter 14: Genetic-Pareto Prompt Evolution (GEPA) in v0.13
Chapter 15: Running the Self-Evolution Pipeline: From Failure to Skill
Chapter 16: Optimizing Tool Descriptions and Code Autonomously
Chapter 17: Multi-Agent Orchestration: Spawning and Managing Sub-Agents
Chapter 18: Threat Mitigation: Credential Rotation and Injection Defenses
Chapter 19: Real-World Case Studies: Deep Research and CI/CD Automation
Chapter 20: Observability & Telemetry: Tracking Costs, Tokens, and Latency
Chapter 21: Beyond Hermes: Scaling to Autonomous Evolving Workforces
You will find this list of real-world code snippets and architectural patterns that are immediately applicable to production environments.
1. Orchestration & Resource Management
2. Memory & State Persistence
3. Security & Threat Mitigation
4. Self-Evolution & Optimization
5. Production Integrations
Each chapter is structured into theoretical foundations, an annotated basic example, an annotated advanced example, and five coding exercises based on real-world scenarios with complete solutions.
About the Author
A veteran software engineer with 20 years of experience, I have dedicated my career to the art of automation. My philosophy is simple: programming should eliminate repetitive chores to unlock human creativity. This journey began early on with the development of custom code-generation tools and has evolved into a deep mastery of LLMs and their APIs. Today, I specialize in architecting AI-driven solutions that handle everything from complex coding and security tasks to advanced knowledge retrieval, transforming the way we interact with technology
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.