~/groundwork

Installation

One command adds project memory to any git repo.

You need Node.js 22 or later and git.

cd your-project
npx groundwork-ai init

It asks which AI tool you use: Claude Code, OpenCode, Codex, Cursor, Gemini CLI, or none (plain markdown, for any other tool). New or existing project, both work. An existing AGENTS.md or CLAUDE.md is added to, never replaced.

Options

CommandWhat it does
init --adapter codexSkip the question
init --adapter claude-code,codexSet up several tools
init --dry-runShow what would change, write nothing
init --flowAlso add the optional flow
adapter add cursorAdd another tool later

Then

Open your AI tool in the project and type /gw ($gw in Codex; trust its hooks once with /hooks). The first time, it asks what the project is and fills in the map. After that, every session starts from the brief.

With plain markdown, AGENTS.md tells the agent to run npx groundwork-ai brief first. If a session ever starts without its brief, run that command yourself.

Next: your first 10 minutes.

What it adds

PathWhat it is
.groundwork/The memory files, the /gw command and the scripts the hooks run. Commit it
AGENTS.mdTells any agent to read the brief first and to save
.claude/, .opencode/, .codex/ and .agents/, .cursor/, or .gemini/ and GEMINI.mdYour tool's hooks and /gw command
.gitattributesMarks images as binary

Every file is listed in Project files.

Update or remove

npx groundwork-ai upgrade      # update Groundwork's files; yours are kept
npx groundwork-ai doctor       # check that everything is healthy
npx groundwork-ai uninstall    # remove only what Groundwork added

Coming from 1.x? See Upgrading.

On this page