Skip to content

Capture Architecture Decisions

Your team makes technical decisions every week — database choices, auth strategies, API design patterns. Without a structured record, these decisions live in Slack threads, pull request comments, and people’s memory. When an AI agent starts a new session, none of that context exists.

Create an ADR in Archcore, and every agent on your team discovers it automatically through MCP. No copy-pasting into prompt files.

Ask your agent:

“Create an ADR for using PostgreSQL as our primary database”

The agent calls create_document and produces a structured record:

---
title: Use PostgreSQL as Primary Database
status: accepted
---
## Context
We need a relational database with strong ACID guarantees
and mature tooling for our multi-service architecture.
## Decision
Use PostgreSQL 16 for all persistent data storage.
## Alternatives Considered
- MySQL — fewer advanced features (JSONB, arrays)
- MongoDB — doesn't fit our relational data model
## Consequences
### Positive
- Strong ACID compliance
- Excellent JSON support via JSONB
### Negative
- Schema migrations required for changes

The next time any agent works on database-related code, it queries .archcore/ and finds this decision. It knows PostgreSQL is the standard — without you repeating it.

An ADR rarely stands alone. Decisions produce rules, and rules produce guides:

use-postgres.adr.md
└── related → migration-format.rule.md
└── related → run-migrations.guide.md

The ADR records why PostgreSQL. The rule defines how to write migrations. The guide walks through the steps. Agents follow the full chain.

After a design discussion in your agent session, capture the outcome immediately:

“Create an ADR for the authentication approach we just discussed — JWT with short-lived tokens and refresh rotation”

The agent structures the decision, fills in context and alternatives, and saves it for every future session to find.