~/groundwork

Cursor

Cursor conversations start with your project's brief and save as you go.

In Cursor, every new conversation starts with the brief, and your work is saved when a turn ends, before a compaction and when the session closes. Type /gw to resume or save.

npx groundwork-ai init --adapter cursor     # or: npx groundwork-ai adapter add cursor

Open Cursor on the project folder itself. Hooks run from the project root, so a parent folder opened as the workspace runs none of them.

What happens when

WhenHookWhat happens
A conversation is createdsessionStartThe brief goes into the conversation
A turn endsstopA checkpoint. If the handoff is behind, a reminder to save is sent as the next message, once per commit
Before a compactionpreCompactA checkpoint only. The summary is not told what to keep
The session endssessionEndA last checkpoint
You type /gwSkillResume from memory, or save

These hooks never block your work. Cursor documents sessionStart for new conversations only, so for a resumed or compacted one, AGENTS.md tells the agent to run npx groundwork-ai brief first.

Files it writes

PathWhat it is
.cursor/hooks.jsonThe hooks. Merged into your file, never replaced
.cursor/hooks/groundwork.mjsA small script that hands Groundwork's text to Cursor in the form it expects
.cursor/skills/gw/SKILL.mdThe /gw command

Cursor reads AGENTS.md itself. It also loads .claude/skills and .agents/skills, so with several adapters installed it may list /gw twice.

With the optional flow on

init --flow or flow on adds:

AddedWhat it does
/gw-approve, /gw-rejectSkills with disable-model-invocation: true: only you can invoke them
.cursor/agents/gw-*.mdTester, implementer and reviewer subagents. The reviewer is readonly: true
beforeShellExecution guardRuns the commit gate and your guards before every shell command. It fails closed (failClosed: true)

What Cursor does not enforce:

GapWhat it means
File writes aren't guardedOnly shell commands are checked. The commit gate still applies, because a commit is a shell command
Approvals aren't bound to your messageThe commit gate can't tell that a human approved

init --flow and flow on print this list.

Status

Built from Cursor's documentation, read on 2026-11-15. Not yet run inside a live Cursor session. Treat your first conversation as the test, then run npx groundwork-ai doctor.

On this page