Architecture as Capability Equalizer for Coding Agents

πŸ“… 2026-08-21
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF
πŸ€– AI Summary
η ”η©Άι€šθΏ‡ζ―”θΎƒδΊ”η§ζžΆζž„θ§„θŒƒζ ΌεΌε―Ήε…­η§ζ¨‘εž‹η”Ÿζˆδ»£η θ΄¨ι‡ηš„ε½±ε“οΌŒε‘ηŽ°η»“ζž„εŒ–ζžΆζž„θ§„θŒƒε―δ½œδΈΊθƒ½εŠ›ε‡θ‘‘ε™¨οΌŒε°€ε…Άε―ΉθΎƒεΌ±ζ¨‘εž‹ζ•ˆζžœζ˜Ύθ‘—γ€‚
πŸ“ Abstract
LLM-based coding agents generate complete software systems from high-level descriptions, yet little is known about how the format of architecture specifications affects the quality of generated code or whether this effect depends on model capability. We present a controlled experiment comparing five informationally equivalent specification formats (informal prose, Mermaid diagrams with constraints and ADRs, OpenAPI, C4/Structurizr DSL, and TypeScript interface contracts with ArchUnit-style rules) across six models from three vendor families (Anthropic Claude, OpenAI GPT, Google Gemini). Across 90 multi-turn agent trials, specification format shows a strong format x model interaction. On the strongest models (Sonnet 4.6, GPT-5), format barely matters (quality spread 0.17-0.92). On weaker models, format produces spreads of 0.83-2.42 points, with code-proximate formats (OpenAPI, TypeScript contracts) recovering most of the capability gap. Mid-tier models can consume more tokens than frontier models for worse output when they enter compilation debugging loops that stronger models avoid. Self-validation rates collapse from 100% (Sonnet) to 0% (Gemini Flash) across the capability spectrum. TypeScript contracts triple API route coverage for the weakest model (33% to 100%). Structured architecture specifications serve as a capability equalizer, with value inversely proportional to model strength and the largest returns for cost-optimized deployments.
Problem

Research questions and friction points this paper is trying to address.

architecture specifications
code quality
model capability
coding agents
Innovation

Methods, ideas, or system contributions that make the work stand out.

architecture specification
model capability
code quality
structured specifications
cost-optimized deployment
πŸ”Ž Similar Papers
No similar papers found.