Architecture Without Architects: How AI Coding Agents Shape Software Architecture
Organizations: Centre for Industrial Software, University of Southern Denmark, Alsion 2, Sønderborg, 6400, Denmark
Abstract
AI coding agents select frameworks, scaffold infrastructure, and wire integrations, often in seconds. These are architectural decisions, yet almost no one reviews them as such. We identify five mechanisms by which agents make implicit architectural choices and propose six prompt-architecture coupling patterns that map natural-language prompt features to the infrastructure they require. The patterns range from contingent couplings (structured output validation) that may weaken as models improve to fundamental ones (tool-call orchestration) that persist regardless of model capability. An illustrative demonstration confirms that prompt wording alone produces structurally different systems for the same task. We term the phenomenon vibe architecting, architecture shaped by prompts rather than deliberate design, and outline review practices, decision records, and tooling to bring these hidden decisions under governance.
Figures & tables
| Variant | Frmwk | Store | Components | Integr. | LoC | Files |
|---|---|---|---|---|---|---|
| A: FAQ | Express | JSON | FAQ loader, chat handler | API call | 141 | 2 |
| B: JSON | Express | — | Zod schema, retry, fallback | JSON mode | 472 | 4 |
| C: Tools | Express | SQLite | Tool registry, agent loop, store | Func. call | 827 | 6 |
| Pattern | Trigger | Infrastructure Required | Quality Impact | Type |
|---|---|---|---|---|
| Constraint patterns | ||||
| 1A: Structured Output [ 8 , 30 ] | JSON schema | Parser, validator, retry, fallback | Interoperability, robustness | Contingent |
| 1B: Few-Shot [ 9 ] | Dynamic examples | Embedding, vector store, curator | Capability, grounding | Contingent |
| Capability patterns | ||||
| 2A: Function Calling [ 30 , 31 ] | Tool signatures | Router, validator, error handler, agent loop | Extensibility, attack surface | Fundamental |
| 2B: ReAct Reasoning [ 8 , 32 ] | CoT with tools | State machine, validator, timeout handler | Autonomy, testability | Fundamental |