Learn to Build Agent Harnesses
Agency comes from the model. An agent product = model + harness. Build the vehicle.
Core Loop 7
Overview
“Agency comes from the model. An agent product = model + harness.”
The Agent Loop
“One loop & Bash is all you need”
Tool Use
“Adding a tool means adding one handler”
TodoWrite
“An agent without a plan drifts”
Subagent
“Break big tasks down; each subtask gets a clean context”
Skills
“Load knowledge when you need it, not upfront”
Context Compact
“Context will fill up; you need a way to make room”
System Hardening 5
Permission System
“Safety is a pipeline, not a boolean”
Hook System
“The loop owns control flow; hooks observe at named moments”
Memory System
“Only persist what cannot be re-derived from current work”
System Prompt
“The model sees a constructed input pipeline, not one giant static string”
Error Recovery
“Most failures are signals to try a different path”
Multi-Agent Platform 5
Agent Teams
“When the task is too big for one, delegate to teammates”
Team Protocols
“Teammates need shared communication rules”
Autonomous Agents
“Teammates scan the board and claim tasks themselves”
Worktree Isolation
“Each works in its own directory, no interference”
MCP & Plugin
“External capabilities join the same routing as native tools”