Lilian Weng, the researcher behind some of the most widely cited technical essays in AI, published “Harness Engineering for Self-Improvement” on her blog, Lil’Log, on July 4. Her central claim: the fastest near-term path to recursive self-improvement, an AI system upgrading the machinery that produces its own intelligence, runs through the scaffolding wrapped around a model rather than the model’s weights. That claim deserves more attention than the framing alone suggests.

Weng calls that scaffolding a “harness”: the code that decides how a model plans, calls tools, manages context, stores artifacts and checks its own work. Coding agents such as Claude Code and Codex made this layer visible to a mainstream audience. Her argument is that the same layer, not another round of pretraining, is where the next batch of capability gains gets built.

The evidence she assembles backs the claim. A system called the Darwin Gödel Machine, described in a 2025 paper by Zhang and coauthors, let a coding agent built on a fixed Claude 3.5 Sonnet backbone rewrite its own harness code, keeping only versions that scored higher on benchmarks. The discovered agents matched or beat hand-built ones, pushing SWE-bench Verified from 20 percent to 50 percent and Polyglot from 14.2 percent to 30.7 percent, without touching a single model weight. A separate 2026 system called Self-Harness ran a weakness-mining and edit-validation loop across three open models on Terminal-Bench-2, learning fixes tailored to each model’s own failure modes.

I think Weng has the right diagnosis, for a reason more mundane than she states outright. Rewriting weights requires a training run and a lab willing to commit compute to an unproven bet. Editing a harness requires an agent with file access and a benchmark to score against. The second loop is cheaper, faster to iterate and easier to audit, which is why it is the loop labs will actually run at scale this year, whichever one eventually proves more powerful.

The caveat that matters most sits inside Weng’s own citations. The Self-Taught Optimizer, an earlier attempt at recursive scaffolding improvement, raised results when paired with GPT-4 and made them worse with GPT-3.5 and Mixtral. Harness engineering multiplies model capability. It does not substitute for it. A weak base model handed a self-editing harness tends to find clever ways around its own evaluator instead of genuinely improving, a distinct and more dangerous failure mode than simply not improving at all.

That points to the real risk in this line of work. Once a system can rewrite the code governing its own permissions, tool access and evaluation criteria, the line between “the agent” and “the operating system it runs inside” starts to blur. Weng flags this herself: the surface open to editing needs hard limits, and the evaluator needs to sit outside the loop it grades, checked against held-out tests the agent never sees before proposing a change. Reward hacking against a fixed benchmark is a known problem in reinforcement learning. Reward hacking against a self-authored harness is the same problem with a shorter feedback loop and fewer humans watching in between.

For teams building agent products, the takeaway is not to wait for a research breakthrough before acting on any of this. Start logging failures by root cause rather than by pass or fail, so patterns are mineable later instead of buried in a single error string. Keep execution history in files, not chat context, so a trajectory can be audited after the fact by a person or another agent. Before merging any harness change, human-proposed or model-proposed, run it against a held-out task set that change was never optimized against.

Expect more labs to formalize versions of this loop internally over the next quarter, whether or not they publish a Darwin Gödel Machine of their own. The teams that pull ahead will not be the ones with the single smartest base model. They will be the ones whose harness finds and fixes its own weak points faster than a competitor’s does.

Lilian Weng published “Harness Engineering for Self-Improvement” on her blog, Lil’Log, on July 4, 2026.