Skeleton Coding: Program Structure as a Specification for Agents
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Coding agents are typically provided end-to-end behavioral specifications that the code they produce should satisfy, such as tests and input-output examples. How many such specifications must users provide, and which ones, for the agent to implement a program that fulfills their intent? We argue that this cannot be determined a priori, because it depends on the structure of the implementation, which is left to the agent to decide. An agent first commits to a structure - that is, a decomposition into data types, modules, and functions - which fixes a class of candidate programs; behavioral specifications then select a program within that class. A set of tests that suffices for one structure may leave another underdetermined, requiring different edge cases or exponentially more examples. Since the structure is chosen by the agent, users cannot ensure their specification is complete without reverse-engineering such structure from thousands of lines of generated code. To address this issue, we introduce Skeleton Coding, a process in which humans jointly specify the structure in high-level, code-like format, alongside behavioral specifications for the desired outcome. Theoretically, we model AI-assisted coding as a control problem, and show that skeletons can reduce exponentially the number of tests users must supply to steer an agent toward an acceptable program. Empirically, across four models and three benchmarks, the best-performing skeleton specifications reduce mean test error by 48.4% relative to the best end-to-end behavioral specifications. Even when the agent can query a complete reference implementation, adding a skeleton reduces mean test error relatively by up to 27%. Skeletons also narrow the average gap between small and large models by about 52.4% while lowering implementation cost by 15-26x, and reduce code erosion by 24.7% on average.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 22 of its 51 references that are in the map. Submitted 28 Oct 2026.
Builds on
22 of 51 references.
Closest ancestors · 3
Same direction, newest first
- 2026SpecFirst: Behavioral Specification Elicitation as a First-Class Step in Agent-Based Program Synthesis from Scratch29 Jul
- 2026SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks25 Mar
- 2024SpecRover: Code Intent Extraction via LLMs5 Aug
Other references · 19
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,902
- 2022CodeT: Code Generation with Generated Testscited by 411
- 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 164
- 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 152
- 2023Self-planning Code Generation with Large Language Modelscited by 130
- 2026ProgramBench: Can Language Models Rebuild Programs From Scratch?cited by 81
- 2023Clover: Closed-Loop Verifiable Code Generationcited by 79
- 2023Can Large Language Models Transform Natural Language Intent into Formal Method Postconditions?cited by 72
- 2022Parsel: Algorithmic Reasoning with Language Models by Composing Decompositionscited by 69
- 2024Is In-Context Learning in Large Language Models Bayesian? A Martingale Perspectivecited by 68
- 2023Verus: Verifying Rust Programs using Linear Ghost Types (extended version)cited by 59
- 2024AutoVerus: Automated Proof Generation for Rust Codecited by 58
7 more
- 2022Interactive Code Generation via Test-Driven User-Intent Formalizationcited by 55
- 2024LLM-Based Test-Driven Interactive Code Generation: User Study and Empirical Evaluationcited by 50
- 2024AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinementcited by 44
- 2025A benchmark for vericoding: formally verified program synthesiscited by 28
- 2025RPG: A Repository Planning Graph for Unified and Scalable Codebase Generationcited by 22
- 2015The Teaching Dimension of Linear Learnerscited by 20
- 2026Design Docs Are All You Need: An AI-native Machine-Learning Performance Toolcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Understanding the Architecture of Coding Agents: An Exploratory Study Using a Research Prototype
- 2026AgentSWE: Can Coding Agents Build the Agent You Actually Want?
- 2026Spec-Driven PBT: Deriving Semantic Invariants from Code Specifications for Agentic Property-based Testing
- 2026EvoCode-Bench: Evaluating Coding Agents in Multi-Turn Iterative Interactions
- 2026Inside the Scaffold: A Source-Code Taxonomy of Coding Agent Architectures
- 2026SpecForge: Recursive Self-Improvement for Coding Agents via Behavioral Specifications
- 2026Cortex: A Fixed-Point Theory of Governed Coding Agents - Technical Report
- 2026Latent Programming Horizons in Coding Agents