paper-with-me

홈 › Papers

LLM-as-Code: Agentic Programming for Agent Harness

2026-06-14 · Junjia Qi, Zichuan Fu, Jingtong Gao, Wenlin Zhang, Hanyu Yan, Xian Wu, Xiangyu Zhao arxiv

Every major LLM agent framework gives the LLM the role of orchestrator; the model decides what to do next, when to call tools, and when to stop. We argue that token explosion, control-flow hallucination, and unreliable completion are not implementation bugs but architectural consequences of assigning the deterministic work of looping, branching, and sequencing to a probabilistic system. A better prompt or a stronger model cannot guarantee the reliability of the LLM agent. We therefore propose Agentic Programming, in which the program governs all control flow, and the LLM is itself part of it, an adaptive component we call LLM-as-Code and invoke only where a task calls for reasoning or generation. Within each call the model keeps full flexibility, but it cannot alter the program's execution path. With control in the program, the LLM's context is built from the execution history's call tree and forms a directed acyclic graph (DAG). Each call's context length is then determined by its call depth rather than by accumulation over steps. A case study of computer-use agents shows that the design is practical, not just a theoretical stance, substantially improving the stability of long visual operation sequences.

📄 PDF Abstract BibTeX arXiv:2606.15874

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Code as Agent Harness

2026-05-18 · Xuying Ning, Katherine Tieu, Dongqi Fu, Tianxin Wei 외 arxiv

Recent large language models (LLMs) have demonstrated strong capabilities in understanding and generating code, from competitive programming to repository-level software engineering. In emerging agentic systems, code is …

EvoTrainer: Co-Evolving LLM Policies and Training Harnesses for Autonomous Agentic Reinforcement Learning

2026-06-02 · Guhong Chen, Yingcheng Shi, Yongbin Li, Binhua Li 외 arxiv

Autonomous LLM training is often framed as recipe search, which leaves the training harness largely static. This limitation sharpens in agentic RL, where shifting bottlenecks and scalar rewards mask diverse failure modes…

Reinforcement LearningMathematical ReasoningCode Generation

Agent Lightning v1.0: Towards Harnessed Agentic RL

2026-08-18 · Zhiyuan He, Siwei Zhang, Zhiwen Zhou, Yuqing Yang 외 arxiv

Modern agents operate inside agent harnesses that manage tools, context, and control flow, making the harness a critical part of the agent system. Our original Agent Lightning introduced a disaggregated architecture that…

AxDafny: Agentic Verified Code Generation in Dafny

2026-06-30 · Benjamin Breen, Austin Letson, Borja Requena Pozo, Leopoldo Sarra arxiv

We study agentic code generation in Dafny, where a model must generate both executable code and the proof artifacts for verification. We present AxDafny, a verifier-guided repair framework that iteratively generates impl…

Code Generation

Code Isn't Memory: A Structural Codebase Index Inside a Coding Agent

2026-06-21 · Ishaan Bhola, Adithyan Krishnan, Sravanth Kurmala, Mukunda NS arxiv

Coding agents now interleave LLMs with retrieval over the working repository, and retrieval implementations vary widely across deployed harnesses. Inside a fixed coding-agent harness on a fixed model, does adding a struc…