How to start a new session without restarting mm
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.
In the terminal
-
Wait for the prompt (
>). The command only acts between two generations; typed while the model is working, it first cancels that generation, then applies. -
Type the command:
> /new 🆕 new session: 12 message(s) forgottenThe 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. -
Ask your next question. The model only sees the system prompt and that question; nothing from before
/newis sent to it.
From an editor (ACP)
-
Type
/newin 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. -
Read the confirmation in the thread:
🆕 New session: 12 message(s) forgotten.The turn ends there, the model is not consulted. -
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.
What /new resets, and what it keeps
| Reset | Kept |
|---|---|
| The conversation history (back to the system prompt alone). | The configuration, the model, the tools. |
| The loop detector's memory of repeated commands (terminal). | The working directory. |
| 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. |
Related
- Slash commands reference — every command, at the prompt and during a generation.
- ACP reference — how the command is advertised and handled over the protocol.
- Keep a long session inside the context window —
/compactshortens the history without forgetting it;/newforgets it.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|