LangChain improves coding agent 13.7 points on Terminal Bench 2.0 through harness engineering
LangChain's coding agent scored 52.8% on Terminal Bench 2.0, placing it just outside the Top 30, with identified failure modes including reasoning errors, not following task instructions, missing verification, and doom loops of repeated failed approaches.
The most common failure pattern was that the agent wrote a solution, re-read its own code, confirmed it looked okay, and stopped without proper verification. Agents also got stuck in doom loops making small variations to the same broken approach.
By changing only the harness without modifying the underlying model, LangChain improved their coding agent from 52.8 to 66.5 on Terminal Bench 2.0, moving from outside Top 30 to Top 5.
Automated trace analysis saved hours of time in the improvement process.
Show all 7 reported metrics
Frequently asked questions
What did this team achieve with this AI workflow?
By changing only the harness without modifying the underlying model, LangChain improved their coding agent from 52.8 to 66.5 on Terminal Bench 2.0, moving from outside Top 30 to Top 5.
What tools did this team use?
deepagents-cli, LangSmith, Terminal Bench 2.0, Harbor, Daytona, gpt-5.2-codex, PreCompletionChecklistMiddleware, LoopDetectionMiddleware.
What results were reported?
Terminal Bench 2.0 baseline score: 52.8; Terminal Bench 2.0 final score: 66.5; Leaderboard ranking improvement: Top 30 to Top 5; Xhigh-only reasoning mode score: 53.9% (source-reported, not independently verified).
What failed first in this deployment?
The most common failure pattern was that the agent wrote a solution, re-read its own code, confirmed it looked okay, and stopped without proper verification.
How is this quality assurance AI workflow structured?
Run agent, collect traces → Parallel trace error analysis → Optional human review → Apply targeted harness changes → Agent self-verification pass → Loop detection intervention.