bots-garden/mini-mepublic Fork
⑂ v2.0.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. 04a9101 · on v2.0.0 · k33g · 15d ago
v1.0.1.en.md · 115 lines · 9.0 KBmarkdown
Blame HistoryOpen raw

mini-me v1.0.1

Version française

Messages typed during an answer wait their turn, the window shows when the model struggles and how long an answer takes, models can be downloaded at start-up and take turns in memory during a hand-off, and deciders need no boilerplate.

New

A message typed during an answer is queued (#155)

  • Typing during a turn no longer cancels it. In the window and the line mode, what you send while the agent answers waits and runs once the turn ends, in order. A notice says so: ⏳ Queued (N) — runs once this turn ends. In the window the rule above the input reads N queued — Esc stops it · Enter queues more.
  • To stop the turn, use Esc in the window, or /abort / Ctrl+C in the line mode. The queue then runs.
  • In an editor, a prompt that arrives during a turn waits for it to end. Whether the editor sends it at once, queues it, or cancels the turn first is the editor's choice.

Struggle signals (#153, #160)

  • When the model struggles, mm says so apart from the answer. ⚠ marks a warning (the turn goes on) and ✖ marks a severe signal (the turn was stopped).
  • The signals:
    • loop: <tool> ×N and stuck: <tool> ×N;
    • failing: N tool calls in a row (three failed calls or more with different inputs, new in #160);
    • broken tool call, stream cut — retried, runaway tool call;
    • stalled, max turns reached, unknown tool: <name>, empty answer;
    • context N% full (80 % or more of the context window).
  • Where they show:
    • in the window, the worst signal of the turn is a coloured badge on the right of the footer, kept until the next question;
    • in the terminal, it is a line of its own;
    • in an editor, it is a paragraph signed by mm.
  • demos/struggle-signals/ shows every signal without a real model.

Completion duration in the window (#158)

  • The window's status bar shows ⏱ 4.2s, ticking while a turn or an /ask runs, then the final duration until the next question.
  • showCompletionTime: false hides it.

Download the models at start-up: autoPull (#61, #162, #163, #164)

  • autoPull: true makes mm check, at start-up, that the server has the models this agent will use: its own, its mmConfigs agents' and its routing deciders'. mm downloads the ones the server does not list and shows the progress on stderr, then ⬇ pulled <model> in ….
  • If the agent's own model cannot be downloaded (a misspelt name, for example), mm stops with the server's message. A failure on another model is only a warning.
  • By provider:
    • llmman and Ollama: through /api/pull;
    • Docker Model Runner: through the runner's /models/create;
    • llama.cpp: nothing to download through its API, so mm warns and says how to start llama-server with the model.
  • Off by default.
  • Tried live on llmman only: a download with in-place progress, a second start with nothing to pull, and a misspelt name stopping mm. Not tried on a real server: Ollama, Docker Model Runner and llama-server. The Docker Model Runner route is the one docker model pull uses, and mm confirms the download by reading the model list afterwards.
  • An agent started with mm --ask downloads nothing.

Models take turns in memory during a hand-off: mmConfigs.<name>.unloadModels (#161)

  • unloadModels: true on an mmConfigs entry: before handing a question to that agent, mm unloads the asking agent's model. When the answer is back, it unloads the asked agent's model. Each unload shows a 🧹 line.
  • The unload hooks are no longer needed for this. This works for ask_agent, /ask and mm --ask.
  • Measured with demos/coding-helpers-unload-option/ on llmman: a Rust question took 31 s and a Go question 79 s. The server never held both models at once.

Deciders need no boilerplate (#141)

  • A file with a decision: block now turns off its own built-in tools, skills, sessions and doc search. The bashTool: false, editTools: false, skillsDir: no-skills lines are no longer needed.
  • mm still refuses to start a decider that explicitly declares MCP servers, LSP servers, mmConfigs or tools:.
  • A decider also ignores AGENTS.md, and its banner says so: ignored (decision model).

Show a decider's answer in the chat: decision.display (#157)

  • display: true in a decider's decision: block: -p adds "display": true to the JSON. A preGeneration hook can then return the decider's answers as its reply's display.
  • mm shows them, formatted and in another colour, between the question and the answer. This works in the window, the terminal and an editor. The chat model never receives them.
  • The Go and Node hooks of decision-chat, decision-chat-golang and decision-dnd already handle it.

Fixed

  • mm init --yes wrote # your answer: above yolo: although the value was the usage's default. It now writes # usage <name>'s default.
  • The line mode: a struggle line or a 🧹 / hook notice printed during an /ask was glued to the streamed answer. It now starts on its own line.
  • The line mode: reaching the end of a piped stdin during a turn could cancel the turn. It no longer does.

Demos

  • New decision-model demos (d1-3B on llmman, READMEs EN + FR with measured results):
  • Flow diagrams (<demo>-flow.drawio, .svg, .png) in every decision demo.
  • demos/struggle-signals/: a fake OpenAI-compatible server and run-all.sh, which trigger every struggle signal.
  • demos/auto-pull/: autoPull with SmolLM2-135M. It has a single agent, a team, and a misspelt repository name.
  • demos/coding-helpers-unload-option/: unloadModels: true on mmConfigs entries.
  • demos/coding-helpers/: it now uses preAsk / postAsk unload hooks, so its models are never loaded together. A Rust question took 37 s.
  • demos/dev.team/: a team of five agents for a 32 GB laptop (coordinator, reformulator, coder, reviewer, tutor), with diagrams and a Docker sandbox set-up for Zed. Bug fixes, lessons and reviews worked in the measurements. New features did not yet.

Documentation

Upgrading

  • One change in behaviour: text you type during an answer is now queued instead of cancelling the turn. Use Esc (window) or /abort / Ctrl+C (line mode) to stop a turn.
  • New keys, all optional:
    • autoPull (default false);
    • showCompletionTime (default true);
    • unloadModels on an mmConfigs entry (default false);
    • display in a decision: block (default false).
  • Decider files: the …: false lines and skillsDir: no-skills can be removed. Files that keep them still load.
  • Not checked live in an editor (Zed): the queue, the struggle signals, decision.display and unloadModels. They were tested in the line mode and the window.
  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
107
108
109
110
111
112
113
114
115
# mini-me v1.0.1

*[Version française](v1.0.1.fr.md)*

Messages typed during an answer wait their turn, the window shows when the model struggles and how long an answer takes, models can be downloaded at start-up and take turns in memory during a hand-off, and deciders need no boilerplate.

## New

### A message typed during an answer is queued (#155)

- **Typing during a turn no longer cancels it.** In the window and the line mode, what you send while the agent answers waits and runs once the turn ends, in order. A notice says so: `⏳ Queued (N) — runs once this turn ends`. In the window the rule above the input reads `N queued — Esc stops it · Enter queues more`.
- To stop the turn, use `Esc` in the window, or `/abort` / `Ctrl+C` in the line mode. The queue then runs.
- In an editor, a prompt that arrives during a turn waits for it to end. Whether the editor sends it at once, queues it, or cancels the turn first is the editor's choice.

### Struggle signals (#153, #160)

- **When the model struggles, mm says so apart from the answer.** `⚠` marks a warning (the turn goes on) and `✖` marks a severe signal (the turn was stopped).
- **The signals:**
  - `loop: <tool> ×N` and `stuck: <tool> ×N`;
  - `failing: N tool calls in a row` (three failed calls or more with different inputs, new in #160);
  - `broken tool call`, `stream cut — retried`, `runaway tool call`;
  - `stalled`, `max turns reached`, `unknown tool: <name>`, `empty answer`;
  - `context N% full` (80 % or more of the context window).
- **Where they show:**
  - in the window, the worst signal of the turn is a coloured badge on the right of the footer, kept until the next question;
  - in the terminal, it is a line of its own;
  - in an editor, it is a paragraph signed by mm.
- [`demos/struggle-signals/`](../demos/struggle-signals/) shows every signal without a real model.

### Completion duration in the window (#158)

- The window's status bar shows `⏱ 4.2s`, ticking while a turn or an `/ask` runs, then the final duration until the next question.
- **`showCompletionTime: false`** hides it.

### Download the models at start-up: `autoPull` (#61, #162, #163, #164)

- **`autoPull: true`** makes mm check, at start-up, that the server has the models this agent will use: its own, its `mmConfigs` agents' and its routing deciders'. mm downloads the ones the server does not list and shows the progress on stderr, then `⬇ pulled <model> in …`.
- If the agent's own model cannot be downloaded (a misspelt name, for example), mm stops with the server's message. A failure on another model is only a warning.
- **By provider:**
  - llmman and Ollama: through `/api/pull`;
  - Docker Model Runner: through the runner's `/models/create`;
  - llama.cpp: nothing to download through its API, so mm warns and says how to start `llama-server` with the model.
- **Off by default.**
- **Tried live on llmman only:** a download with in-place progress, a second start with nothing to pull, and a misspelt name stopping mm. **Not tried on a real server:** Ollama, Docker Model Runner and llama-server. The Docker Model Runner route is the one `docker model pull` uses, and mm confirms the download by reading the model list afterwards.
- An agent started with `mm --ask` downloads nothing.

### Models take turns in memory during a hand-off: `mmConfigs.<name>.unloadModels` (#161)

- **`unloadModels: true` on an `mmConfigs` entry**: before handing a question to that agent, mm unloads the asking agent's model. When the answer is back, it unloads the asked agent's model. Each unload shows a `🧹` line.
- The unload hooks are no longer needed for this. This works for `ask_agent`, `/ask` and `mm --ask`.
- **Measured with [`demos/coding-helpers-unload-option/`](../demos/coding-helpers-unload-option/)** on llmman: a Rust question took 31 s and a Go question 79 s. The server never held both models at once.

### Deciders need no boilerplate (#141)

- A file with a `decision:` block now turns off its own built-in tools, skills, sessions and doc search. The `bashTool: false`, `editTools: false`, `skillsDir: no-skills` lines are no longer needed.
- mm still refuses to start a decider that explicitly declares MCP servers, LSP servers, `mmConfigs` or `tools:`.
- A decider also ignores `AGENTS.md`, and its banner says so: `ignored (decision model)`.

### Show a decider's answer in the chat: `decision.display` (#157)

- **`display: true` in a decider's `decision:` block**: `-p` adds `"display": true` to the JSON. A `preGeneration` hook can then return the decider's answers as its reply's `display`.
- mm shows them, formatted and in another colour, between the question and the answer. This works in the window, the terminal and an editor. The chat model never receives them.
- The Go and Node hooks of `decision-chat`, `decision-chat-golang` and `decision-dnd` already handle it.

## Fixed

- **`mm init --yes`** wrote `# your answer:` above `yolo:` although the value was the usage's default. It now writes `# usage <name>'s default`.
- **The line mode**: a struggle line or a `🧹` / hook notice printed during an `/ask` was glued to the streamed answer. It now starts on its own line.
- **The line mode**: reaching the end of a piped stdin during a turn could cancel the turn. It no longer does.

## Demos

- **New decision-model demos** (d1-3B on llmman, READMEs EN + FR with measured results):
  - [`demos/decision-reviews/`](../demos/decision-reviews/): customer reviews. d1-3B scored 28/28 and d1-omni-600M 26/28.
  - [`demos/decision-moderation/`](../demos/decision-moderation/): blog comments. d1-3B scored 31/32 and d1-omni-600M 24/32.
  - [`demos/decision-chat/`](../demos/decision-chat/): a chat agent shaped by a decider through a `preGeneration` hook (Qwen3.5 4B).
  - [`demos/decision-chat-golang/`](../demos/decision-chat-golang/): the same flow for Go, with the hook written in Go.
  - [`demos/decision-dnd/`](../demos/decision-dnd/): a Dungeon Master helped by a spell-picking decider, with `DECIDER_DUMP` to keep each decider answer as a JSON file.
  - [`demos/decision-questions/`](../demos/decision-questions/): the four deciders of the question-writing guide.
- **Flow diagrams** (`<demo>-flow.drawio`, `.svg`, `.png`) in every decision demo.
- [`demos/struggle-signals/`](../demos/struggle-signals/): a fake OpenAI-compatible server and `run-all.sh`, which trigger every struggle signal.
- [`demos/auto-pull/`](../demos/auto-pull/): `autoPull` with SmolLM2-135M. It has a single agent, a team, and a misspelt repository name.
- [`demos/coding-helpers-unload-option/`](../demos/coding-helpers-unload-option/): `unloadModels: true` on `mmConfigs` entries.
- [`demos/coding-helpers/`](../demos/coding-helpers/): it now uses `preAsk` / `postAsk` unload hooks, so its models are never loaded together. A Rust question took 37 s.
- [`demos/dev.team/`](../demos/dev.team/): a team of five agents for a 32 GB laptop (coordinator, reformulator, coder, reviewer, tutor), with diagrams and a Docker sandbox set-up for Zed. Bug fixes, lessons and reviews worked in the measurements. New features did not yet.

## Documentation

- **New pages** (EN + FR):
  - [How to write the questions of a decider](../docs/en/how-to/write-decision-questions.md);
  - [mm init](../docs/en/explanation/mm-init.md): where each piece of information comes from;
  - [Struggling models](../docs/en/explanation/struggling-models.md).
- **Updated references:**
  - [configuration](../docs/en/reference/configuration.md): `autoPull`, `showCompletionTime`, `mmConfigs.unloadModels`, `decision.display`, the decider rules, and a `planTool` row that was missing;
  - [command line](../docs/en/reference/cli.md): the struggle signals and the completion duration;
  - [slash commands](../docs/en/reference/slash-commands.md): the queue;
  - [hooks](../docs/en/reference/hooks.md): `display`, and the order of the unloads around a hand-off;
  - [ACP](../docs/en/reference/acp.md).
- **Updated how-tos:**
  - [the window mode](../docs/en/how-to/use-the-window-mode.md);
  - [freeing a model's memory](../docs/en/how-to/unload-a-model.md);
  - [letting the agent call other agents](../docs/en/how-to/let-the-agent-call-other-agents.md);
  - running with [llmman](../docs/en/how-to/run-with-llmman.md), [Ollama](../docs/en/how-to/run-with-ollama.md) and [llama.cpp](../docs/en/how-to/run-with-llama-cpp.md) (`autoPull`);
  - [asking a decision model](../docs/en/how-to/ask-a-decision-model.md).

## Upgrading

- **One change in behaviour:** text you type during an answer is now queued instead of cancelling the turn. Use `Esc` (window) or `/abort` / `Ctrl+C` (line mode) to stop a turn.
- **New keys, all optional:**
  - `autoPull` (default `false`);
  - `showCompletionTime` (default `true`);
  - `unloadModels` on an `mmConfigs` entry (default `false`);
  - `display` in a `decision:` block (default `false`).
- **Decider files**: the `…: false` lines and `skillsDir: no-skills` can be removed. Files that keep them still load.
- **Not checked live in an editor (Zed):** the queue, the struggle signals, `decision.display` and `unloadModels`. They were tested in the line mode and the window.