bots-garden/mini-mepublic Fork
⑂ v1.0.9
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. d973158 · on v1.0.9 · k33g · 28d ago
agent.yaml · 130 lines · 4.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Coding helpers — interactive documentation for Go and Rust: ask what a
# concept is or how something is done, get an explanation with short
# examples. You talk with this coordinator; it picks the specialist with
# the built-in `ask_agent` tool:
#
#   go    — agent.go.yaml,   a Go specialist
#   rust  — agent.rust.yaml, a Rust specialist
#
#   "hey, explique-moi comment utiliser une struct Go et la sérialiser en JSON"
#   "comment je fais la même chose en Rust ?"
#   "explique-moi ce qu'est le pattern matching en Rust, avec un exemple"
#
# The second question only makes sense after the first: the coordinator
# sends the conversation along (`with_context`), so the Rust specialist
# knows what "the same thing" is.
#
# Models — never in memory together, so at most 8.1 GB at a time:
#
#   coordinator  MiniCPM5 2B          hf.co/openbmb/MiniCPM5-2B-GGUF:Q4_K_M                                       1.6 GB
#   go, rust     Mellum2 12B thinking huggingface.co/jetbrains/mellum2-12b-a2.5b-thinking-gguf-q4_k_m:Q4_K_M     8.1 GB (one model for both)
#
#   hooks/unload.js self   preAsk   unloads the COORDINATOR's model right
#                                   before the specialist starts
#   hooks/unload.js asked  postAsk  unloads the SPECIALIST's model once it
#                                   has answered, before the coordinator is
#                                   reloaded to read the answer
#
#   llmman pull hf.co/openbmb/MiniCPM5-2B-GGUF:Q4_K_M
#   llmman pull huggingface.co/jetbrains/mellum2-12b-a2.5b-thinking-gguf-q4_k_m:Q4_K_M
#   LLMMAN_CONTEXT_LENGTH=32768 llmman serve
#
#   cd demos/coding-helpers
#   mm                       (reads ./agent.yaml)

provider: llmman
model: hf.co/openbmb/MiniCPM5-2B-GGUF:Q4_K_M
baseUrl: http://127.0.0.1:17434/v1
fallback: http://host.docker.internal:17434/v1
contextWindow: 32768

# The team. The description is what the coordinator reads to choose.
mmConfigs:
  go:
    path: agent.go.yaml
    description: >-
      Go specialist. Explains Go concepts and how to do something in Go,
      with short examples, like documentation. For any question about Go.
    yolo: true
  rust:
    path: agent.rust.yaml
    description: >-
      Rust specialist. Explains Rust concepts and how to do something in
      Rust, with short examples, like documentation. For any question about
      Rust.
    yolo: true

sampling:
  # The GGUF says 1.0 / 0.95; routing wants a steady hand.
  temperature: 0.3
  top_p: 0.95
  max_tokens: 2048
  parallel_tool_calls: false
  # MiniCPM5's template reads enable_thinking and has no default: set it.
  chat_template_kwargs:
    enable_thinking: false

# The models take turns in memory: the coordinator is unloaded right before
# a specialist starts, the specialist once it has answered (the same script
# as demos/unload-models). The price: Mellum2 is reloaded on every question.
# onError: warn — an unload is a saving, not a check: the hand-off goes on.
hooks:
  preAsk:
    - matcher: ^(go|rust)$
      command: node "$MM_CONFIG_DIR/hooks/unload.js" self
      timeout: 30s
      onError: warn
  postAsk:
    - matcher: ^(go|rust)$
      command: node "$MM_CONFIG_DIR/hooks/unload.js" asked
      timeout: 30s
      onError: warn

# During ask_agent every event of the specialist counts as a sign of life;
# a 12B thinking model may reason a while before its first word.
watchdogTimeout: 5m
firstTokenTimeout: 3m

# one call, one sentence.
maxTurns: 3
maxOutput: 20000
displayCommands: true
displayHooks: true

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

agentsMd:
  enabled: false

sessions:
  enabled: false

acp:
  name: coding-helpers
  title: 🧭 Coding helpers (Go, Rust)

# Written for a 2B model: short, no fake call written out in the text —
# measured, MiniCPM5 copies such patterns into its answer instead of calling
# the tool.
system: |
  You are the front desk of two programming specialists: go and rust.

  When the user asks something about programming, call the ask_agent tool
  once:
  - agent: go if the question is about Go, rust if it is about Rust. When
    the user says "the same thing", "la même chose", "now in …", pick the
    language they name now.
  - prompt: the user's message, copied exactly.
  - with_context: true, so the specialist sees the conversation so far.

  When the tool has answered, write one short sentence in the user's
  language saying the explanation is above.

  If the language is neither Go nor Rust, say in one sentence that you
  only know Go and Rust. When the user only greets you, greet back.