Every growing engineering team hits the same trap. A smart group of engineers sits down, makes an important choice, and writes a tidy one-page note called an Architecture Decision Record, or ADR. For example: "We will use Postgres instead of MongoDB for customer billing, because we need strict math on invoices." Everyone feels proud. They save the file in a folder and get back to work.
Six months later, that folder has eighty files. A year later, it has two hundred.
Here is the counterintuitive truth: the better you are at writing those rules down, the less likely anyone is to follow them. A folder of two hundred Markdown files does not guide a busy developer. It turns into a digital filing cabinet nobody opens.
Now add AI coding assistants to the mix. An AI coding tool only sees the single code repository open in front of it. It has zero idea what your platform team agreed on last year in a different repo. So it writes clean, fast code that quietly breaks your company's rules.
I built ADR Warden to turn that dusty filing cabinet into an active guardrail. It is open source on GitHub and available on npm.
Two Ways Distributed Teams Drift Apart
When teams work across different time zones and separate code repositories, two problems show up every week:
- Teams reinvent or contradict old choices. A team in Berlin spends three weeks debating which message queue to adopt, unaware that a team in Austin already settled that exact question eight months ago. Worse, an AI assistant helps them write a brand-new decision document that directly contradicts the old one.
- Code ships out of step with the rules. A developer opens a pull request that introduces a forbidden library, skips a required logging format, or duplicates work already being debated in a draft proposal. Human reviewers miss it because nobody has all two hundred rules memorized.
Search bars do not fix this. Basic keyword search fails when one team writes "message broker" and another writes "event bus."
How ADR Warden Works
ADR Warden is a small, fast tool that runs completely on your laptop or build server. It needs zero cloud API keys and never sends your source code to an external AI service. Instead, it builds a local meaning-based search index and a map of how your decisions connect to each other.
It guards two critical moments in daily engineering work:
- Before you write a new decision: When someone proposes a new ADR, ADR Warden checks existing decisions by meaning, not just exact words. If a similar rule already exists, it flags the overlap before a single new file gets merged.
- Before you merge code (
warden align): Runningwarden aligncompares your current code changes against the company's decision catalog. It separates results into two clear buckets: Binding Standards (approved rules your code must follow) and In-Flight Proposals (draft ideas still under review, shown as an early heads-up so two teams do not collide). - Before you retire an old rule: ADR Warden tracks which decisions replaced or depend on older ones. Architects can see the blast radius of changing a standard before they touch it.
Running It Across a Distributed Organization
Most enterprise teams keep their architecture decisions in one central repository while product code lives in thirty or forty separate repos. Asking every developer to clone and sync a central architecture repo every morning never works.
ADR Warden solves this with a single lightweight index file:
- Publish one central index. Your central architecture repository builds a small
.adr-cache/index.jsonfile (on GitHub or Azure DevOps) whenever a decision changes. - Point each product repo at the URL. Each product repository adds a tiny
.wardenrc.jsonconfig file pointing to that index URL. Developers never clone the central repo. - Gate pull requests automatically. Drop
warden align --diff origin/main...HEAD --fail-on-noncomplianceinto your continuous integration pipeline. If a pull request breaks a binding rule, the build catches it in seconds. - Teach your AI coding tools the rules. Run
warden install-skillsor connect the built-in MCP server (npx -y adr-warden mcp). Coding assistants like Cursor, Claude Code, Antigravity, and Gemini CLI will check your organization's real standards while they write code, instead of guessing in the dark.
Try It in Thirty Seconds
You do not need a six-month rollout to test this. Install it globally with npm install -g adr-warden, or run npx -y adr-warden align inside any repository that already has an ADR folder. Check out the full setup guide on GitHub.
How does your team keep track of architecture decisions once you pass five repositories, and has an AI coding assistant accidentally broken one of your rules yet? Drop your story in the comments.
Originally published on Systems Joinery.


