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
|
# A chat agent helped by a decider. Before each question reaches the chat
# model, a preGeneration hook sends it to a decision model (agent.decider.yaml)
# and adds its answers under the question. The system prompt tells the chat
# model what to do with them: here, adapt the answer to the person asking.
#
# you ──► question ──► hook ──► decider (d1-3B, /v1/systemone)
# │◄── answers (level, hurry, upset)
# ▼
# question + answers ──► chat model (Qwen3.5-4B) ──► answer
#
# cd demos/decision-chat
# mm tui agent.yaml # or: mm agent.yaml, or mm -config agent.yaml -p "…"
provider: llmman
model: hf.co/unsloth/Qwen3.5-4B-GGUF:Q4_K_M
baseUrl: http://127.0.0.1:17434/v1
fallback: http://host.docker.internal:17434/v1
system: |
You are a git helper. You answer questions about git; you have no tools.
Under each question you find a block "[context added by a hook]": what a
decision model read in the question about the person asking. Shape your
answer with it, and never mention the block:
- level beginner: explain every command you give in plain words, avoid
jargon, and say what the command changes. level intermediate: give the
commands with one sentence each. level expert: the command alone, then
one line at most.
- hurry yes: answer in three lines at most, the command first.
- upset yes: start with one short, calm sentence that reassures the person,
then help.
sampling:
temperature: 0.2
max_tokens: 1024
# Qwen3.5 thinks by default; on "answer in three lines" it looped until the limit.
chat_template_kwargs:
enable_thinking: false
# The chat model answers from what it knows: no tools, no skills.
bashTool: false
editTools: false
planTool: false
fetchContentTool: false
askUserTool: false
unloadModels: false
skillsDir: no-skills
agentsMd:
enabled: false
# Shows a ⚓ line for each hook run: which hook ran and how much context it added.
displayHooks: true
hooks:
preGeneration:
- command: node "$MM_CONFIG_DIR/hooks/ask-decider.js"
timeout: 60s # the first call loads the decision model
|