Agent harness engineering: LangChain lifted Terminal-Bench 2.0 score from 52.8% to 66.5% without changing the LLM

MaryamMiradi · x · 2026-11-21

A curated deep-dive into agent harness engineering, anchored by LangChain research: improving only the harness around the model lifted their coding agent from 52.8% to 66.5% on Terminal-Bench 2.0, moving from outside the Top 30 to the Top 5. The author maps 5 layers and 12 resources: agent loops (Claude Agent SDK, Codex SDK, Copilot SDK, Deep Agents), tool engineering (MCP, AGENTS.md), context engineering (Anthropic guides), memory & state (progress files + Git, Ralph Loop), and control & evaluation (verification checks, loop detection, Terminal-Bench). Practical takeaways: add a completion-time verification against the original task, detect repeated no-progress file edits, and use plain workflows when steps are known—reserve agent loops for discovery-driven tasks.

Original post →

More from coding & agent

coding & agent channel →