AI Engineer Professional

Book Profile

Build an AI Agent (From Scratch)

Manning (MEAP) · 2025

A hands-on guide to building autonomous AI agents from scratch by focusing on the core principle of Context Engineering, empowering developers to understand, debug, and create their own agent frameworks.

Get the book →

Overwhelmed by the constant flood of new AI agent frameworks and tools? This book cuts through the noise by taking a first-principles approach. Instead of just teaching you another framework to memorize, we build a simple but powerful agent from scratch using Python. You'll discover that the secret to effective agents isn't the framework, but a discipline called Context Engineering—the art of providing the right information to the LLM at the right time. Through hands-on projects, you will learn to implement core agent capabilities like tool use, memory, planning, and code execution. By the end, you won't just be a user of agent frameworks; you'll have the confidence and clarity to debug them, evaluate their trade-offs, and even build your own when the need arises.

What it argues

This model, derived from 'Build an AI Agent (From Scratch)', posits that agent performance is driven by the quality of context engineering and the agent's tool ecosystem. These design levers enhance the agent's situational understanding and strategic flexibility, which in turn lead to improved task performance, operational efficiency, and system reliability.

Key ideas it contributes

Featured in these guides