An AI coding agent sees your code, but it does not see why the code looks the way it does. Architecture Decision Records (ADRs) are short text files that store one decision each: the context, the choice, and the consequences. Because they are plain Markdown in the repository, an agent can read them before it changes anything. This stops the agent from „fixing“ a deliberate design, for example by adding a direct database call across a bounded context. Recent research on agentic architecture knowledge management (AgenticAKM) goes one step further and lets agents also write and update these records.

A minimal ADR, saved as docs/adr/0007-use-events-between-contexts.md:

# 7. Use events between Billing and Shipping
Status: accepted
Context: Billing and Shipping are separate bounded contexts.
Direct calls made them deploy together.
Decision: They talk only through domain events (OrderPaid).
Consequences: No shared database tables. Eventual consistency.

Then add one rule to the agent instructions file (for example AGENTS.md): „Read docs/adr before changing module boundaries, and add a new ADR if you change a decision.“

Sources: AgenticAKM (arXiv), ADRs Are the Best Thing You Can Give Your AI Agent.

Kommentar verfassen

I’m Iman

Mein Name ist Iman Dabbaghi. Ich arbeite als Senior Software Engineer in der Schweiz. Außerdem interessiere ich mich sehr für gewaltfreie Kommunikation, Bachata-Tanz und Musik sowie fürs die Persönlichkeitsentwicklung.

Ich habe einen Masterabschluss in Informatik von der Universität Freiburg in Deutschland, bin Spring/Java Certified Professional (OCP), Certified Professional for Software Architecture (CPSA-F) und ein lebenslanger Lernender 🎓.

EN:

My name is Iman Dabbaghi. I work as a Senior Software Engineer in Switzerland. I am also very interessted in nonviolent communication, Bachata dance and music and also for personal development.

I hold a masters degree in computer science from the university of Freiburg in Germany, am a Spring / Java Certified Professional (OCP), Certified Software Architecture (CPSA-F) and Life Long Learner🎓

Let’s connect