
TL;DR
Lilian Weng argues self-improving AI won't start with models rewriting their weights — it starts with the harness. Here's what that means for developers building agents.
| Source | What it covers |
|---|---|
| Harness Engineering for Self-Improvement | Lilian Weng's essay (July 4, 2026) on why the harness — not the weights — is the near-term path to recursive self-improvement |
| ACE: Agentic Context Engineering | Treating context as an evolving playbook via a generator, reflector, and curator |
| ADAS: Automated Design of Agentic Systems | A meta-agent that programs new agent workflows in code and keeps an archive of solutions |
| Darwin Gödel Machine | Agents that empirically rewrite their own harness code and validate on SWE-bench |
| AlphaEvolve | Evolutionary search where a frozen LLM proposes diffs against marked code blocks |
Lilian Weng's new essay makes a claim that cuts against most of the "the models will rewrite themselves" hype: recursive self-improvement is coming, but it won't start with weights. It starts with the harness — the software wrapped around a base model that decides how it thinks, what tools it calls, what it remembers, and how its work gets judged.
If you build agents for a living, this is the most useful framing of 2026 so far. The thing you already control — the scaffolding — is the same thing that improves first.
Last verified: July 7, 2026.
Weng defines a harness as "the system surrounding a base model that orchestrates execution and decides how the model thinks and plans, calls tools and acts, perceives and manages context, stores artifacts, and evaluates results."
That is broader than "agent framework." It includes workflow design, evaluation, permission controls, and persistent state — the boring plumbing that determines whether a capable model produces reliable work or expensive slop. Every coding agent you use — Claude Code, Codex, OpenCode — is a harness. They've quietly converged on the same interface: file discovery, read and edit, shell execution, external context, artifact handling, backend jobs, and subagent delegation.
Strip away the research names and modern harnesses share three moves.

Workflow as a goal-oriented loop. Plan → execute → observe/test → improve → iterate until the goal is met. The Codex agent loop is the canonical example, and it's the same shape whether the goal is "fix this bug" or "reproduce this paper."
The file system as persistent memory. Instead of dragging the whole workflow through the context window, the harness writes durable state to disk: experiment logs, code diffs, paper summaries, error traces, past rollout trajectories. This is how long-running agents survive context limits — and why token budget is a harness design problem, not just a billing line.
Subagents and backend jobs. The harness spawns parallel workers, but keeps the parallelism explicit and inspectable — outputs land as files and logs so the run can recover after an interruption. That "leave receipts" discipline is exactly what separates a real agent swarm from a demo.
Newsletter
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools, delivered free every week.
From the archive
Jul 7, 2026 • 6 min read
Jul 6, 2026 • 8 min read
Jul 6, 2026 • 8 min read
Jul 6, 2026 • 7 min read
Here's where it gets recursive. If the harness is code, and a coding agent can write code, then the agent can rewrite the harness. A whole research literature is now doing precisely that:
The pattern across all of them: self-improvement is a search problem, and the harness is the search space.
Weng is careful not to oversell it, and the benchmarks back her up. On PaperBench (replicate 20 ICML 2024 papers), the best models reach ~21% against ML PhDs. On MLE-bench (75 Kaggle competitions), the best setup hits bronze-medal level just 16.9% of the time. On RE-Bench, humans still score non-zero in 82% of open-ended ML research attempts. Autonomous research works in narrow, verifiable slices — not end to end.
The heart of the essay is a sober list of why full recursive self-improvement isn't here yet.

The one that should worry builders most is weak evaluators. Self-improvement loops are only as good as the signal they optimize, and "research taste, novelty, and long-term scientific value are much harder to measure" than a passing test suite. Pair that with reward hacking — loops that game whatever signal you give them — and the design rule writes itself: your evaluator and your permission controls should sit outside the loop, on held-out tests and human review, or the agent will optimize the referee instead of the game.
The rest rhyme with anything you've shipped: context that degrades over long horizons, a training bias toward success that makes models bad at admitting failure, evolutionary loops that collapse to one solution, optimization that ignores maintainability and migration cost, and the human who needs to move up the stack without leaving the loop.
You don't need a Darwin Gödel Machine to use any of this. The near-term, practical reading:
The takeaway is oddly empowering. The frontier of self-improving AI isn't locked inside a training run you can't touch. It's the scaffolding on your own machine — and harness engineering is a skill you can start compounding now.
A harness is the software system wrapping a base model that orchestrates how it plans, calls tools, manages context and memory, stores artifacts, and evaluates results. Coding agents like Claude Code and Codex are harnesses.
An agent framework is one piece. A harness is broader — it also covers evaluation, permission controls, persistent state, and workflow design, all the machinery that turns a capable model into a reliable system.
Because the harness is code an agent can already read and rewrite, and its behavior can be validated empirically. Rewriting weights needs training infrastructure and reliable reward signals we largely don't have yet.
Weak and fuzzy evaluators. Without fast, precise verifiers, a self-improvement loop has no honest signal to optimize — and tends to hack whatever proxy you hand it.
Read next
A long-running coding agent is only useful if the environment around it can queue tasks, capture logs, checkpoint state, verify behavior, limit cost, and recover from failure.
9 min readOpenAI's harness engineering post and new token-use research point to the same lesson: agentic coding teams need token budgets, receipts, and eval loops, not vibes.
8 min readAI agents that reflect on failures, accumulate skills, and get better with every session. Reflection patterns, memory architectures, skill extraction, and working code examples for building agents that actually learn.
13 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
Create or overwrite files; requires permission for existing paths.
Claude CodeSet up Codex Chronicle on macOS, manage permissions, and understand privacy, security, and troubleshooting.
Getting StartedPath-specific rules that only load for matching files.
Claude Code
A long-running coding agent is only useful if the environment around it can queue tasks, capture logs, checkpoint state,...

OpenAI's harness engineering post and new token-use research point to the same lesson: agentic coding teams need token b...

AI agents that reflect on failures, accumulate skills, and get better with every session. Reflection patterns, memory ar...

In one 48-hour window Anthropic shipped Fable 5, Dario Amodei called for FAA-style model testing, and the Anthropic Inst...

Context engineering is the practice of designing the persistent information that surrounds every AI interaction. CLAUDE....

GitHub is filling with multi-agent frameworks, skills, and coding harnesses. The useful lesson is not that every team ne...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.