BUILD / show-session-info-in-grok-build

Build

Show session info in Grok Build

Show session info in Grok Build

/session-info prints a summary of the active session (ids, paths, and related counters). Official: Modes and Commands, Sessions.

Open the dump

  1. Start or resume a Build session (grok or grok -c).
  2. Run:
/session-info
  1. Read the fields for this conversation — useful when you need the session id for --resume, a headless follow-up, or support.

Context vs session info

Command Best for
/context Current context-window fill only
/session-info Broader session metadata plus context when you need the full dump
/usage Credit / billing view

Grok also auto-compacts as the window fills; check usage with /context or /session-info, then reclaim space with /compact — see Check context usage in Grok Build and Compact a long Grok Build session.

Pitfalls

  • Headless -p runs still get a sessionId in JSON output; use that for automation instead of the TUI dump when you are scripting.
  • /session-info does not rename or delete the session — use /rename or grok sessions delete for those.