mini-me v1.0.0
Small decision models working for the agent — they pick the skill, trim the tool list, triage commands and check what the agent reads — plus your shell one command away from the window, and mm init files that say where each number comes from.
New
Decision models (#123)
A decision model does not write text: it answers questions about a text — a choice among options, a yes/no probability, a score — in a fraction of a second. mm talks to them through POST /v1/systemone, served by llama-server, llmman and Ollama.
- A decider is an agent file with a
decision:block listing its questions (choice,noul,score).mm -config agent.decider.yaml -p "<text>"prints the server's JSON answer on stdout, for a script or a hook. In the line mode, the window and an editor (/ask-<name>,mm --ask), it answers one line per question, followed by the JSON. A decider has no tools, no history and no hooks; mm refuses to start one that declares a tool. - Supported servers: llama-server (
llamacpp), llmman, Ollama, andopenaiwhen the server serves the route. Docker Model Runner does not serve decision models, and mm says so at start-up. - Tried with LiquidAI d1-3B (
hf.co/LiquidAI/d1-3B-GGUF:Q4_K_M): the same answers, to 1e-4, on llama-server, llmman and Ollama; about 0.2–0.5 s per call once the model is loaded, about 13 s for the first call. evalengine's decision-4b is refused by llmman and Ollama on this route (ticket 125, milestone v1.0.1).
Skill routing (#123)
skillRouting: {decider, minConfidence, timeout}: before each question, the decider picks the skill the question needs. When it is sure enough (0.6 by default), mm appends the skill's$nameline to the question, as if you had typed it. A notice says what happened:🧭 $bg-jobs (0.84),🧭 no skill (…)or🧭 skill routing skipped: ….- It never blocks a question: a decider that is slow (2 s by default), down or unsure leaves the question as it is. It works in the line mode, the window and an editor;
-pdoes not route, just as it does not expand$skill. - Measured with d1-3B on llama-server, on the 23 cases of the skill-routing eval: 15 routed right at 0.6 and none wrong. Qwen3.5 4B, which picked the right skill on its own in 12 of the 23 cases, did in 16 with routing.
MM_EVAL=1 MM_DECIDER=<file> go test ./internal/eval -run Decider -vmeasures a decider on its own.
Tool routing (#127)
toolRouting: {decider, dropBelow, timeout, groups}: before each turn, one yes/no question per group of tools ("does this request need running shell commands?"). A group the decider rules out (belowdropBelow, 0.2 by default) is not offered to the model for that turn. A tool that belongs to no group is always offered, and any failure offers every tool.- It only removes tools: the agent's own tools remain the upper limit. A notice says what was dropped:
🧰 tools: dropped web (0.08). - On eight requests tried, every group a request needed scored 0.37 or more, and every score under 0.2 went to a group the request did not need. Not measured yet: whether a shorter tool list makes a small model choose better. A tool list that changes from one turn to the next cannot reuse the server's prompt cache.
Hooks can approve a tool call: allow (#126)
- A
preToolCallhook may now answer{"action": "allow"}: the call runs without asking you, even withyolo: false. This lets a hook skip the confirmation question for calls it knows are safe. Adenyfrom a later hook still wins, a never you gave still refuses, and an agent asked by another one ignoresallow. demos/decision-commands/uses it with a decider: read-only commands (ls,cat,git status…, 0.94–0.95 "read-only") run at once;rm -rf /andddare refused; everything else asks you as before. About 0.4 s per command.
/shell in the window (#122)
/shellhands the terminal to your shell ($SHELL,%COMSPEC%on Windows) in the window's directory;exitbrings the conversation back as you left it, with🐚 Back from the shell.(or the exit status).- It works during a turn: the turn goes on, and its answer is there when you come back.
Ctrl-Cin the shell stops what you started, not mm. - The shell's prompt starts with
(mm)(bash, zsh, fish, sh, cmd), so you do not typeexitthere thinking you are closing a tab;MM_SHELL=1is set for prompt themes that redraw the whole prompt.
mm init says where each number comes from (#121)
- Every number about the model is tagged:
[measured](a demo of this repository ran with it),[card](copied from the model card or the GGUF),[server](read from the server),[guide](the settings guide's machine row),[rule](a rule of thumb). After a model or quantization change, the tag says what to redo. The header explains the tags the file uses. - The header keeps what the server said about the model (
model facts: native window, GGUF sampling, reasoning switch), and a comment abovemodel:lists the settings chosen for that model, to redo together when it changes. - Without
--base-url, the file records the provider's defaultbaseUrlandfallbackas comments, ready to uncomment. - The model list of the
mm initwindow shows short names, as the window's header does (Qwen3.5-4B:Q4_K_M), with the highlighted model's full identifier under the list.
Demos
Seven new demos, each with its decider and README (EN + FR) with measured results; all use LiquidAI d1-3B as the decider and, where there is one, Qwen3.5 4B as the chat model, on llmman.
demos/decision-skills/: a decider on its own (-pprints the JSON), and skill routing in front of a chat agent.demos/decision-only/: no chat model at all — a script triages a support inbox (category, urgency, personal data, an upset author); 6 of 6 categories right, about 0.6 s per message.demos/decision-commands/: command triage with theallowhook action.demos/decision-tools/: tool routing on a small Go project.demos/decision-injection/(#132): a hook warns the model when a file or a web page it read contains instructions addressed to an AI assistant. The text is checked paragraph by paragraph: a hidden comment scored 0.44 inside the whole README, 0.93 alone.demos/decision-tool-errors/(#133): a hook adds a note under a command output that shows an error, even when the exit code is 0.demos/decision-ask-check/(#134): a hook warns the asking agent when another agent's answer is off-topic.
The three check demos report what the warnings changed, honestly: on their obvious cases, Qwen3.5 4B often saw the problem by itself.
Documentation
- New how-to guides (EN + FR):
- New explanation: Decision models — why a decider is an agent and not a tool, why routing only adds a line and tool routing only removes, what was measured, what was rejected.
- New install guides: Linux and Windows, beside the macOS one.
- Updated: the references for the configuration (
decision,skillRouting,toolRouting), hooks (allow), the command line (-pwith a decider,mm init's file) and slash commands (/shell); the how-tos for the window mode (/shell), creating an agent, confirming tool calls and measuring skill routing; the architecture explanation; the package diagram.
Upgrading
- No breaking change in the configuration. New keys:
decision,skillRouting,toolRouting; a new hook action,allow(preToolCallonly). An agent without them behaves as before. - A decider file needs
skillsDir: no-skillswhen it can be started from a project with askills/folder: withskillsDir: ""it reads./skills, declaresread_skilland refuses to start. The demos' deciders set it. - The start-up banner gains
| routing: …and| tool routing: …columns when they are configured; a decider'stools:column readsnone (decision model: N question(s)). mm initwrites a longer header (the server's facts and the tag legend) and tags its comments; files written by v0.9.0 still load as they are.
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 68 69 70 71 72 73 74 75 76 77 78 |
|