Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Part III: Framework Practice

🛠️ "Frameworks won't make your Agent smarter, but they let you ship the smart parts faster. The cost of picking the wrong framework isn't rewriting code — it's being forced into a mental model that doesn't fit your problem."


What We Actually Buy in a "Framework"

In Parts I–II you hand-built Agents with Prompt + tool calling + context engineering. You gained full control — and felt the weight of boilerplate: message loops, tool-schema parsing, error handling, retries, streaming.

A framework's entire purpose is to converge those recurring "engineering cross-cutting concerns" into reusable abstractions. But 2026's "frameworks" have split into two routes:

RouteRepresentativeWhat it abstractsFor
Code frameworkLangChain / LangGraphan Agent as a tunable librarywriting code, shipping products
Action harnessOpenClaw / Hermes / Claude Code / DeepSeek Harnessan Agent as a whole product you usewanting a capable assistant now

This part focuses on the latter — 6 deep chapters, one project each, from usage to architecture.


The 6-Chapter / Harness Decision Matrix

ChProjectRouteTypeLicenseOne-liner
12LangChaincode frameworkgeneral orchestrationMITthe widest Agent assembly library
13LangGraphcode frameworkstateful graphMITcomplex flows: state graph + checkpoints + HITL
14OpenClawaction harnessconsumer personal assistantMITan Agent living in all your chat apps
15Hermes Agentaction harnessself-evolving assistantMIT"the agent that grows with you"
16Claude Codeaction harnessindustrial IDEsource-availablethe benchmark harness: six layers
17DeepSeek Harnessaction harnessdeveloper workshopMIT"everything is a plugin" foundation

Decision Tree

Q1: "Use" an Agent, or "build" one?
├─ use → action-harness subtree
│   ├─ chat apps? → OpenClaw (Ch.14)
│   ├─ grow to know me? → Hermes (Ch.15)
│   ├─ software-engineering IDE? → Claude Code (Ch.16)
│   └─ long-term controllable platform? → DeepSeek Harness (Ch.17)
└─ build → code-framework subtree
    ├─ complex flows + state? → LangGraph (Ch.13)
    ├─ fast multi-tool integration? → LangChain (Ch.12)
    └─ DIY? → read any "borrowing" section + Ch.8

Selection Dimensions

DimensionLangChainLangGraphOpenClawHermesClaude CodeDeepSeek Harness
Core paradigmRunnable chainstate graphmulti-channelself-evolvingindustrial IDEall-plugins
Swappable kernel——❌❌❌✅
Model-agnostic✅✅✅✅❌✅
Customizationhigh (code)high (code)mid (skill)mid (skill)low (config)very high (plugin)
Production-readyhighhighhighhighhighpreview (v0.1)
LicenseMITMITMITMITsource-availMIT

⚠️ Licenses per each repo's LICENSE. DeepSeek Harness is a v0.1 developer preview with expected breaking changes. Time-varying numbers (stars, installs) are not cited.


What Good Open-Source Projects Look Like

Top open-source Agent projects converge on the same paradigms, regardless of surface:

ParadigmMeaningIn this part
Event streamtyped actions/observations on a central busClaude Code (QueryEngine)
State graph + checkpointgraph + snapshots for pause/resume/time-travelLangGraph
Code-as-actionLLM emits executable code to call toolsDeepSeek Harness (PTC)
Layered packagesprotocol / orchestration / integration decoupledLangChain, DSH
Model-agnosticunified layer shields model differencesDSH / OpenClaw / Hermes
Sandboxingtools run isolated; dangerous actions confirmClaude Code / DSH / Hermes
Plugin meta-frameworkall capabilities are pluginsDSH (Cordis), OpenClaw, Hermes
Self-evolving skillsAgent distills skills from its own trajectoriesHermes

Two Routes to "Extending" an Agent

  • Pluginization (OpenClaw Skill / DSH plugin / Claude Code Skills+MCP): capabilities explicitly written by developers, loaded at runtime — simple, controllable, auditable.
  • Self-evolution (Hermes): capabilities learned by the Agent from experience — powerful but harder to audit.

They're not mutually exclusive — Hermes' generated skills also enter a skill directory.


Part III Chapter Map

ChapterContentKey takeaway
12 LangChainarchitecture, Chain, Agent, LCEL, observability, productionmaster the most popular framework
13 LangGraphgraph, state, routing, HITLbuild complex stateful Agents
14 OpenClawchannels, Skills, consumer harnessput the Agent in chat apps
15 Hermesself-evolving skills, memory, Nudgehow a "growing Agent" is engineered
16 Claude Codesix layers, System Prompt, permissions, cachereverse-engineer industrial design
17 DeepSeek HarnessCordis kernel, 4 modes, pluginsopen + model-agnostic + pluginized

After these 6 chapters, you'll have the ability to read any new harness — judging which branch it belongs to, what it solves, and what it can't.


Start: Chapter 12: LangChain In-Depth