| 💾 Saved. d722711 k33g 9h ago | 1 | # How to start a new session without restarting `mm` |
| 2 | |
| 3 | This guide shows how to wipe the conversation and begin again from a clean history, in the terminal and from an editor. It assumes `mm` is running and has already answered at least one question. |
| 4 | |
| 5 | ## In the terminal |
| 6 | |
| 7 | 1. Wait for the prompt (`> `). The command only acts between two generations; typed while the model is working, it first cancels that generation, then applies. |
| 8 | |
| 9 | 2. Type the command: |
| 10 | |
| 11 | ```text |
| 12 | > /new |
| 13 | 🆕 new session: 12 message(s) forgotten |
| 14 | ``` |
| 15 | |
| 16 | The count is every message except the system prompt: your questions, the model's answers and the tool turns in between. On an already-empty session it reads `0 message(s) forgotten`. |
| 17 | |
| 18 | 3. Ask your next question. The model only sees the system prompt and that question; nothing from before `/new` is sent to it. |
| 19 | |
| 20 | ## From an editor (ACP) |
| 21 | |
| 22 | 1. Type `/new` in the agent panel. Editors that list the agent's commands offer it in the slash-command menu with the description *Clear the history and start a new session*; typing it by hand works as well. |
| 23 | |
| 24 | 2. Read the confirmation in the thread: `🆕 New session: 12 message(s) forgotten.` The turn ends there, the model is not consulted. |
| 25 | |
| 26 | 3. Keep working in the same thread. The session keeps its id, its working directory and the tools you already allowed "for this session"; only the history is gone. |
| 27 | |
| 28 | ## What `/new` resets, and what it keeps |
| 29 | |
| 30 | | Reset | Kept | |
| 31 | |-------|------| |
| 32 | | The conversation history (back to the system prompt alone). | The configuration, the model, the tools. | |
| 33 | | The loop detector's memory of repeated commands (terminal). | The working directory. | |
| 34 | | The server's token count of the last context, used to decide automatic compression. | In ACP mode, the session id and the "allow always" permission grants. | |
| 35 | |
| 36 | ## Related |
| 37 | |
| 38 | - [Slash commands reference](../reference/slash-commands.md) — every command, at the prompt and during a generation. |
| 39 | - [ACP reference](../reference/acp.md) — how the command is advertised and handled over the protocol. |
| 40 | - [Keep a long session inside the context window](manage-the-context-window.md) — `/compact` shortens the history without forgetting it; `/new` forgets it. |