Building AI Agents
From the control loop to the Model Context Protocol · by Giseldo Neo and Alana Neo

How to build the complete machinery of an AI agent from scratch in Python: the control loop, tools, harness, context, skills, MCP and orchestration, plus security, evaluation and cost.
Contents
- Preface
- Information
- Abstract
- 1. From chatbot to agent · Exercises
- 2. The agent cycle · Exercises
- 3. Tools: the contract between model and world · Exercises
- 4. The harness · Exercises
- 5. Context: the memory that costs money · Exercises
- 6. Skills: giving the agent a procedure · Exercises
- 7. MCP: a protocol for tools · Exercises
- 8. Orchestration: agents that call agents · Exercises
- 9. Security · Exercises
- 10. Evaluation · Exercises
- 11. Cost and performance · Exercises
- 12. Assembling your agent · Exercises
- Acknowledgments
- About the authors
- References