mini-me v1.0.2
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.jsdrivesmm -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
AbortSignalcancels the turn (session/cancel), and leaving the loop early does too; onPermission(call)answers the confirmation an agent withyolo: falseasks for. Without it, every such call is refused.
- One
Agentis 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 eachnextchecks 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 placeholdertest. ../common/run.shruns 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: openaisent sampling keys the file did not write (#176). A file frommm initforgpt-5.4-minifailed with400 Unsupported parameter: 'max_tokens' … Use 'max_completion_tokens' instead. The file was right. mm read itssampling:block on top of its own defaults (temperature: 0.0,top_p: 0.9,max_tokens: 4096), somax_tokensandtop_pwent 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_tokenswhen the file names the limit that way. - Checked against a local server that records the requests. Not checked against the OpenAI API itself.
- For
Demos
demos/coding-helpers-unload-option/has a diagram of howunloadModelsworks: two models taking turns in memory during a hand-off.
Documentation
- Configuration reference (EN, FR): the
samplingrow says how the file's block combines with mm's defaults, theprovider: openaiexception, andmax_completion_tokens. - How to run with an OpenAI-compatible server (EN, FR): what to write in
samplingfor the OpenAI API. - READMEs in English and French for
demo.acp.sdk/and for each test set oftesting/.
Upgrading
- Only
provider: openaichanges. Its request no longer gets mm's defaulttemperature: 0.0,top_p: 0.9andmax_tokens: 4096: only the keys written undersampling: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. Writetemperature,top_pormax_tokensin 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 initnote 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 |
|