| # | Command | Tool | Category | Tool |
|---|---|---|---|---|
| 1 | /compress Replace the current chat context with a summary to save tokens and free up context window space. | Gemini CLI | context-management | Gemini CLI |
| 2 | /init Analyze directory and generate a tailored GEMINI.md for persistent project memory. | Gemini CLI | setup | Gemini CLI |
| 3 | /memory refresh Reload memory from global, project, and subdirectory GEMINI.md files without restarting. | Gemini CLI | setup | Gemini CLI |
| 4 | /permissions Manage folder trust settings. Trust a path so Gemini can operate there without per-action prompts. | Gemini CLI | configuration | Gemini CLI |
| 5 | /plan Switch to Plan Mode (read-only) where Gemini produces an approved plan before making any changes. | Gemini CLI | planning | Gemini CLI |
| 6 | /restore Revert files to their pre-tool state using checkpointing. Pass a tool_call_id to restore a specific checkpoint. | Gemini CLI | session-management | Gemini CLI |
| 7 | /rewind Navigate backward through history; revert chat and/or code to a prior state (also Esc Esc). | Gemini CLI | session-management | Gemini CLI |