providers · local models · tiny language models · 9 min read

Mini Me `v2.1.0`: agents that talk to each other, and a llama.cpp that manages itself

Mini Me v2.1.0 adds A2A agent-to-agent chat, a self-managed llama-server, the MLX-Serve provider, in-turn context compression and prompt variables.

K
k33gNov 25, 2026 · 9 min
Mini Me `v2.1.0`: agents that talk to each other, and a llama.cpp that manages itself

Just a few days after v2.0.0 and its guardrails for small models, here is v2.1.0. This time, no single big theme, but a lot of practical new features, which I'll walk you through one by one, each with what it can actually be used for.

Let's start with the most "fun" one: Mini Me agents chatting with each other 🙂.

1. A2A: agents that talk to each other

Mini Me now speaks the Agent2Agent (A2A) protocol. An agent can be "served" to other agents:

bash
mm a2a alice.yaml      # http://127.0.0.1:9100 by default (a2a.port, --a2a-port)

The agent publishes its card (its "Agent Card", at /.well-known/agent-card.json) and answers the messages sent to it, with one conversation per caller.

And on the other side, an agent declares the agents it can talk to:

yaml
a2a:
  agents:
    alice:
      url: http://127.0.0.1:9101
      description: "Alice, an optimist who argues FOR the idea."
    bob:
      url: http://127.0.0.1:9102
      description: "Bob, a sceptic who argues AGAINST the idea."

From there, there are three ways to talk to Alice or Bob:

  • the model calls them with a new tool, ask_a2a_agent;
  • you, in the terminal, the TUI or your editor, with /a2a-alice <message>: the answer is displayed and goes into the conversation for your next question;
  • a script, with mm a2a-send http://127.0.0.1:9101 "Hello".

I made a demo, demos/a2a-discussion: a debate between Alice (for), Bob (against) and a moderator, all three running on a small LFM3 1.7B, shared on a single llama.cpp server (the model is loaded in memory only once):

bash
cd demos/a2a-discussion
./start.sh                                                     # the 3 agents, ready in 18 s
./discussion.sh "Remote work should be the default" 2          # a 2-round debate in 37 s
mm moderator.yaml -p "Run a debate on: Should cities ban cars?"   # the moderator runs the debate itself
./stop.sh

I wrote the A2A implementation in Mini Me myself (JSON-RPC over HTTP, text, no streaming yet). It speaks both versions of the protocol in use (1.0 and 0.3), and I checked it with the official Python client a2a-sdk.

What is it for? To make specialised agents work together, each one tuned for its "small" model: a reviewer, a tester, an expert in a framework, ... And since it's a standard protocol, a Mini Me agent can also talk to agents that are not Mini Me agents (demo coming soon).

2. llama-server started (and stopped) by Mini Me

Until now, with provider: llamacpp, you had to start llama-server before the agent. Now:

yaml
llamacpp:
  autoStart: true

If nothing answers at the agent's address, Mini Me starts llama-server (in router mode) with the agent's model, downloads it if needed, waits for it to load... and stops it when you quit. If several Mini Me sessions use it, they share the same server, and the last one stops it.

✋ A server you started yourself (or the one from the Llama app) is never stopped by Mini Me.

You can also declare the launch settings of llama-server (each one is optional, a missing key keeps llama.cpp's default value). For example, the ones from the Llama app, super handy on Mac, I'm a big fan 🥰:

yaml
llamacpp:
  autoStart: true
  modelsMax: 0               # no limit on the number of loaded models
  modelsMemoryMargin: 1024   # MB kept free
  fitTarget: 1024
  sleepIdleSeconds: 300      # frees the model after 5 minutes of inactivity
  specDefault: true          # speculative decoding

And mm init now asks you both questions: "Let mm start llama-server when it is not running?" and "Write llama-server's launch settings?".

What is it for? To start an agent with a simple mm tui, without a terminal on the side for the server, and without leaving a multi-GB model in memory when you're done.

3. A new provider: MLX-Serve

For Apple Silicon Mac users, Mini Me can now use MLX-Serve (a native MLX server):

yaml
provider: mlxserve
model: "lmstudio-community/gemma-4-E4B-it-MLX-8bit"

What is MLX? MLX is Apple's compute framework, written specifically for Apple Silicon chips. "MLX" models are weights converted (and quantized) for this framework. On a Mac, they are often faster than their GGUF equivalents served by llama.cpp, and it's not so much a question of file format as of engine:

  • Unified memory: on Apple Silicon, the CPU and the GPU share the same memory. MLX was designed around that: tensors are never copied from one to the other.
  • Tailor-made Metal kernels: where llama.cpp is a multi-platform engine (CPU, CUDA, Vulkan, Metal…), MLX targets a single architecture, and its operations are optimised for it.
  • Lazy evaluation: MLX builds the computation graph before running it, which lets it fuse operations and avoid round trips to memory.

The gain shows mostly in prompt processing (long contexts) and with big models. But it depends on the model and the machine: the best thing is to measure, and the generation speed shown in the status bar (see below) is made for that.

What is it for? To enjoy MLX models on your Mac. I added several demos: demos/mlx-gemma-4-e4b, mlx-gemma-4-12b, mlx-gemma-4-26b-a4b and mlx-qwen.

4. The model is unloaded when you quit

yaml
unloadOnExit: true   # this is the default value

Whatever the way you quit Mini Me (/quit, Ctrl-C, closing the window, the end of an mm -p, the editor closing the session, ...), the model is unloaded from the server's memory.

raw
> /quit
🧹 unloaded lmstudio-community/gemma-4-E4B-it-MLX-8bit

What is it for? No more model staying in memory after your session. ✋ If another tool or another session uses the same model, set unloadOnExit: false. And for a script that runs mm -p in a loop: AGENT_UNLOAD_ON_EXIT=false mm -p "...".

5. Generation speed in the status bar

In the TUI, the status bar now shows the model's speed:

raw
… ⏱ 1.2s · ⚡~58 tok/s · 0 msgs · 0 tools      ← during generation (an estimate)
… ⏱ 1.6s · ⚡59.9 tok/s · 2 msgs · 0 tools     ← at the end: the turn's average

The turn's average only counts the time the model spends generating, not the time spent in tools. When the server gives its own figures (llama.cpp, MLX-Serve), Mini Me uses them.

What is it for? To compare models, quantizations or servers, right inside Mini Me. If you don't want it: showSpeed: false.

6. Long turns are compressed as they go

Mini Me could already compress the history between two questions. But a single turn can be enough to fill the model's window: one single request, 38 tool calls, three complete Go files written... and the server ends up refusing the request.

Now, during a long turn, when the history goes over the threshold (context.threshold), Mini Me "slims down" the old tool exchanges: a result only keeps its first line (scene.go: created, 516 line(s)). And if that's not enough, it replaces them with notes the model writes itself. The last 4 exchanges stay intact.

raw
🗜️ in-turn: shrank 1 tool call(s) and result(s) (3.9k → 3.2k tokens, 0.0s)

It's enabled by default (context.compressInTurn: true).

What is it for? A long autonomous job no longer stops on a "the request exceeds the server's window". Tested with Qwen3 1.7B on a window of only 6,144 tokens: 8 files read one by one, 4 compressions, and the right answer at the end. Let's say it's a "work in progress", and it deserves more testing for a while, but the first results are convincing.

7. Variables in the system prompt

A model knows neither today's date, nor the folder it's working in, nor your name. Now, the prompt can tell it:

yaml
variables:
  project: mini-me, a coding agent written in Go

system: |
  Today is {{date}}. You run in the folder {{cwd}}.
  The user you are talking to is called {{env.USER}}.
  You help with the project {{config.project}}.
  • {{date}}, {{cwd}} and {{env.NAME}} are replaced at the start of each conversation;
  • {{config.NAME}} takes a value from the new variables: section.

✋ To protect you, a variable whose name looks like a secret ({{env.GITHUB_TOKEN}}, {{env.CONTEXT7_API_KEY}}...) is refused: the prompt is sent to the model and saved in the sessions.

What is it for? To give the model the context it can't guess. The demos/prompt-variables demo shows what a small model (Qwen3.5 4B) does with it: the date, the folder, your name, it gives them back correctly. The day of the week, on the other hand, it can't really compute 😅, but that can be solved with tools of course.

8. Search skills, without an MCP server (new examples)

Last new feature (I'll talk about it in more detail in an upcoming post): the demos/qwen-search demo does web searches and news roundups with simple skills and the fetch_content tool, without an MCP server. And a "knowledge base" skill answers questions about WebAssembly from a list of trusted pages (Wikipedia, MDN, ...).

To make it work well, fetch_content now "unfolds" DuckDuckGo's redirect links: the model cites the real page, and no longer a duckduckgo.com/l/?uddg=... link.

What is it for? To give a small local model (Qwen3.5 4B) access to recent information, with a few lines of Markdown.

Upgrading

Just replace the mm binary: the install guides are here for macOS, Linux and Windows. But watch out, this time some new features are enabled by default:

  • unloadOnExit: true: your existing agents now unload their model when quitting (set false if another tool uses it);
  • context.compressInTurn: true: compression during a turn (it only kicks in above the threshold, when the window is known);
  • showSpeed: true: the speed in the status bar.

On the other hand, llamacpp.autoStart is disabled by default (but mm init offers to enable it).

All the release notes are here: release-notes.

That's all for today. Happy upgrading, and have fun with your chatting agents 🙂.

K

Written by

k33g

Keep reading

Mini Me `v2.0.0`: everything that changed since `v1.0.6`

A tour of Mini Me from v1.0.7 to v2.0.0: the .mm project folder, new commands and providers, and the new guardrails that keep small coding models on track.

Nov 23, 2026
Mini Me `v2.0.0`: everything that changed since `v1.0.6`

Hello Mini Me: an agent born while preparing a talk for Devoxx

Meet Mini Me, a coding agent born from a Devoxx talk on the agent loop, built for small local models with guardrails against loops and hallucinations.

Oct 3, 2026
Hello Mini Me: an agent born while preparing a talk for Devoxx

Mini Me release v0.3.0

What is new in Mini Me v0.3.0, the Devoxx Belgium release: approval mode, agents calling agents, request traces, JSON answers, AGENTS.md and an sbx kit.

Oct 10, 2026
Mini Me release v0.3.0

Responses

0 Comments

No comments yet. Be the first to comment!

Related reading

From other blogs

Sidekicks `1.4.0` is out 🎉

Sidekicks

How to cook a little coding agent with Docker Model Runner and Docker Agent (and `sbx`)

k33g_org's Blog