The article "Context Engineering Needs Domain Understanding" by Rod Johnson introduces Domain-Integrated Context Engineering (DICE) as an evolution of context engineering for building more effective and robust LLM applications. Johnson begins by acknowledging "context engineering" as a valuable advance over "prompt engineering," defining it as the art and science of filling the LLM's context window with relevant information. He argues, however, that this definition is incomplete, as it neglects two crucial aspects: the bidirectional nature of communication with LLMs (what is sent and what is received) and the integration of LLM applications with business understanding and existing systems.
DICE: Conceptual Extension
To address these gaps, Johnson proposes DICE, which extends context engineering by emphasizing the use of a domain model to structure context and by considering LLM outputs in addition to inputs. The central idea: although LLMs excel at natural language, adding structure to inputs and outputs makes them safer and more reliable. DICE allows LLMs to "converse" using a business's established terminology and concepts, fostering better integration with existing applications. In this context, domain objects are not merely data structures but define targeted behaviors that can be exposed both to manually written code AND to LLMs as tools.
Compelling Benefits of DICE
The article highlights several compelling benefits of adopting DICE. First, it allows code to be used to structure context, turning a "delicate art" into a more scientific process where context can be refined, reasoned about, and tested. This also enables precise content filtering, improving results and saving tokens. Second, DICE facilitates simpler and safer integration with existing systems, moving beyond "demo" Gen AI applications toward real-world scenarios where agents need access to existing functionality. By working with domain objects, businesses can reuse their existing domain models and capitalize on hard-won business understanding.
Additional Advantages
Other advantages include faster delivery and improved quality through the reuse of domain models across applications and agents. DICE also offers structured persistence options, enabling more precise retrieval via existing technologies such as SQL or Cypher, a potential complement to vector search. The structure and encapsulation added by the domain model strengthen testability, debugging, and tracing, since information appears in observability tools in a structured, understandable format. Finally, domain integration helps manage context in multi-step flows, preventing quality degradation and controlling token costs.
Strategic Positioning
Johnson concludes that domain integration is paramount to unlocking the full business value of generative AI, positioning existing business applications as the key adjacency for Gen AI, rather than data science or LLMs alone. The central argument: domain model structure moves LLM capabilities from powerful-but-chaotic to controlled-and-reliable, an essential condition for enterprise adoption. By conceptualizing domain objects as entities carrying behaviors that can be exposed as tools, DICE bridges the conceptual gap between LLM potential and enterprise reality, offering a framework for systematic, reliable, value-creating Gen AI integration into existing business workflows. This pragmatic perspective recognizes that Gen AI's value does not lie in isolation, but in harmonious integration with the proven systems where domain knowledge resides.