bots-garden/mini-mepublic Fork
⑂ v1.0.4
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.4 · k33g · Oct 24, 2026
README.en.md · 42 lines · 2.1 KBmarkdown
Blame HistoryOpen raw

Demo: offer only the tools a request needs

Version française

A small coding agent (Qwen3.5-4B on llmman) with every built-in tool on. Before each turn, a decision model (LiquidAI d1-3B, agent.decider.yaml) answers one yes/no question per tool group of agent.yaml — shell, files, web, plan — and a group it gives less than 0.2 is not sent to the model for that turn (toolRouting). The tools in no group (ask_user, unload_model) are always sent.

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

Run it

Pull the models into llmman once:

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 the playground (a Go module of one file):

cd demos/decision-tools/playground
mm ../agent.yaml

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

mm ../agent.yaml -p …, the whole turn included:

Request Notice Tools the model used Time
explain what a goroutine is, in two sentences 🧰 tools: dropped shell (0.04), web (0.08) none 13 s
what does main.go print? read it 🧰 tools: all kept bash ×2 22 s
run go vet on this module and tell me the result 🧰 tools: dropped web (0.08) bash ×4 29 s

Not measured: whether the shorter tool list makes the model choose better. The groups' scores on eight requests (decider alone) are in the explanation: every group a request needed scored 0.37 or more; plan scored high whatever the request, so it is rarely dropped.

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
# Demo: offer only the tools a request needs

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

A small coding agent (Qwen3.5-4B on llmman) with every built-in tool on. Before each turn, a decision model (LiquidAI d1-3B, `agent.decider.yaml`) answers one yes/no question per tool group of `agent.yaml` — `shell`, `files`, `web`, `plan` — and a group it gives less than 0.2 is not sent to the model for that turn (`toolRouting`). The tools in no group (`ask_user`, `unload_model`) are always sent.

![The decision-tools flow: before each turn, mm asks the decider which tool groups the request needs and offers only those](decision-tools-flow.svg)

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

## Run it

Pull the models into llmman once:

```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 the playground (a Go module of one file):

```bash
cd demos/decision-tools/playground
mm ../agent.yaml
```

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

`mm ../agent.yaml -p …`, the whole turn included:

| Request | Notice | Tools the model used | Time |
|---------|--------|----------------------|------|
| `explain what a goroutine is, in two sentences` | `🧰 tools: dropped shell (0.04), web (0.08)` | none | 13 s |
| `what does main.go print? read it` | `🧰 tools: all kept` | `bash` ×2 | 22 s |
| `run go vet on this module and tell me the result` | `🧰 tools: dropped web (0.08)` | `bash` ×4 | 29 s |

Not measured: whether the shorter tool list makes the model choose better. The groups' scores on eight requests (decider alone) are in the [explanation](../../docs/en/explanation/decision-models.md#tool-routing-only-removes-what-is-clearly-unneeded): every group a request needed scored 0.37 or more; `plan` scored high whatever the request, so it is rarely dropped.

## Read more

- [How to offer only the tools a request needs](../../docs/en/how-to/route-tools-with-a-decision-model.md)
- [Configuration reference — `toolRouting`](../../docs/en/reference/configuration.md#toolrouting)