This article discusses the evolving role of software architecture and design in the era of AI and agentic programming, drawing insights from the Future of Software Development Retreat. It explores whether traditional architectural principles remain relevant when LLMs are involved, highlighting the importance of 'harness engineering' and concerns around token costs and code quality generated by AI agents. The piece emphasizes that good design still aids both human and AI comprehension, and introduces emerging patterns and challenges in integrating AI into software development workflows.
Read original on Martin FowlerThe integration of AI, particularly Large Language Models (LLMs) and 'agentic programming', is rapidly transforming software development. Early discussions about *what* agentic development might look like have shifted to *how* it's being implemented in production. This shift brings new terminology like "harness engineering" and new concerns, such as the escalating cost of LLM tokens, which were not prominent just a few months prior.
A central question is whether traditional software architecture and design remain important when AI agents can generate code. Two main hypotheses emerge: one suggests AI's "Galaxy Brain" can handle any complexity, negating the need for careful design; the other, termed the "Venn Diagram of Developer Experience and Agent Experience is a circle," posits that AI benefits from good design just as humans do. Modularity, clear naming, and good internal design quality (ease of change) are crucial for both human and agent comprehension, potentially even reducing AI token costs for the same change.
As AI agents become more involved, new challenges and workflows arise. These include managing the quality of AI-generated code, which often exhibits duplication and mixed concerns (e.g., domain and display logic). The article proposes a workflow where agents assist in breaking down stories, creating task lists, and even generating documentation, with human oversight. Another critical concern is the risk of dependence on AI, highlighting the need for good design as a hedge against potential unavailability or prohibitive costs of AI tools.
The Tokenpocalypse: Managing AI Costs
Companies are already grappling with exponential increases in token costs, leading to throttling AI usage and exploring strategies to reduce consumption. This economic pressure underscores the importance of efficient code and prompts, impacting architectural decisions and how AI is integrated into development processes.