bots-garden/mini-mepublic Fork
⑂ feature/decider-no-tools
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.

Download ZIP
🛟 Updated. 85e8e1f · on feature/decider-no-tools · k33g · Oct 18, 2026
v0.7.0.en.md · 67 lines · 4.7 KBmarkdown
Blame HistoryOpen raw

mini-me v0.7.0

Version française

Free a model's memory, see which hooks ran, pick up an earlier session from your editor, and screen questions with guard models.

New

Unload a model — /unload and unload_model (#92, #101)

  • /unload [model] frees a model from the server's memory, in the terminal, the window (-tui) and an editor (-acp). Without an argument it unloads the agent's own model.
  • unload_model is a new built-in tool: the agent can unload any model itself, for example another agent's model once that agent has answered. It never asks for permission: nothing changes on disk, and the server reloads the model on the next request.
  • Supported servers: llmman and Ollama (keep_alive: 0, after checking with /api/ps that the model is loaded), and llama-server in router mode (POST /models/unload). A single-model llama-server answers with the alternatives (--sleep-idle-seconds, or stop the server).
  • New key unloadModels (default true). false removes both the command and the tool. The tool is never offered beside a structuredOutput.

⚠️ Since the default is true, every existing agent now gets one more tool. If a small model starts calling unload_model at random, set unloadModels: false in that agent.

Show the hooks that ran — displayHooks (#100)

  • New key displayHooks (default false). It shows every hook run on one line: event, tool or agent, command, decision, and the size of the context the hook added. The context text itself is never shown, since a hook may add secrets.

    🪝 1. preAsk expert · node "$MM_CONFIG_DIR/hooks/unload.js" self → continue
    
  • Where it shows: after each answer in the line mode, with -p and in the window (under ⚙). In an editor, each hook run is a finished tool call.

  • Every hook is covered, including the ones run by agents started with /ask, ask_agent or mm --ask.

Editors: list and resume sessions over ACP (#95)

  • mm -acp now implements session/list and session/resume, and advertises them in sessionCapabilities.
  • In Zed (checked with 1.4.2), the project's sessions now show in the agent panel's thread history and can be picked up there.
  • Sessions without any question are left out. REPL and window sessions of the same project are listed too.
  • session/load (with the conversation replayed) is unchanged.

Fixed

  • Window (-tui): the / picker drew only its first 8 choices and never scrolled, so the arrows could select commands nobody could see (/unload, and /ask-<name> commands). The list now follows the selection.

Demos

  • demos/unload-models/ (new): a coordinator (Qwen3.5 9B) hands each programming question to an expert (Qwen3.5 4B). The two models are never loaded together:

    • a preAsk hook unloads the coordinator before the expert starts;
    • a postAsk hook unloads the expert before the coordinator reads its answer.

    Measured 9/9 on llmman. /unload works by hand, and unload_model runs when you ask the coordinator to free the expert.

  • demos/guard/: fixed for Granite Guardian 3.2 3B-A800M (#99). The model's chat template reads the system message as a risk name, so the demo now uses system: harm and turns agentsMd off. Without that, the server answered 400 unknown system risk. The README is in EN and FR.

  • demos/guards/ (new, #99): one guard agent per risk (7 risks). A preGeneration hook asks them in parallel; the assistant (gemma-4-E4B) then reacts to their verdicts. If a guard cannot answer, the hook stops the turn (fail closed). The README includes a flow diagram.

Documentation

  • New how-to guides (EN + FR):
  • New explanation: Guard models.
  • New guide: settings for small models (#98): EN, FR. It covers contextWindow, the timeouts, maxTurns, maxOutput, agentsMd, context compression and sampling.
  • Reference updates:
    • configuration, tools and slash commands: the two new keys, the new tool and /unload;
    • hooks: a new ## Display section;
    • ACP: the two new methods;
    • CLI: MM_BIN and MM_CONFIG are set for hooks too, not only for the bash tool.
  • README rewritten (#49).

Upgrading

  • No breaking change in the configuration. Only two keys are new: unloadModels (default true) and displayHooks (default false).
  • Check your agents on small models: they now carry unload_model. See the warning above.
 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# mini-me v0.7.0

*[Version française](v0.7.0.fr.md)*

Free a model's memory, see which hooks ran, pick up an earlier session from your editor, and screen questions with guard models.

## New

### Unload a model — `/unload` and `unload_model` (#92, #101)

- **`/unload [model]`** frees a model from the server's memory, in the terminal, the window (`-tui`) and an editor (`-acp`). Without an argument it unloads the agent's own model.
- **`unload_model`** is a new built-in tool: the agent can unload any model itself, for example another agent's model once that agent has answered. It never asks for permission: nothing changes on disk, and the server reloads the model on the next request.
- **Supported servers**: llmman and Ollama (`keep_alive: 0`, after checking with `/api/ps` that the model is loaded), and llama-server in router mode (`POST /models/unload`). A single-model llama-server answers with the alternatives (`--sleep-idle-seconds`, or stop the server).
- **New key `unloadModels`** (default `true`). `false` removes both the command and the tool. The tool is never offered beside a `structuredOutput`.

> ⚠️ Since the default is `true`, **every existing agent now gets one more tool**. If a small model starts calling `unload_model` at random, set `unloadModels: false` in that agent.

### Show the hooks that ran — `displayHooks` (#100)

- **New key `displayHooks`** (default `false`). It shows every hook run on one line: event, tool or agent, command, decision, and the size of the context the hook added. The context text itself is never shown, since a hook may add secrets.

  ```text
  🪝 1. preAsk expert · node "$MM_CONFIG_DIR/hooks/unload.js" self → continue
  ```

- **Where it shows**: after each answer in the line mode, with `-p` and in the window (under ⚙). In an editor, each hook run is a finished tool call.
- **Every hook is covered**, including the ones run by agents started with `/ask`, `ask_agent` or `mm --ask`.

### Editors: list and resume sessions over ACP (#95)

- `mm -acp` now implements **`session/list`** and **`session/resume`**, and advertises them in `sessionCapabilities`.
- **In Zed** (checked with 1.4.2), the project's sessions now show in the agent panel's thread history and can be picked up there.
- Sessions without any question are left out. REPL and window sessions of the same project are listed too.
- `session/load` (with the conversation replayed) is unchanged.

## Fixed

- **Window (`-tui`)**: the `/` picker drew only its first 8 choices and never scrolled, so the arrows could select commands nobody could see (`/unload`, and `/ask-<name>` commands). The list now follows the selection.

## Demos

- **`demos/unload-models/`** (new): a coordinator (Qwen3.5 9B) hands each programming question to an expert (Qwen3.5 4B). The two models are **never loaded together**:
  - a `preAsk` hook unloads the coordinator before the expert starts;
  - a `postAsk` hook unloads the expert before the coordinator reads its answer.

  Measured 9/9 on llmman. `/unload` works by hand, and `unload_model` runs when you ask the coordinator to free the expert.
- **`demos/guard/`**: fixed for Granite Guardian 3.2 3B-A800M (#99). The model's chat template reads the system message as a risk name, so the demo now uses `system: harm` and turns `agentsMd` off. Without that, the server answered `400 unknown system risk`. The README is in EN and FR.
- **`demos/guards/`** (new, #99): one guard agent per risk (7 risks). A `preGeneration` hook asks them in parallel; the assistant (gemma-4-E4B) then reacts to their verdicts. If a guard cannot answer, the hook stops the turn (fail closed). The README includes a flow diagram.

## Documentation

- **New how-to guides** (EN + FR):
  - [Free a model's memory](../docs/en/how-to/unload-a-model.md)
  - [Screen questions with guard models](../docs/en/how-to/screen-questions-with-guard-models.md)
- **New explanation**: [Guard models](../docs/en/explanation/guard-models.md).
- **New guide**: settings for small models (#98): [EN](../guides/agent-settings-for-small-models.md), [FR](../guides/reglages-agents-petits-modeles.md). It covers `contextWindow`, the timeouts, `maxTurns`, `maxOutput`, `agentsMd`, context compression and sampling.
- **Reference updates**:
  - configuration, tools and slash commands: the two new keys, the new tool and `/unload`;
  - hooks: a new `## Display` section;
  - ACP: the two new methods;
  - CLI: `MM_BIN` and `MM_CONFIG` are set for hooks too, not only for the bash tool.
- **README rewritten** (#49).

## Upgrading

- **No breaking change in the configuration.** Only two keys are new: `unloadModels` (default `true`) and `displayHooks` (default `false`).
- **Check your agents on small models:** they now carry `unload_model`. See the warning above.