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
decision-chat-flow.svg · 66 lines · 7.8 KBXML 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
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="640" viewBox="0 0 1200 640" font-family="DejaVu Sans, Verdana, sans-serif">
  <defs>
    <linearGradient id="gBg" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#FFFFFF"/><stop offset="100%" stop-color="#EEF2FA"/></linearGradient>
    <linearGradient id="gBlue" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#E3F2FD"/><stop offset="100%" stop-color="#BBDEFB"/></linearGradient>
    <linearGradient id="gBlue2" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#E1F5FE"/><stop offset="100%" stop-color="#B3E5FC"/></linearGradient>
    <linearGradient id="gPurple" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#F3E5F5"/><stop offset="100%" stop-color="#E1BEE7"/></linearGradient>
    <linearGradient id="gYellow" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#FFFDE7"/><stop offset="100%" stop-color="#FFF9C4"/></linearGradient>
    <linearGradient id="gGrey" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#ECEFF1"/><stop offset="100%" stop-color="#CFD8DC"/></linearGradient>
    <filter id="shadow" x="-30%" y="-30%" width="160%" height="160%"><feDropShadow dx="2" dy="3" stdDeviation="4" flood-color="#000000" flood-opacity="0.25"/></filter>
    <marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" fill="#37474F"/></marker>
  </defs>
  <rect x="0" y="0" width="1200" height="640" fill="url(#gBg)"/>
  <text x="600.0" y="38" text-anchor="middle" font-size="25" font-weight="700" fill="#1A237E">demos/decision-chat — a decider reads the question first</text>
  <text x="600.0" y="61" text-anchor="middle" font-size="14" font-style="italic" fill="#546E7A">a preGeneration hook asks the decision model, then hands its answers to the chat model</text>
  <path d="M230,200 L330,200" fill="none" stroke="#37474F" stroke-width="2.2" marker-end="url(#arrow)"/>
  <path d="M580,200 L880,200" fill="none" stroke="#37474F" stroke-width="2.2" marker-end="url(#arrow)"/>
  <path d="M455,260 L455,360" fill="none" stroke="#37474F" stroke-width="2.2" marker-start="url(#arrow)" marker-end="url(#arrow)"/>
  <path d="M580,430 L650,430" fill="none" stroke="#37474F" stroke-width="2.2" stroke-dasharray="6,4" marker-end="url(#arrow)"/>
  <path d="M1020,140 L1020,100 L135,100 L135,140" fill="none" stroke="#37474F" stroke-width="2.2" marker-end="url(#arrow)"/>
  <g filter="url(#shadow)"><rect x="40" y="140" width="190" height="120" rx="16" fill="url(#gBlue)" stroke="#1565C0" stroke-width="2"/></g>
  <text x="135.0" y="180.0" text-anchor="middle" font-size="22">🧑</text>
  <text x="135.0" y="203.0" text-anchor="middle" font-size="16" font-weight="700" fill="#0D47A1">User</text>
  <text x="135.0" y="221.0" text-anchor="middle" font-size="11.5" fill="#0D47A1">asks a question</text>
  <text x="135.0" y="238.0" text-anchor="middle" font-size="11.5" fill="#0D47A1">terminal · -tui · editor</text>
  <g filter="url(#shadow)"><rect x="330" y="140" width="250" height="120" rx="16" fill="url(#gYellow)" stroke="#F9A825" stroke-width="2"/></g>
  <text x="455.0" y="180.0" text-anchor="middle" font-size="22">⚙️</text>
  <text x="455.0" y="203.0" text-anchor="middle" font-size="16" font-weight="700" fill="#E65100">preGeneration hook</text>
  <text x="455.0" y="221.0" text-anchor="middle" font-size="11.5" fill="#E65100">hooks/ask-decider.js</text>
  <text x="455.0" y="238.0" text-anchor="middle" font-size="11.5" fill="#E65100">decider failed → question alone</text>
  <g filter="url(#shadow)"><rect x="880" y="140" width="280" height="120" rx="16" fill="url(#gBlue2)" stroke="#0277BD" stroke-width="2"/></g>
  <text x="1020.0" y="180.0" text-anchor="middle" font-size="22">🤖</text>
  <text x="1020.0" y="203.0" text-anchor="middle" font-size="16" font-weight="700" fill="#01579B">Chat model</text>
  <text x="1020.0" y="221.0" text-anchor="middle" font-size="11.5" fill="#01579B">Qwen3.5-4B · no tools</text>
  <text x="1020.0" y="238.0" text-anchor="middle" font-size="11.5" fill="#01579B">system: what to do with each answer</text>
  <g filter="url(#shadow)"><rect x="330" y="360" width="250" height="140" rx="16" fill="url(#gPurple)" stroke="#6A1B9A" stroke-width="3"/></g>
  <text x="455.0" y="401.5" text-anchor="middle" font-size="22">⚖️</text>
  <text x="455.0" y="424.5" text-anchor="middle" font-size="16" font-weight="700" fill="#4A148C">Decider</text>
  <text x="455.0" y="442.5" text-anchor="middle" font-size="11.5" fill="#4A148C">LiquidAI d1-3B · agent.decider.yaml</text>
  <text x="455.0" y="459.5" text-anchor="middle" font-size="11.5" fill="#4A148C">POST /v1/systemone</text>
  <text x="455.0" y="476.5" text-anchor="middle" font-size="11.5" fill="#4A148C">one forward pass, ~0.5 s</text>
  <rect x="511.2" y="348" width="78.8" height="24" rx="12" fill="#6A1B9A"/>
  <text x="550.6" y="364" text-anchor="middle" font-size="11.5" font-weight="700" fill="#FFFFFF">★ decides</text>
  <rect x="650" y="340" width="510" height="180" rx="10" fill="#FAFAFA" fill-opacity="0.7" stroke="#90A4AE" stroke-width="2" stroke-dasharray="7,5"/>
  <text x="905.0" y="362" text-anchor="middle" font-size="13" font-style="italic" font-weight="700" fill="#607D8B">3 typed questions · agent.decider.yaml</text>
  <g filter="url(#shadow)"><rect x="680" y="380" width="140" height="50" rx="12" fill="url(#gGrey)" stroke="#455A64" stroke-width="2"/></g>
  <text x="750.0" y="410.0" text-anchor="middle" font-size="13" font-weight="700" fill="#263238">level · choice</text>
  <g filter="url(#shadow)"><rect x="840" y="380" width="140" height="50" rx="12" fill="url(#gGrey)" stroke="#455A64" stroke-width="2"/></g>
  <text x="910.0" y="410.0" text-anchor="middle" font-size="13" font-weight="700" fill="#263238">hurry · noul</text>
  <g filter="url(#shadow)"><rect x="1000" y="380" width="140" height="50" rx="12" fill="url(#gGrey)" stroke="#455A64" stroke-width="2"/></g>
  <text x="1070.0" y="410.0" text-anchor="middle" font-size="13" font-weight="700" fill="#263238">upset · noul</text>
  <text x="905" y="465" text-anchor="middle" font-size="12" fill="#37474F" font-family="DejaVu Sans Mono, monospace">level: beginner (confidence 0.94)</text>
  <text x="905" y="484" text-anchor="middle" font-size="12" fill="#37474F" font-family="DejaVu Sans Mono, monospace">hurry: no (0.03) · upset: no (0.03)</text>
  <text x="905" y="506" text-anchor="middle" font-size="10.5" fill="#78909C" font-style="italic">what the chat model reads under the question</text>
  <rect x="241.0" y="216.0" width="78" height="24" rx="5" fill="#FFFFFF"/>
  <text x="280" y="232.5" text-anchor="middle" font-size="12.5" font-weight="700" fill="#263238">question</text>
  <rect x="641.25" y="180.0" width="177.5" height="40" rx="5" fill="#FFFFFF"/>
  <text x="730" y="197" text-anchor="middle" font-size="12.5" font-weight="700" fill="#263238">question + answers</text>
  <text x="730" y="213" text-anchor="middle" font-size="10.5" fill="#78909C">[context added by a hook]</text>
  <rect x="481.8" y="290.0" width="126.39999999999999" height="40" rx="5" fill="#FFFFFF"/>
  <text x="545" y="307" text-anchor="middle" font-size="12.5" font-weight="700" fill="#263238">question alone</text>
  <text x="545" y="323" text-anchor="middle" font-size="10.5" fill="#78909C">← answers (JSON)</text>
  <rect x="441.8" y="88.0" width="316.4" height="24" rx="5" fill="#FFFFFF"/>
  <text x="600" y="104.5" text-anchor="middle" font-size="12.5" font-weight="700" fill="#263238">answer, shaped by the decider's reading</text>
  <text x="600" y="572" text-anchor="middle" font-size="12.5" fill="#455A64" font-style="italic">Change the questions in agent.decider.yaml and the rules in agent.yaml's system prompt:</text>
  <text x="600" y="592" text-anchor="middle" font-size="12.5" fill="#455A64" font-style="italic">the hook passes every answer on, whatever its name and type.</text>
</svg>