How do model capability and harness infrastructure relate to agent code?
Agent systems blend three distinct code layers—model reasoning, system infrastructure, and agent-created artifacts—but treating them as one obscures where failures actually originate and which levers improve performance.
Talking about "agent code" as one thing obscures three distinct elements that the code-as-harness survey separates. First, model-internal capabilities: the reasoning, perception, planning, simulation, and evaluation abilities baked into the model's weights. Second, system-provided harness infrastructure: the predefined tools, APIs, sandboxes, memory systems, validators, permission boundaries, telemetry, and workflows that connect model outputs to external actions and feedback — this is the main focus of harness engineering. Third, agent-initiated code artifacts: the interactive code objects an agent itself creates, executes, observes, revises, persists, and shares within the execution loop. These three are coupled but governed by different design levers.
The decomposition is useful because each element fails and improves differently. You strengthen model-internal capability by training; you strengthen the harness by engineering infrastructure; you strengthen agent-initiated artifacts by shaping how the agent generates and reuses its own code. Confusing them leads to misattributed failures — blaming the model for what is really a harness gap, or vice versa. The counterpoint is that the boundaries blur in practice: a skill the agent writes once may be promoted into harness infrastructure, and harness validators shape what the model learns to emit. But as an analytical frame it clarifies where to intervene. This matters because it gives harness engineering a vocabulary for separating the controllable layers of an agentic system.
Inquiring lines that read this note 15
This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.
What coordination failures emerge when multiple AI agents work together?- How does the agentic layer amplify individual agent failure modes?
- What breaks when multiple agents share and revise the same artifacts?
- Which eleven failure modes emerge from agentic layers in realistic deployment?
- How do agent-created code artifacts become part of harness infrastructure?
- What makes agent-initiated artifacts the underexplored frontier in harness engineering?
- How do different harness designs produce different agent behaviors from the same model?
- What makes harnesses more tangled than other types of agent code?
- How should harness engineers diagnose whether failures stem from model or infrastructure?
Related concepts in this collection 4
This note in its neighbourhood — explore the map, then jump to a related concept in the list below.
Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph
-
Where does agent reliability actually come from?
Exploring whether LLM agent performance depends on larger models or on thoughtful system design choices like memory, skills, and protocols that shift cognitive work outside the model.
both isolate the harness as a layer distinct from the model and a primary source of capability
-
Does a single benchmark score actually predict agent readiness?
Single-axis benchmarks rank models by one capability—like task success—but ignore privacy, duration, operating mode, and ecosystem fit. Can one number really capture what matters for deployment?
parallels the move to decompose agent ability into separable components rather than one scalar
-
What happens to code that agents create and then share?
Agent-authored code artifacts that persist across tasks and multiple agents remain poorly understood. The open questions cluster around what should be retained versus discarded, and how shared state stays consistent when multiple agents collaborate.
extends: same survey; this decomposition names the three elements and that companion note singles out the third (agent-initiated artifacts) as the least-studied frontier
-
Can external state caches let models solve harder problems?
Explores whether organizing model state across weights, context, persistent memory, and disk—rather than relying only on weights and tokens—expands what models can do. Matters because long-horizon tasks may need more state than a model can hold internally.
Extends A's harness category: details a state-cache harness architecture (weights to disk) yielding large ARC-AGI-3 gains
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- Code as Agent Harness
- PostTrainBench: Can LLM Agents Automate LLM Post-Training?
- HarnessDev: Can LLMs Create and Evolve Their Own Agent Harness?
- Harness Handbook: Making Evolving Agent Harnesses Readable,Navigable, and Editable
- RRSI: Regularized Recursive Self-Improvement of Agent Harnesses
- Externalization in LLM Agents: A Unified Review of Memory, Skills, Protocols and Harness Engineering
- Agents of Chaos
- MUSE-Autoskill: Self-Evolving Agents via Skill Creation, Memory, Management, and Evaluation
Original note title
agent code splits into model-internal capability system-provided harness and agent-initiated artifacts