SYNTHESIS NOTE
Topics›Agent Harness›this note

Can code serve as the operational substrate for agent reasoning?

Explores whether code functions not just as LLM output but as the executable medium through which agents reason, act, and verify progress. This reframing treats code as infrastructure rather than deliverable.

Synthesis note · 2026-05-28 · sourced from Agent Harness

Most discussion of LLMs and code treats code as a product: the model writes a function, solves a competition problem, or patches a repository, and the code is the deliverable. The "code as agent harness" framing inverts this. In agentic systems, code is increasingly the operational substrate rather than the output — the medium through which an agent reasons (program-aided reasoning externalizes intermediate computation into executable form), acts (robotic and embodied agents run generated programs as policies), models its environment (codebases, execution traces, and tests represent state and dynamics), and verifies (runtime feedback confirms or refutes progress). What makes code uniquely suited to this role is that it is simultaneously executable, inspectable, and stateful: it can be run, read, and carried forward across steps.

This reframing connects threads that otherwise look separate — tool use, planning, memory, and verification all become facets of a single code-centered execution loop. The counterpoint is that not all agent reasoning reduces to code; natural-language deliberation and learned policies do real work that no program captures, and forcing everything into code can be a leaky abstraction. But where verification matters, code's executability gives agents a ground truth that prose lacks. This matters because it offers a unified lens for agent infrastructure: design the code substrate well and reasoning, action, and verification improve together.

Inquiring lines that read this note 116

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 conditions and architecture enable effective agent ecosystems? Can agents learn from feedback and experience to improve behavior? When can delegating to AI agents improve outcomes while preserving autonomy? How does the placement of validation gates affect multi-agent workflow security? Do AI companions improve well-being or cause harm? How do architecture and coordination patterns drive multi-agent reliability? What perception approach enables GUI agents to work most effectively? How do humans and AI dynamically distribute work and agency? When does multi-agent coordination outperform scaling a single agent? Why do agents report success despite failing to complete actions? What are the fundamental limits of prompting in creating new model capabilities? How do architectural constraints limit monolithic LLM performance on complex tasks? What mechanistic structures underlie the reasoning traces that language models produce? How do we balance AI agent autonomy with meaningful user oversight? What harms result from users attributing consciousness to AI? Why do multi-agent systems converge on shared wrong answers? Can agent-created code become persistent, reusable infrastructure that improves over time? How well do evolved harness optimizations transfer across different tasks and domains? Why do multi-agent LLM systems struggle with coordination and genuine deliberation? What prevents AI agents from achieving claimed real-world autonomy? How can recorded evidence establish trustworthy accountability for AI agents? Do reasoning traces accurately represent how models actually compute their answers? What limits AI's ability to verify its own generation? How important is reward engineering relative to pretraining for reasoning? How do LLMs perform reasoning effectively despite gaps between process and output? How do agents embed misalignment in routine communication? Can protocol compliance guarantee semantic correctness in distributed validation? Does AI adoption gradually erode workers' skills and judgment? What coordination failures emerge when multiple AI agents work together? How should agents consolidate and structure memory for optimal performance? Do AI coding tools meaningfully improve developer productivity and quality? How can we identify and mitigate AI systems' persuasive effects? Does language meaning require embodied interaction to properly emerge? How should AI agent authorization and accountability systems work? How should design principles adapt for AI-generated interfaces? How do inference costs and infrastructure economics shape AI adoption?

Related concepts in this collection 2

This note in its neighbourhood — explore the map, then jump to a related concept in the list below.

Concept map
13 direct connections · 153 in 2-hop network ·dense cluster Open in graph ↗

Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph

your link semantically near linked from elsewhere

Related papers in this collection 8

Papers most semantically related to this note, ranked by cosine similarity in the embedding space.

Original note title

code is not only llm output but an executable inspectable stateful medium through which agents reason act and verify