πgrok-pi/Documentation

Commands

grok-pi keeps Grok Pager slash surfaces and maps Pi capabilities through the ACP command catalog. Extension / prompt / skill commands from Pi appear dynamically.

Retained Grok native

CommandDescription
/exitExit grok-pi
/helpShow available commands
/hotkeysKeyboard shortcuts modal (aliases: shortcuts, keys; same as Ctrl+.)
/newStart a new session
/compactCompact context; optional custom instructions
/modelOpen model selector (Pi catalog)
/effortSet thinking effort level
/renameRename the current session
/resumeSession picker (Pi JSONL catalog)
/session-infoSession stats + context snapshot (alias: session)
/dashboardAgent dashboard (also Ctrl+\)
/copyCopy last response to clipboard
/findSearch in scrollback
/transcriptExport transcript
/exportExport as Markdown (Grok transcript)
/expandExpand collapsed tool output
/queueShow steering / follow-up queue
/notifyView in-process notifications
/multilineToggle multiline input
/compact-modeToggle compact display
/vim-modeToggle Vim keybindings
/themeSwitch theme (supports pi:<name>)
/timestampsToggle message timestamps
/toggle-mouse-reportingToggle mouse support

Session & tree

CommandDescription
/jumpTurn picker with timeline previews; restore viewport
/forkBranch from a chosen user message (Pi fork + rebind)
/cloneDuplicate current leaf into a new session file
/reloadctx.reload(); blocked while streaming or compacting; refreshes catalogs + Pi themes
/review-sessionNative code-review modal over session file edits
/review-messageTurn-scoped review via jump-style overlay
/export-htmlExport session as HTML (or pass a .jsonl path)
/pi-sharePrivate GitHub gist + pi.dev viewer
/contextLive token breakdown modal (system/tools/AGENTS/skills)
/recapSession recap (alias /summarize; optional focus text). Auto when away ≥3 min
  • Double-Esc (empty prompt) or /rewind opens SessionTree (Pi navigateTree — non-destructive branches).
  • SessionTree: Enter navigate, filter/search/tags; with F2 pi_tree_file_rollback: r = preview, R = execute file rollback.

Plan, goal, workflows

Goal and workflows are F2 opt-in (default off) and require a full quit + restart so the host can inject extensions at process start.

CommandDescription
/plan-modeToggle plan mode; shortcut: Ctrl+Shift+T (Windows: Ctrl+Alt+T)
/view-planOpen session .plan.md when plan mode is active
/goalGoal mode MVP (F2 pi_goal, restart required; default off)
/workflowLaunch a Rhai workflow (F2 pi_workflows, restart; default off)
/workflowsList available workflows (user + project .grok-pi/workflows)
/create-workflowPager prompt to scaffold a workflow script

Resources, auth, voice

CommandDescription
/pi-configRust-native Pi resource manager (alias /pi-resources; also F2 → Pi resources)
/loginAuthenticate with Pi (Remote TUI path)
/logoutClear Pi credentials (Remote TUI path)
/voiceVoice dictation via xAI STT (Ctrl+Space / F8)

Dynamic Pi commands

Extension, prompt, and skill commands returned by Pi are not hard-coded in Rust. They enter the Grok slash dropdown via ACP; name conflicts are de-duplicated by the Grok registry. Bridge-only names like __pi_workflow_* are filtered from the catalog.

Deliberately excluded

Grok product / cloud-store commands and startup-only renderer modes are not exposed (Pi owns sessions; switch fullscreen/minimal at launch):

/history/usage/plugins/mcp/memory/workspace/share/debug/minimal/fullscreen

Bare /login / /logout here are Pi auth (Remote TUI), not Grok cloud login.