From Prompt to Harness: Coderlet from Scratch
Mengfan Li
Key points
From the paper's conclusion- Together, they show the harness's core role: turning model generations into environmental actions, carrying runtime feedback into later decisions, and allowing state to continue across requests.
Abstract
A model alone does not determine how a programming agent acts. What the model sees, how actions enter the environment, how feedback returns, and how one run affects the next all depend on how the harness is organized. Minimal examples usually show only the basic interaction between a model and tools, while production systems spread these relationships across complex components and dependencies. This paper studies a compact harness design by following a single request through context formation, model decision, environmental action, observation return, and state continuation. Three boundaries---model, execution, and state---connect the model service, tool environment, and persistent state, while the request lifecycle determines the order in which these transitions occur. Together, they show the harness's core role: turning model generations into environmental actions, carrying runtime feedback into later decisions, and allowing state to continue across requests. On top of this runtime structure, a harness can also be gradually refined across runs through continued bootstrapping. The design is realized in the executable artifact https://github.com/lilinxi/Coderlet.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- EvoX: Rethinking the Agent Harness as a Runtime PolicyarXiv · 2026
- Object-Oriented Harness: Evolving Agent Harnesses through Object-Oriented DesignarXiv · 2026
- Harness-S: Learning from Sibling Harnesses for Generalizable Agent TrainingarXiv · 2026
- HarnessFlow: MCTS-Guided Harness Optimization for LLM AgentsarXiv · 2026
- CordisBench: Can Language Models Reason About Component Lifecycles in Dynamic Agent Harnesses?arXiv · 2026
- Harnesses That Improve Themselves: A Unifying Framework for Self-Improving Agent HarnessesarXiv · 2026