Series
Agent systems from first principles
Twenty-six weeks, one essay a week, built in order. It starts with vocabulary,
then hand-writes a runtime, then reads two real ones, then builds the same
product on both, then asks what it takes to run in production.
8 of 26 published.
II Runtime mechanics
A minimal agent runtime written by hand. W5–W8
- W5 Inside the Agent Loop: One Bad Retry, Two Refunds Sep 27 How an AI suggestion becomes a real-world action—and how permission checks, approval gates, and recovery logic keep a helpful agent from making an expensive mistake.
- W6 You Ask a Shopping Agent to Find a Jacket. How Does It Actually Place the Order? Oct 4 How tool calling connects your request to product searches, stock checks, and an authorized purchase.
- W7 When Shopping Becomes a Conversation, What Must an AI Remember? Oct 11 Agentic commerce depends on context assembly: giving a shopping agent the right information at the right moment.
- W8 When a Shopping Agent Stops, What Should Survive? Nov 8 Session, state, memory, and artifacts determine whether an agent can continue—and whether it should.
III Reference implementation A · OpenClaw
Trace one message through its whole lifecycle. W9–W12
- W9 OpenClaw architecture explained planned
- W10 Designing an OpenClaw skill registry planned
- W11 Building a Telegram-to-agent application planned
- W12 How skills, MCP, bots and cron work together planned
IV Reference implementation B · DeepSeek Harness
Write plugins; swap the loop, the model, the storage. W13–W17
- W13 DeepSeek Harness architecture explained planned
- W14 Why everything is a plugin planned
- W15 Building my first harness plugin planned
- W16 Replacing the model, tool and storage plugins planned
- W17 Session resume, fork and replay planned
V Build
One business domain, two runtimes, a digital employee that actually runs. W18–W22
- W18 Building an e-commerce agent on OpenClaw planned
- W19 Designing scheduled agents planned
- W20 Human-in-the-loop approval architecture planned
- W21 Building the same agent on DeepSeek Harness planned
- W22 OpenClaw vs DeepSeek Harness planned
VI Production
Reliability, security, observability, evaluation — a reusable playbook. W23–W26
- W23 Why agent demos work but production agents fail planned
- W24 Agent permissions and security planned
- W25 Observability and evaluation for agents planned
- W26 Agent system design patterns: a playbook planned
New here? Start here instead — it points at three essays
that stand on their own.