A BOOK FOR SOFTWARE ENGINEERS

Intelligence
needs engineering.

AGENTIC AI

Architecture, Theory, and Practice

Build systems that reason, plan, and act.
Understand the architecture that makes them reliable.

Get the book
Written by Marco DinacciPublished by Brilberry Press
Agentic AI: Architecture, Theory, and Practice, by Marco Dinacci. Brilberry Press.

01 / THE FIRST EDITIONFROM INFERENCE TO ACTION

14 chapters115 technical figuresPython case studiesArchitecture before frameworks

01 / THE APPROACH

Beyond the demo.
Into the system.

A capable model is the starting point. Building an agent that operates reliably takes software engineering.

This book examines what surrounds the model: the tools it can use, the context it receives, the state it preserves, and the rules that govern its actions. It connects these choices to familiar ideas from distributed systems and software architecture.

For software engineers, architects, researchers, and graduate students who want to understand the design decisions behind agent systems.

Concrete mechanisms. Explicit trade-offs.
Examples you can reason about.

02 / WHAT YOU’LL LEARN

Make the important
decisions explicit.

01

Give the model the right context.

Distinguish state, memory, and context. Design retrieval that supplies attributable evidence rather than a larger prompt.

CONTEXT & RAG
02

Turn proposals into controlled actions.

Design tool contracts, explicit plans, and agent harnesses. Preserve progress across sessions and verify when work is complete.

TOOLS & RUNTIME
03

Know what happened. Measure what worked.

Trace observable execution, evaluate outcomes, and compare quality, latency, and cost across complete systems.

TRACING & EVALUATION
04

Constrain authority as capability grows.

Choose when to delegate, establish ownership and approvals, and enforce boundaries around tools, memory, and execution.

COORDINATION & SAFETY

03 / INSIDE THE BOOK

One architecture.
Four perspectives.

Start with the agent loop. Follow it through context, tools, and coordination into the realities of production.

Four parts · Fourteen chapters

IFoundationsTHE MODEL AND ITS INPUT
  1. 01Foundations
  2. 02Prompting
  3. 03Retrieval and Retrieval-Augmented Generation (RAG)
IIBuilding BlocksCAPABILITIES AND COORDINATION
  1. 04Tools
  2. 05Observability and Evaluation
  3. 06Multi-Agent Systems
IIIRuntimeEXECUTION AND ADAPTATION
  1. 07Planning
  2. 08Agent Harnesses and Production Runtime
  3. 09Memory
  4. 10Learning
IVSystemsORGANIZATIONS AND OPERATIONS
  1. 11Agent Organizations
  2. 12Optimization
  3. 13Safety
  4. 14Future Directions

04 / THEORY, PUT TO WORK

Follow the decisions.
Understand the code.

Concise Python examples sit alongside the explanation. Follow an OAuth migration, a repository investigation, a dependency audit, and a governed delivery workflow.

The accompanying bbagents library turns the book’s concepts into typed, executable components for plans, policies, context, memory, and observability.

ANATOMY OF AN ACTION
  1. 01ObserveCollect relevant evidence.
  2. 02DecidePropose the next action.
  3. 03AuthorizeCheck policy and approvals.
  4. 04ExecuteApply a bounded operation.
  5. 05VerifyInspect the actual outcome.

THE MODEL PROPOSES. THE RUNTIME ENFORCES.

BUILD WITH A CLEARER MENTAL MODEL

Your next agent
starts here.

Agentic AI
Architecture, Theory, and Practice

Marco Dinacci · Brilberry Press

First editionPDF edition

Agentic AI

Fourteen chapters on the engineering
behind systems that reason and act.

$9.99 USD

Checkout opening soon

Purchases will be processed through Stripe.

A FEW DETAILS

Before you begin.

Who is the book written for?

Experienced software engineers, architects, researchers, and graduate students. Familiarity with Python and software architecture will help you get the most from the examples.

Is it tied to a particular framework?

The book focuses on architectural mechanisms and trade-offs. It uses concrete tools and protocols, including LangGraph, MCP, and A2A, while keeping the core ideas independent of any one vendor.

Does it cover harnesses and agent skills?

Yes. Chapter 8 covers harness composition, reusable skills, work across sessions, and production execution. Context management, evaluation, and security are developed in their respective chapters.

How do I purchase a copy?

Checkout is not open yet. When available, the purchase button will take you to Stripe, where the price, format, and delivery details will be confirmed before payment.

21 PAGES · FOUR CHAPTERS

A closer look
inside the book.

Read selected pages in the book’s original layout, with diagrams, Python code, and a repository-repair case study. No email address required.

Read the 21-page preview Download PDF
  1. 01From Programs to AgentsHow control flow changes when software delegates next-step decisions.Book pages 2–4
  2. 03Retrieval and ContextContext as a view over state, retrieval architecture, and a Python case study.Book pages 58–64
  3. 04Tools and Runtime BoundariesOrdinary APIs, model proposals, and the runtime that turns them into actions.Book pages 73–78
  4. 07When to Write an Explicit PlanThe distinction between model reasoning and durable application plans.Book pages 173–175

Selected sections, not complete chapters. Original page numbers are retained.
Marco Dinacci · Brilberry Press