← Back to articles

June 3, 2026

8 min read

ADRs in AI-Assisted Teams: Documenting Decisions So Context Is Not Lost

Why ADRs are more critical when AI is part of the development flow, what to document, and how to adapt the format so context remains recoverable.

Leer en espanol

The lost context problem with AI as a copilot

When a team uses AI to generate code, explore architectural options, or evaluate alternatives, part of the reasoning behind a decision happens in a conversation that then disappears. The resulting code exists; the discussion that justified it does not. Weeks later, nobody remembers why that structure, provider, or pattern was chosen.

That problem existed before AI, but it is amplified. Decisions that previously happened in a meeting and were recorded in a note or a Slack thread now happen in chat sessions with the model. Without a process to capture those decisions, knowledge is lost faster.

What to document in an ADR when AI is involved

The standard ADR format — context, decision, alternatives, consequences — remains valid. What changes is that two additional fields are worth adding: the role AI played in the decision (exploring alternatives, generating initial code, validating an approach) and the constraints or instructions given to the model (what was out of scope, which tradeoffs were prioritized).

Those two fields are not ceremonial. When someone revisits the decision in three months, knowing that "the model proposed five alternatives and this one was chosen for X and Y" is different from knowing "the team chose this." The process matters for judging whether the decision is still correct or was the result of the moment constraints.

ADR template adapted for teams that use AI as a copilot.

# ADR-012: Use Medusa v2 as the ecommerce engine

## Status
Accepted

## Context
We need a headless ecommerce engine for a multi-region project with
complex pricing logic and a Next.js frontend.

## Decision
Use Medusa v2 with the Stripe adapter and a decoupled frontend.

## Alternatives considered
- Shopify Plus (rejected: vendor lock-in, limited checkout customization)
- Vendure (rejected: smaller ecosystem, less Mexico market support)
- Custom build (rejected: development time prohibitive for timeline)

## AI involvement
Claude explored the three alternatives and generated the initial scaffold.
Constraints given: TypeScript, self-hosted, no per-transaction fee.

## Consequences
Higher upfront technical investment. No vendor lock-in. Full flexibility
to customize the checkout and fulfillment flows.

When to write an ADR in an AI-assisted project

The rule for when to write an ADR does not change with AI: when the decision has lasting impact, when reversing it would be expensive, or when another developer would question it in three months. What does change is the frequency at which those decisions are made. With AI as a copilot, a team can explore and commit to an approach in minutes instead of hours. That increases the number of decisions per sprint, not reduces it.

A practical heuristic: if the model session produced code going to production, it is worth asking whether the direction that session took deserves an ADR. Not everything generated requires documentation, but structural decisions do.

ADRs as context contracts for future prompts

An additional benefit of ADRs in AI-assisted teams is that they can be included as context in future prompts. If an ADR documents that "Medusa was chosen because we need full checkout control and cannot depend on a SaaS," that context in a prompt prevents the model from proposing Shopify as an alternative in future sessions.

Well-written ADRs function as shared memory between the team and the model. They give the model context it would otherwise have to reconstruct from code, and give the team a record of why the code has the shape it has.

More articles

Back to articles