Skip to content

olyasir/building_agents_book

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building Agents

A Field Guide for the People Teaching Software to Think for Itself

Stars

A short book on how to design LLM agents that actually work in production. Written for developers new to agents and engineers already shipping them.

If this book helps you build something that works — please ⭐ the repo. It's the only signal I get that the writing landed, and it's how other readers find it.

The thesis, stated up front. Writing an agent is, almost entirely, the practice of managing context. You don't get to change the model. You get to decide what enters its context, in what order, with what budget, and how its output gets folded back in. Every chapter in this book is, underneath, a chapter about that.


Read it

📕 Building_Agents.pdf — the full book, ~90 pages.

Or read it chapter by chapter in markdown:

Front matter

Part I — What Even Is an Agent?

Part II — The Anatomy of an Agent

Part III — Patterns and Behaviors

Part IV — Making It Real

Part V — The Wider World

Back matter

The full outline lives in TABLE_OF_CONTENTS.md.


What this book is, and isn't

It is a thinking book — analogy-driven, code-light, vendor-neutral. Each chapter opens with an analogy, includes a recurring "What this costs you" sidebar (tokens, latency, 3am pages, cache hits), ends with a short "Mistakes I have made" list, and closes on the same chime: this was a chapter about context.

It is not a framework tutorial, a hype piece, or a philosophy book. It tries to give the durable picture — the stuff that will still be true when the model you're using today is a footnote.


Rebuilding the PDF

python3 -m venv .venv
.venv/bin/pip install markdown-pdf
.venv/bin/python build_pdf.py

This writes a fresh Building_Agents.pdf from the chapter markdown.


License

The source markdown is released under CC BY 4.0. Use it, fork it, quote it, teach from it — attribution appreciated.


If this helped you

Two small things would mean a lot:

  • Star the repo — it tells me the writing was worth it, and helps other people stumble onto the book.
  • 🐛 Open an issue if you find a mistake, a stale claim, or a chapter that didn't land. The book is meant to age well, and corrections from readers are how it stays useful.

If you ship an agent after reading this — I'd genuinely love to hear what worked, what didn't, and which chapter you'd rewrite. Find me on the repo's discussions.

Thanks for reading.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages