mini-me v1.0.7
A project can keep its agent in a .mm folder, which mm init, mm sbxinit and the new mm skillcreate all know, and models such as SmolLM3, whose chat template reads its tools from xml_tools, can call mm's tools.
New
The .mm project folder (#204)
mm and mm tui started with no config file now look for ./agent.yaml, then for ./.mm/agent.yaml. When both exist, ./agent.yaml wins. A file named with -config or AGENT_CONFIG still comes first.
The relative paths of a config file directly inside a .mm folder are read from the project root, the parent of .mm, not from .mm itself. This holds whatever way the file was named, and in ACP mode too. A .mm/agent.yaml therefore writes skillsDir: .mm/skills, as you would type it from the root where mm runs. It covers mmConfigs, the hooks and their MM_CONFIG_DIR, tools[].wasm, the deciders of skillRouting and toolRouting, and skillsDir in ACP mode, where it used to give .mm/.mm/skills. skillsDir in a terminal, sessions.dir and agentsMd.path follow the working directory, as before.
See How to keep a project's mini-me files in a .mm folder.
mm init: Project layout, sessions and skills (#205)
The wizard has three new yes/no questions, all no by default.
- Keep everything in a
.mmfolder? It is asked first. Withyes, mm creates.mm/, writes.mm/agent.yamlwith its paths from the project root, and ends withNext: mm (or mm tui). A file chosen outside.mm/is refused. - Save the conversations? With
yes, the file gets asessionssection (enabled: true,dir: .mm/sessions). Withno, it gets none, and sessions stay off as before. - Use skills? With
yes, the file getsskillsDir: skills, or.mm/skillswith the Project layout, and the folder is created.
The flags are --project, --sessions and --skills, each yes or no. -o - prints the file and creates nothing. Without the new flags, the file mm init writes is the same as in v1.0.6, byte for byte.
See How to create an agent with mm init.
mm skillcreate, a wizard for skills (#206)
mm skillcreate asks for a skill and writes it as <skillsDir>/<name>/SKILL.md, where the agent's config file says its skills are. It finds that file as mm does, .mm/agent.yaml included. Without a config, or with skillsDir: no-skills, the skill goes to .mm/skills when a .mm folder exists, else to skills, and mm says which skillsDir to set.
- The name is written lower case, with dashes:
Vulcan Salutegivesvulcan-salute, for the front matter'snameand for the folder. - The level-1 title is the name as you typed it. A name typed already normalised is turned back into words:
vulcan-salutegives# Vulcan Salute. A## What to dosection follows, then the text. - The keywords are optional. Beyond 8, mm warns that only the first 8 reach the catalogue.
- The text is always the last question. In the line mode it ends with Ctrl-D. In the window, Enter adds a line and Ctrl-D answers. The window is the one of
mm init, with theSKILL.mdas it would be written on the right. - An existing skill is never replaced without your answer. The question comes right after the name.
- After writing, mm reads the skill back with its own loader and says
✅ mm reads it.
The flags are --name, --description, --keywords, --body, --body-file, -config, --yes and --line. -o - prints the skill and creates nothing.
Not tried: the window in a real terminal. It is covered by tests on a simulated screen only.
See How to add a skill.
Tools for models whose template reads xml_tools (#207)
SmolLM3's card says it calls tools, but through mm it never did. Its chat template reads the tools from an xml_tools variable and never from the OpenAI API's tools, which is what mm sends. Given xml_tools, the model writes its call as <tool_call>…</tool_call> text, which llama-server does not turn into a tool call.
toolFormat: xml_tools in the agent file fixes both sides. mm sends the tools in chat_template_kwargs.xml_tools, writes earlier calls back into the history as <tool_call> text, and turns the <tool_call> blocks of the answer into tool calls, streamed or not. A block whose JSON is broken or cut is handed back to the model, as for any other model. toolFormat: openai, the default, changes nothing for other models.
Measured on llmman with SmolLM3-3B Q4_K_M:
- with reasoning on, it repeats its call after the tool's answer instead of answering (3 runs out of 3);
- with reasoning off, it answers (6 out of 6);
- SmolLM3-3B-128K was tried on a one-step request (3 runs); longer tasks were not tried with it.
Tasks of several steps stay fragile at 3B: the model sometimes takes a tool's output for something the user said. Wrapping that output in <tool_response> tags made no measured difference.
See How to give tools to a model whose template reads xml_tools.
SmolLM3 in mm init
A new smollm3 family covers unsloth/SmolLM3-3B-GGUF and SmolLM3-3B-128K-GGUF.
- Sampling: temperature 0.6 and top_p 0.95, from the model card and its
generation_config.json. - Tools: the family writes
toolFormat: xml_toolsfor a usage with tools. - Reasoning: it is written off whatever the usage, with a note at the end of the file that gives the measurement above.
A file written by mm init --usage developer --project yes for SmolLM3-3B ran bash in 3 runs out of 3. Both models pass mm init --check with the translator usage.
mm sbxinit and the .mm folder (#208)
mm sbxinit now also looks for .mm/agent.yaml, after agent.yaml, and names the sandbox after its acp.name. For a .mm project it writes a sbxenv.yaml that keeps the agent's settings out of its own reach.
.mm/is mounted read-only over the workspace.- The folders mm writes in are mounted writable again, read from the agent file:
sessions.dirwhen the sessions are on, andtrace.dirwhen the trace is on. AGENT_CONFIGnames the agent file through aPROJECT_DIRargument, so it does not depend on the mm version the kit ships. It was not tried from an editor (ACP) in a sandbox.- Every path is relative to the folder of
sbxenv.yaml, so the file can be committed. - Every
sbx envcommand takes--env-arg PROJECT_DIR="$PWD".
The nested mounts were checked in a Docker Sandbox: the sessions are written from the sandbox while .mm is read-only.
See How to run mini-me in a Docker Sandbox.
Demos
demos/smollm3-demo/: an agent written bymm initfor SmolLM3-3B in a.mmfolder, withtoolFormat: xml_toolsand reasoning off.
Documentation
- New:
- Updated:
- the CLI reference, with configuration file resolution, the base directory of relative paths, the flags of
mm initandmm sbxinit, andmm skillcreate; - the configuration reference (
toolFormat) and the hooks reference (MM_CONFIG_DIR); - the guides to creating an agent, adding a skill, using mini-me from an editor, guarding the agent with hooks, and running in a Docker Sandbox;
- the
mm initexplanation. The sample window of How to create an agent is now taken from the real window.
- the CLI reference, with configuration file resolution, the base directory of relative paths, the flags of
Upgrading
- Agent files do not change, with one exception, below. Replace the binary: see the install guides for macOS, Linux and Windows.
- A config file directly inside a
.mmfolder: its relative paths now start at the project root, andMM_CONFIG_DIRis the project root. A hook written$MM_CONFIG_DIR/hooks/…for a.mm/agent.yamlbecomes$MM_CONFIG_DIR/.mm/hooks/…. To run the same file with an older mm too, for example the one a sandbox kit ships, write${MM_CONFIG_DIR%/.mm}/.mm/hooks/…, which gives the project root with any version. - New key:
toolFormat(openaiby default, orxml_tools). Any other value stops the load withtoolFormat must be openai or xml_tools. - New command:
mm skillcreate(also--skillcreate). Newmm initflags:--project,--sessionsand--skills. - Changed messages. The interrupt messages start with
🔴followed by two spaces instead of🛑: for example🔴 Generation aborted.,🔴 Interrupted (Ctrl+C).and🔴 Ask aborted — nothing kept.
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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
|