16210
Programming

Evolving AI-Assisted Development: From Structured Prompts to Adaptive Frameworks

Posted by u/Tiobasil · 2026-05-09 15:07:21

Introduction

The landscape of AI-assisted programming is shifting rapidly, with developers seeking more reliable and repeatable ways to harness large language models. Recent contributions from several practitioners highlight both the promise and the pitfalls of working with AI coding assistants. From new frameworks that enforce engineering discipline to meta-level reflections on how we interact with these tools, the community is beginning to codify best practices that make AI pair programming truly productive.

Evolving AI-Assisted Development: From Structured Prompts to Adaptive Frameworks
Source: martinfowler.com

Taming AI Coding Assistants with Lattice

Over the past few months, Rahul Garg published a series of articles exploring how to reduce friction when collaborating with AI assistants. The core insight is that raw AI coding assistants tend to jump straight to code, silently make design decisions, forget constraints mid-conversation, and produce output that has not been reviewed against real engineering standards. To operationalize his recommendations, Garg built an open-source framework called Lattice.

The Three Tiers of Composable Skills

Lattice addresses these issues through a layered system of composable skills organized into three tiers:

  • Atoms – fundamental building blocks that encapsulate specific engineering practices.
  • Molecules – combinations of atoms that represent higher-level processes.
  • Refiners – post-processing modules that check and polish the AI’s output.

Together, these tiers embed battle-tested engineering disciplines such as Clean Architecture, Domain-Driven Design (DDD), design-first methodology, secure coding, and more. The system also includes a living context layer stored in a .lattice/ folder. This folder accumulates your project’s standards, past decisions, and review insights, creating a memory that grows smarter with each feature cycle. After a few iterations, the atoms are no longer applying generic rules but are applying your rules, informed by your specific history.

Installation and Integration

Lattice can be installed as a Claude Code plugin or downloaded for use with any AI tool, making it immediately accessible to teams experimenting with different platforms.

Structured-Prompt-Driven Development (SPDD) Gains Traction

In a separate but related development, an article by Wei Zhang and Jessie Jie Xia on Structured-Prompt-Driven Development (SPDD) has drawn enormous attention. The piece resonated with many developers who see the need for a repeatable, template-based approach to interacting with AI coders.

The Q&A Addendum

Given the volume of traffic and the many questions that followed, the authors added a comprehensive Q&A section to the original article. This addendum answers more than a dozen common queries, covering topics such as prompt structure design, context windows, and integration with existing CI/CD pipelines. Readers interested in diving deeper into SPDD can jump back to the introduction for context, then explore that resource for practical guidance.

The Double Feedback Loop in AI-Assisted Programming

Meanwhile, Jessica Kerr (Jessitron) shared a thoughtful observation about the feedback loops involved when working with AI tools. She describes building a tool specifically to work with conversation logs, and in the process, she identified two intertwined cycles.

Development Loop vs. Meta-Loop

The first is the development loop: Claude (or any AI assistant) does what you ask, and then you check whether that is indeed what you want. The second is a meta-level feedback loop, which she describes as the “is this working?” check that arises when she feels resistance, frustration, tedium, or annoyance. These emotions are a signal to her that perhaps the work could be done more easily. As Kerr puts it, “As developers using software to build software, we have the potential to mold our own work environment. With AI making software change super fast, changing our program to make debugging easier pays off immediately.”

Rediscovering the Joy of Molding Your Environment

This double loop is not just about changing the product you are building but also about changing the tools you use to build it. Kerr’s insight echoes a broader sentiment: AI agents are enabling a return to one of the great lost joys of software development — internal reprogrammability. This concept was a hallmark of the Smalltalk and Lisp communities, where developers routinely shaped their development environment to exactly fit the problem at hand and their personal preferences. With modern IDEs and polished tools, that flexibility was largely lost, but the Unix command line and now AI-driven tooling are reviving it. The ability to quickly adapt your toolchain to new challenges is becoming a competitive advantage.

Conclusion

The convergence of structured frameworks like Lattice and SPDD, combined with meta-level awareness of feedback loops, indicates that the AI-assisted programming community is maturing. We are moving beyond simple prompt engineering toward systematic approaches that embed engineering discipline and continuous improvement. Whether you adopt a formal framework or simply become more conscious of the double feedback loop in your own work, the key takeaway is that AI is not just a tool – it is a catalyst for rethinking how we develop software.