Agent Harness Develop Book
holny/Agent-Harness-Develop-Book
Guide to building agent harnesses, drawn from the source of Claude Code, Codex, OpenClaw, Hermes and others
Agent Harness Develop Book is an English and Chinese development guide to agent harness architecture, built from reading the source of seven production agents including Hermes. It covers the agent loop, context compaction, memory, multi-agent patterns and self-evolution.
What Agent Harness Develop Book does
The book defines an agent harness and walks through a four-layer architecture and the core modules of production-grade agents. The source projects it names are Claude Code, OpenCode, OpenClaw, Hermes, DeepSeek Harness, Codex and Pi. Chapters cover the agent loop, with termination conditions, error recovery and parallel tool calls, along with context compaction, memory, multi-agent collaboration patterns, agent self-evolution and loop engineering.
A September 2026 changelog in the README lists additions based on 20 engineering articles and source reading of seven projects. These include a master comparison table of six projects, a section on four multi-agent patterns (workflow, supervisor, hierarchical and swarm), a chapter on self-evolution, and notes on the three context constraints of lost-in-the-middle, context rot and attention cost. PDF versions are provided in English and Chinese and can be viewed on GitHub, and the repository itself is mostly HTML.
Key features
- Covers seven agents including Claude Code, Codex, OpenCode, OpenClaw and Hermes
- Chapters on the agent loop, context compaction, memory and multi-agent patterns
- A chapter on agent self-evolution and a section on loop engineering
- Master comparison table of six projects across architecture, loop, memory and permissions
- English and Chinese editions, including PDF versions
When to use it
- Learning how production agent loops handle compaction and error recovery
- Comparing how different agents approach memory and permissions
- Choosing a multi-agent pattern for your own agent runtime
Who it is for: Engineers who build or study agent runtimes and want a source-based comparison of existing designs.
How it fits with Hermes Agent
Hermes is one of the seven agents whose source informs the book; it is a general harness reference rather than a Hermes-specific guide.
FAQ
What is Agent Harness Develop Book?
Agent Harness Develop Book is a development guide to agent harness architecture, based on the source code of production agents such as Claude Code, Codex, OpenClaw and Hermes. It is available in English and Chinese.
Does Agent Harness Develop Book work with Hermes Agent?
It is a reference rather than software, so it does not plug into anything. Hermes Agent is one of the seven agents whose source the book draws on.
Is Agent Harness Develop Book free and open source?
The book is public on GitHub, including PDF versions, but the repository has no license file. Default copyright applies, so check with the author before reusing the content.
Similar resources for Hermes Agent
All resourcesChinese-language book analyzing the Hermes Agent source code, with 25 chapters and three appendices
codesstar Hermes Skill AtlasSingle-file HTML browser of 70+ curated Hermes Agent skills with install commands and search
bookunt3d Hermes Agent Persian GuidePersian translation of the official Hermes Agent documentation as an RTL GitHub Pages site
ZhangHanDong Hermes BookChinese-language book on the Hermes Agent source and design, based on v0.8.0, with 23 chapters
mudrii Hermes Agent DocsCommunity-written documentation for Hermes Agent covering its architecture, learning loop and gateway
weijt606 AI Agent MapVisual guide for comparing AI agents, platforms and runtimes, including a Hermes Agent profile
Related guides: SOUL.md for Hermes Agent: what it is and how to write one · What is Hermes Agent?