BUILD / export-a-grok-build-session-transcript

Build

Export a Grok Build session transcript

Export a Grok Build session transcript

Grok Build keeps every conversation on disk under ~/.grok/sessions/. When you need a Markdown copy outside the CLI, export it. Official: Sessions, CLI Reference, Modes and Commands.

From the shell

grok export                  # writes a Markdown transcript
grok export notes.md         # write to a named file
grok export --clipboard      # copy the transcript to the clipboard

grok export is listed next to grok sessions list|search|delete in the CLI reference. Sessions are keyed by working directory, so run the command from the same project directory you used for the session (or pass the right session after listing).

From the TUI

Command What it does
/export Export the conversation to a file or clipboard
/copy [N] Copy the last (or Nth-latest) response to the clipboard
/transcript Open the full transcript in $PAGER

Use /copy when you only need the latest answer. Use /export or grok export when you need the whole thread.

After export

Exported Markdown is a snapshot. It does not keep pace with later turns unless you export again. To resume the live session instead of exporting, use /resume, grok -c, or grok --resume — see Manage sessions in Grok Build.

Pitfalls

  • Exporting does not redact secrets already present in the transcript. Scrub before sharing the file.
  • A share URL (/share) is a different path from a Markdown export — see Share a Grok Build session via URL.