mini-me v0.7.0
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_modelis 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/psthat 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(defaulttrue).falseremoves both the command and the tool. The tool is never offered beside astructuredOutput.
⚠️ Since the default is
true, every existing agent now gets one more tool. If a small model starts callingunload_modelat random, setunloadModels: falsein that agent.
Show the hooks that ran — displayHooks (#100)
-
New key
displayHooks(defaultfalse). 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
-pand 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_agentormm --ask.
Editors: list and resume sessions over ACP (#95)
mm -acpnow implementssession/listandsession/resume, and advertises them insessionCapabilities.- 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
preAskhook unloads the coordinator before the expert starts; - a
postAskhook unloads the expert before the coordinator reads its answer.
Measured 9/9 on llmman.
/unloadworks by hand, andunload_modelruns when you ask the coordinator to free the expert. - a
-
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 usessystem: harmand turnsagentsMdoff. Without that, the server answered400 unknown system risk. The README is in EN and FR. -
demos/guards/(new, #99): one guard agent per risk (7 risks). ApreGenerationhook 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
## Displaysection; - ACP: the two new methods;
- CLI:
MM_BINandMM_CONFIGare set for hooks too, not only for the bash tool.
- configuration, tools and slash commands: the two new keys, the new tool and
- README rewritten (#49).
Upgrading
- No breaking change in the configuration. Only two keys are new:
unloadModels(defaulttrue) anddisplayHooks(defaultfalse). - 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 |
|