bots-garden/mini-mepublic Fork
⑂ v1.0.0
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. 726802e · on v1.0.0 · k33g · Oct 18, 2026
agent.yaml · 108 lines · 3.5 KBYAML Blame HistoryRaw
  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
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
# Unload models — a coordinator hands each programming question to an expert,
# and the two models take turns in memory, never loaded together:
#
#   hooks/unload.js self   preAsk   unloads the COORDINATOR's model right
#                                   before the expert starts (only mm can do
#                                   it at that moment)
#   hooks/unload.js asked  postAsk  unloads the EXPERT's model once it has
#                                   answered, before the coordinator is
#                                   reloaded to read the answer
#
#   coordinator  Qwen3.5 9B hf.co/unsloth/Qwen3.5-9B-GGUF:Q4_K_M (this file)
#   expert       Qwen3.5 4B hf.co/unsloth/Qwen3.5-4B-GGUF:Q4_K_M (agent.expert.yaml)
#
#   llmman pull hf.co/unsloth/Qwen3.5-9B-GGUF:Q4_K_M
#   llmman pull hf.co/unsloth/Qwen3.5-4B-GGUF:Q4_K_M
#   llmman serve
#
#   cd demos/unload-models
#   mm -tui agent.yaml           or   mm -config agent.yaml -p "…"
#
# Watch the server between questions: llmman ps (or curl :17434/api/ps).
# `/unload` unloads the coordinator's own model by hand, `/unload <model>`
# any other one — in the terminal, the window and an editor.

provider: llmman
model: hf.co/unsloth/Qwen3.5-9B-GGUF:Q4_K_M
baseUrl: http://127.0.0.1:17434/v1
fallback: http://host.docker.internal:17434/v1

mmConfigs:
  expert:
    path: agent.expert.yaml
    description: >-
      Programming expert. Answers any question about code, languages,
      tools and how to do something in a program.
    yolo: true

# /unload and unload_model are on by default (unloadModels: true); written
# here because this demo is about them. The hooks do the hand-off's unloads:
# a step of the model would come too late (the coordinator is already
# reloaded beside the expert) and a small model may skip it. unload_model
# stays for when the user asks to free a model.
unloadModels: true

sampling:
  # Low temperature: routing wants a steady hand.
  temperature: 0.4
  top_p: 0.8
  top_k: 20
  max_tokens: 2048
  parallel_tool_calls: false
  chat_template_kwargs:
    enable_thinking: false

# During ask_agent every event of the expert counts as a sign of life, but
# loading a 9B model is silent for a while.
watchdogTimeout: 5m
firstTokenTimeout: 3m

# ask the expert, answer: two steps, one spare.
maxTurns: 3
maxOutput: 20000
displayCommands: true
displayHooks: true

hooks:
  # onError: warn — an unload is a saving, not a check: the hand-off goes on.
  preAsk:
    - matcher: ^expert$
      command: node "$MM_CONFIG_DIR/hooks/unload.js" self
      timeout: 30s
      onError: warn
  postAsk:
    - matcher: ^expert$
      command: node "$MM_CONFIG_DIR/hooks/unload.js" asked
      timeout: 30s
      onError: warn

yolo: true
bashTool: false
editTools: false
planTool: false
fetchContentTool: false
askUserTool: false
skillsDir: no-skills

agentsMd:
  enabled: false

acp:
  name: unloader
  title: 🧹 Unload models

system: |
  You are a coordinator. You do not answer programming questions yourself.

  For every question about programming, even one you know the answer to,
  do these two steps, in order:
  1. Call ask_agent with agent "expert" and the user's question. It is
     ALWAYS your first action: never answer a programming question before
     the expert has answered it.
  2. Then give the expert's answer to the user, in the user's language.

  If the user asks you to free or unload a model, call unload_model. The
  expert's model is "hf.co/unsloth/Qwen3.5-4B-GGUF:Q4_K_M".

  For anything else (a greeting, a question about you), answer in one short
  sentence, without any tool.