Skip to content

Architecture decision records for AI coding agents

Usually an architect or a tech lead, for every developer and their agent

Accepted decisions land in the repository as skills the coding agent loads, and every sync checks the code it wrote against them.

Fig. 01Architecture decision records for AI coding agents

The problem

An architecture decision record was written for the next engineer: why the team chose what it chose, what it ruled out and what that costs. It lives in a wiki or a docs folder that person would open.

Now a coding agent writes more and more of the code. It reads the repository and its prompt, not the decision. So it writes the call the decision ruled out, and the document cannot flag it.

What the agent needs is the decision in the repository it works in, accepted by its owner, and a check of the code against it, not only against the ask.

How it goes

The same steps the product’s playbook walks. Each one shows the screen at that moment and opens the video there.

  1. Write the ADR

    Write the decision as a work item of type Decision. Its name is the rule; its why holds the context, the options and what settled it; its anchors say where it applies, each with a note. Only its owner accepts it, then it is frozen, and what it rules out becomes a boundary rule.

  2. Pull it into the repository

    In the repository, the code plugin pulls the accepted decisions that govern the app and compiles each into a skill the agent's host loads, in the open skill format Claude Code, Codex and Cursor share. Commit it, and every session starts with it. When a decision is superseded, the next pull removes its skill.

  3. Hand off the work

    A work item names the elements it concerns. When a developer claims it, the pull lists the decisions in force on those elements, and the agent plans within them: here, it takes the order's lines from the event rather than calling the orders API.

  4. Check what the agent built

    Every sync redraws the board from the code and proves the boundary rules, the decision's among them. The rule holds because the code keeps it, not because the agent said so. When the code makes the call the decision ruled out, the rule reads Violated, with the reference that made it.

  5. Proven by the code

    End proofDone when the agent works within the accepted decision, and every sync finds the decision’s boundary rule holding.

    Run this playbook

    Free account. Opens in ProvenMap as Give coding agents the architecture, with the steps beside you.

Works with

Agents
Claude Code, Codex and Cursor through the code plugin; any other MCP client with a read token reads the boards, the decisions and the work items.
Decisions
Decision work items written here, each anchored to the elements it governs, with its number, status and owner; the workspace plugin brings in ADRs written in Google Docs, Confluence or Notion.
Code
Boards built from your repositories by the code plugin, which runs locally and pushes only derived metadata.
Skills
A library of recipes and skills, your organisation's own, and the settings a skill takes, such as the CI platform or a performance budget.
Work items
Anchored to the elements they concern, pointed at the decision they carry out, and pulled into the coding session by command; Jira and Slack when the team tracks work there.

Where it stops

  • Only an accepted decision reaches the agent; a proposal stays on the board.
  • The sync checks structure: the work item’s change and the boundary rules, which see imports and references between parts, not every call. It does not check a decision’s reasoning, and a work item written only in prose closes on the developer’s word.
  • Only a decision's owner, or an organisation owner or admin, accepts it. An agent can draft and propose; a read token can only read.
  • ProvenMap writes each decision's skill file; a local edit is replaced on the next pull. The agent's host decides how it loads it. ProvenMap does not run the agent.
  • Decisions, skills and work items describe the architecture. They do not replace the project's own checks, which the developer still runs before resolving the work.

Walk through it

  • The docs walkthrough of this job is being written.
  • In the product this job runs as the playbook Give coding agents the architecture. The board ticks each step when what it asked for exists, and the guide links back to this page.

Start with one system

Map a real system and see the architecture around it.

Open one repository and run the code plugin. No migration, no rollout, no diagramming.

No credit card · Analysis runs locally in your own session · Self-hosted available

See the four commands to your first board →

Or for writing on architecture that stays connected across systems.