Quickstart

Three steps. One minute.

Install it, type one command, and your next session picks up where this one stopped.

  1. 01

    Add Groundwork to your project

    Pick your AI tool when it asks:

    • Claude Code
    • OpenCode
    • Codex
    • Cursor
    • Gemini CLI
    • Plain markdown

    Needs Node.js 22 or later and git. Your existing files are never replaced.

  2. 02

    Open your AI tool and type /gw

    your ai tool

    you/gw

    agentNothing is recorded yet. What is this project called, and what does it do?

    youA book club site. Members vote on next month’s book.

    agentFilled in AGENTS.md and MAP.md. What do you want to work on first?

    In Codex it is $gw. With plain markdown, ask your agent to “read .groundwork/commands/gw.md and follow it”.

  3. 03

    Work, then come back anywhere

    The agent saves as it goes. Open a new session, in any tool or model, and it starts here:

    npx groundwork-ai brief
    # Project memory: bookclubHandoff: BEHIND (written 0 min ago on main @ 5c4bcc2 by claude-code): 2 commits landed after it was written, changing 3 files.  - 6a1a0f1 feat: logout endpoint  - 2fce619 feat: session endpoint  Changed files: src/api/logout.ts, src/api/session.ts, src/login.ts  Files its Now/Next sections name have changed since: src/login.ts.  Trust the code over the handoff where they disagree, then save an updated handoff. ## Handoff (.groundwork/HANDOFF.md)Now: Login form renders; validation is not wired to the APINext: Wire validation in src/login.ts, then add the first test ## Decisions in force (records in .groundwork/decisions/; don’t reopen without the human)- 0001 Use cookie sessions, not JWTs

    Where you stopped, what is next, and what changed while you were away.

Cheat sheet

Four commands cover it.

/gw
In your AI tool: resume, and save. The only one to remember.
brief
npx groundwork-ai brief: where things stand, and what changed since.
checkpoint
npx groundwork-ai checkpoint --now "…" --next "…": save by hand.
doctor
npx groundwork-ai doctor: check that everything is healthy.

Running several agents, or want approvals before each commit? It is all in the docs.