mini-me v2.1.0
Agents that talk to each other over A2A, llama-server started and stopped by mm, MLX-Serve as a provider, the generation speed in the status bar, long turns compressed as they go, and variables in the system prompt.
New
A2A: mm agents talk to each other (#243, #263)
mm speaks the Agent2Agent protocol — JSON-RPC over HTTP, text only, no streaming yet:
mm a2a agent.yamlserves an agent to other agents: its Agent Card at/.well-known/agent-card.jsonand the messages it answers, one conversation per A2AcontextId. It listens on127.0.0.1:9100by default (a2a.port,--a2a-port);a2a.tokenEnvmakes callers send a bearer token.a2a.agentsdeclares remote agents: the model talks to them with the newask_a2a_agenttool, and you with/a2a-<name> <message>in the terminal, the window and the editor — the answer joins the conversation for your next question. The tool and the command share one conversation per agent.mm a2a-send <url> "message"talks to an agent from a script: the answer on stdout,context: <id>on stderr,--context <id>to continue.
Both versions of the protocol in use are spoken: 1.0 (SendMessage, the current one) and 0.3 (message/send); the client tries 1.0 first. Checked against the official Python a2a-sdk 1.3.1 client. See A2A mode and a2a keys.
llama-server started and stopped by mm (#223, #257)
llamacpp:
autoStart: true
sleepIdleSeconds: 300 # optional launch settings, each one a llama-server flag
With autoStart, when nothing answers at the agent's address (a local one), mm starts llama-server in router mode with the agent's model — downloaded on first use —, waits until it is loaded, and stops it with the last mm session that uses it: several sessions share one server. A server you started yourself, or the Llama app's, is never stopped. The launch settings ctxSize, modelsMax, modelsMemoryMargin, fitTarget, sleepIdleSeconds and specDefault are optional (absent = llama-server's default); serverArgs takes any other flag. mm init asks for both. Off by default. See Let mm start llama-server.
MLX-Serve provider (#252)
provider: mlxserve for MLX-Serve on Apple Silicon (port 11234): the served window, a warning when the model is not downloaded (the server otherwise answers with its default model), reasoning off for the summary request, /unload, autoPull and mm init. Measured on mlx-serve 26.11.3. See Run mini-me on MLX-Serve.
The model is unloaded when mm exits (#255)
unloadOnExit (on by default): on every way out — /quit, Ctrl-C, Ctrl-D, the window closed, the end of -p, the editor closing the session, SIGTERM — mm unloads the agent's model from the server's memory, within 3 seconds at most. Nothing is said when the model was not loaded or the server cannot unload (dmr, openai, a single-model llama-server). AGENT_UNLOAD_ON_EXIT=false keeps it loaded for one run. See When mm exits.
The generation speed in the status bar (#254)
⚡ ~58 tok/s in the window's status bar while the model streams, then the turn's average (its tokens over the time spent generating them, the tools' time left out). The server's own figures when it sends them (llama-server, MLX-Serve), else measured by mm. Editors receive it in a usage_update's _meta. showSpeed: false turns it off.
Long turns compressed as they go (#251)
context.compressInTurn (on by default): inside a long turn, before each model call past context.threshold of a known window, the older tool results and long call arguments of the turn keep only their first line; if that is not enough, they are replaced by notes the model writes, added to the question. The last 4 tool exchanges stay as they are. A turn that used to fail with "the request is larger than the server's window" goes on. Measured with Qwen3 1.7B on a 6,144-token window: a chain of 8 files read one by one, 4 compressions, the answer found. One single exchange larger than the window cannot be compressed. See Context compression.
Variables in the system prompt (#253)
variables:
project: mini-me, a coding agent written in Go
system: |
Today is {{date}}. You work in {{cwd}} for {{env.USER}}, on {{config.project}}.
{{date}}, {{cwd}}, {{env.NAME}} and the file's own variables: as {{config.NAME}}, replaced when a conversation starts. A variable whose name looks like a secret (…_KEY, …_TOKEN, …_SECRET, …PASSWORD…) is refused; an unset one is replaced by nothing, with a warning. See system.
Fixed
- The first answer of an MLX-Serve run failed with
unexpected end of JSON input: the server's: keepalivecomments broke the stream reader. Comment-only blocks are now dropped, for every provider. (#252) fetch_contentreturned DuckDuckGo's redirect links instead of the result pages, and models cited those: they now point to the page itself. (#69)
Demos
demos/a2a-discussion(new): three agents — for, against, a moderator — debating over A2A, on one LFM3 1.7B shared by a single llama-server.start.sh,discussion.shandstop.sh; measured: three agents ready in 18 s, a two-round debate in 37 s, moderator-led debates of 4 and 8 calls in 72 s and 130 s.demos/qwen-search(new): web search and a press review with skills andfetch_contentonly — no MCP server —, and a skill with a catalogue of trusted WebAssembly pages. Qwen3.5 4B passes every case; 2B only the press review.demos/prompt-variables(new): the prompt's variables with Qwen3.5 4B (and 2B): what a small model repeats correctly, and what it cannot compute from them (the day of the week).demos/mlx-gemma-4-e4b(new, with its README),demos/mlx-gemma-4-12b,demos/mlx-gemma-4-26b-a4banddemos/mlx-qwen: agents for MLX-Serve.demos/olala-mini-dnd(Maëlle, a role-playing NPC on Olala-v1.0-mini),demos/programming-answers(Little Coder on Mellum2.1 Thinking),demos/olala-mini-cpu,demos/gpt-oss-mini-coder(gpt-oss 20b),demos/inkling-2-mini-coderanddemos/llamacpp-demo: new agent files.demos/lfm-coderhas been removed.
Documentation
- Configuration reference:
a2a,llamacpp,unloadOnExit,showSpeed,context.compressInTurn,variablesand the prompt variables,mlxserve. - CLI reference:
mm a2a,mm a2a-send,--a2a-port,AGENT_UNLOAD_ON_EXIT, the generation speed, the newmm initflags--autostartand--launch-settings. - Tools and slash commands:
ask_a2a_agent,/a2a-<name>, the unwrapped search links offetch_content. - Guides: Run mini-me on MLX-Serve (new), Let mm start llama-server, When mm exits, the in-turn compression in Context compression.
Upgrading
- Replace the binary: see the install guides for macOS, Linux and Windows.
unloadOnExitis on by default. Every existing agent now unloads its model when mm exits. SetunloadOnExit: falsewhen another session or tool uses the same model, or when a script runsmm -pin a loop (orAGENT_UNLOAD_ON_EXIT=falsefor one run).context.compressInTurnis on by default, independently ofcontext.enabled: it acts only pastcontext.thresholdof a known window, inside a turn. Set it tofalsefor the old behaviour.showSpeedis on by default: the window's status bar gains the⚡figure.llamacpp.autoStartis off by default;mm initnow asks, and writesautoStart: truefor a local llamacpp agent unless you answer no.- A system prompt that already contains
{{date}},{{cwd}}or{{env.…}}literally now has them replaced, and a{{config.…}}thatvariables:does not define stops mm at start-up; write\{{date}}to keep one as text. - Older mm versions ignore the new keys without a word.
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 |
|