
AI Agents & Harnesses Foundations: Building from ReAct Loops to Long Horizon Agent Harnesses with LangChain and LangGraph
Author(s): Eden Marco (Author)
- Publisher: Packt Publishing
- Publication Date: September 29, 2026
- Edition: 1st
- Language: English
- Print length: 260 pages
- ISBN-10: 1808087313
- ISBN-13: 9781808087318
Book Description
“Harness design is key to performance at the frontier of agentic coding.” — Anthropic Engineering, 2026
Go beyond simple prompts and build production-grade AI agents with LangChain and LangGraph, from ReAct reasoning loops to tool-calling and context engineering.
AI Agents & Harnesses Foundations shows you how to build the AI agents and agent harnesses powering modern agentic AI applications. You’ll start with LangChain’s core primitives, including models, messages, prompts, tools, and structured outputs, and use them to build increasingly capable agents. From there, you’ll go under the hood to understand the agent loop, tool-calling LLMs, state, memory, context engineering, orchestration, and long-horizon agents. Using LangChain, LangGraph, and LangSmith, you’ll see how modern agent systems are built, orchestrated, traced, and observed. By the end, you’ll understand modern agent harness architecture and have the practical foundations to build, debug, secure, and evolve reliable production AI agents.
In this book, you’ll learn how to:
- Build AI agents with LangChain primitives, tools, and structured outputs
- Understand the agent loop: call the model, run tools, feed results back, repeat
- Build stateful agents with LangGraph and apply context engineering
- Trace and debug agent behavior with LangSmith
- Design reliable agent harnesses for long-horizon execution
- Secure and improve production AI agent systems with memory, persistence, and guardrails
Why this book stands out
Most agent tutorials show you the decorator and stop there. This one shows you what the decorator, and the harness around it, is actually doing.
- Built from first principles: LangChain, raw prompts, and regex, stripped down and rebuilt by hand
- Harnesses explained, not name-dropped: traced through real systems like Claude Cowork and LangChain’s Deep Agents
- Grounded in agent history: LangChain’s role in popularizing agent abstractions, and its lineage through LangGraph and Deep Agents
- Theory that explains /li>
Who this is for
This book is for developers, engineers, data and ML professionals, platform and operations teams, and product managers who want to understand agents and harnesses, subagents, context engineering, MCP, skills, from the inside out. Comfort with Python and a command line helps; no machine learning background is needed. It’s a foundations book: you’ll build the agent loop and harness yourself, layer by layer, rather than just learning where to plug into a framework.
Editorial Reviews
Editorial Reviews
About the Author
Eden Marco is an AI Architect at Google Cloud and a LangChain Ambassador, with years of experience in software engineering, cloud architecture, and security. He was one of the first engineers at Orca Security, holds a bachelor’s degree in computer science from the Technion, and has taught at Reichman University. Eden is also an AI and AI security educator, sharing his real-world experience building production-grade, secure AI systems through practical, hands-on teaching.
Wow! eBook![[Dancing in the Dark: A Cultural History of the Great Depression] [By: Dickstein, Morris] [September, 2010]-Wow! eBook](https://m.media-amazon.com/images/I/51ONnleumRL._SY445_SX342_FMwebp_.jpg)

![Total Solar Eclipses and How to Observe Them by Mobberley, Martin [Springer, 2007] (Paperback) [Paperback]-Wow! eBook](https://m.media-amazon.com/images/I/21K86Gjaq-L._FMwebp_.jpg)
