INQUIRING LINE

Why does the code AI agents write for themselves, mid-task, get so little design attention compared to everything built around the model?

Why do agent-created code artifacts remain underexplored in harness design?

This explores why the code that agents write for themselves mid-task — scripts, tools, and skills that persist and get shared, as opposed to the harness infrastructure engineers build around a model — has received so little design attention, and what the corpus says is hard about it.


This explores why the code agents create for themselves at runtime — helper scripts, tools, and skills that stick around and get reused or shared — gets far less design attention than the harness engineers build around a model. The corpus gives a useful map first: agent code splits into three layers that are improved by different means, namely what the model can do from training, the tools and APIs the system provides, and the artifacts the agent makes on its own How do model capability and harness infrastructure relate to agent code?. The third layer is the one flagged as least studied, and the reason is telling: the hardest open problems in the field — how to evaluate, how to verify, how to prevent regressions, how to keep shared state consistent, how to keep oversight — all land on it at once What happens to code that agents create and then share?.

Part of the explanation is that the engineer-built layer has been paying off so well that there has been little pressure to look elsewhere. Automated search over harness designs cut token traffic nearly in half on a 51-task benchmark without hurting performance Can agent harnesses be automatically optimized across many environments?, and a tuned execution system lifted frozen models on Terminal-Bench 2.1, with the same runbook carrying over to newer models unchanged Can execution harnesses lift model performance without retuning weights?. That layer is also easy to study: someone wrote it, it sits in a repo, and you can change one thing and measure the result.

Agent-made artifacts have none of those conveniences, and the corpus shows what goes wrong when you try to measure them. Harness quality can't be read off task scores: models differ sharply in how well they build harnesses, they struggle to hold on to useful intermediate updates, and the same harness performs very differently depending on which model runs it Can language models build and maintain their own agent harnesses?. When researchers looked closely at what agents actually save, most edits turned out to be task-specific fixes the agent could have rediscovered in a single run — a cache of solutions already within reach, not new capability Do harness edits learn reusable strategies or memorize task fixes?. And writing a good artifact is a separate skill from using one: the ability to produce useful updates is flat across model tiers, while the benefit from them peaks at mid-tier models and falls off for stronger ones Do stronger models evolve harnesses better than weaker ones?.

There is also a plain maintenance problem. A single behavior in a real harness is spread across files, functions, and stages, so the hard part of changing it is finding every place it lives, not writing the edit Why is finding distributed behavior code so hard?. Code that agents add on their own, without a human keeping the structure tidy, makes that search harder with every artifact.

The surprise is that the neglected layer may be where the next gains are. Code is unusually good material for agents because it can be run, read, and kept as state all at once Can code serve as the operational substrate for agent reasoning?. When agents pooled their patches and execution traces instead of evolving in isolated lineages, they beat the isolated approach by 14–20 points, and five of eight key tool improvements came from a different parent agent Does sharing experience across agents beat isolated evolution?. Sharing is exactly the property that makes these artifacts hard to verify and govern, and it is also what makes them valuable. One practical response is to wrap an unchanged coding agent in persistent state and a skill library so its trail stays traceable and recoverable Can orchestration layers make coding agents more auditable?.


Sources 11 notes

How do model capability and harness infrastructure relate to agent code?

Long-running agentic systems contain three coupled but distinct elements: model-internal capabilities (trained reasoning), system-provided harness infrastructure (tools and APIs), and agent-initiated code artifacts (runtime-created objects). Each strengthens through different design interventions.

What happens to code that agents create and then share?

Among three agentic code layers, agent-created artifacts that persist and are shared remain understudied. Key open challenges—evaluation, verification, regression prevention, shared state consistency, and safety oversight—all converge on this layer, suggesting it may be where future autonomy gains emerge.

Can agent harnesses be automatically optimized across many environments?

Cross-environment harness optimization yielded four mechanisms (action execution, context compaction, observation handling, delegated reading) that reduced token traffic by 44.7–49.0% while maintaining comparable performance on a 51-task benchmark, suggesting harness-level gains are orthogonal to model improvements.

Can execution harnesses lift model performance without retuning weights?

StateM improves Terminal-Bench 2.1 accuracy across multiple models by optimizing execution systems around frozen weights. The same runbook transfers to newer models without modification, achieving 95.3% on GPT-5.6 and lifting DeepSeek-V4 Flash by 5.4 points.

Can language models build and maintain their own agent harnesses?

Research shows that LLMs vary sharply in building harnesses across domains, struggle to retain useful intermediate updates during evolution, and produce harnesses whose performance shifts dramatically with different executors—demonstrating that harness quality cannot be inferred from downstream task scores alone.

Show all 11 sources
Do harness edits learn reusable strategies or memorize task fixes?

Analysis of harness-evolution trajectories reveals rational edits across prompt and tool layers, but most persist fixes an agent could rediscover in a single rollout. Gains remain limited because memorized shortcuts only cache solutions already within reach, not unlock new capabilities.

Do stronger models evolve harnesses better than weaker ones?

Producing useful harness edits shows no capability advantage across model tiers, but using those edits peaks at mid-tier models and declines at stronger tiers. Weak models fail to activate or follow harness artifacts; strong models lose these capabilities as scaling erodes instruction-following.

Why is finding distributed behavior code so hard?

The core difficulty in evolving production harnesses is not generating edits but finding every code location that implements a behavior. Harnesses distribute single behaviors across files, functions, and stages, creating a representational mismatch between behavioral requests and structural code organization.

Can code serve as the operational substrate for agent reasoning?

Research shows code uniquely enables agent reasoning, action, and verification by being simultaneously executable, inspectable, and stateful. This unified code-centered loop improves reasoning and verification together compared to natural-language or prose-based approaches.

Does sharing experience across agents beat isolated evolution?

Group-Evolving Agents outperformed isolated tree-based self-evolution by 14–20 percentage points by explicitly pooling code patches and execution traces within each generation. Analysis showed five of eight key tool improvements came from different parent agents, proving the sharing mechanism itself—not just more search—drove the gains.

Can orchestration layers make coding agents more auditable?

Dr. Claw wraps existing coding agents in persistent state objects and skill libraries, reporting higher research completeness and a traceable, recoverable process trail while keeping the underlying executor unchanged.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.