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

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

Download ZIP
🛟 Updated. cd2a817 · on v1.0.1 · k33g · Oct 24, 2026
README.en.md · 51 lines · 3.4 KBmarkdown
Blame HistoryOpen raw

Demo: route skills with a decision model

Version française

Two agent files around one decision model (LiquidAI d1-3B on llmman), served by POST /v1/systemone:

  • agent.decider.yaml — a decider: every message is a shell command it judges with three questions (risk: read-only / local-change / dangerous; destructive: yes-or-no probability; urgency: how much review it needs).
  • agent.yaml — a coding agent (Qwen3.5-4B on llmman) that asks the decider which skill applies before each turn (skillRouting), and can ask it about a command with /ask-decider.

Editable source: decision-skills-flow.drawio (draw.io); decision-skills-flow.svg is the same picture.

Run it

Pull the decision model into llmman once (the chat model of agent.yaml too, if it is not there yet):

llmman pull hf.co/LiquidAI/d1-3B-GGUF:Q4_K_M
llmman pull hf.co/unsloth/Qwen3.5-4B-GGUF:Q4_K_M

Then, from this directory:

mm -config agent.decider.yaml -p "rm -rf ~/.config && git push --force origin main"   # JSON on stdout
mm -config agent.yaml                                                                  # the routed agent

In agent.yaml, try what time is it in Tokyo? (🧭 $what-time-is-it), explain what a goroutine is (🧭 no skill (none …)), and /ask-decider ls -la && git status.

What was measured (2026-10-22, from the sandbox, llmman on the host)

mm -config agent.decider.yaml -p …, about 0.45 s per call once the model is loaded (3 to 13 s for the first one):

Command risk (confidence) destructive urgency score (0–2)
ls -la && git status read-only (0.93) 0.21 1.40
go test ./internal/ask -count=1 local-change (0.75) 0.19 1.08
rm -rf ~/.config && git push --force origin main dangerous (0.93) 0.92 1.89

Skill routing, the 23 cases of the routing eval through the decider alone: 15 right at minConfidence: 0.6, 0 wrong skill, 0 skill where none applied — every failure is an abstention, and the chat model then decides alone. With the chat model (Qwen3.5-4B, TestSkillRouting): 12/23 right without the decider, 16/23 with it, no wrong skill in either run.

llama-server gave the same answers and the same routing scores (provider: llamacpp, baseUrl: http://127.0.0.1:8090/v1, model: LiquidAI/d1-3B-GGUF:Q4_K_M, after llama-server -hf LiquidAI/d1-3B-GGUF:Q4_K_M --port 8090), and so did Ollama on a direct request (provider: ollama, model: hf.co/LiquidAI/d1-3B-GGUF:Q4_K_M). Docker Model Runner has no /v1/systemone.

Read more

 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
# Demo: route skills with a decision model

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

Two agent files around one decision model (LiquidAI d1-3B on llmman), served by `POST /v1/systemone`:

- `agent.decider.yaml` — a **decider**: every message is a shell command it judges with three questions (`risk`: read-only / local-change / dangerous; `destructive`: yes-or-no probability; `urgency`: how much review it needs).
- `agent.yaml` — a coding agent (Qwen3.5-4B on llmman) that asks the decider **which skill applies** before each turn (`skillRouting`), and can ask it about a command with `/ask-decider`.

![The decision-skills flow: before each turn, mm asks the decider which skill applies and appends it to the question](decision-skills-flow.svg)

Editable source: `decision-skills-flow.drawio` (draw.io); `decision-skills-flow.svg` is the same picture.

## Run it

Pull the decision model into llmman once (the chat model of `agent.yaml` too, if it is not there yet):

```bash
llmman pull hf.co/LiquidAI/d1-3B-GGUF:Q4_K_M
llmman pull hf.co/unsloth/Qwen3.5-4B-GGUF:Q4_K_M
```

Then, from this directory:

```bash
mm -config agent.decider.yaml -p "rm -rf ~/.config && git push --force origin main"   # JSON on stdout
mm -config agent.yaml                                                                  # the routed agent
```

In `agent.yaml`, try `what time is it in Tokyo?` (`🧭 $what-time-is-it`), `explain what a goroutine is` (`🧭 no skill (none …)`), and `/ask-decider ls -la && git status`.

## What was measured (2026-10-22, from the sandbox, llmman on the host)

`mm -config agent.decider.yaml -p …`, about 0.45 s per call once the model is loaded (3 to 13 s for the first one):

| Command | risk (confidence) | destructive | urgency score (0–2) |
|---------|-------------------|-------------|---------------------|
| `ls -la && git status` | read-only (0.93) | 0.21 | 1.40 |
| `go test ./internal/ask -count=1` | local-change (0.75) | 0.19 | 1.08 |
| `rm -rf ~/.config && git push --force origin main` | dangerous (0.93) | 0.92 | 1.89 |

Skill routing, the 23 cases of the routing eval through the decider alone: 15 right at `minConfidence: 0.6`, 0 wrong skill, 0 skill where none applied — every failure is an abstention, and the chat model then decides alone. With the chat model (Qwen3.5-4B, `TestSkillRouting`): 12/23 right without the decider, 16/23 with it, no wrong skill in either run.

llama-server gave the same answers and the same routing scores (`provider: llamacpp`, `baseUrl: http://127.0.0.1:8090/v1`, `model: LiquidAI/d1-3B-GGUF:Q4_K_M`, after `llama-server -hf LiquidAI/d1-3B-GGUF:Q4_K_M --port 8090`), and so did Ollama on a direct request (`provider: ollama`, `model: hf.co/LiquidAI/d1-3B-GGUF:Q4_K_M`). Docker Model Runner has no `/v1/systemone`.

## Read more

- [How to ask a decision model](../../docs/en/how-to/ask-a-decision-model.md)
- [How to route skills with a decision model](../../docs/en/how-to/route-skills-with-a-decision-model.md)
- [Decision models — explanation](../../docs/en/explanation/decision-models.md)
- The other decision demos: [`decision-commands`](../decision-commands/README.en.md) (command triage), [`decision-tools`](../decision-tools/README.en.md) (tool routing), [`decision-chat`](../decision-chat/README.en.md) (a decider before each question of a chat agent), [`decision-only`](../decision-only/README.en.md), [`decision-reviews`](../decision-reviews/README.en.md) and [`decision-moderation`](../decision-moderation/README.en.md) (a decider alone)