The AI harness (aka agent scaffolding) is everything around the model that is not the model: the agent loop, tool dispatch, memory, context management, execution environment, feedback, guardrails, and observability.
agent = model + harness. A model alone can only produce text. The harness is what lets it act over multiple steps, use tools, survive its own context window, and run a long task across sessions. Two teams using the same model ship completely different products because of the harness.
📚 Resources
- 🎬 Explainer — Agent Harness Explained in 6 Minutes — builds the harness piece by piece: tools, context & memory, execution environment, the feedback loop, governance, and observability.
- 🛠️ Build-along — Build Your First AI Agent — Complete Beginner Guide 2026 — the ReAct loop (Think → Act → Observe → Repeat) in ~50 lines of Python: tool schemas, tool execution, memory, guardrails, and the 5 most common beginner mistakes.
- 🏭 In the wild — Claude Code, OpenAI Codex, Hermes/OpenClaw (open-source harnesses with 100k+ stars); your own job pipeline — cron + SQLite + Playwright + Telegram reporting — is a hand-built harness.
- 📖 Reference — Agent harness — Wikipedia.