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
| Command | Description |
|---|---|
| /exit | Exit grok-pi |
| /help | Show available commands |
| /hotkeys | Keyboard shortcuts modal (aliases: shortcuts, keys; same as Ctrl+.) |
| /new | Start a new session |
| /compact | Compact context; optional custom instructions |
| /model | Open model selector (Pi catalog) |
| /effort | Set thinking effort level |
| /rename | Rename the current session |
| /resume | Session picker (Pi JSONL catalog) |
| /session-info | Session stats + context snapshot (alias: session) |
| /dashboard | Agent dashboard (also Ctrl+\) |
| /copy | Copy last response to clipboard |
| /find | Search in scrollback |
| /transcript | Export transcript |
| /export | Export as Markdown (Grok transcript) |
| /expand | Expand collapsed tool output |
| /queue | Show steering / follow-up queue |
| /notify | View in-process notifications |
| /multiline | Toggle multiline input |
| /compact-mode | Toggle compact display |
| /vim-mode | Toggle Vim keybindings |
| /theme | Switch theme (supports pi:<name>) |
| /timestamps | Toggle message timestamps |
| /toggle-mouse-reporting | Toggle mouse support |
Session & tree
| Command | Description |
|---|---|
| /jump | Turn picker with timeline previews; restore viewport |
| /fork | Branch from a chosen user message (Pi fork + rebind) |
| /clone | Duplicate current leaf into a new session file |
| /reload | ctx.reload(); blocked while streaming or compacting; refreshes catalogs + Pi themes |
| /review-session | Native code-review modal over session file edits |
| /review-message | Turn-scoped review via jump-style overlay |
| /export-html | Export session as HTML (or pass a .jsonl path) |
| /pi-share | Private GitHub gist + pi.dev viewer |
| /context | Live token breakdown modal (system/tools/AGENTS/skills) |
| /recap | Session 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.
| Command | Description |
|---|---|
| /plan-mode | Toggle plan mode; shortcut: Ctrl+Shift+T (Windows: Ctrl+Alt+T) |
| /view-plan | Open session .plan.md when plan mode is active |
| /goal | Goal mode MVP (F2 pi_goal, restart required; default off) |
| /workflow | Launch a Rhai workflow (F2 pi_workflows, restart; default off) |
| /workflows | List available workflows (user + project .grok-pi/workflows) |
| /create-workflow | Pager prompt to scaffold a workflow script |
Resources, auth, voice
| Command | Description |
|---|---|
| /pi-config | Rust-native Pi resource manager (alias /pi-resources; also F2 → Pi resources) |
| /login | Authenticate with Pi (Remote TUI path) |
| /logout | Clear Pi credentials (Remote TUI path) |
| /voice | Voice 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/fullscreenBare /login / /logout here are Pi auth (Remote TUI), not Grok cloud login.