bots-garden/mini-mepublic Fork
⑂ v2.1.0
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/mini-me.git
git clone ssh://git@rickub.com/bots-garden/mini-me.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
🛟 Updated. c1026e1 · on v2.1.0 · k33g · 2d ago
v2.1.0.en.md · 85 lines · 8.4 KBmarkdown
Blame HistoryOpen raw

mini-me v2.1.0

Version française

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.yaml serves an agent to other agents: its Agent Card at /.well-known/agent-card.json and the messages it answers, one conversation per A2A contextId. It listens on 127.0.0.1:9100 by default (a2a.port, --a2a-port); a2a.tokenEnv makes callers send a bearer token.
  • a2a.agents declares remote agents: the model talks to them with the new ask_a2a_agent tool, 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 : keepalive comments broke the stream reader. Comment-only blocks are now dropped, for every provider. (#252)
  • fetch_content returned 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.sh and stop.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 and fetch_content only — 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-a4b and demos/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-coder and demos/llamacpp-demo: new agent files.
  • demos/lfm-coder has been removed.

Documentation

  • Configuration reference: a2a, llamacpp, unloadOnExit, showSpeed, context.compressInTurn, variables and the prompt variables, mlxserve.
  • CLI reference: mm a2a, mm a2a-send, --a2a-port, AGENT_UNLOAD_ON_EXIT, the generation speed, the new mm init flags --autostart and --launch-settings.
  • Tools and slash commands: ask_a2a_agent, /a2a-<name>, the unwrapped search links of fetch_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.
  • unloadOnExit is on by default. Every existing agent now unloads its model when mm exits. Set unloadOnExit: false when another session or tool uses the same model, or when a script runs mm -p in a loop (or AGENT_UNLOAD_ON_EXIT=false for one run).
  • context.compressInTurn is on by default, independently of context.enabled: it acts only past context.threshold of a known window, inside a turn. Set it to false for the old behaviour.
  • showSpeed is on by default: the window's status bar gains the ⚡ figure.
  • llamacpp.autoStart is off by default; mm init now asks, and writes autoStart: true for 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.…}} that variables: 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
# mini-me v2.1.0

*[Version française](v2.1.0.fr.md)*

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](https://a2a-protocol.org) — JSON-RPC over HTTP, text only, no streaming yet:

- `mm a2a agent.yaml` serves an agent to other agents: its Agent Card at `/.well-known/agent-card.json` and the messages it answers, one conversation per A2A `contextId`. It listens on `127.0.0.1:9100` by default (`a2a.port`, `--a2a-port`); `a2a.tokenEnv` makes callers send a bearer token.
- `a2a.agents` declares remote agents: the model talks to them with the new `ask_a2a_agent` tool, 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](../docs/en/reference/cli.md#a2a-mode-specifics) and [`a2a` keys](../docs/en/reference/configuration.md#a2a-keys).

### llama-server started and stopped by mm (#223, #257)

```yaml
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](../docs/en/how-to/run-with-llama-cpp.md#let-mm-start-llama-server).

### MLX-Serve provider (#252)

`provider: mlxserve` for [MLX-Serve](https://github.com/ddalcu/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](../docs/en/how-to/run-with-mlx-serve.md).

### 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](../docs/en/how-to/unload-a-model.md#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](../docs/en/explanation/context-compression.md).

### Variables in the system prompt (#253)

```yaml
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`](../docs/en/reference/configuration.md).

## Fixed

- **The first answer of an MLX-Serve run failed** with `unexpected end of JSON input`: the server's `: keepalive` comments broke the stream reader. Comment-only blocks are now dropped, for every provider. (#252)
- **`fetch_content` returned 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.sh` and `stop.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 and `fetch_content` only — 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-a4b`** and **`demos/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-coder`** and **`demos/llamacpp-demo`**: new agent files.
- **`demos/lfm-coder`** has been removed.

## Documentation

- Configuration reference: `a2a`, `llamacpp`, `unloadOnExit`, `showSpeed`, `context.compressInTurn`, `variables` and the prompt variables, `mlxserve`.
- CLI reference: `mm a2a`, `mm a2a-send`, `--a2a-port`, `AGENT_UNLOAD_ON_EXIT`, the generation speed, the new `mm init` flags `--autostart` and `--launch-settings`.
- Tools and slash commands: `ask_a2a_agent`, `/a2a-<name>`, the unwrapped search links of `fetch_content`.
- Guides: [Run mini-me on MLX-Serve](../docs/en/how-to/run-with-mlx-serve.md) (new), [Let mm start llama-server](../docs/en/how-to/run-with-llama-cpp.md#let-mm-start-llama-server), [When mm exits](../docs/en/how-to/unload-a-model.md#when-mm-exits), the in-turn compression in [Context compression](../docs/en/explanation/context-compression.md).

## Upgrading

- **Replace the binary**: see the install guides for [macOS](../INSTALL.MACOS.md), [Linux](../INSTALL.LINUX.md) and [Windows](../INSTALL.WINDOWS.md).
- **`unloadOnExit` is on by default.** Every existing agent now unloads its model when mm exits. Set `unloadOnExit: false` when another session or tool uses the same model, or when a script runs `mm -p` in a loop (or `AGENT_UNLOAD_ON_EXIT=false` for one run).
- **`context.compressInTurn` is on by default**, independently of `context.enabled`: it acts only past `context.threshold` of a known window, inside a turn. Set it to `false` for the old behaviour.
- **`showSpeed` is on by default**: the window's status bar gains the `⚡` figure.
- **`llamacpp.autoStart` is off by default**; `mm init` now asks, and writes `autoStart: true` for 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.…}}` that `variables:` 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.