bots-garden/mini-mepublic Fork
⑂ d73650d
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

🧪 Demo how-to-use-mini-me: a guide to configuring mm made of small skills

Owl (Qwen3.5 4B on llama.cpp) answers from 16 one-page skills — keys,
defaults, a YAML example, links to the docs on the repository — and
fetches the linked guide when asked for more. Measured: 25/25 right
skills; READMEs EN+FR say what building it taught (an index skill and
"fetch before giving an example" against invented keys).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
agent committed 2026-11-26T22:53:54+01:00 Browse files
d73650d parent: 951bd25
modified README.md +1 -0
@@ -193,6 +193,7 @@ The `demos/` directory holds ready-made set-ups (most with a README explaining h
193193 | `demos/unload-models/` | a coordinator (Qwen3.5 9B) hands programming questions to an expert (Qwen3.5 4B) with `ask_agent`, a `preAsk` hook unloads the coordinator's own model before the expert starts and a `postAsk` hook unloads the expert's once it has answered — the two models are never loaded together; `/unload` and `unload_model` on request; llmman, measured results |
194194 | `demos/plans/` | the `plan` tool at work: Planner (Qwen3.5 4B on llmman) builds a tiny Go program in four steps — module, code, test, README — while mm shows `📋 [C/N] …` after each plan action; a failing variant ends on `Plan finished: 2 done, 1 failed`; measured results |
195195 | `demos/docs-from-agent/` | `docSearch.dirs: ["@agent/handbook", docs]`: a handbook shipped beside the agent file plus the docs of the project mm runs in, searched together; Qwen3.5 4B on llama.cpp |
196+| `demos/how-to-use-mini-me/` | Owl, a guide to configuring mm made of 16 small skills (keys, defaults, a YAML example, links to the docs on the repository), fetching the linked guide when asked for more; Qwen3.5 4B on llama.cpp, 25/25 right skills |
196197 | `demos/meta-prompts/` | your own meta-prompts in the window's `[` picker (`metaPrompts:` — added, or rewording a built-in), and why `system` must explain them: measured with and without, Qwen3.5 4B on llama.cpp |
197198 | `demos/memory-skills/` | a memory from one conversation to the next made of three skills (`remember`, `recall`, `forget`) over `.mm/memory.md`, no mm code; Qwen3.5 4B on llama.cpp, measured on 8 questions |
198199 | `demos/memory-skills-2/` | the same memory always in the prompt (`agentsMd.path: .mm/memory.md`), a `recall` skill with no tool, no mm code; 8/8 after four measured runs, compared with `memory-skills` |
@@ -193,6 +193,7 @@ The `demos/` directory holds ready-made set-ups (most with a README explaining h
193 | `demos/unload-models/` | a coordinator (Qwen3.5 9B) hands programming questions to an expert (Qwen3.5 4B) with `ask_agent`, a `preAsk` hook unloads the coordinator's own model before the expert starts and a `postAsk` hook unloads the expert's once it has answered — the two models are never loaded together; `/unload` and `unload_model` on request; llmman, measured results |193 | `demos/unload-models/` | a coordinator (Qwen3.5 9B) hands programming questions to an expert (Qwen3.5 4B) with `ask_agent`, a `preAsk` hook unloads the coordinator's own model before the expert starts and a `postAsk` hook unloads the expert's once it has answered — the two models are never loaded together; `/unload` and `unload_model` on request; llmman, measured results |
194 | `demos/plans/` | the `plan` tool at work: Planner (Qwen3.5 4B on llmman) builds a tiny Go program in four steps — module, code, test, README — while mm shows `📋 [C/N] …` after each plan action; a failing variant ends on `Plan finished: 2 done, 1 failed`; measured results |194 | `demos/plans/` | the `plan` tool at work: Planner (Qwen3.5 4B on llmman) builds a tiny Go program in four steps — module, code, test, README — while mm shows `📋 [C/N] …` after each plan action; a failing variant ends on `Plan finished: 2 done, 1 failed`; measured results |
195 | `demos/docs-from-agent/` | `docSearch.dirs: ["@agent/handbook", docs]`: a handbook shipped beside the agent file plus the docs of the project mm runs in, searched together; Qwen3.5 4B on llama.cpp |195 | `demos/docs-from-agent/` | `docSearch.dirs: ["@agent/handbook", docs]`: a handbook shipped beside the agent file plus the docs of the project mm runs in, searched together; Qwen3.5 4B on llama.cpp |
196+| `demos/how-to-use-mini-me/` | Owl, a guide to configuring mm made of 16 small skills (keys, defaults, a YAML example, links to the docs on the repository), fetching the linked guide when asked for more; Qwen3.5 4B on llama.cpp, 25/25 right skills |
196 | `demos/meta-prompts/` | your own meta-prompts in the window's `[` picker (`metaPrompts:` — added, or rewording a built-in), and why `system` must explain them: measured with and without, Qwen3.5 4B on llama.cpp |197 | `demos/meta-prompts/` | your own meta-prompts in the window's `[` picker (`metaPrompts:` — added, or rewording a built-in), and why `system` must explain them: measured with and without, Qwen3.5 4B on llama.cpp |
197 | `demos/memory-skills/` | a memory from one conversation to the next made of three skills (`remember`, `recall`, `forget`) over `.mm/memory.md`, no mm code; Qwen3.5 4B on llama.cpp, measured on 8 questions |198 | `demos/memory-skills/` | a memory from one conversation to the next made of three skills (`remember`, `recall`, `forget`) over `.mm/memory.md`, no mm code; Qwen3.5 4B on llama.cpp, measured on 8 questions |
198 | `demos/memory-skills-2/` | the same memory always in the prompt (`agentsMd.path: .mm/memory.md`), a `recall` skill with no tool, no mm code; 8/8 after four measured runs, compared with `memory-skills` |199 | `demos/memory-skills-2/` | the same memory always in the prompt (`agentsMd.path: .mm/memory.md`), a `recall` skill with no tool, no mm code; 8/8 after four measured runs, compared with `memory-skills` |
added demos/how-to-use-mini-me/.gitignore +3 -0
new file mode 100644
@@ -0,0 +1,3 @@
1+!.mm
2+.mm/sessions
3+.mm/traces
new file mode 100644
@@ -0,0 +1,3 @@
1+!.mm
2+.mm/sessions
3+.mm/traces
added demos/how-to-use-mini-me/.mm/agent.yaml +74 -0
new file mode 100644
@@ -0,0 +1,74 @@
1+# Owl — a guide to configuring mini-me, made of small skills.
2+#
3+# Each skill (.mm/skills/<topic>/SKILL.md) is one topic of the agent file:
4+# the keys, their defaults, a YAML example, the page of the docs to read
5+# next, as links to the repository. Owl loads the one a question needs with
6+# read_skill and answers from it; asked for more, it fetches the linked page
7+# of the docs with fetch_content.
8+#
9+# cd demos/how-to-use-mini-me
10+# ../../mm line mode
11+# ../../mm -tui window ($ lists the skills)
12+# ../../mm -p "How do I use llama.cpp?"
13+#
14+# See ../README.en.md.
15+
16+provider: llamacpp
17+# Qwen3.5 4B, thinking off. No baseUrl: llamacpp's defaults apply —
18+# 127.0.0.1:9931 (the Llama app), then 8080, then host.docker.internal:9931.
19+model: "unsloth/Qwen3.5-4B-GGUF:Q4_K_M"
20+
21+# The skills, relative to the folder mm runs in (demos/how-to-use-mini-me).
22+skillsDir: .mm/skills
23+
24+# read_skill, and fetch_content to read a page of the docs on the
25+# repository when a skill is not enough. Owl changes no file.
26+bashTool: false
27+editTools: false
28+planTool: false
29+fetchContentTool: true
30+# A fetched page is cut at this many characters (16000 by default): a page
31+# of the docs is 3 to 12 KB of Markdown, and a llama-server preset may serve
32+# only 4096 tokens.
33+maxOutput: 6000
34+askUserTool: false
35+agentsMd:
36+ enabled: false
37+yolo: true
38+# The model is shared with your other agents: leave it loaded.
39+unloadOnExit: false
40+unloadModels: false
41+maxTurns: 4
42+firstTokenTimeout: 3m
43+
44+sampling:
45+ # family qwen, precise: answer from the skill, do not improvise
46+ temperature: 0.0
47+ max_tokens: 1536
48+ parallel_tool_calls: false
49+ chat_template_kwargs:
50+ enable_thinking: false
51+
52+sessions:
53+ enabled: true
54+ dir: .mm/sessions
55+
56+acp:
57+ name: owl
58+ title: "Owl (how to configure mini-me)"
59+
60+system: |
61+ Your name is Owl. You explain how to configure mini-me (mm): its agent
62+ file (agent.yaml), its commands and its modes.
63+ For every question about mm, call read_skill FIRST with the skill that
64+ matches, then answer from what the skill says:
65+ - give the exact keys, with their defaults when the skill gives them;
66+ - show a short YAML (or command) example taken from the skill;
67+ - end with the skill's "Read more" links.
68+ When the user wants more detail than the skill gives, call fetch_content
69+ with the skill's first link and answer from that page.
70+ Never invent a key, a flag or a default: only what a skill says. If no
71+ skill covers the question, say so and point to
72+ docs/en/reference/configuration.md.
73+ A greeting or a question that is not about mm: answer directly.
74+ Answer in a few lines, in the language of the question.
new file mode 100644
@@ -0,0 +1,74 @@
1+# Owl — a guide to configuring mini-me, made of small skills.
2+#
3+# Each skill (.mm/skills/<topic>/SKILL.md) is one topic of the agent file:
4+# the keys, their defaults, a YAML example, the page of the docs to read
5+# next, as links to the repository. Owl loads the one a question needs with
6+# read_skill and answers from it; asked for more, it fetches the linked page
7+# of the docs with fetch_content.
8+#
9+# cd demos/how-to-use-mini-me
10+# ../../mm line mode
11+# ../../mm -tui window ($ lists the skills)
12+# ../../mm -p "How do I use llama.cpp?"
13+#
14+# See ../README.en.md.
15+
16+provider: llamacpp
17+# Qwen3.5 4B, thinking off. No baseUrl: llamacpp's defaults apply —
18+# 127.0.0.1:9931 (the Llama app), then 8080, then host.docker.internal:9931.
19+model: "unsloth/Qwen3.5-4B-GGUF:Q4_K_M"
20+
21+# The skills, relative to the folder mm runs in (demos/how-to-use-mini-me).
22+skillsDir: .mm/skills
23+
24+# read_skill, and fetch_content to read a page of the docs on the
25+# repository when a skill is not enough. Owl changes no file.
26+bashTool: false
27+editTools: false
28+planTool: false
29+fetchContentTool: true
30+# A fetched page is cut at this many characters (16000 by default): a page
31+# of the docs is 3 to 12 KB of Markdown, and a llama-server preset may serve
32+# only 4096 tokens.
33+maxOutput: 6000
34+askUserTool: false
35+agentsMd:
36+ enabled: false
37+yolo: true
38+# The model is shared with your other agents: leave it loaded.
39+unloadOnExit: false
40+unloadModels: false
41+maxTurns: 4
42+firstTokenTimeout: 3m
43+
44+sampling:
45+ # family qwen, precise: answer from the skill, do not improvise
46+ temperature: 0.0
47+ max_tokens: 1536
48+ parallel_tool_calls: false
49+ chat_template_kwargs:
50+ enable_thinking: false
51+
52+sessions:
53+ enabled: true
54+ dir: .mm/sessions
55+
56+acp:
57+ name: owl
58+ title: "Owl (how to configure mini-me)"
59+
60+system: |
61+ Your name is Owl. You explain how to configure mini-me (mm): its agent
62+ file (agent.yaml), its commands and its modes.
63+ For every question about mm, call read_skill FIRST with the skill that
64+ matches, then answer from what the skill says:
65+ - give the exact keys, with their defaults when the skill gives them;
66+ - show a short YAML (or command) example taken from the skill;
67+ - end with the skill's "Read more" links.
68+ When the user wants more detail than the skill gives, call fetch_content
69+ with the skill's first link and answer from that page.
70+ Never invent a key, a flag or a default: only what a skill says. If no
71+ skill covers the question, say so and point to
72+ docs/en/reference/configuration.md.
73+ A greeting or a question that is not about mm: answer directly.
74+ Answer in a few lines, in the language of the question.
added demos/how-to-use-mini-me/.mm/skills/ask-other-agents/SKILL.md +32 -0
new file mode 100644
@@ -0,0 +1,32 @@
1+---
2+name: ask-other-agents
3+description: Let this agent ask other mm agents (mmConfigs, /ask-<name>, the ask_agent tool).
4+keywords: mmConfigs, other agent, ask_agent, /ask, sub-agent, autre agent, déléguer, délégation
5+---
6+
7+# Ask other agents
8+
9+## What to tell the user
10+
11+- `mmConfigs` maps a name to another agent's file (relative to this file's folder).
12+- Each name gives two commands: `/ask-<name> <question>` and `/ask-with-context-<name> <question>` (with the conversation so far), and the model gets the `ask_agent` tool to ask them itself.
13+- An entry can be a map: `path`, `description` (what the model reads to choose), `yolo` (may its tools run unasked), `askUser`, `unloadModels`.
14+- From a script: `mm --ask <name> -p "question"` prints only that agent's answer.
15+- A missing file is a start-up warning; the other agents still work.
16+
17+```yaml
18+mmConfigs:
19+ jan: agent.jan-nano.yaml
20+ reviewer:
21+ path: reviewer/agent.yaml
22+ description: Reviews Go code and lists the problems
23+ yolo: false
24+```
25+
26+
27+## Read more
28+
29+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/ask-another-agent.md
30+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/let-the-agent-call-other-agents.md
31+
32+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
new file mode 100644
@@ -0,0 +1,32 @@
1+---
2+name: ask-other-agents
3+description: Let this agent ask other mm agents (mmConfigs, /ask-<name>, the ask_agent tool).
4+keywords: mmConfigs, other agent, ask_agent, /ask, sub-agent, autre agent, déléguer, délégation
5+---
6+
7+# Ask other agents
8+
9+## What to tell the user
10+
11+- `mmConfigs` maps a name to another agent's file (relative to this file's folder).
12+- Each name gives two commands: `/ask-<name> <question>` and `/ask-with-context-<name> <question>` (with the conversation so far), and the model gets the `ask_agent` tool to ask them itself.
13+- An entry can be a map: `path`, `description` (what the model reads to choose), `yolo` (may its tools run unasked), `askUser`, `unloadModels`.
14+- From a script: `mm --ask <name> -p "question"` prints only that agent's answer.
15+- A missing file is a start-up warning; the other agents still work.
16+
17+```yaml
18+mmConfigs:
19+ jan: agent.jan-nano.yaml
20+ reviewer:
21+ path: reviewer/agent.yaml
22+ description: Reviews Go code and lists the problems
23+ yolo: false
24+```
25+
26+
27+## Read more
28+
29+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/ask-another-agent.md
30+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/let-the-agent-call-other-agents.md
31+
32+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
added demos/how-to-use-mini-me/.mm/skills/choose-a-provider/SKILL.md +38 -0
new file mode 100644
@@ -0,0 +1,38 @@
1+---
2+name: choose-a-provider
3+description: Choose the model server (provider), its address (baseUrl, fallback) and its API key variable.
4+keywords: provider, server, llama.cpp, ollama, docker model runner, baseUrl, port, serveur
5+---
6+
7+# Choose a provider
8+
9+## What to tell the user
10+
11+`provider` names the model server. Each has a default address; set `baseUrl` only to use another one. `fallback` is tried when `baseUrl` does not answer within 2 s (`""` = no fallback). `apiKeyEnv` names the variable holding the key.
12+
13+| provider | default baseUrl | key variable |
14+|---|---|---|
15+| `dmr` (Docker Model Runner, the default) | `http://localhost:12434/engines/v1` | none |
16+| `llamacpp` | `http://127.0.0.1:9931/v1`, then `:8080` | `LLAMA_API_KEY` |
17+| `llmman` | `http://127.0.0.1:17434/v1` | `LLMMAN_API_KEY` |
18+| `ollama` | `http://localhost:11434/v1` | `OLLAMA_API_KEY` |
19+| `kronk` | `http://127.0.0.1:11435/v1` | `KRONK_TOKEN` |
20+| `mlxserve` | `http://127.0.0.1:11234/v1` | `MLX_SERVE_API_KEY` |
21+| `razorbill` | `http://127.0.0.1:7920/v1` | `RZB_API_KEY` |
22+| `openai` (any OpenAI-compatible server) | `https://api.openai.com/v1` | `OPENAI_API_KEY` |
23+| `openai-responses` (OpenAI's Responses API) | `https://api.openai.com/v1` | `OPENAI_API_KEY` |
24+
25+The local providers fall back to `host.docker.internal` (same port) when mm runs in a container. `AGENT_PROVIDER`, `AGENT_BASE_URL` override the file.
26+
27+```yaml
28+provider: llamacpp
29+# no baseUrl: 127.0.0.1:9931, then 8080, then host.docker.internal:9931
30+```
31+
32+
33+## Read more
34+
35+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/run-with-llama-cpp.md
36+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/reference/configuration.md#provider-defaults
37+
38+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
new file mode 100644
@@ -0,0 +1,38 @@
1+---
2+name: choose-a-provider
3+description: Choose the model server (provider), its address (baseUrl, fallback) and its API key variable.
4+keywords: provider, server, llama.cpp, ollama, docker model runner, baseUrl, port, serveur
5+---
6+
7+# Choose a provider
8+
9+## What to tell the user
10+
11+`provider` names the model server. Each has a default address; set `baseUrl` only to use another one. `fallback` is tried when `baseUrl` does not answer within 2 s (`""` = no fallback). `apiKeyEnv` names the variable holding the key.
12+
13+| provider | default baseUrl | key variable |
14+|---|---|---|
15+| `dmr` (Docker Model Runner, the default) | `http://localhost:12434/engines/v1` | none |
16+| `llamacpp` | `http://127.0.0.1:9931/v1`, then `:8080` | `LLAMA_API_KEY` |
17+| `llmman` | `http://127.0.0.1:17434/v1` | `LLMMAN_API_KEY` |
18+| `ollama` | `http://localhost:11434/v1` | `OLLAMA_API_KEY` |
19+| `kronk` | `http://127.0.0.1:11435/v1` | `KRONK_TOKEN` |
20+| `mlxserve` | `http://127.0.0.1:11234/v1` | `MLX_SERVE_API_KEY` |
21+| `razorbill` | `http://127.0.0.1:7920/v1` | `RZB_API_KEY` |
22+| `openai` (any OpenAI-compatible server) | `https://api.openai.com/v1` | `OPENAI_API_KEY` |
23+| `openai-responses` (OpenAI's Responses API) | `https://api.openai.com/v1` | `OPENAI_API_KEY` |
24+
25+The local providers fall back to `host.docker.internal` (same port) when mm runs in a container. `AGENT_PROVIDER`, `AGENT_BASE_URL` override the file.
26+
27+```yaml
28+provider: llamacpp
29+# no baseUrl: 127.0.0.1:9931, then 8080, then host.docker.internal:9931
30+```
31+
32+
33+## Read more
34+
35+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/run-with-llama-cpp.md
36+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/reference/configuration.md#provider-defaults
37+
38+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
added demos/how-to-use-mini-me/.mm/skills/context-window/SKILL.md +38 -0
new file mode 100644
@@ -0,0 +1,38 @@
1+---
2+name: context-window
3+description: Size the context window and compress a long history automatically (context block, /compact).
4+keywords: context window, contextWindow, compact, compression, long conversation, tokens, contexte, fenêtre
5+---
6+
7+# The context window
8+
9+## What to tell the user
10+
11+- `contextWindow` (default `0`): the tokens the server serves. `0` asks the server; set it when the server cannot say.
12+- `/compact` compresses the history now. Automatic compression is the `context` block, off by default:
13+
14+| key | default | meaning |
15+|---|---|---|
16+| `context.enabled` | `false` | compress automatically |
17+| `context.threshold` | `75` | % of the window that triggers it |
18+| `context.keepLastTurns` | `3` | turns kept as they are |
19+| `context.maxMessages` | `80` | trigger when the window is unknown |
20+| `context.compressInTurn` | `true` | also compress inside a long turn |
21+| `context.summaryMaxTokens` | `1200` | length of the summary |
22+
23+- Past 80 % of the window, mm warns: `⚠ context N% full`.
24+- A small window on the SERVER side is common (a llama-server preset of 4096): raise the server's `ctx-size` too.
25+
26+```yaml
27+contextWindow: 16384
28+context:
29+ enabled: true
30+ threshold: 75
31+```
32+
33+
34+## Read more
35+
36+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/manage-the-context-window.md
37+
38+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
new file mode 100644
@@ -0,0 +1,38 @@
1+---
2+name: context-window
3+description: Size the context window and compress a long history automatically (context block, /compact).
4+keywords: context window, contextWindow, compact, compression, long conversation, tokens, contexte, fenêtre
5+---
6+
7+# The context window
8+
9+## What to tell the user
10+
11+- `contextWindow` (default `0`): the tokens the server serves. `0` asks the server; set it when the server cannot say.
12+- `/compact` compresses the history now. Automatic compression is the `context` block, off by default:
13+
14+| key | default | meaning |
15+|---|---|---|
16+| `context.enabled` | `false` | compress automatically |
17+| `context.threshold` | `75` | % of the window that triggers it |
18+| `context.keepLastTurns` | `3` | turns kept as they are |
19+| `context.maxMessages` | `80` | trigger when the window is unknown |
20+| `context.compressInTurn` | `true` | also compress inside a long turn |
21+| `context.summaryMaxTokens` | `1200` | length of the summary |
22+
23+- Past 80 % of the window, mm warns: `⚠ context N% full`.
24+- A small window on the SERVER side is common (a llama-server preset of 4096): raise the server's `ctx-size` too.
25+
26+```yaml
27+contextWindow: 16384
28+context:
29+ enabled: true
30+ threshold: 75
31+```
32+
33+
34+## Read more
35+
36+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/manage-the-context-window.md
37+
38+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
added demos/how-to-use-mini-me/.mm/skills/create-an-agent/SKILL.md +29 -0
new file mode 100644
@@ -0,0 +1,29 @@
1+---
2+name: create-an-agent
3+description: Create a new agent file with the mm init wizard, and where mm looks for the agent file.
4+keywords: mm init, new agent, agent.yaml, wizard, créer un agent, nouvel agent, AGENT_CONFIG, -config
5+---
6+
7+# Create an agent
8+
9+## What to tell the user
10+
11+- `mm init` (or `mm --init`) is a wizard that writes a commented `agent.yaml`: it asks the server, the model, the usage (developer, reviewer, translator, writer, assistant, researcher, docs, json, coordinator), the machine, then writes every value with the reason for it.
12+- `mm init --project yes` keeps everything in a `.mm/` folder: the file is `.mm/agent.yaml`, skills in `.mm/skills`.
13+- Useful flags: `--yes` (ask nothing, take the defaults), `--line` (questions line by line), `--check` (after writing, runs one prompt to see the model answers), `-o <file>`.
14+- Where mm looks for the agent file, in this order: the `-config <path>` flag (or a lone argument, `mm fast.yaml`), the `AGENT_CONFIG` variable, `./agent.yaml`, `./.mm/agent.yaml`. None found: mm stops with an error that says how to create one.
15+- From an editor: `mm acp-create` serves the same wizard over ACP.
16+
17+```bash
18+mm init # the wizard
19+mm init --project yes # everything in .mm/
20+mm -config other.yaml # use another file
21+```
22+
23+
24+## Read more
25+
26+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/create-an-agent.md
27+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/keep-the-config-in-a-mm-folder.md
28+
29+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
new file mode 100644
@@ -0,0 +1,29 @@
1+---
2+name: create-an-agent
3+description: Create a new agent file with the mm init wizard, and where mm looks for the agent file.
4+keywords: mm init, new agent, agent.yaml, wizard, créer un agent, nouvel agent, AGENT_CONFIG, -config
5+---
6+
7+# Create an agent
8+
9+## What to tell the user
10+
11+- `mm init` (or `mm --init`) is a wizard that writes a commented `agent.yaml`: it asks the server, the model, the usage (developer, reviewer, translator, writer, assistant, researcher, docs, json, coordinator), the machine, then writes every value with the reason for it.
12+- `mm init --project yes` keeps everything in a `.mm/` folder: the file is `.mm/agent.yaml`, skills in `.mm/skills`.
13+- Useful flags: `--yes` (ask nothing, take the defaults), `--line` (questions line by line), `--check` (after writing, runs one prompt to see the model answers), `-o <file>`.
14+- Where mm looks for the agent file, in this order: the `-config <path>` flag (or a lone argument, `mm fast.yaml`), the `AGENT_CONFIG` variable, `./agent.yaml`, `./.mm/agent.yaml`. None found: mm stops with an error that says how to create one.
15+- From an editor: `mm acp-create` serves the same wizard over ACP.
16+
17+```bash
18+mm init # the wizard
19+mm init --project yes # everything in .mm/
20+mm -config other.yaml # use another file
21+```
22+
23+
24+## Read more
25+
26+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/create-an-agent.md
27+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/keep-the-config-in-a-mm-folder.md
28+
29+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
added demos/how-to-use-mini-me/.mm/skills/docs-search/SKILL.md +30 -0
new file mode 100644
@@ -0,0 +1,30 @@
1+---
2+name: docs-search
3+description: Let the user (/docs) and the model (search_docs) search a documentation folder.
4+keywords: docSearch, /docs, search_docs, documentation, search, chercher, doc, BM25
5+---
6+
7+# Search a documentation folder
8+
9+## What to tell the user
10+
11+- `docSearch.searchDocs: true`: the `/docs <words>` command, for the user.
12+- `docSearch.autoSearchDocs: true`: the `search_docs` tool, for the model.
13+- `docSearch.dirs` (default `[docs]`): the folders searched. A relative one follows the folder mm runs in; one that starts with `"@agent/"` is next to the agent file — the docs shipped with the agent.
14+- `docSearch.extensions` (exactly the files read, e.g. `[.md]`), `docSearch.maxFileSize` (default `1MB`).
15+- BM25 over words: no index, no model. Ask the model to search with the documentation's words (English docs, English words).
16+
17+```yaml
18+docSearch:
19+ searchDocs: true
20+ autoSearchDocs: true
21+ dirs: ["@agent/docs", docs]
22+ extensions: [.md]
23+```
24+
25+
26+## Read more
27+
28+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/search-the-docs.md
29+
30+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
new file mode 100644
@@ -0,0 +1,30 @@
1+---
2+name: docs-search
3+description: Let the user (/docs) and the model (search_docs) search a documentation folder.
4+keywords: docSearch, /docs, search_docs, documentation, search, chercher, doc, BM25
5+---
6+
7+# Search a documentation folder
8+
9+## What to tell the user
10+
11+- `docSearch.searchDocs: true`: the `/docs <words>` command, for the user.
12+- `docSearch.autoSearchDocs: true`: the `search_docs` tool, for the model.
13+- `docSearch.dirs` (default `[docs]`): the folders searched. A relative one follows the folder mm runs in; one that starts with `"@agent/"` is next to the agent file — the docs shipped with the agent.
14+- `docSearch.extensions` (exactly the files read, e.g. `[.md]`), `docSearch.maxFileSize` (default `1MB`).
15+- BM25 over words: no index, no model. Ask the model to search with the documentation's words (English docs, English words).
16+
17+```yaml
18+docSearch:
19+ searchDocs: true
20+ autoSearchDocs: true
21+ dirs: ["@agent/docs", docs]
22+ extensions: [.md]
23+```
24+
25+
26+## Read more
27+
28+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/search-the-docs.md
29+
30+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
added demos/how-to-use-mini-me/.mm/skills/hooks/SKILL.md +38 -0
new file mode 100644
@@ -0,0 +1,38 @@
1+---
2+name: hooks
3+description: Run your own commands at key moments of a turn — before a question, before or after a tool call — with hooks.
4+keywords: hook, hooks, preToolCall, preGeneration, postToolCall, guard, wasm hook, crochet
5+---
6+
7+# Hooks
8+
9+## What to tell the user
10+
11+- The `hooks` block runs commands (with `sh -c`) or WebAssembly modules at six events:
12+
13+| event | runs | can |
14+|---|---|---|
15+| `preGeneration` | once per question, before the model | rewrite the question, add context, stop the turn |
16+| `preToolCall` | before each tool call | deny it, allow it without the consent prompt, replace its arguments |
17+| `postToolCall` | after each tool call | add context after the tool's output |
18+| `postGeneration` | once the turn is over | observe only |
19+| `preAsk`, `postAsk` | around a hand-off to another agent (mmConfigs) | change the question / the answer |
20+
21+- A hook reads ONE JSON object on stdin (`event`, `cwd`, `model`, and per event `prompt`, `tool` with `name` and `input`, `output`…) and may write one JSON object on stdout: `action` (`continue`, `stop`, `deny`, `allow`, `error`), `reason`, `context`, `prompt`, `input`… An empty stdout means continue.
22+- Per hook: `command` or `wasm`, `matcher` (a regular expression on the tool name, for the tool events), `timeout` (default `10s`), `onError` (`fail`, `warn` default, `ignore`).
23+- `displayHooks: true` shows every hook that ran.
24+
25+```yaml
26+hooks:
27+ preToolCall:
28+ - matcher: ^(bash|write_file|edit_file)$
29+ command: ./hooks/guard.sh
30+ onError: fail
31+```
32+
33+## Read more
34+
35+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/guard-the-agent-with-hooks.md
36+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/reference/hooks.md
37+
38+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
new file mode 100644
@@ -0,0 +1,38 @@
1+---
2+name: hooks
3+description: Run your own commands at key moments of a turn — before a question, before or after a tool call — with hooks.
4+keywords: hook, hooks, preToolCall, preGeneration, postToolCall, guard, wasm hook, crochet
5+---
6+
7+# Hooks
8+
9+## What to tell the user
10+
11+- The `hooks` block runs commands (with `sh -c`) or WebAssembly modules at six events:
12+
13+| event | runs | can |
14+|---|---|---|
15+| `preGeneration` | once per question, before the model | rewrite the question, add context, stop the turn |
16+| `preToolCall` | before each tool call | deny it, allow it without the consent prompt, replace its arguments |
17+| `postToolCall` | after each tool call | add context after the tool's output |
18+| `postGeneration` | once the turn is over | observe only |
19+| `preAsk`, `postAsk` | around a hand-off to another agent (mmConfigs) | change the question / the answer |
20+
21+- A hook reads ONE JSON object on stdin (`event`, `cwd`, `model`, and per event `prompt`, `tool` with `name` and `input`, `output`…) and may write one JSON object on stdout: `action` (`continue`, `stop`, `deny`, `allow`, `error`), `reason`, `context`, `prompt`, `input`… An empty stdout means continue.
22+- Per hook: `command` or `wasm`, `matcher` (a regular expression on the tool name, for the tool events), `timeout` (default `10s`), `onError` (`fail`, `warn` default, `ignore`).
23+- `displayHooks: true` shows every hook that ran.
24+
25+```yaml
26+hooks:
27+ preToolCall:
28+ - matcher: ^(bash|write_file|edit_file)$
29+ command: ./hooks/guard.sh
30+ onError: fail
31+```
32+
33+## Read more
34+
35+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/guard-the-agent-with-hooks.md
36+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/reference/hooks.md
37+
38+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
added demos/how-to-use-mini-me/.mm/skills/mcp-servers/SKILL.md +37 -0
new file mode 100644
@@ -0,0 +1,37 @@
1+---
2+name: mcp-servers
3+description: Connect MCP servers (http or stdio) to give the agent more tools.
4+keywords: MCP, mcp servers, Context7, external tools, serveur MCP, outils externes
5+---
6+
7+# MCP servers
8+
9+## What to tell the user
10+
11+- The `mcp` block lists servers; each one's tools become tools of the agent.
12+- A server: `name`, `transport` (`http` with a `url`, or `stdio` with a `command` and its `args`, `env`), `timeout`, `auth` (`type: none`, or `type: bearer` with `tokenEnv`: the variable holding the token), `tools` (only these), `permissions` (`auto` runs without asking, `ask` asks).
13+- `mcp.discoveryTimeout`: a server that does not answer in time is left out; the agent still starts.
14+- `yolo: false` makes every MCP call wait for the user, whatever the server's `permissions`.
15+
16+```yaml
17+mcp:
18+ enabled: true
19+ discoveryTimeout: 10s
20+ servers:
21+ - name: context7
22+ transport: http
23+ url: https://mcp.context7.com/mcp
24+ auth:
25+ type: bearer
26+ tokenEnv: CONTEXT7_API_KEY
27+ permissions: auto
28+ tools: [resolve-library-id, query-docs]
29+```
30+
31+
32+## Read more
33+
34+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/mcp-use-context7.md
35+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/mcp-use-wikipedia.md
36+
37+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
new file mode 100644
@@ -0,0 +1,37 @@
1+---
2+name: mcp-servers
3+description: Connect MCP servers (http or stdio) to give the agent more tools.
4+keywords: MCP, mcp servers, Context7, external tools, serveur MCP, outils externes
5+---
6+
7+# MCP servers
8+
9+## What to tell the user
10+
11+- The `mcp` block lists servers; each one's tools become tools of the agent.
12+- A server: `name`, `transport` (`http` with a `url`, or `stdio` with a `command` and its `args`, `env`), `timeout`, `auth` (`type: none`, or `type: bearer` with `tokenEnv`: the variable holding the token), `tools` (only these), `permissions` (`auto` runs without asking, `ask` asks).
13+- `mcp.discoveryTimeout`: a server that does not answer in time is left out; the agent still starts.
14+- `yolo: false` makes every MCP call wait for the user, whatever the server's `permissions`.
15+
16+```yaml
17+mcp:
18+ enabled: true
19+ discoveryTimeout: 10s
20+ servers:
21+ - name: context7
22+ transport: http
23+ url: https://mcp.context7.com/mcp
24+ auth:
25+ type: bearer
26+ tokenEnv: CONTEXT7_API_KEY
27+ permissions: auto
28+ tools: [resolve-library-id, query-docs]
29+```
30+
31+
32+## Read more
33+
34+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/mcp-use-context7.md
35+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/mcp-use-wikipedia.md
36+
37+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
added demos/how-to-use-mini-me/.mm/skills/model-and-sampling/SKILL.md +33 -0
new file mode 100644
@@ -0,0 +1,33 @@
1+---
2+name: model-and-sampling
3+description: Set the model, its sampling (temperature, top_p, max_tokens) and turn its reasoning on or off.
4+keywords: model, temperature, sampling, max_tokens, top_p, reasoning, thinking, modèle
5+---
6+
7+# Model and sampling
8+
9+## What to tell the user
10+
11+- `model`: the model's name as the provider spells it (`unsloth/Qwen3.5-4B-GGUF:Q4_K_M` for llama.cpp, `ai/qwen3` for Docker Model Runner). `AGENT_MODEL` overrides it.
12+- `sampling`: passed to the server with the OpenAI key names. Defaults `temperature: 0.0`, `top_p: 0.9`, `max_tokens: 4096`; the file's block is merged with them. Any other key is sent as is (`top_k`, `parallel_tool_calls`…).
13+- Reasoning on or off goes in `sampling.chat_template_kwargs`: `enable_thinking: false` for Qwen, Gemma…; `reasoning_effort: low` for gpt-oss.
14+- `mm init` writes sampling that suits the model family (it knows the model cards).
15+
16+```yaml
17+model: "unsloth/Qwen3.5-4B-GGUF:Q4_K_M"
18+sampling:
19+ temperature: 0.7
20+ top_p: 0.8
21+ top_k: 20
22+ max_tokens: 4096
23+ chat_template_kwargs:
24+ enable_thinking: false
25+```
26+
27+
28+## Read more
29+
30+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/turn-reasoning-off.md
31+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/reference/configuration.md#top-level-keys
32+
33+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
new file mode 100644
@@ -0,0 +1,33 @@
1+---
2+name: model-and-sampling
3+description: Set the model, its sampling (temperature, top_p, max_tokens) and turn its reasoning on or off.
4+keywords: model, temperature, sampling, max_tokens, top_p, reasoning, thinking, modèle
5+---
6+
7+# Model and sampling
8+
9+## What to tell the user
10+
11+- `model`: the model's name as the provider spells it (`unsloth/Qwen3.5-4B-GGUF:Q4_K_M` for llama.cpp, `ai/qwen3` for Docker Model Runner). `AGENT_MODEL` overrides it.
12+- `sampling`: passed to the server with the OpenAI key names. Defaults `temperature: 0.0`, `top_p: 0.9`, `max_tokens: 4096`; the file's block is merged with them. Any other key is sent as is (`top_k`, `parallel_tool_calls`…).
13+- Reasoning on or off goes in `sampling.chat_template_kwargs`: `enable_thinking: false` for Qwen, Gemma…; `reasoning_effort: low` for gpt-oss.
14+- `mm init` writes sampling that suits the model family (it knows the model cards).
15+
16+```yaml
17+model: "unsloth/Qwen3.5-4B-GGUF:Q4_K_M"
18+sampling:
19+ temperature: 0.7
20+ top_p: 0.8
21+ top_k: 20
22+ max_tokens: 4096
23+ chat_template_kwargs:
24+ enable_thinking: false
25+```
26+
27+
28+## Read more
29+
30+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/turn-reasoning-off.md
31+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/reference/configuration.md#top-level-keys
32+
33+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
added demos/how-to-use-mini-me/.mm/skills/other-settings/SKILL.md +36 -0
new file mode 100644
@@ -0,0 +1,36 @@
1+---
2+name: other-settings
3+description: Every other setting of mm not covered by another skill — JSON answers, decision models, LSP, custom tools, trace, containers, one-shot prompts — and the guide to fetch for each.
4+keywords: JSON, structuredOutput, decision, lsp, custom tool, trace, docker, other settings
5+---
6+
7+# Other settings
8+
9+## What to tell the user
10+
11+Find the line that matches the question, then:
12+
13+1. Call `fetch_content` with that line's guide — this sheet has no example, and these settings have a shape of their own.
14+2. Answer from the page: the key, and the YAML example the guide gives, copied as it is.
15+3. End with the guide's link.
16+
17+Never write a YAML example that does not come from the fetched guide, and never guess a key that is not on this sheet.
18+
19+| topic | key or command | guide to fetch |
20+|---|---|---|
21+| answers as JSON that follow a schema | `structuredOutput` (Go type declarations; no tool can be declared beside it) | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/get-json-answers.md |
22+| a decision model (classify, route) | `decision` block | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/ask-a-decision-model.md |
23+| pick the skill before each turn | `skillRouting` (a decider) | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/route-skills-with-a-decision-model.md |
24+| leave out the tools a request does not need | `toolRouting` (a decider) | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/route-tools-with-a-decision-model.md |
25+| go to definition, references, rename | `lsp.servers` (the `lsp` tool) | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/navigate-code-with-lsp.md |
26+| a typed tool of your own (a command or a wasm module) | `tools` list | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/declare-a-custom-tool.md |
27+| see the JSON sent to the model | `trace.enabled`, or `AGENT_TRACE=true` | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/inspect-model-traffic.md |
28+| free a model's memory | `/unload`, `unloadOnExit`, `unloadModels` | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/unload-a-model.md |
29+| web pages as Markdown | `fetchContentTool: true` (the `fetch_content` tool) | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/fetch-a-web-page.md |
30+| a plan of tasks during long work | `planTool` (the `plan` tool) | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/manage-plans-and-tasks.md |
31+| the model asks the user questions | `askUserTool` (the `ask_user` tool) | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/let-the-agent-ask-you.md |
32+| one question from a script, then exit | `mm -p "…"` | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/run-a-single-prompt.md |
33+| mm in a Docker Sandbox | `mm sbxinit` | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/run-in-a-docker-sandbox.md |
34+| mm in a container | `mm dockerinit` | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/run-in-a-container.md |
35+
36+Every key, with its default: https://rickub.com/bots-garden/mini-me/blob/main/docs/en/reference/configuration.md
new file mode 100644
@@ -0,0 +1,36 @@
1+---
2+name: other-settings
3+description: Every other setting of mm not covered by another skill — JSON answers, decision models, LSP, custom tools, trace, containers, one-shot prompts — and the guide to fetch for each.
4+keywords: JSON, structuredOutput, decision, lsp, custom tool, trace, docker, other settings
5+---
6+
7+# Other settings
8+
9+## What to tell the user
10+
11+Find the line that matches the question, then:
12+
13+1. Call `fetch_content` with that line's guide — this sheet has no example, and these settings have a shape of their own.
14+2. Answer from the page: the key, and the YAML example the guide gives, copied as it is.
15+3. End with the guide's link.
16+
17+Never write a YAML example that does not come from the fetched guide, and never guess a key that is not on this sheet.
18+
19+| topic | key or command | guide to fetch |
20+|---|---|---|
21+| answers as JSON that follow a schema | `structuredOutput` (Go type declarations; no tool can be declared beside it) | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/get-json-answers.md |
22+| a decision model (classify, route) | `decision` block | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/ask-a-decision-model.md |
23+| pick the skill before each turn | `skillRouting` (a decider) | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/route-skills-with-a-decision-model.md |
24+| leave out the tools a request does not need | `toolRouting` (a decider) | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/route-tools-with-a-decision-model.md |
25+| go to definition, references, rename | `lsp.servers` (the `lsp` tool) | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/navigate-code-with-lsp.md |
26+| a typed tool of your own (a command or a wasm module) | `tools` list | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/declare-a-custom-tool.md |
27+| see the JSON sent to the model | `trace.enabled`, or `AGENT_TRACE=true` | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/inspect-model-traffic.md |
28+| free a model's memory | `/unload`, `unloadOnExit`, `unloadModels` | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/unload-a-model.md |
29+| web pages as Markdown | `fetchContentTool: true` (the `fetch_content` tool) | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/fetch-a-web-page.md |
30+| a plan of tasks during long work | `planTool` (the `plan` tool) | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/manage-plans-and-tasks.md |
31+| the model asks the user questions | `askUserTool` (the `ask_user` tool) | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/let-the-agent-ask-you.md |
32+| one question from a script, then exit | `mm -p "…"` | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/run-a-single-prompt.md |
33+| mm in a Docker Sandbox | `mm sbxinit` | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/run-in-a-docker-sandbox.md |
34+| mm in a container | `mm dockerinit` | https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/run-in-a-container.md |
35+
36+Every key, with its default: https://rickub.com/bots-garden/mini-me/blob/main/docs/en/reference/configuration.md
added demos/how-to-use-mini-me/.mm/skills/project-instructions/SKILL.md +28 -0
new file mode 100644
@@ -0,0 +1,28 @@
1+---
2+name: project-instructions
3+description: Give the agent the project's own rules with an AGENTS.md file (agentsMd).
4+keywords: AGENTS.md, agentsMd, project rules, conventions, instructions du projet, règles
5+---
6+
7+# Project instructions (AGENTS.md)
8+
9+## What to tell the user
10+
11+- mm reads `AGENTS.md` in the folder it runs in (the session's folder in an editor) and appends it to the system prompt, at the start of every conversation. On by default.
12+- Put there what is true of the PROJECT: build and test commands, conventions, what not to touch. The agent's personality stays in `system`.
13+- `agentsMd.enabled` (default `true`), `agentsMd.path` (default `AGENTS.md`, relative to the working directory), `agentsMd.maxChars` (default `0` = no limit; a bigger file is not read at all, and the banner says so).
14+- Read at the start of a conversation, never in the middle: an edit shows up after `/new`.
15+
16+```yaml
17+agentsMd:
18+ enabled: true
19+ path: AGENTS.md
20+ maxChars: 8000
21+```
22+
23+
24+## Read more
25+
26+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/give-project-instructions.md
27+
28+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
new file mode 100644
@@ -0,0 +1,28 @@
1+---
2+name: project-instructions
3+description: Give the agent the project's own rules with an AGENTS.md file (agentsMd).
4+keywords: AGENTS.md, agentsMd, project rules, conventions, instructions du projet, règles
5+---
6+
7+# Project instructions (AGENTS.md)
8+
9+## What to tell the user
10+
11+- mm reads `AGENTS.md` in the folder it runs in (the session's folder in an editor) and appends it to the system prompt, at the start of every conversation. On by default.
12+- Put there what is true of the PROJECT: build and test commands, conventions, what not to touch. The agent's personality stays in `system`.
13+- `agentsMd.enabled` (default `true`), `agentsMd.path` (default `AGENTS.md`, relative to the working directory), `agentsMd.maxChars` (default `0` = no limit; a bigger file is not read at all, and the banner says so).
14+- Read at the start of a conversation, never in the middle: an edit shows up after `/new`.
15+
16+```yaml
17+agentsMd:
18+ enabled: true
19+ path: AGENTS.md
20+ maxChars: 8000
21+```
22+
23+
24+## Read more
25+
26+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/give-project-instructions.md
27+
28+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
added demos/how-to-use-mini-me/.mm/skills/sessions-and-memory/SKILL.md +32 -0
new file mode 100644
@@ -0,0 +1,32 @@
1+---
2+name: sessions-and-memory
3+description: Keep conversations in files (sessions), resume them, and search earlier sessions (/memory, search_memory).
4+keywords: sessions, resume, history, memory, /memory, reprendre, historique, mémoire
5+---
6+
7+# Sessions and memory
8+
9+## What to tell the user
10+
11+- `sessions.enabled: true` saves every conversation to a file, one per session, in `sessions.dir` (default `.mm/sessions`, relative to the folder mm runs in).
12+- `/sessions` lists them, `/resume` continues the latest (or `/resume <id>`), `/new` starts a new one.
13+- `sessions.searchMemory: true`: the `/memory <words>` command searches the stored sessions.
14+- `sessions.autoSearchMemory: true`: the `search_memory` tool, the same search for the model.
15+- Both memory keys need `sessions.enabled: true`.
16+- In an editor, sessions let Zed's "Reload Agent" replay the whole thread.
17+
18+```yaml
19+sessions:
20+ enabled: true
21+ dir: .mm/sessions
22+ searchMemory: true
23+ autoSearchMemory: true
24+```
25+
26+
27+## Read more
28+
29+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/keep-sessions.md
30+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/search-earlier-sessions.md
31+
32+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
new file mode 100644
@@ -0,0 +1,32 @@
1+---
2+name: sessions-and-memory
3+description: Keep conversations in files (sessions), resume them, and search earlier sessions (/memory, search_memory).
4+keywords: sessions, resume, history, memory, /memory, reprendre, historique, mémoire
5+---
6+
7+# Sessions and memory
8+
9+## What to tell the user
10+
11+- `sessions.enabled: true` saves every conversation to a file, one per session, in `sessions.dir` (default `.mm/sessions`, relative to the folder mm runs in).
12+- `/sessions` lists them, `/resume` continues the latest (or `/resume <id>`), `/new` starts a new one.
13+- `sessions.searchMemory: true`: the `/memory <words>` command searches the stored sessions.
14+- `sessions.autoSearchMemory: true`: the `search_memory` tool, the same search for the model.
15+- Both memory keys need `sessions.enabled: true`.
16+- In an editor, sessions let Zed's "Reload Agent" replay the whole thread.
17+
18+```yaml
19+sessions:
20+ enabled: true
21+ dir: .mm/sessions
22+ searchMemory: true
23+ autoSearchMemory: true
24+```
25+
26+
27+## Read more
28+
29+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/keep-sessions.md
30+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/search-earlier-sessions.md
31+
32+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
added demos/how-to-use-mini-me/.mm/skills/skills/SKILL.md +35 -0
new file mode 100644
@@ -0,0 +1,35 @@
1+---
2+name: skills
3+description: Give the agent skills — markdown procedures it loads with read_skill — and write one.
4+keywords: skill, skills, skillsDir, SKILL.md, read_skill, $skill, compétence, skillcreate
5+---
6+
7+# Skills
8+
9+## What to tell the user
10+
11+- A skill is a markdown procedure the model loads with the `read_skill` tool when a request matches it.
12+- `skillsDir` (default `skills`): `<name>.md` files or `<name>/SKILL.md` folders. `.mm/skills` for a project made with `mm init --project yes`. No skill found: `read_skill` is not declared.
13+- Front matter: `name`, `description` (what the model matches a request against — required in practice), `keywords` (words a user would type, any language, the first 8 count).
14+- `$name` in a question asks for that skill directly, with the rest of the line as its parameters.
15+- `mm skillcreate` writes a new skill with a wizard, where the agent reads its skills.
16+- The catalogue is read at start-up: restart mm after adding a skill.
17+
18+```markdown
19+---
20+name: go-test
21+description: Run the Go tests of the current module and report failures
22+keywords: test, tests, go test, tester
23+---
24+# Run the Go tests
25+
26+Run `go test ./...` with your bash tool, then report the failing packages.
27+```
28+
29+
30+## Read more
31+
32+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/add-a-skill.md
33+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/reference/skill-format.md
34+
35+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
new file mode 100644
@@ -0,0 +1,35 @@
1+---
2+name: skills
3+description: Give the agent skills — markdown procedures it loads with read_skill — and write one.
4+keywords: skill, skills, skillsDir, SKILL.md, read_skill, $skill, compétence, skillcreate
5+---
6+
7+# Skills
8+
9+## What to tell the user
10+
11+- A skill is a markdown procedure the model loads with the `read_skill` tool when a request matches it.
12+- `skillsDir` (default `skills`): `<name>.md` files or `<name>/SKILL.md` folders. `.mm/skills` for a project made with `mm init --project yes`. No skill found: `read_skill` is not declared.
13+- Front matter: `name`, `description` (what the model matches a request against — required in practice), `keywords` (words a user would type, any language, the first 8 count).
14+- `$name` in a question asks for that skill directly, with the rest of the line as its parameters.
15+- `mm skillcreate` writes a new skill with a wizard, where the agent reads its skills.
16+- The catalogue is read at start-up: restart mm after adding a skill.
17+
18+```markdown
19+---
20+name: go-test
21+description: Run the Go tests of the current module and report failures
22+keywords: test, tests, go test, tester
23+---
24+# Run the Go tests
25+
26+Run `go test ./...` with your bash tool, then report the failing packages.
27+```
28+
29+
30+## Read more
31+
32+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/add-a-skill.md
33+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/reference/skill-format.md
34+
35+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
added demos/how-to-use-mini-me/.mm/skills/system-prompt/SKILL.md +29 -0
new file mode 100644
@@ -0,0 +1,29 @@
1+---
2+name: system-prompt
3+description: Write the agent's system prompt, with its variables ({{date}}, {{cwd}}, {{env.NAME}}, {{config.NAME}}).
4+keywords: system prompt, system, instructions, variables, {{date}}, personality, prompt système, consignes
5+---
6+
7+# The system prompt
8+
9+## What to tell the user
10+
11+- `system`: the system prompt, the first message of every conversation. It says who the agent is and how it works.
12+- Variables, replaced when a conversation starts: `{{date}}` (today, YYYY-MM-DD), `{{cwd}}` (the working directory), `{{env.NAME}}` (an environment variable), `{{config.NAME}}` (a value of the file's own `variables:` map).
13+- `turnReminder`: a short text appended to EVERY question under a `[reminder]` line — for a rule a small model forgets.
14+- The project's own rules belong in `AGENTS.md`, not in `system` (see the skill project-instructions).
15+
16+```yaml
17+system: |
18+ Your name is Ada. Today is {{date}}. You run in {{cwd}}.
19+ You help with the project {{config.project}}.
20+variables:
21+ project: a weather CLI in Go
22+```
23+
24+
25+## Read more
26+
27+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/reference/configuration.md#top-level-keys
28+
29+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
new file mode 100644
@@ -0,0 +1,29 @@
1+---
2+name: system-prompt
3+description: Write the agent's system prompt, with its variables ({{date}}, {{cwd}}, {{env.NAME}}, {{config.NAME}}).
4+keywords: system prompt, system, instructions, variables, {{date}}, personality, prompt système, consignes
5+---
6+
7+# The system prompt
8+
9+## What to tell the user
10+
11+- `system`: the system prompt, the first message of every conversation. It says who the agent is and how it works.
12+- Variables, replaced when a conversation starts: `{{date}}` (today, YYYY-MM-DD), `{{cwd}}` (the working directory), `{{env.NAME}}` (an environment variable), `{{config.NAME}}` (a value of the file's own `variables:` map).
13+- `turnReminder`: a short text appended to EVERY question under a `[reminder]` line — for a rule a small model forgets.
14+- The project's own rules belong in `AGENTS.md`, not in `system` (see the skill project-instructions).
15+
16+```yaml
17+system: |
18+ Your name is Ada. Today is {{date}}. You run in {{cwd}}.
19+ You help with the project {{config.project}}.
20+variables:
21+ project: a weather CLI in Go
22+```
23+
24+
25+## Read more
26+
27+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/reference/configuration.md#top-level-keys
28+
29+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
added demos/how-to-use-mini-me/.mm/skills/tools-and-permissions/SKILL.md +36 -0
new file mode 100644
@@ -0,0 +1,36 @@
1+---
2+name: tools-and-permissions
3+description: Turn the built-in tools on or off (bash, file tools, plan, ask_user, fetch_content) and ask before each change (yolo).
4+keywords: tools, bash, yolo, permissions, read_file, edit_file, outils, autorisation
5+---
6+
7+# Tools and permissions
8+
9+## What to tell the user
10+
11+Built-in tools, each switched in the file:
12+
13+| key | default | tools |
14+|---|---|---|
15+| `bashTool` | `true` | `bash` |
16+| `editTools` | `true` | `read_file`, `write_file`, `edit_file` |
17+| `planTool` | `true` | `plan` |
18+| `askUserTool` | `true` | `ask_user` (the model asks the user questions) |
19+| `fetchContentTool` | `false` | `fetch_content` (web pages; the only tool that reaches the network) |
20+| `saveAnswerTool` | `false` | `save_answer` |
21+| `unloadModels` | `true` | `/unload` and `unload_model` |
22+
23+`yolo: true` (default): tools run without asking. `yolo: false`: every call that changes something (`bash`, `write_file`, `edit_file`…) waits for the user's answer — allow once, allow for the session, reject, never. `read_file` never asks. With `-p` nobody can answer: those calls are rejected.
24+
25+```yaml
26+bashTool: false # no command at all
27+yolo: false # ask before every change
28+```
29+
30+
31+## Read more
32+
33+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/confirm-tool-calls.md
34+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/reference/tools.md
35+
36+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
new file mode 100644
@@ -0,0 +1,36 @@
1+---
2+name: tools-and-permissions
3+description: Turn the built-in tools on or off (bash, file tools, plan, ask_user, fetch_content) and ask before each change (yolo).
4+keywords: tools, bash, yolo, permissions, read_file, edit_file, outils, autorisation
5+---
6+
7+# Tools and permissions
8+
9+## What to tell the user
10+
11+Built-in tools, each switched in the file:
12+
13+| key | default | tools |
14+|---|---|---|
15+| `bashTool` | `true` | `bash` |
16+| `editTools` | `true` | `read_file`, `write_file`, `edit_file` |
17+| `planTool` | `true` | `plan` |
18+| `askUserTool` | `true` | `ask_user` (the model asks the user questions) |
19+| `fetchContentTool` | `false` | `fetch_content` (web pages; the only tool that reaches the network) |
20+| `saveAnswerTool` | `false` | `save_answer` |
21+| `unloadModels` | `true` | `/unload` and `unload_model` |
22+
23+`yolo: true` (default): tools run without asking. `yolo: false`: every call that changes something (`bash`, `write_file`, `edit_file`…) waits for the user's answer — allow once, allow for the session, reject, never. `read_file` never asks. With `-p` nobody can answer: those calls are rejected.
24+
25+```yaml
26+bashTool: false # no command at all
27+yolo: false # ask before every change
28+```
29+
30+
31+## Read more
32+
33+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/confirm-tool-calls.md
34+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/reference/tools.md
35+
36+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
added demos/how-to-use-mini-me/.mm/skills/use-from-an-editor/SKILL.md +40 -0
new file mode 100644
@@ -0,0 +1,40 @@
1+---
2+name: use-from-an-editor
3+description: Use mini-me from an editor such as Zed (ACP), and name the agent the editor shows.
4+keywords: Zed, editor, ACP, -acp, agent_servers, JetBrains, éditeur, IDE
5+---
6+
7+# Use mini-me from an editor (ACP)
8+
9+## What to tell the user
10+
11+- `mm -acp` (or `mm acp`) speaks the Agent Client Protocol on stdio: Zed, JetBrains, Neovim…
12+- In Zed's `settings.json`, with an ABSOLUTE path to the agent file (the editor starts mm in the project's folder):
13+
14+```json
15+"agent_servers": {
16+ "mini-me": {
17+ "type": "custom",
18+ "command": "mm",
19+ "args": ["-acp"],
20+ "env": { "AGENT_CONFIG": "/absolute/path/to/agent.yaml" }
21+ }
22+}
23+```
24+
25+- The name the editor shows: the `acp` block — `acp.name` (identifier, default `bob`), `acp.title` (display name).
26+- Nothing human-readable goes to stdout in ACP mode: the logs are on stderr (Zed: `dev: open acp logs`).
27+- `yolo: false`: the editor shows a permission dialog for each change.
28+
29+```yaml
30+acp:
31+ name: owl
32+ title: "Owl (config guide)"
33+```
34+
35+
36+## Read more
37+
38+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/use-from-an-editor.md
39+
40+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
new file mode 100644
@@ -0,0 +1,40 @@
1+---
2+name: use-from-an-editor
3+description: Use mini-me from an editor such as Zed (ACP), and name the agent the editor shows.
4+keywords: Zed, editor, ACP, -acp, agent_servers, JetBrains, éditeur, IDE
5+---
6+
7+# Use mini-me from an editor (ACP)
8+
9+## What to tell the user
10+
11+- `mm -acp` (or `mm acp`) speaks the Agent Client Protocol on stdio: Zed, JetBrains, Neovim…
12+- In Zed's `settings.json`, with an ABSOLUTE path to the agent file (the editor starts mm in the project's folder):
13+
14+```json
15+"agent_servers": {
16+ "mini-me": {
17+ "type": "custom",
18+ "command": "mm",
19+ "args": ["-acp"],
20+ "env": { "AGENT_CONFIG": "/absolute/path/to/agent.yaml" }
21+ }
22+}
23+```
24+
25+- The name the editor shows: the `acp` block — `acp.name` (identifier, default `bob`), `acp.title` (display name).
26+- Nothing human-readable goes to stdout in ACP mode: the logs are on stderr (Zed: `dev: open acp logs`).
27+- `yolo: false`: the editor shows a permission dialog for each change.
28+
29+```yaml
30+acp:
31+ name: owl
32+ title: "Owl (config guide)"
33+```
34+
35+
36+## Read more
37+
38+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/use-from-an-editor.md
39+
40+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
added demos/how-to-use-mini-me/.mm/skills/window-mode/SKILL.md +29 -0
new file mode 100644
@@ -0,0 +1,29 @@
1+---
2+name: window-mode
3+description: Use the single-window mode (mm -tui), its pickers (/ @ $ [) and your own meta-prompts.
4+keywords: window, tui, -tui, picker, meta-prompts, metaPrompts, fenêtre, interface
5+---
6+
7+# The window mode
8+
9+## What to tell the user
10+
11+- `mm -tui` (or `mm tui`, or `tui: true` in the file) opens one window: the conversation above, the input box below. Without a terminal it falls back to the line mode.
12+- Four pickers in the box: `/` the commands (first word), `@` a file to attach, `$` a skill, `[` a meta-prompt — a style prefix like `[Brief]` or `[Step-by-Step]`, at the start of the box.
13+- Your own meta-prompts: the `metaPrompts` list, added after the 13 built-ins (the label of a built-in replaces it). The model reads only the prefix: explain a new one in `system`.
14+- Keys: Enter sends (during a turn it steers the model), Ctrl-J new line, Esc stops the turn, F1 help, Ctrl-Y copies the last answer.
15+
16+```yaml
17+tui: true
18+metaPrompts:
19+ - prefix: "[Haiku]"
20+ description: Answer as a haiku
21+```
22+
23+
24+## Read more
25+
26+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/use-the-window-mode.md
27+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/reference/slash-commands.md
28+
29+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
new file mode 100644
@@ -0,0 +1,29 @@
1+---
2+name: window-mode
3+description: Use the single-window mode (mm -tui), its pickers (/ @ $ [) and your own meta-prompts.
4+keywords: window, tui, -tui, picker, meta-prompts, metaPrompts, fenêtre, interface
5+---
6+
7+# The window mode
8+
9+## What to tell the user
10+
11+- `mm -tui` (or `mm tui`, or `tui: true` in the file) opens one window: the conversation above, the input box below. Without a terminal it falls back to the line mode.
12+- Four pickers in the box: `/` the commands (first word), `@` a file to attach, `$` a skill, `[` a meta-prompt — a style prefix like `[Brief]` or `[Step-by-Step]`, at the start of the box.
13+- Your own meta-prompts: the `metaPrompts` list, added after the 13 built-ins (the label of a built-in replaces it). The model reads only the prefix: explain a new one in `system`.
14+- Keys: Enter sends (during a turn it steers the model), Ctrl-J new line, Esc stops the turn, F1 help, Ctrl-Y copies the last answer.
15+
16+```yaml
17+tui: true
18+metaPrompts:
19+ - prefix: "[Haiku]"
20+ description: Answer as a haiku
21+```
22+
23+
24+## Read more
25+
26+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/use-the-window-mode.md
27+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/reference/slash-commands.md
28+
29+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
added demos/how-to-use-mini-me/README.en.md +69 -0
new file mode 100644
@@ -0,0 +1,69 @@
1+# how-to-use-mini-me demo — a guide to configuring mm, made of small skills
2+
3+Owl answers questions about configuring mini-me: the agent file, its keys and defaults, the commands, the modes. It knows nothing by itself: each topic is a small skill, a one-page sheet with the exact keys, their defaults, a YAML example taken from the docs, and links to the docs on the repository. Asked for more than a sheet says, Owl fetches the linked page with `fetch_content` and answers from it.
4+
5+Version française : [README.fr.md](README.fr.md).
6+
7+| File | What it is |
8+|------|------------|
9+| `.mm/agent.yaml` | Owl: `provider: llamacpp`, `unsloth/Qwen3.5-4B-GGUF:Q4_K_M` (thinking off, temperature 0), `read_skill` and `fetch_content` only, `maxOutput: 6000` |
10+| `.mm/skills/` | 16 skills, below |
11+
12+| Skill | Topic |
13+|-------|-------|
14+| `create-an-agent` | `mm init` and its flags, where mm looks for the agent file |
15+| `choose-a-provider` | `provider`, the default address of each server, `baseUrl`, `fallback`, `apiKeyEnv` |
16+| `model-and-sampling` | `model`, `sampling`, reasoning on or off |
17+| `system-prompt` | `system`, `{{date}}` `{{cwd}}` `{{env.X}}` `{{config.X}}`, `turnReminder` |
18+| `tools-and-permissions` | `bashTool`, `editTools`, `planTool`, `askUserTool`, `fetchContentTool`…, `yolo` |
19+| `skills` | `skillsDir`, the `SKILL.md` format, `$skill`, `mm skillcreate` |
20+| `sessions-and-memory` | `sessions`, `/resume`, `/memory`, `search_memory` |
21+| `context-window` | `contextWindow`, the `context` block, `/compact` |
22+| `project-instructions` | `AGENTS.md`, `agentsMd` |
23+| `docs-search` | `docSearch`, `/docs`, `search_docs`, `@agent/` |
24+| `mcp-servers` | the `mcp` block |
25+| `use-from-an-editor` | `mm -acp`, Zed's settings, the `acp` block |
26+| `ask-other-agents` | `mmConfigs`, `/ask-<name>`, `ask_agent`, `mm --ask` |
27+| `window-mode` | `mm -tui`, the four pickers, `metaPrompts` |
28+| `hooks` | the six events, the JSON in and out, `matcher`, `onError` |
29+| `other-settings` | an index of the rest — `structuredOutput`, `decision`, `skillRouting`, `toolRouting`, `lsp`, `tools`, `trace`, unloading, `mm -p`, containers… — each with the guide to fetch |
30+
31+Each sheet ends with its links, for example:
32+
33+```markdown
34+## Read more
35+
36+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/use-from-an-editor.md
37+
38+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
39+```
40+
41+The links are the `blob/` pages of the repository: `raw/` is closed to crawlers by rickub.com's `robots.txt`, and `fetch_content` reads HTML only. A guide goes first: they are 2–12 KB, the configuration reference is 69 KB. They show the repository's `main` as **pushed**: a change not pushed yet is not in them.
42+
43+## Run it
44+
45+The model runs on llama-server on 127.0.0.1:9931 (the Llama app, or `llama-server` in router mode) with `unsloth/Qwen3.5-4B-GGUF:Q4_K_M`. `fetch_content` needs network access to rickub.com.
46+
47+```bash
48+cd demos/how-to-use-mini-me
49+../../mm # line mode
50+../../mm -tui # window: type $ to list the skills
51+../../mm -p "How do I use mm with Ollama?"
52+../../mm -p "Comment utiliser mm dans Zed ? Lis le guide complet et dis-moi comment annuler un tour en cours."
53+```
54+
55+## What was checked (2026-11-27, from an sbx sandbox, llama-server router on the Mac, one run)
56+
57+25 questions, each a separate `-p`, English and French: **25 times the right skill**.
58+
59+- One question per skill (16 skills, 21 questions), and `Hello, who are you?` → no skill, a direct answer.
60+- Three asking for more than the sheet ("read the full guide and tell me…") → the skill, then `fetch_content` on its first link, answered from the page: the steps of the `mm init` window, how to cancel a turn in Zed (Escape, stop reason `cancelled`, no `/abort` over ACP), compression inside a turn. One of them also read `context-window` for nothing.
61+- Every link of the sheets answered 200 on the repository.
62+
63+What building it taught, with this 4B model:
64+
65+- **A question no skill covers is not left alone**: `read_skill` asks the model to load a skill before any task, so it takes the nearest one. Before the `hooks` skill, "How do I write a preToolCall hook?" read `tools-and-permissions` and answered "There is no `preToolCall` hook in mini-me" — false. Before `other-settings`, the JSON question read `model-and-sampling` and invented a `system_prompt:` key. Hence the two skills, the last one an index that sends the model to the right guide.
66+- **A sheet without an example gets an invented one**: with `other-settings` as a plain list, Owl wrote a wrong `structuredOutput:` and a wrong `lsp:` block. The sheet now says to fetch the guide first and copy its example; both came out right (the `lsp` block exactly the guide's).
67+- `maxOutput: 6000`: a fetched guide of 2.9 KB is about 8,000 characters of Markdown with the site's header; a llama-server preset may serve only 4096 tokens.
68+
69+The window and Zed were not tried live.
new file mode 100644
@@ -0,0 +1,69 @@
1+# how-to-use-mini-me demo — a guide to configuring mm, made of small skills
2+
3+Owl answers questions about configuring mini-me: the agent file, its keys and defaults, the commands, the modes. It knows nothing by itself: each topic is a small skill, a one-page sheet with the exact keys, their defaults, a YAML example taken from the docs, and links to the docs on the repository. Asked for more than a sheet says, Owl fetches the linked page with `fetch_content` and answers from it.
4+
5+Version française : [README.fr.md](README.fr.md).
6+
7+| File | What it is |
8+|------|------------|
9+| `.mm/agent.yaml` | Owl: `provider: llamacpp`, `unsloth/Qwen3.5-4B-GGUF:Q4_K_M` (thinking off, temperature 0), `read_skill` and `fetch_content` only, `maxOutput: 6000` |
10+| `.mm/skills/` | 16 skills, below |
11+
12+| Skill | Topic |
13+|-------|-------|
14+| `create-an-agent` | `mm init` and its flags, where mm looks for the agent file |
15+| `choose-a-provider` | `provider`, the default address of each server, `baseUrl`, `fallback`, `apiKeyEnv` |
16+| `model-and-sampling` | `model`, `sampling`, reasoning on or off |
17+| `system-prompt` | `system`, `{{date}}` `{{cwd}}` `{{env.X}}` `{{config.X}}`, `turnReminder` |
18+| `tools-and-permissions` | `bashTool`, `editTools`, `planTool`, `askUserTool`, `fetchContentTool`…, `yolo` |
19+| `skills` | `skillsDir`, the `SKILL.md` format, `$skill`, `mm skillcreate` |
20+| `sessions-and-memory` | `sessions`, `/resume`, `/memory`, `search_memory` |
21+| `context-window` | `contextWindow`, the `context` block, `/compact` |
22+| `project-instructions` | `AGENTS.md`, `agentsMd` |
23+| `docs-search` | `docSearch`, `/docs`, `search_docs`, `@agent/` |
24+| `mcp-servers` | the `mcp` block |
25+| `use-from-an-editor` | `mm -acp`, Zed's settings, the `acp` block |
26+| `ask-other-agents` | `mmConfigs`, `/ask-<name>`, `ask_agent`, `mm --ask` |
27+| `window-mode` | `mm -tui`, the four pickers, `metaPrompts` |
28+| `hooks` | the six events, the JSON in and out, `matcher`, `onError` |
29+| `other-settings` | an index of the rest — `structuredOutput`, `decision`, `skillRouting`, `toolRouting`, `lsp`, `tools`, `trace`, unloading, `mm -p`, containers… — each with the guide to fetch |
30+
31+Each sheet ends with its links, for example:
32+
33+```markdown
34+## Read more
35+
36+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/use-from-an-editor.md
37+
38+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
39+```
40+
41+The links are the `blob/` pages of the repository: `raw/` is closed to crawlers by rickub.com's `robots.txt`, and `fetch_content` reads HTML only. A guide goes first: they are 2–12 KB, the configuration reference is 69 KB. They show the repository's `main` as **pushed**: a change not pushed yet is not in them.
42+
43+## Run it
44+
45+The model runs on llama-server on 127.0.0.1:9931 (the Llama app, or `llama-server` in router mode) with `unsloth/Qwen3.5-4B-GGUF:Q4_K_M`. `fetch_content` needs network access to rickub.com.
46+
47+```bash
48+cd demos/how-to-use-mini-me
49+../../mm # line mode
50+../../mm -tui # window: type $ to list the skills
51+../../mm -p "How do I use mm with Ollama?"
52+../../mm -p "Comment utiliser mm dans Zed ? Lis le guide complet et dis-moi comment annuler un tour en cours."
53+```
54+
55+## What was checked (2026-11-27, from an sbx sandbox, llama-server router on the Mac, one run)
56+
57+25 questions, each a separate `-p`, English and French: **25 times the right skill**.
58+
59+- One question per skill (16 skills, 21 questions), and `Hello, who are you?` → no skill, a direct answer.
60+- Three asking for more than the sheet ("read the full guide and tell me…") → the skill, then `fetch_content` on its first link, answered from the page: the steps of the `mm init` window, how to cancel a turn in Zed (Escape, stop reason `cancelled`, no `/abort` over ACP), compression inside a turn. One of them also read `context-window` for nothing.
61+- Every link of the sheets answered 200 on the repository.
62+
63+What building it taught, with this 4B model:
64+
65+- **A question no skill covers is not left alone**: `read_skill` asks the model to load a skill before any task, so it takes the nearest one. Before the `hooks` skill, "How do I write a preToolCall hook?" read `tools-and-permissions` and answered "There is no `preToolCall` hook in mini-me" — false. Before `other-settings`, the JSON question read `model-and-sampling` and invented a `system_prompt:` key. Hence the two skills, the last one an index that sends the model to the right guide.
66+- **A sheet without an example gets an invented one**: with `other-settings` as a plain list, Owl wrote a wrong `structuredOutput:` and a wrong `lsp:` block. The sheet now says to fetch the guide first and copy its example; both came out right (the `lsp` block exactly the guide's).
67+- `maxOutput: 6000`: a fetched guide of 2.9 KB is about 8,000 characters of Markdown with the site's header; a llama-server preset may serve only 4096 tokens.
68+
69+The window and Zed were not tried live.
added demos/how-to-use-mini-me/README.fr.md +69 -0
new file mode 100644
@@ -0,0 +1,69 @@
1+# Démo how-to-use-mini-me — un guide de configuration de mm, fait de petites skills
2+
3+Owl répond aux questions sur la configuration de mini-me : le fichier d'agent, ses clés et leurs valeurs par défaut, les commandes, les modes. Il ne sait rien par lui-même : chaque sujet est une petite skill, une fiche d'une page avec les clés exactes, leurs défauts, un exemple YAML tiré de la doc, et des liens vers la doc sur le dépôt. Quand on lui demande plus que ce que dit une fiche, Owl récupère la page liée avec `fetch_content` et répond à partir d'elle.
4+
5+English version: [README.en.md](README.en.md).
6+
7+| Fichier | Ce que c'est |
8+|---------|--------------|
9+| `.mm/agent.yaml` | Owl : `provider: llamacpp`, `unsloth/Qwen3.5-4B-GGUF:Q4_K_M` (raisonnement coupé, température 0), `read_skill` et `fetch_content` seulement, `maxOutput: 6000` |
10+| `.mm/skills/` | 16 skills, ci-dessous |
11+
12+| Skill | Sujet |
13+|-------|-------|
14+| `create-an-agent` | `mm init` et ses options, où mm cherche le fichier d'agent |
15+| `choose-a-provider` | `provider`, l'adresse par défaut de chaque serveur, `baseUrl`, `fallback`, `apiKeyEnv` |
16+| `model-and-sampling` | `model`, `sampling`, raisonnement activé ou coupé |
17+| `system-prompt` | `system`, `{{date}}` `{{cwd}}` `{{env.X}}` `{{config.X}}`, `turnReminder` |
18+| `tools-and-permissions` | `bashTool`, `editTools`, `planTool`, `askUserTool`, `fetchContentTool`…, `yolo` |
19+| `skills` | `skillsDir`, le format `SKILL.md`, `$skill`, `mm skillcreate` |
20+| `sessions-and-memory` | `sessions`, `/resume`, `/memory`, `search_memory` |
21+| `context-window` | `contextWindow`, le bloc `context`, `/compact` |
22+| `project-instructions` | `AGENTS.md`, `agentsMd` |
23+| `docs-search` | `docSearch`, `/docs`, `search_docs`, `@agent/` |
24+| `mcp-servers` | le bloc `mcp` |
25+| `use-from-an-editor` | `mm -acp`, les réglages de Zed, le bloc `acp` |
26+| `ask-other-agents` | `mmConfigs`, `/ask-<nom>`, `ask_agent`, `mm --ask` |
27+| `window-mode` | `mm -tui`, les quatre sélecteurs, `metaPrompts` |
28+| `hooks` | les six événements, le JSON en entrée et en sortie, `matcher`, `onError` |
29+| `other-settings` | un index du reste — `structuredOutput`, `decision`, `skillRouting`, `toolRouting`, `lsp`, `tools`, `trace`, le déchargement, `mm -p`, les conteneurs… — chacun avec le guide à récupérer |
30+
31+Chaque fiche finit par ses liens, par exemple :
32+
33+```markdown
34+## Read more
35+
36+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/use-from-an-editor.md
37+
38+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
39+```
40+
41+Les liens sont les pages `blob/` du dépôt : `raw/` est fermé aux robots par le `robots.txt` de rickub.com, et `fetch_content` ne lit que du HTML. Un guide vient en premier : ils font de 2 à 12 Ko, la référence de configuration 69 Ko. Ils montrent le `main` du dépôt tel qu'il a été **poussé** : une modification pas encore poussée n'y est pas.
42+
43+## Lancer la démo
44+
45+Le modèle tourne sur llama-server en 127.0.0.1:9931 (l'application Llama, ou `llama-server` en mode routeur) avec `unsloth/Qwen3.5-4B-GGUF:Q4_K_M`. `fetch_content` a besoin d'un accès réseau à rickub.com.
46+
47+```bash
48+cd demos/how-to-use-mini-me
49+../../mm # mode ligne
50+../../mm -tui # fenêtre : tapez $ pour lister les skills
51+../../mm -p "How do I use mm with Ollama?"
52+../../mm -p "Comment utiliser mm dans Zed ? Lis le guide complet et dis-moi comment annuler un tour en cours."
53+```
54+
55+## Ce qui a été vérifié (27/11/2026, depuis un sandbox sbx, routeur llama-server sur le Mac, un passage)
56+
57+25 questions, chacune un `-p` à part, en anglais et en français : **25 fois la bonne skill**.
58+
59+- Une question par skill (16 skills, 21 questions), et `Hello, who are you?` → aucune skill, une réponse directe.
60+- Trois qui demandent plus que la fiche (« lis le guide complet et dis-moi… ») → la skill, puis `fetch_content` sur son premier lien, réponse tirée de la page : les étapes de la fenêtre de `mm init`, comment annuler un tour dans Zed (Échap, raison d'arrêt `cancelled`, pas de `/abort` en ACP), la compression pendant un tour. L'une d'elles a aussi lu `context-window` pour rien.
61+- Chaque lien des fiches a répondu 200 sur le dépôt.
62+
63+Ce que sa construction a appris, avec ce modèle de 4B :
64+
65+- **Une question qu'aucune skill ne couvre n'est pas laissée seule** : `read_skill` demande au modèle de charger une skill avant toute tâche, il prend donc la plus proche. Avant la skill `hooks`, « How do I write a preToolCall hook? » a lu `tools-and-permissions` et répondu « There is no `preToolCall` hook in mini-me » — faux. Avant `other-settings`, la question sur le JSON a lu `model-and-sampling` et inventé une clé `system_prompt:`. D'où ces deux skills, la dernière un index qui envoie le modèle vers le bon guide.
66+- **Une fiche sans exemple reçoit un exemple inventé** : avec `other-settings` en simple liste, Owl a écrit un `structuredOutput:` faux et un bloc `lsp:` faux. La fiche dit maintenant de récupérer d'abord le guide et de copier son exemple ; les deux sont sortis justes (le bloc `lsp` exactement celui du guide).
67+- `maxOutput: 6000` : un guide de 2,9 Ko récupéré donne environ 8 000 caractères de Markdown avec l'en-tête du site ; un preset de llama-server peut ne servir que 4096 tokens.
68+
69+La fenêtre et Zed n'ont pas été essayés en vrai.
new file mode 100644
@@ -0,0 +1,69 @@
1+# Démo how-to-use-mini-me — un guide de configuration de mm, fait de petites skills
2+
3+Owl répond aux questions sur la configuration de mini-me : le fichier d'agent, ses clés et leurs valeurs par défaut, les commandes, les modes. Il ne sait rien par lui-même : chaque sujet est une petite skill, une fiche d'une page avec les clés exactes, leurs défauts, un exemple YAML tiré de la doc, et des liens vers la doc sur le dépôt. Quand on lui demande plus que ce que dit une fiche, Owl récupère la page liée avec `fetch_content` et répond à partir d'elle.
4+
5+English version: [README.en.md](README.en.md).
6+
7+| Fichier | Ce que c'est |
8+|---------|--------------|
9+| `.mm/agent.yaml` | Owl : `provider: llamacpp`, `unsloth/Qwen3.5-4B-GGUF:Q4_K_M` (raisonnement coupé, température 0), `read_skill` et `fetch_content` seulement, `maxOutput: 6000` |
10+| `.mm/skills/` | 16 skills, ci-dessous |
11+
12+| Skill | Sujet |
13+|-------|-------|
14+| `create-an-agent` | `mm init` et ses options, où mm cherche le fichier d'agent |
15+| `choose-a-provider` | `provider`, l'adresse par défaut de chaque serveur, `baseUrl`, `fallback`, `apiKeyEnv` |
16+| `model-and-sampling` | `model`, `sampling`, raisonnement activé ou coupé |
17+| `system-prompt` | `system`, `{{date}}` `{{cwd}}` `{{env.X}}` `{{config.X}}`, `turnReminder` |
18+| `tools-and-permissions` | `bashTool`, `editTools`, `planTool`, `askUserTool`, `fetchContentTool`…, `yolo` |
19+| `skills` | `skillsDir`, le format `SKILL.md`, `$skill`, `mm skillcreate` |
20+| `sessions-and-memory` | `sessions`, `/resume`, `/memory`, `search_memory` |
21+| `context-window` | `contextWindow`, le bloc `context`, `/compact` |
22+| `project-instructions` | `AGENTS.md`, `agentsMd` |
23+| `docs-search` | `docSearch`, `/docs`, `search_docs`, `@agent/` |
24+| `mcp-servers` | le bloc `mcp` |
25+| `use-from-an-editor` | `mm -acp`, les réglages de Zed, le bloc `acp` |
26+| `ask-other-agents` | `mmConfigs`, `/ask-<nom>`, `ask_agent`, `mm --ask` |
27+| `window-mode` | `mm -tui`, les quatre sélecteurs, `metaPrompts` |
28+| `hooks` | les six événements, le JSON en entrée et en sortie, `matcher`, `onError` |
29+| `other-settings` | un index du reste — `structuredOutput`, `decision`, `skillRouting`, `toolRouting`, `lsp`, `tools`, `trace`, le déchargement, `mm -p`, les conteneurs… — chacun avec le guide à récupérer |
30+
31+Chaque fiche finit par ses liens, par exemple :
32+
33+```markdown
34+## Read more
35+
36+- https://rickub.com/bots-garden/mini-me/blob/main/docs/en/how-to/use-from-an-editor.md
37+
38+Give these links to the user. When the user asks for more than this sheet says, call `fetch_content` with the first link and answer from that page.
39+```
40+
41+Les liens sont les pages `blob/` du dépôt : `raw/` est fermé aux robots par le `robots.txt` de rickub.com, et `fetch_content` ne lit que du HTML. Un guide vient en premier : ils font de 2 à 12 Ko, la référence de configuration 69 Ko. Ils montrent le `main` du dépôt tel qu'il a été **poussé** : une modification pas encore poussée n'y est pas.
42+
43+## Lancer la démo
44+
45+Le modèle tourne sur llama-server en 127.0.0.1:9931 (l'application Llama, ou `llama-server` en mode routeur) avec `unsloth/Qwen3.5-4B-GGUF:Q4_K_M`. `fetch_content` a besoin d'un accès réseau à rickub.com.
46+
47+```bash
48+cd demos/how-to-use-mini-me
49+../../mm # mode ligne
50+../../mm -tui # fenêtre : tapez $ pour lister les skills
51+../../mm -p "How do I use mm with Ollama?"
52+../../mm -p "Comment utiliser mm dans Zed ? Lis le guide complet et dis-moi comment annuler un tour en cours."
53+```
54+
55+## Ce qui a été vérifié (27/11/2026, depuis un sandbox sbx, routeur llama-server sur le Mac, un passage)
56+
57+25 questions, chacune un `-p` à part, en anglais et en français : **25 fois la bonne skill**.
58+
59+- Une question par skill (16 skills, 21 questions), et `Hello, who are you?` → aucune skill, une réponse directe.
60+- Trois qui demandent plus que la fiche (« lis le guide complet et dis-moi… ») → la skill, puis `fetch_content` sur son premier lien, réponse tirée de la page : les étapes de la fenêtre de `mm init`, comment annuler un tour dans Zed (Échap, raison d'arrêt `cancelled`, pas de `/abort` en ACP), la compression pendant un tour. L'une d'elles a aussi lu `context-window` pour rien.
61+- Chaque lien des fiches a répondu 200 sur le dépôt.
62+
63+Ce que sa construction a appris, avec ce modèle de 4B :
64+
65+- **Une question qu'aucune skill ne couvre n'est pas laissée seule** : `read_skill` demande au modèle de charger une skill avant toute tâche, il prend donc la plus proche. Avant la skill `hooks`, « How do I write a preToolCall hook? » a lu `tools-and-permissions` et répondu « There is no `preToolCall` hook in mini-me » — faux. Avant `other-settings`, la question sur le JSON a lu `model-and-sampling` et inventé une clé `system_prompt:`. D'où ces deux skills, la dernière un index qui envoie le modèle vers le bon guide.
66+- **Une fiche sans exemple reçoit un exemple inventé** : avec `other-settings` en simple liste, Owl a écrit un `structuredOutput:` faux et un bloc `lsp:` faux. La fiche dit maintenant de récupérer d'abord le guide et de copier son exemple ; les deux sont sortis justes (le bloc `lsp` exactement celui du guide).
67+- `maxOutput: 6000` : un guide de 2,9 Ko récupéré donne environ 8 000 caractères de Markdown avec l'en-tête du site ; un preset de llama-server peut ne servir que 4096 tokens.
68+
69+La fenêtre et Zed n'ont pas été essayés en vrai.