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

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

Download ZIP
🛟 Updated. cd2a817 · on v1.0.7 · k33g · Oct 24, 2026
README.en.md · 85 lines · 6.1 KBmarkdown
Blame HistoryOpen raw

Demo: a chat agent helped by a decider

Version française

A chat agent (Qwen3.5-4B on llmman, a git helper with no tools) and a decider (LiquidAI d1-3B, agent.decider.yaml). Before each question reaches the chat model, a preGeneration hook, hooks/ask-decider.js, sends it to the decider and adds its answers under the question. The chat model's system prompt says what to do with them: here, adapt the answer to the person asking.

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

Question (agent.decider.yaml) Type What the system prompt (agent.yaml) does with it
level choice: beginner, intermediate, expert beginner: explain every command in plain words; intermediate: one sentence per command; expert: the command, one line at most
hurry noul yes: three lines at most, the command first
upset noul yes: one calm sentence first, then help

What the chat model reads under the question:

[context added by a hook]
level: beginner (confidence 0.94)
hurry: no (0.03)
upset: no (0.03)

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 this directory:

mm tui agent.yaml                                               # or mm agent.yaml
mm -config agent.yaml -p "quick: undo my last commit but keep the changes"
mm -config agent.decider.yaml -p "quick: undo my last commit…"  # the decider alone, its JSON

displayHooks: true shows one 🪝 line per turn: the hook ran and how much context it added.

Make it your own

Three places, each with one job:

  1. The questions — agent.decider.yaml, decision.questions. Add, remove or rename them freely: the hook turns every answer into a line (name: choice (confidence …), name: yes|no (…), name: level (score …)) without knowing their names.
  2. What the chat model does with them — agent.yaml, system. One rule per answer, written as the lines read: "level beginner: …", "upset yes: …".
  3. The hand-over — hooks/ask-decider.js (the same hook in Go: decision-chat-golang). DECIDER_RAW=1 passes the server's JSON (answers) instead of the lines. To act without the chat model, return another reply: {"action":"stop","response":"…"} ends the turn with your text — see the hooks reference.

Some ideas with the same three files: the language to answer in (choice), a question outside the agent's subject (noul → stop the turn), the team that should answer (choice → a line in the answer), a request for code (noul → "give a code block").

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

The decider on four questions:

Question level hurry upset
I'm new to git and I don't really get it: what does git stash do? beginner (0.94) no (0.03) no (0.03)
quick: undo my last commit but keep the changes expert (0.38) yes (0.98) no (0.14)
I did a git reset --hard and I think I lost my whole afternoon of work, I'm panicking, please help beginner (0.05) no (0.35) yes (0.99)
What is the difference between git rebase --onto and git rebase -i? expert (0.35) no (0.10) no (0.06)

The first wording of hurry, "The person is in a hurry or asks for a short answer", scored 0.5 to 0.7 on calm questions too (0.67 on the git stash one). Asked about the words — "The message contains a word asking for speed, such as quick, fast, asap or now" — it gave 0.03 and 0.10 on the calm ones, 0.98 and 0.99 on "quick" and "asap". A decider answers better about what is in the text than about an intention.

The chat model's answers, with the hook (each turn 1 to 6 s, the decider included):

  • git stash, beginner: three paragraphs in plain words ("like putting your unfinished work in a temporary box"), every command explained, no code block.
  • quick undo, hurry: `git reset --soft HEAD~1` and nothing else.
  • reset --hard, upset: starts with "I know this is incredibly frustrating and scary, but don't panic; we can try to recover your work.", then git reflog.
  • rebase --onto vs -i, expert: two dense sentences, no command list — closer to "intermediate" than to "one line at most"; the decider's confidence was low (0.35).

Without the hook (same system prompt, hooks: removed; the first three questions), Qwen3.5-4B already adapted on these explicit questions: the same one-line command for "quick", a reassuring first sentence for the panicked user, a shorter git stash answer with two code blocks. The hook does not make the chat model smarter here; it makes the reading explicit, the same for every question, and visible in one line — and the rules are yours to change. Its gain is clearer when the chat model is smaller, or when the hook acts on the answer itself (stop the turn, pick an agent) instead of passing it on.

Qwen3.5-4B thinks by default: on "answer in three lines at most" it went round in circles until the token limit (no answer after 162 s). agent.yaml turns thinking off (enable_thinking: false).

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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Demo: a chat agent helped by a decider

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

A chat agent (Qwen3.5-4B on llmman, a git helper with no tools) and a decider (LiquidAI d1-3B, `agent.decider.yaml`). Before each question reaches the chat model, a `preGeneration` hook, `hooks/ask-decider.js`, sends it to the decider and adds its answers under the question. The chat model's system prompt says what to do with them: here, adapt the answer to the person asking.

![The decision-chat flow: the question goes to a preGeneration hook, which asks the decider and passes its answers to the chat model](decision-chat-flow.svg)

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

| Question (`agent.decider.yaml`) | Type | What the system prompt (`agent.yaml`) does with it |
|---------------------------------|------|-----------------------------------------------------|
| `level` | choice: `beginner`, `intermediate`, `expert` | beginner: explain every command in plain words; intermediate: one sentence per command; expert: the command, one line at most |
| `hurry` | noul | yes: three lines at most, the command first |
| `upset` | noul | yes: one calm sentence first, then help |

What the chat model reads under the question:

```
[context added by a hook]
level: beginner (confidence 0.94)
hurry: no (0.03)
upset: no (0.03)
```

## 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 this directory:

```bash
mm tui agent.yaml                                               # or mm agent.yaml
mm -config agent.yaml -p "quick: undo my last commit but keep the changes"
mm -config agent.decider.yaml -p "quick: undo my last commit…"  # the decider alone, its JSON
```

`displayHooks: true` shows one `🪝` line per turn: the hook ran and how much context it added.

## Make it your own

Three places, each with one job:

1. **The questions** — `agent.decider.yaml`, `decision.questions`. Add, remove or rename them freely: the hook turns every answer into a line (`name: choice (confidence …)`, `name: yes|no (…)`, `name: level (score …)`) without knowing their names.
2. **What the chat model does with them** — `agent.yaml`, `system`. One rule per answer, written as the lines read: "level beginner: …", "upset yes: …".
3. **The hand-over** — `hooks/ask-decider.js` (the same hook in Go: [`decision-chat-golang`](../decision-chat-golang/README.en.md)). `DECIDER_RAW=1` passes the server's JSON (`answers`) instead of the lines. To act without the chat model, return another reply: `{"action":"stop","response":"…"}` ends the turn with your text — see the [hooks reference](../../docs/en/reference/hooks.md#reply).

Some ideas with the same three files: the language to answer in (choice), a question outside the agent's subject (noul → stop the turn), the team that should answer (choice → a line in the answer), a request for code (noul → "give a code block").

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

The decider on four questions:

| Question | level | hurry | upset |
|----------|-------|-------|-------|
| I'm new to git and I don't really get it: what does git stash do? | beginner (0.94) | no (0.03) | no (0.03) |
| quick: undo my last commit but keep the changes | expert (0.38) | yes (0.98) | no (0.14) |
| I did a git reset --hard and I think I lost my whole afternoon of work, I'm panicking, please help | beginner (0.05) | no (0.35) | yes (0.99) |
| What is the difference between git rebase --onto and git rebase -i? | expert (0.35) | no (0.10) | no (0.06) |

The first wording of `hurry`, "The person is in a hurry or asks for a short answer", scored 0.5 to 0.7 on calm questions too (0.67 on the git stash one). Asked about the words — "The message contains a word asking for speed, such as quick, fast, asap or now" — it gave 0.03 and 0.10 on the calm ones, 0.98 and 0.99 on "quick" and "asap". A decider answers better about what is in the text than about an intention.

The chat model's answers, with the hook (each turn 1 to 6 s, the decider included):

- **git stash, beginner**: three paragraphs in plain words ("like putting your unfinished work in a temporary box"), every command explained, no code block.
- **quick undo, hurry**: `` `git reset --soft HEAD~1` `` and nothing else.
- **reset --hard, upset**: starts with "I know this is incredibly frustrating and scary, but don't panic; we can try to recover your work.", then `git reflog`.
- **rebase --onto vs -i, expert**: two dense sentences, no command list — closer to "intermediate" than to "one line at most"; the decider's confidence was low (0.35).

Without the hook (same system prompt, `hooks:` removed; the first three questions), Qwen3.5-4B already adapted on these explicit questions: the same one-line command for "quick", a reassuring first sentence for the panicked user, a shorter git stash answer with two code blocks. The hook does not make the chat model smarter here; it makes the reading explicit, the same for every question, and visible in one line — and the rules are yours to change. Its gain is clearer when the chat model is smaller, or when the hook acts on the answer itself (stop the turn, pick an agent) instead of passing it on.

Qwen3.5-4B thinks by default: on "answer in three lines at most" it went round in circles until the token limit (no answer after 162 s). `agent.yaml` turns thinking off (`enable_thinking: false`).

## Read more

- [How to ask a decision model](../../docs/en/how-to/ask-a-decision-model.md)
- [Hooks reference — `preGeneration`](../../docs/en/reference/hooks.md#pregeneration)
- [Decision models — explanation](../../docs/en/explanation/decision-models.md)
- [`decision-chat-golang`](../decision-chat-golang/README.en.md): the same flow for Go programming, with the hook written in Go
- The other decision demos: [`decision-skills`](../decision-skills/README.en.md) (skill routing), [`decision-tools`](../decision-tools/README.en.md) (tool routing), [`decision-commands`](../decision-commands/README.en.md) (command triage), [`decision-only`](../decision-only/README.en.md) (a decider alone)