bots-garden/mini-mepublic Fork
⑂ v1.0.7
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
📦 Mini Me b859ec4 · on v1.0.7 · k33g · 27d ago
v1.0.2.en.md · 69 lines · 5.2 KBmarkdown
Blame HistoryOpen raw

mini-me v1.0.2

Version française

Use mini-me as a library from Node.js, test what a model can do with mini-me itself, and send OpenAI models only the sampling settings you wrote.

New

mini-me from Node.js, over ACP (#167)

  • demo.acp.sdk/nodejs/minime.js drives mm -acp — the protocol an editor such as Zed speaks — from a Node.js program, with no dependency (Node ≥ 20):
    • Agent.start({ config: "agent.yaml" }) starts mm on any agent file;
    • complete(prompt) returns the whole answer;
    • stream(prompt) yields the answer as it comes, with the tool calls and their results;
    • an AbortSignal cancels the turn (session/cancel), and leaving the loop early does too;
    • onPermission(call) answers the confirmation an agent with yolo: false asks for. Without it, every such call is refused.
  • One Agent is one mm process and one conversation. Nothing changes in mm: tools, hooks, MCP servers and other agents all work.
  • Measured on llmman with Qwen3.5 4B:
    • a one-sentence answer in 2.9 s;
    • a turn cancelled after 3.0 s with its text so far;
    • a refused pwd, for which the model invented an answer.
  • 11 tests run without a model or mm, against a fake mm (npm test).
  • The same idea for Go, Python, Rust, Swift and Nushell is described in tickets 168–172. Not started.

Test a model with mini-me itself (#174, #175)

testing/ holds two test sets. In each, a coordinator agent follows a skill and gives small tasks to a candidate agent whose model is under test. A command checks each result, and the coordinator writes a Markdown report in reports/.

  • testing/model-check/ tests the model as a working agent with mm's built-in tools. Eight tasks:
    • tool calls;
    • exact instructions;
    • Go code that must run and pass go test;
    • tasks in several steps.
  • testing/function-calling/ tests function calling alone. The candidate's only tools are six tools declared in its agent file (tools:), and every call is logged and checked. Eight requests:
    • string, enum, number and boolean arguments;
    • chained calls;
    • two calls at once;
    • no call when no tool fits;
    • no invented arguments.
  • The bench script drives the loop, not the coordinator's memory. The coordinator repeats ./bench.sh next, then sends the printed prompt, and each next checks the test just run first. Each piece of the design comes from a failed run: a 12B coordinator skipped every check once, rewrote a path with underscores, and recorded a result under the placeholder test.
  • ../common/run.sh runs a set and writes the report from the recorded results if the coordinator stops early. Tests never checked show as NOT RUN.
  • First results:
    • function-calling, Gemma 4 12B checking Luciole 1B: 5 of 8, 13 min 04 s. Luciole varies from one run to the next, so one run is a sample.
    • model-check: no run has gone to the end yet. The latest, Luciole 8B checked by Gemma 4 E4B, stopped after a timeout on T2.

Fixed

  • provider: openai sent sampling keys the file did not write (#176). A file from mm init for gpt-5.4-mini failed with 400 Unsupported parameter: 'max_tokens' … Use 'max_completion_tokens' instead. The file was right. mm read its sampling: block on top of its own defaults (temperature: 0.0, top_p: 0.9, max_tokens: 4096), so max_tokens and top_p went along unasked.
    • For provider: openai, mm now sends exactly the block written in the file.
    • The context compression's summary request and the message about a cut-off tool call now use max_completion_tokens when the file names the limit that way.
    • Checked against a local server that records the requests. Not checked against the OpenAI API itself.

Demos

Documentation

  • Configuration reference (EN, FR): the sampling row says how the file's block combines with mm's defaults, the provider: openai exception, and max_completion_tokens.
  • How to run with an OpenAI-compatible server (EN, FR): what to write in sampling for the OpenAI API.
  • READMEs in English and French for demo.acp.sdk/ and for each test set of testing/.

Upgrading

  • Only provider: openai changes. Its request no longer gets mm's default temperature: 0.0, top_p: 0.9 and max_tokens: 4096: only the keys written under sampling: are sent, and with no block, none.
    • On the OpenAI API, this is the fix.
    • On another server reached through provider: openai (an OpenAI-compatible server), the server's own defaults now apply to any key the file leaves out. Write temperature, top_p or max_tokens in the file to keep the previous values.
  • Every other provider works exactly as before: a default the file does not name is still sent.
  • The mm init note for OpenAI models changed. Files written before still load as they are.
 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
# mini-me v1.0.2

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

Use mini-me as a library from Node.js, test what a model can do with mini-me itself, and send OpenAI models only the sampling settings you wrote.

## New

### mini-me from Node.js, over ACP (#167)

- **[`demo.acp.sdk/nodejs/minime.js`](../demo.acp.sdk/nodejs/README.en.md)** drives `mm -acp` — the protocol an editor such as Zed speaks — from a Node.js program, with no dependency (Node ≥ 20):
  - `Agent.start({ config: "agent.yaml" })` starts mm on any agent file;
  - `complete(prompt)` returns the whole answer;
  - `stream(prompt)` yields the answer as it comes, with the tool calls and their results;
  - an `AbortSignal` cancels the turn (`session/cancel`), and leaving the loop early does too;
  - `onPermission(call)` answers the confirmation an agent with `yolo: false` asks for. Without it, every such call is refused.
- One `Agent` is one mm process and one conversation. Nothing changes in mm: tools, hooks, MCP servers and other agents all work.
- **Measured on llmman with Qwen3.5 4B**:
  - a one-sentence answer in 2.9 s;
  - a turn cancelled after 3.0 s with its text so far;
  - a refused `pwd`, for which the model invented an answer.
- 11 tests run without a model or mm, against a fake mm (`npm test`).
- The same idea for Go, Python, Rust, Swift and Nushell is described in tickets 168–172. **Not started.**

### Test a model with mini-me itself (#174, #175)

[`testing/`](../testing/README.en.md) holds two test sets. In each, a coordinator agent follows a skill and gives small tasks to a `candidate` agent whose model is under test. A command checks each result, and the coordinator writes a Markdown report in `reports/`.

- **[`testing/model-check/`](../testing/model-check/README.en.md)** tests the model as a working agent with mm's built-in tools. Eight tasks:
  - tool calls;
  - exact instructions;
  - Go code that must run and pass `go test`;
  - tasks in several steps.
- **[`testing/function-calling/`](../testing/function-calling/README.en.md)** tests function calling alone. The candidate's only tools are six tools declared in its agent file (`tools:`), and every call is logged and checked. Eight requests:
  - string, enum, number and boolean arguments;
  - chained calls;
  - two calls at once;
  - no call when no tool fits;
  - no invented arguments.
- **The bench script drives the loop**, not the coordinator's memory. The coordinator repeats `./bench.sh next`, then sends the printed prompt, and each `next` checks the test just run first. Each piece of the design comes from a failed run: a 12B coordinator skipped every check once, rewrote a path with underscores, and recorded a result under the placeholder `test`.
- **`../common/run.sh`** runs a set and writes the report from the recorded results if the coordinator stops early. Tests never checked show as NOT RUN.
- **First results:**
  - function-calling, Gemma 4 12B checking Luciole 1B: **5 of 8**, 13 min 04 s. Luciole varies from one run to the next, so one run is a sample.
  - model-check: no run has gone to the end yet. The latest, Luciole 8B checked by Gemma 4 E4B, stopped after a timeout on T2.

## Fixed

- **`provider: openai` sent sampling keys the file did not write (#176).** A file from `mm init` for `gpt-5.4-mini` failed with `400 Unsupported parameter: 'max_tokens' … Use 'max_completion_tokens' instead`. The file was right. mm read its `sampling:` block on top of its own defaults (`temperature: 0.0`, `top_p: 0.9`, `max_tokens: 4096`), so `max_tokens` and `top_p` went along unasked.
  - For `provider: openai`, mm now sends exactly the block written in the file.
  - The context compression's summary request and the message about a cut-off tool call now use `max_completion_tokens` when the file names the limit that way.
  - Checked against a local server that records the requests. **Not checked against the OpenAI API itself.**

## Demos

- [`demos/coding-helpers-unload-option/`](../demos/coding-helpers-unload-option/README.en.md) has a diagram of how `unloadModels` works: two models taking turns in memory during a hand-off.

## Documentation

- **Configuration reference** ([EN](../docs/en/reference/configuration.md), FR): the `sampling` row says how the file's block combines with mm's defaults, the `provider: openai` exception, and `max_completion_tokens`.
- **[How to run with an OpenAI-compatible server](../docs/en/how-to/run-with-an-openai-compatible-server.md)** (EN, FR): what to write in `sampling` for the OpenAI API.
- READMEs in English and French for `demo.acp.sdk/` and for each test set of `testing/`.

## Upgrading

- **Only `provider: openai` changes.** Its request no longer gets mm's default `temperature: 0.0`, `top_p: 0.9` and `max_tokens: 4096`: only the keys written under `sampling:` are sent, and with no block, none.
  - On the OpenAI API, this is the fix.
  - On another server reached through `provider: openai` (an OpenAI-compatible server), the server's own defaults now apply to any key the file leaves out. Write `temperature`, `top_p` or `max_tokens` in the file to keep the previous values.
- Every other provider works exactly as before: a default the file does not name is still sent.
- The `mm init` note for OpenAI models changed. Files written before still load as they are.