Demo: blog comments moderated by a decision model
No chat model anywhere. agent.yaml is a decider: every message it receives is a comment left under a blog post about Mini Me's tools, and it answers four typed questions about it in one forward pass of LiquidAI d1-3B (POST /v1/systemone on llmman), without writing any text:
| Question | Type | Answer |
|---|---|---|
toxic |
noul | probability that the comment insults, mocks or attacks a person — a blunt disagreement is not toxic |
spam |
noul | probability that it advertises, sells or sends readers to an unrelated site |
off_topic |
noul | probability that it has nothing to do with the post |
action |
choice | publish, review or reject, with a confidence |
comments/ holds eight comments: two in French (a polite one, an insulting one), a spam, a personal attack, a football chat, and a firm but polite disagreement — the hard case for a moderator. expected.json holds the answers a person would give.
Editable source: decision-moderation-flow.drawio (draw.io); decision-moderation-flow.svg is the same picture.
Run it
Pull the model into llmman once:
llmman pull hf.co/LiquidAI/d1-3B-GGUF:Q4_K_M
Then, from this directory:
mm -config agent.yaml -p "$(cat comments/04.txt)" # the server's JSON on stdout, for a script
mm -config agent.yaml # paste a comment, read one line per question
node moderate-comments.js # every comment sorted into publish / review / reject
moderate-comments.js runs one mm -p per comment (set MM_BIN if mm is not on your PATH), groups the comments by the action the model chose, shows the flags above 0.5, and marks with ✗ each answer that differs from expected.json. Give it another agent file as its first argument to try another model with the same questions:
sed 's#d1-3B-GGUF:Q4_K_M#d1-omni-600M-GGUF:Q8_0#' agent.yaml > omni.yaml
node moderate-comments.js omni.yaml
What was measured (2026-10-23, from the sandbox, llmman on the host)
LiquidAI d1-3B Q4_K_M:
PUBLISH
01.txt 0.96 - - - 552 ms Great post! The declared tools section helped m...
02.txt 0.87 - - - 528 ms Does bashTool: false also turn off the tools de...
05.txt 0.96 - - - 539 ms Article intéressant, mais j'aurais aimé un exem...
06.txt 0.90✗ - - off_topic 528 ms Did anyone watch the football last night? What ...
07.txt 0.96 - - - 458 ms I disagree: a declared tool is just a worse she...
REJECT
03.txt 0.73 - spam off_topic 594 ms Cheap followers and likes!!! 10,000 followers f...
04.txt 0.93 toxic - - 486 ms Only an idiot would let an AI run bash on his m...
08.txt 0.89 toxic - - 489 ms Ce tuto est nul et son auteur aussi, retourne c...
31/32 answers as expected (three flags and the action per comment)
Every flag right, the French insult and the polite disagreement included. The one miss is the football comment: flagged off_topic, but sent to publish with a confidence of 0.90. The flags are more reliable than the action here: a script that sends to review whatever is off_topic, and rejects whatever is toxic or spam, would have sorted all eight comments right. About 0.5 s per comment, the mm start-up included.
LiquidAI d1-omni-600M Q8_0, the same questions:
PUBLISH
01.txt 1.00 - - off_topic✗ 100 ms Great post! The declared tools section helped m...
02.txt 0.94 - - off_topic✗ 98 ms Does bashTool: false also turn off the tools de...
05.txt 0.85 - - - 91 ms Article intéressant, mais j'aurais aimé un exem...
06.txt 0.99✗ - - off_topic 98 ms Did anyone watch the football last night? What ...
07.txt 0.85 - - off_topic✗ 97 ms I disagree: a declared tool is just a worse she...
08.txt 0.52✗ -✗ - - 92 ms Ce tuto est nul et son auteur aussi, retourne c...
REJECT
03.txt 0.93 toxic✗ spam off_topic 100 ms Cheap followers and likes!!! 10,000 followers f...
04.txt 0.62 toxic - off_topic✗ 101 ms Only an idiot would let an AI run bash on his m...
24/32 answers as expected (three flags and the action per comment)
Five times faster (about 0.1 s per comment), but not usable as it stands for this task: off_topic is raised on four comments that are about the post, the spam is called toxic, and the French insult would have been published.
Read more
- How to ask a decision model
- Configuration reference —
decision - Decision models — explanation
- The other demos with a decider alone:
decision-only(a support inbox),decision-reviews(customer reviews)
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 |
|