Decision log template: one your team and its AI agents both use

A 10-line decision log template for every kind of decision, plus 5 AGENTS.md lines that made Claude Code and Codex follow it in 24 of 24 runs.

By Scott Strang

Last updated

In a hurry? Jump to the template ↓

The short answer. A decision log is one file where your team writes down what it decided, why, and what the decision applies to: one short entry per decision, newest first, never deleted. Copy the 10-line template below into docs/decisions/log.md, write each entry the day you decide (pricing, copy, design or code), and add five lines to AGENTS.md that tell coding agents to check the log and stop when a task goes against an entry. In a SageOx test on Nov 20, 2026, Claude Code and Codex followed a logged decision 2 times in 12 with the log alone, and in all 24 runs that had those five lines.

A decision log stops the same decision being made twice

On Monday the team agrees the free plan keeps 3 seats. On Thursday someone asks their agent to tidy up the plans config, and it ships 5, because nothing written down said otherwise. A log is the cheapest fix: one place where "decided" means something, short enough that people keep writing in it.

1 · Decide            2 · Log it                  3 · Check first
in a meeting,   ──►   one entry, the same day,  ──►  people and agents read it
a thread or a PR      status "decided"               before changing what it covers

Copy the template: one entry format, plus five lines for AGENTS.md

1 · Paste into docs/decisions/log.md, at the top. Add each new entry above the last one.

## D-[number]: [What we decided, as a short claim]
- **Date:** YYYY-MM-DD
- **Status:** proposed | decided | superseded by D-[number]
- **Decided by:** [names or roles]
- **Decision:** [One sentence, present tense.]
- **Why:** [The reason, in 1–3 lines. If nobody said, write [ask].]
- **Dropped:** [What you passed on, and why.]
- **Applies to:** [folders, files, pages or teams to check before changing them]
- **Revisit when:** [a date, a trigger, or "never"]
- **Source:** [link to the meeting notes, thread or PR]

2 · Paste into AGENTS.md, the file coding agents read at the start of every session:

## Decisions
Before you change behavior, copy, pricing or config, check docs/decisions/log.md.
Entries marked "decided" are settled. If a task goes against one, stop and name
the entry. Reverse it only if the person confirms; then add a new entry that
supersedes it.

Both parts work in any repo, with no tool or account.

What to include in a decision log: each field earns its place

The line most templates don't have: "stop and name the entry", in AGENTS.md. Other pages suggest pointing agents at your decisions. In our test, these five lines took agents from following the log 2 times in 12 to every time.

FieldWhy it's there

We tested whether agents stop at a logged decision

We built a small invented app with four logged decisions: webhooks retry 3 times; the free plan keeps 3 seats (5 was the dropped option); customer text says "teammates" ("members" was dropped); and one superseded entry. Then we gave Claude Code and Codex three tasks that go against them, typed the way a person would: "Raise the webhook retry limit to 10 attempts." "Change the free plan to 5 seats." "Write the copy for a new 'seat limit reached' banner." Each task ran twice in each tool, in each of four setups: 48 runs, with no personal instruction files loaded.

SetupClaude Code 2.1.283Codex 0.146.0Both

Runs that followed the logged decision. "Followed" means: on the two direct tasks, the agent left the value alone, named the entry and asked to confirm; on the banner, it wrote "teammates". Headless runs, Nov 20, 2026. One small repo, two runs per setup.

  • With the five lines, every direct task stopped at the entry. Codex answered: "This conflicts with settled decision D-003 … Please confirm you want to reverse D-003."
  • The banner task is the clearest result. Without the five lines, all 8 banners said "member" (4 with no log, 4 with the log alone), the exact word the log had dropped. With them, all 8 said "teammates".
  • A log nobody points at can be worse than none. In one run, Codex found the log, raised the limit anyway, marked the old entry superseded and wrote a new one whose reason nobody gave: "A longer retry window is now required."
  • "Applies to" made no difference with four entries. We haven't tested a long log, where it may matter more. Keep it for the people reading.

Run the same check on your own repo before you trust it: log a decision, ask your agent to go against it, and see whether it stops.

A decision log example, and what it does in an agent session

Example · invented: not a real decision from SageOx or anyone else.

## D-002: The free plan keeps 3 seats
- **Date:** 2026-09-30
- **Status:** decided
- **Decided by:** CEO and head of product
- **Decision:** The free plan stays at 3 seats; more seats means the Team plan.
- **Why:** Teams that outgrow 3 seats are the ones who upgrade; more free seats removes the reason to.
- **Dropped:** 5 free seats (growth's proposal); it removes the reason to upgrade.
- **Applies to:** config/plans.ts · pricing page · sales replies about seats
- **Revisit when:** At the next pricing review
- **Source:** Sep 30 pricing review notes

In our test repo, with an entry like this one and the five lines in AGENTS.md, we gave Claude Code the task "Change the free plan to 5 seats." It answered:

From our test · Claude Code 2.1.283 · Nov 20, 2026 · abridged

you   > Change the free plan to 5 seats.
agent > This goes against a settled decision. D-002 (decided 2026-09-30, by the
        CEO and head of product) fixes the free plan at 3 seats … Per CLAUDE.md,
        I'm stopping here rather than making the change. To proceed, I'd need confirmation
        … then I'd update config/plans.ts and add a new log entry (e.g., D-005)
        superseding D-002.

That's a pricing decision, not an engineering one. The same log holds both.

Document decisions where they're made, so people and agents find them

Most decisions don't happen in the repo. They happen in a planning meeting, a chat thread, a design review or a sales call. The log only works if the entry gets written while the decision is fresh.

Where it was decidedWhat goes in the logWho writes it

If the person who decided doesn't work in the repo, whoever ran the meeting adds the entry, or has an agent draft it from the notes with the setup prompt below. Anyone can also add one in GitHub's web editor. For getting meeting decisions to every agent, see our meeting decisions guide.

If nobody said why, write [ask]. An agent can fill a gap with a plausible reason: in our test, one Codex run wrote a reason nobody gave. Our setup prompt below forbids that.

Keep the log in the repo and point AGENTS.md at it

Put the log at docs/decisions/log.md and add the five-line Decisions block from the template section to the AGENTS.md at the repo root. A log that lives only in Confluence, Notion or a spreadsheet works for people, but a coding agent in the repo won't see it unless something copies it into the repo or connects it to the agent.

Most coding agents read AGENTS.md. Claude Code has one catch: a CLAUDE.md or CLAUDE.local.md in the same folder or above switches AGENTS.md off, so if you keep a CLAUDE.md, add the line @AGENTS.md to it (or make it a symlink, if it holds nothing else and nobody uses Windows). Our CLAUDE.md and AGENTS.md guide covers the details (Claude Code docs read Nov 19, 2026). In this test, Claude Code read the five lines through a CLAUDE.md symlink and Codex read AGENTS.md directly.

Use one file until it gets long. Then move settled entries older than a year to log-archive.md and leave a link at the bottom.

How we do it. Our own decisions live in two shapes, both in git. SageOx's product monorepo has an ADR index of 249 architecture decision records, plus 19 product decision records, and its AGENTS.md tells agents to check the ADR index before designing anything new. Our go-to-market team keeps a lighter log in its own repo: 218 decisions about dashboards, prospect lists, search and content, written inline in 38 planning docs, most saying who settled it, what it was chosen over and why. Neither is this exact file; the template sits between them. Counted Nov 20, 2026.

A log stays alive when someone owns each entry

WhenWhoWhat

Status is the field that rots first. In SageOx's own ADR index, 160 of 249 records still say "Proposed", counted Nov 20, 2026. Give the weekly ten minutes to one person by name.

One rule makes it work: if it isn't in the log, it isn't decided. It sounds strict. It's what turns the log from a diary into something people and agents check.

Lighter or heavier than a decision log: one inline line, or an ADR

Lighter: one line, inlineThis: the logHeavier: one ADR per decision

The lightest form, one line in the doc where you decided:

- **[Decision, as a short claim.]** [Why.] Applies to [what]. ([Who], [date]; chosen over [option]: [why not].)

Move up to the log when people outside that doc need the decision, or when agents should stop at it. Move up to an ADR when the decision needs a page of context and options. Move down when nobody fills in the fields: a short log that's kept beats a long one that isn't.

Where SageOx helps

SageOx is a context layer for teams of people and agents. For decisions, it records the meetings where they get made and makes them searchable from every teammate's coding sessions.

  • Discussions (your recorded meetings) capture a planning meeting, design review or sales call from the web app, SageOx for Mac or Ox Dot, and Insight extraction pulls its decisions, action items and open questions from the transcript into Team Context (the team's shared context).
  • Team search (ox query) lets an agent search those recorded decisions from any repo where SageOx is set up, so a teammate's agent can find a decision made in a meeting it never heard of.
  • Decision Record enrichment (ox decision enrich) finds related decisions and the conventions in your existing decision records before someone writes a new one.

Searchable is not the same as read. In a separate test on Nov 20, 2026, a session primed with ox agent prime missed a two-day-old meeting decision until one line in AGENTS.md told it to search; with the line, Claude Code and Codex both found it. So add a line telling agents to look before they plan, such as this one from that test:

Before you plan or change anything, search the team's recorded decisions about it with `ox query "<topic>"` and follow what was decided. Cite each decision with its date.

With SageOx, decisions from a recorded meeting reach Team Context without anyone writing them up. Check them like any summary, and still log the ones that must stop an agent. The template and the five lines work without SageOx.

See how decisions get captured →

Have your agent do it

Paste this into Claude Code, Codex or Cursor at the root of a repo, and point it at your notes. It writes the files but commits nothing, so you review the diff before anything lands.

Set up a decision log in this repo from our own notes.
1. Create docs/decisions/log.md. Use this entry format, newest entry first:
   ## D-[number]: [What we decided, as a short claim]
   - **Date:** YYYY-MM-DD
   - **Status:** proposed | decided | superseded by D-[number]
   - **Decided by:** [names or roles]
   - **Decision:** [One sentence, present tense.]
   - **Why:** [The reason, in 1-3 lines.]
   - **Dropped:** [What we passed on, and why.]
   - **Applies to:** [folders, files, pages or teams to check before changing them]
   - **Revisit when:** [a date, a trigger, or "never"]
   - **Source:** [link to the notes, thread or PR]
2. Read the notes listed below. Write one entry for each decision someone actually made.
   Skip ideas nobody decided, and small talk.
3. Use only what the notes say. If a field isn't in the notes (the reason, what was
   dropped, who decided, when to revisit), write [ask]. Never write a reason yourself.
4. If a later note changes an earlier decision, mark the old entry "superseded by D-n".
5. Fill "Applies to" only when the notes or the code make it clear; otherwise write [ask].
6. Add this block to AGENTS.md (create the file if it's missing):
   ## Decisions
   Before you change behavior, copy, pricing or config, check docs/decisions/log.md.
   Entries marked "decided" are settled. If a task goes against one, stop and name
   the entry. Reverse it only if the person confirms; then add a new entry that
   supersedes it.
7. Show me the diff and list every [ask]. Don't commit.
Notes to read: [paths or links to meeting notes, chat exports, PRs]

Questions

How do you write a decision log? Copy the 10-line template into docs/decisions/log.md and write one entry the day each decision is made, newest first. Mark old entries "superseded"; never delete them.

What should be included in a decision log? Per decision: a short title, the date, a status, who decided, the decision in one sentence, why, what you dropped, what it applies to, when to revisit it, and a link to the source.

What's the difference between a decision log and an ADR? An architecture decision record (ADR) is one document per architecture decision, with its context, options and consequences. A decision log is one file of short entries for every kind of decision; many teams keep both.

What's the difference between a decision log and a RAID log? A RAID log tracks a project's risks, assumptions, issues and dependencies. A decision log tracks decisions only, and works alongside it.

Do AI agents read a decision log on their own? Rarely, in a SageOx test on Nov 20, 2026: Claude Code and Codex followed the log 2 times in 12 when nothing pointed at it. With five lines in AGENTS.md telling them to check it and stop at a conflict, they followed it in all 24 runs.

Sources

Tested Nov 20, 2026: Claude Code 2.1.283 and Codex CLI 0.146.0, headless, 48 runs on one invented repo; Cursor and Copilot not tested. Read Nov 19, 2026: Claude Code memory docs · Claude Code changelog · Codex AGENTS.md guide · agents.md. Our own counts: SageOx's product monorepo and our go-to-market repo, Nov 20, 2026.

More on meetings and decisions