# Improving Deep Agents with harness engineering

DevFeed: [Improving Deep Agents with harness engineering](<https://devfeed.tech/articles/improving-deep-agents-with-harness-engineering-86205.md>)

Original publisher: [Read original article](<https://www.langchain.com/blog/improving-deep-agents-with-harness-engineering>)

Author: LangChain Accounts

Published: 2026-10-13T19:56:07Z

Content type: article

Language: en

Sources: [LangChain Blog](<https://devfeed.tech/sources/langchain-blog.md>)

Topics: [Agent Harness](<https://devfeed.tech/topics/agent-harness.md>), [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Agent Skills](<https://devfeed.tech/topics/agent-skills.md>), [context-architecture](<https://devfeed.tech/topics/context-architecture.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [codex](<https://devfeed.tech/topics/codex.md>)

Tags: [agent-delegation](<https://devfeed.tech/tags/agent-delegation.md>), [agent-harness](<https://devfeed.tech/tags/agent-harness.md>), [coding](<https://devfeed.tech/tags/coding.md>), [context-engineering](<https://devfeed.tech/tags/context-engineering.md>), [harness-engineering](<https://devfeed.tech/tags/harness-engineering.md>), [tracing](<https://devfeed.tech/tags/tracing.md>), [verification](<https://devfeed.tech/tags/verification.md>)

## AI overview

LangChain describes how changes to its coding-agent harness raised the agent's Terminal Bench 2.0 score from 52.8 to 66.5 while keeping the model fixed. Its approach uses trace analysis to identify failure patterns, then adjusts prompts, tools, middleware, and context. The article highlights build-and-verify loops, environment context, loop detection, and allocating reasoning compute to improve agent performance.

## Source excerpt

Harness engineering improved LangChain's coding agent from Top 30 to Top 5 on Terminal Bench using self-verification, tracing, and context optimization.