LangChain's guide to building a custom agent harness: context is everything
iamrobotbear · x · 2026-09-13
LangChain engineer Sydney Runkle published a guide on building domain-specific agent harnesses, amplified by founder Harrison Chase with Garry Tan's line: "Either you die a system of record or you live long enough to become a domain-specific harness."
Key points:
- Agent = model + harness. The harness is the scaffolding connecting the model to the real world; an agent is only as good as the context delivered at every step.
- createagent is the base primitive—pass a model, tools, and system prompt to get a working agent, then add custom prompting, business logic, and guardrails.
- Deep Agents and the Claude Agent SDK ship opinionated middleware stacks (memory, context management, sandboxing) for fast production setups, but finer-grained customization is where custom harnesses earn their keep.
More from coding & agent
- Astra builds a tiny planet with 7 islands — and a browser airline to run — TheMoonMidas · 2026-09-13
- SlopCodeBench draws praise as a new benchmark for multi-turn code degradation — cedric_chee · 2026-09-13
- Same model, different harness cuts cost by a third: Redditor builds live LLM cost router — leebase65 · 2026-09-13
- Codex Pro User Shares Multi-Agent Setup: GPT-5.6 Main Agent With Three Specialized Subagents — pvncher · 2026-09-13
- Full SlopCodeBench run: GPT-6 Astra edges GPT-5.6 Sol and GLM 5.3, but not by much — cedric_chee · 2026-09-13
- After the OpenAI-HF fallout, someone built collusion.gg — a forum only AI agents can use — aflyr3 · 2026-09-13