Teams building AI coding agents often pack execution harnesses with dense system prompts and specialized tools, assuming richer scaffolding translates into higher patch accuracy. Empirical benchmarks tell a different story.

Harness Complexity vs. Coding Accuracy

Researchers from Shandong University and UC Berkeley benchmarked three agent harnesses - Claude Code, OpenCode, and mini-SWE-agent - across open-weight and API models including Qwen3.6-35B-A3B and DeepSeek-V4-Flash alongside Claude Opus 5 as a frontier reference. Evaluations ran on 492 tasks from SWE-bench Verified, including 45 hard issues estimated to take human engineers over an hour.

Across the board, heavier harnesses failed to consistently outperform minimal ones. Switching harnesses flipped pass/fail outcomes on roughly 13% of hard tasks, yet re-running the exact same harness produced comparable run-to-run variance - showing most apparent accuracy swings were execution noise rather than structural advantage.

What actually moved scores was basic error recovery. In OpenCode, hitting the 32,000 output Token cap truncated runs before the agent finished writing its patch, dragging down accuracy. Claude Code automatically prompted continuation whenever outputs hit the token limit, keeping long patch generations intact.

Fixed Context Overhead and the 3x Cost Gap

While accuracy barely budged, inference spend diverged sharply: running the exact same model on the same benchmark cost up to 3x more depending on the harness. Fixed prompt overhead from system instructions and tool schemas drove most of that gap.

Claude Code starts every session with more than 10,000 tokens of fixed system and tool context, whereas mini-SWE-agent uses roughly 800 tokens. Over multi-step debugging trajectories, resending that baseline context on every turn compounds input token bills rapidly.

Lightweight harnesses were not universally cheaper across every model, however. Paired with DeepSeek models, mini-SWE-agent triggered enough extra tool-call turns to invert total cost - underscoring why teams have to measure specific model-and-harness pairs rather than assuming one setup always wins.

Trimming bloated system prompts and unused tool definitions - keeping only guardrails and recovery logic that prove their worth in repeated evaluations - cuts agent operating costs without sacrificing solve rates.

Summary

  • Higher agent harness complexity does not proportionally raise SWE-bench accuracy, with most task-level flips matching normal run-to-run noise.
  • Fixed system-prompt and tool-schema overhead can create up to a 3x inference cost gap on identical tasks, making prompt pruning high-return work.
  • Because tool-call frequency varies by model-harness pairing, teams should benchmark cost and solve rate together under real workloads.