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
- Start or resume a Build session (
grokorgrok -c). - Run:
/session-info
- 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
-pruns still get asessionIdin JSON output; use that for automation instead of the TUI dump when you are scripting. /session-infodoes not rename or delete the session — use/renameorgrok sessions deletefor those.