In Claude Code

Four commands. Claude does the reading.

Each one runs the CLI, hands the agent a brief, and lets the agent write. The same three commands exist in Cursor and Codex. The map is written by the agent that was in the room, which is why it knows what you meant.

/wrap

At the end of a session. Cartographer digests the transcript into a timeline with a reading of every prompt, writes a brief tuned to your profile and the languages you used, and Claude writes the map: chapters, then moves (what you did, what happened, what it meant, how you responded), each citing its evidence. Then it files the map under the git repo you were in and renders the replay.

/wrap myproject names the project · /wrap --session <id> maps an older session · --force redoes one

/replay

The story of every wrapped session of a project, across branches, told one move at a time, with the playbook underneath: coaching, prompts worth reusing, how you build, where time went. /replay myproject, or just /replay to pick.

/complete

When a version is done. Claude asks what "done" meant, in your words, if you never declared it, then the result (shipped, partial, abandoned) and what actually happened. Then it writes the appraisal: what got you there, what cost you and how many minutes, what was carried into the result and what it will cost later, how you prompted and what it did. Every item cites session and move ids; praise words are rejected.

/cartographer-setup

Change your profile in conversation, switch manual and automatic wrapping, or backfill maps of old sessions. /cartographer-setup backfill lists past sessions and maps the ones you pick.

What a session looks like

  1. Before you start (optional, recommended): cartographer goal "what done means for this version" in the repo. This is the yardstick every map is judged against.
  2. Build as usual. Prompts, corrections, dead ends, fixes. Cartographer is not running.
  3. /wrap at the end. Claude reads the brief, writes the map, saves it, and gives you the trailer: one line on what happened, three to five beats, one observation about how you build, coaching if you turned it on, and the replay path.
  4. Repeat across sessions. Each one lands in the same project; the replay stitches them into one story.
  5. /complete when the version ships. The honest reading of the whole build against what you wanted.

Cursor and Codex CLI: the same three commands, /wrap, /replay and /complete, installed with --agent all (Cursor reads them from .cursor/commands, Codex from ~/.codex/prompts). If the agent you built in cannot write the map, for instance Cursor out of credit, /wrap --agent cursor in Claude Code writes it from the record. Cursor has been checked against a real 2.x install; Codex follows its documented layout and has not.