Demo: route skills with a decision model
Two agent files around one decision model (LiquidAI d1-3B on llmman), served by POST /v1/systemone:
agent.decider.yaml— a decider: every message is a shell command it judges with three questions (risk: read-only / local-change / dangerous;destructive: yes-or-no probability;urgency: how much review it needs).agent.yaml— a coding agent (Qwen3.5-4B on llmman) that asks the decider which skill applies before each turn (skillRouting), and can ask it about a command with/ask-decider.
Run it
Pull the decision model into llmman once (the chat model of agent.yaml too, if it is not there yet):
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 -config agent.decider.yaml -p "rm -rf ~/.config && git push --force origin main" # JSON on stdout
mm -config agent.yaml # the routed agent
In agent.yaml, try what time is it in Tokyo? (🧭 $what-time-is-it), explain what a goroutine is (🧭 no skill (none …)), and /ask-decider ls -la && git status.
What was measured (2026-10-22, from the sandbox, llmman on the host)
mm -config agent.decider.yaml -p …, about 0.45 s per call once the model is loaded (3 to 13 s for the first one):
| Command | risk (confidence) | destructive | urgency score (0–2) |
|---|---|---|---|
ls -la && git status |
read-only (0.93) | 0.21 | 1.40 |
go test ./internal/ask -count=1 |
local-change (0.75) | 0.19 | 1.08 |
rm -rf ~/.config && git push --force origin main |
dangerous (0.93) | 0.92 | 1.89 |
Skill routing, the 23 cases of the routing eval through the decider alone: 15 right at minConfidence: 0.6, 0 wrong skill, 0 skill where none applied — every failure is an abstention, and the chat model then decides alone. With the chat model (Qwen3.5-4B, TestSkillRouting): 12/23 right without the decider, 16/23 with it, no wrong skill in either run.
llama-server gave the same answers and the same routing scores (provider: llamacpp, baseUrl: http://127.0.0.1:8090/v1, model: LiquidAI/d1-3B-GGUF:Q4_K_M, after llama-server -hf LiquidAI/d1-3B-GGUF:Q4_K_M --port 8090), and so did Ollama on a direct request (provider: ollama, model: hf.co/LiquidAI/d1-3B-GGUF:Q4_K_M). Docker Model Runner has no /v1/systemone.
Read more
- How to ask a decision model
- How to route skills with a decision model
- Decision models — explanation
- The other decision demos:
decision-commands(command triage),decision-tools(tool routing),decision-only(a decider alone)
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 |
|