china-qijizhifeng/agentic-harness-engineering

Official AHE code — Agentic Harness Engineering: observability-driven automatic evolution of coding-agent harnesses (concurrent w/ meta-harness). NexAU-AHE reaches 84.7% ± 2.1 pass@1 on Terminal-Bench 2 (GPT-5.5). Lifts GPT-5.4 69.7→77.0% over 10 iters, beats Codex/ACE/Training-Free GRPO; frozen harness transfers to SWE-bench-Verified.

What it solves

AHE addresses the challenge of improving coding agents without needing to retrain the underlying AI model. Instead of changing the model itself, it automatically evolves the "harness"—the surrounding system prompts, tools, middleware, and memory—that allows the agent to perform tasks more effectively.

How it works

AHE uses an iterative loop of evaluate → analyze → improve based on three observability layers:

  1. Component Observability: It breaks the agent's harness into seven distinct, git-tracked components, making every change auditable and reversible.
  2. Experience Observability: An Agent Debugger tool compresses massive raw execution traces (often millions of tokens) into clear, sourced reports that explain why an agent succeeded or failed.
  3. Decision Observability: An Evolve Agent uses these reports to propose evidence-backed edits to the harness. It predicts which tasks will improve and is automatically corrected if those predictions fail in the next round of testing.

Who it’s for

This framework is designed for researchers and developers working on autonomous coding agents who want to systematically improve agent performance through data-driven engineering rather than manual prompt tweaking.

Highlights

  • Automated Evolution: Uses a meta-agent to propose and implement harness improvements based on real-world execution evidence.
  • Cross-Model Transfer: Evolved harnesses have been shown to work across different base models without needing re-evolution, suggesting they capture general coding experience.
  • Full Traceability: Every change is linked back to specific execution traces, allowing developers to drill down into the "why" behind every failure.
  • Isolated Testing: Runs all evaluations in secure, containerized E2B sandboxes to ensure consistent and safe testing environments.

Related

  • Project
  • Project
  • Dispatch
  • Project
  • Project