bots-garden/mini-mepublic Fork 0
main
Commits
Clone
git clone https://git.rickub.com/bots-garden/mini-me.git
git clone ssh://git@rickub.com/bots-garden/mini-me.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

💾 Saved. d722711 · on main · k33g · 4h ago
start-a-new-session.md · 40 lines · 2.1 KBmarkdown
Blame HistoryOpen raw

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

  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.

  2. Type the command:

    > /new
    🆕 new session: 12 message(s) forgotten
    

    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.

  3. Ask your next question. The model only sees the system prompt and that question; nothing from before /new is sent to it.

From an editor (ACP)

  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.

  2. Read the confirmation in the thread: 🆕 New session: 12 message(s) forgotten. The turn ends there, the model is not consulted.

  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.

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.
 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
# 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

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.

2. Type the command:

   ```text
   > /new
   🆕 new session: 12 message(s) forgotten
   ```

   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`.

3. Ask your next question. The model only sees the system prompt and that question; nothing from before `/new` is sent to it.

## From an editor (ACP)

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.

2. Read the confirmation in the thread: `🆕 New session: 12 message(s) forgotten.` The turn ends there, the model is not consulted.

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.

## 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](../reference/slash-commands.md) — every command, at the prompt and during a generation.
- [ACP reference](../reference/acp.md) — how the command is advertised and handled over the protocol.
- [Keep a long session inside the context window](manage-the-context-window.md) — `/compact` shortens the history without forgetting it; `/new` forgets it.