Your first 10 minutes
Install, save, come back in a new session, and watch it pick up where you stopped.
You have run npx groundwork-ai init in a git repo. Here is the rest, on a small app with a login form.
1. See what was added
git status --shortA .groundwork/ folder, an AGENTS.md, and your tool's own files.
2. Type /gw
You: /gw
Agent: Nothing is recorded yet. What is this project called, and what does it do?
You: A book club site. Members vote on next month's book.
Agent: Filled in AGENTS.md (found: npm test, npm run dev) and MAP.md (src/, entry point
src/login.ts, no tests yet). What do you want to work on first?3. Work, and save
When a step finishes, the agent saves:
npx groundwork-ai checkpoint --now "Login form renders; validation not wired" --next "Wire validation in src/login.ts, then add the first test"Checkpoint saved: .groundwork/HANDOFF.md at 5c4bcc2 on main.
Journal: one entry added to .groundwork/JOURNAL.md.The agent wrote two sentences. Groundwork added the time, the commit and the branch.
4. Come back later
Close the chat. Open a new one tomorrow, in any tool. Two commits landed in between, and the session is told so:
Handoff: 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 API
Next: Wire validation in src/login.ts, then add the first testThe agent checks its next step against those commits and carries on. That is freshness.
5. Keep what must outlast the session
npx groundwork-ai decide "Use cookie sessions, not JWTs" --status accepted
npx groundwork-ai lesson "Run migrations before the test suite" --origin "tests failed on a stale schema"A decision stops later sessions reopening a settled choice. A
lesson stops a mistake repeating. Commit .groundwork/ with your work.
Where to look
| You want to know | Look at |
|---|---|
| Where we stopped, and what is next | /gw or npx groundwork-ai brief |
| Where things are | .groundwork/MAP.md |
| What was decided, and why | .groundwork/DECISIONS.md |
| Mistakes we learned from | .groundwork/LESSONS.md |
| What happened, commit by commit | .groundwork/JOURNAL.md |
| Whether everything is healthy | npx groundwork-ai doctor |
Next: several agents at once, or the optional flow for a spec, small tasks and approvals.