~/groundwork

Project files

Every file Groundwork adds to your repo, what it holds and who writes it.

Everything Groundwork knows is a plain file in your repo. Commit it with your code and a fresh clone picks up where you left off.

Layout

After npx groundwork-ai init:

AGENTS.md                     # what every session reads first
.groundwork/
  HANDOFF.md                  # where things stand
  MAP.md                      # where things are in the codebase
  DECISIONS.md                # generated index of decisions/
  decisions/                  # one record per decision
  LESSONS.md                  # mistakes worth remembering
  JOURNAL.md                  # one entry per checkpoint, from git
  config.json                 # settings
  config.schema.json
  memory.md                   # how project memory works, for any agent
  commands/gw.md              # the /gw command
  lib/                        # the scripts behind brief and checkpoint
  hooks/                      # session-start.mjs and checkpoint.mjs
  templates/                  # AGENTS.md (spare copy) and decision.md
  .gitignore                  # keeps local state out of git

Made while you work:

.groundwork/
  work/<id>/HANDOFF.md        # a parallel worker's own handoff
  work/LEDGER.md              # who started what, and how it ended
  archive/                    # what compact moved out
  private/                    # secrets the agent needs: never committed
  .state.json  .lock          # local state: never committed

What each file holds

FileHoldsWritten by
AGENTS.mdThe project, its commands, how to use memory, promoted rulesYou, and the agent on the first /gw
HANDOFF.mdNow, Next, Blockers, Failing checks, Workers in flight, Notes, under a stampThe agent writes the prose; checkpoint the stamp
MAP.mdFolders, entry points, tests, trapsThe agent
decisions/, DECISIONS.mdNumbered records and their indexdecide and you; index builds the index
LESSONS.mdNotes and rules, each with the mistake behind itlesson and you
JOURNAL.mdThe commits and files since the last checkpointcheckpoint
work/One handoff per worker, and the ledgerEach worker its own; worker the ledger
archive/Old journal entries, superseded decisions, handoff logscompact
config.jsonSettingsYou, flow, mode

With the flow on

.groundwork/ also gets workflow.md, the gw-* commands, roles/, guards/, guides/, reference/, hooks/user-prompt.mjs, templates/card.md, and:

FileHoldsWritten by
SPEC.mdProblem, users, goals, features, constraintsgw-spec, the planner
cards/One card per unit of work: criteria, evidence links, Historygw-plan, the loop, you
evidence/Proof per card, and baseline/ on existing projectsTester, reviewer, setup
rules/Rules only one role needs, promoted from lessonsgw-retro, you

retro.md and .approvals/ are also kept out of git.

Yours and Groundwork's

FilesOn upgrade
YoursHANDOFF.md, MAP.md, DECISIONS.md, decisions/, LESSONS.md, JOURNAL.md, work/, archive/, config values, AGENTS.md; with the flow SPEC.md, cards/, evidence/, rules/Never touched
Groundwork'smemory.md, commands/, lib/, hooks/, templates/, config.schema.json; with the flow roles/, workflow.md, guards/, guides/Refreshed. One you edited is kept, with the new version next to it as .new

Adapter files

ToolWhat init addsWith the flow
Claude Code.claude/skills/gw/, .claude/settings.json (hooks), a one-line CLAUDE.md that loads AGENTS.md.claude/agents/gw-*.md, more skills
OpenCode.opencode/commands/, a plugin in .opencode/plugins/Agents
Codex.codex/hooks.json, .agents/skills/gw*/.codex/agents/
Cursor.cursor/hooks.json, .cursor/hooks/, .cursor/skills/gw*/.cursor/agents/
Gemini CLI.gemini/settings.json (hooks), .gemini/hooks/, .gemini/commands/gw*.toml, a GEMINI.md that imports AGENTS.md.gemini/agents/
Plain markdownNothingNothing

init also adds a .gitattributes that marks images as binary, so git never rewrites screenshots. doctor tells you when adapter files have drifted.

On this page