A synthesis of hard-won lessons from Claude Code, OpenHands, SWE-agent, GoClaw, Nanobot, PicoClaw, and the emerging discipline of harness engineering . This is the guide we wish existed when we started building agents.
The goal: an AI agent that is fast, scalable, capable, reliable, efficient, and secure โ not by accident, but by design.
๐ How to read this guide
Read top-to-bottom for the full mental model. Each section builds on the previous one.
Skim the boxes if you only want the takeaways โ every section ends with an Actionable rules box.
Jump to Part 14 โ The Build-Your-Own Roadmap if you already know the theory and want a sequenced plan.
Bookmark Part 15 โ Anti-Patterns for design reviews.
๐ Table of Contents
โก Part 0 โ The Core Equation
๐ง Part 1 โ Mental Model: What an AI Agent Actually Is
๐ Part 2 โ The Agent Loop (the Kernel)
๐ ๏ธ Part 3 โ Tools: The Agent's Hands
๐ญ Part 4 โ Context Engineering
๐พ Part 5 โ Memory (Long-Term Knowledge)
โก Part 6 โ Concurrency & Multi-Agentโฆ