~/groundwork

Decisions

Record a choice and its reason once, and agents stop reopening it.

A new session can read your code. It can't read why. A decision record keeps the options you weighed and the reason for the pick. Agents are told not to reopen one without you.

Record one

npx groundwork-ai decide "Use cookie sessions, not JWTs" --status accepted

This creates the next numbered file in .groundwork/decisions/ and updates the index. --status is proposed (the default), accepted or superseded. Then fill it in:

---
id: 0001
title: Use cookie sessions, not JWTs
status: accepted
date: 2026-11-15
---
## Context
What needs deciding, and why now.

## Options
2 to 4 options, each with pros, cons and the cost of switching later.

## Decision
The option the human chose, in their words if possible.

## Consequences
What this makes easier, what it makes harder, and what to revisit.

Record what the human chose, never the agent's own preference. If you took its suggestion, the record says "accepted the recommendation".

The index

.groundwork/DECISIONS.md is generated. Don't edit it: change the record, then run npx groundwork-ai index. Every session's brief lists the decisions in force.

Replace one

Write a new record and set the old one to superseded. compact then moves the old one to .groundwork/archive/decisions/. Nothing is deleted.

With the flow on

With the flow on, gw-decide <topic> walks you through it, and the planner runs it before any task depends on a choice. Groundwork never picks your stack:

  1. It writes 2 to 4 options, each with trade-offs.
  2. It waits for your choice.
  3. It records your answer in your words.

The agent may add one line starting Recommendation:. It is always labeled, and it is never the decision. With experience: new you get one by default; otherwise only if you ask. Saying "you decide" makes the agent ask once whether to go with its recommendation, and only a clear yes counts.

On this page