Make typed, calibrated decisions about text, JSON or images with decision models, locally through Ollaya or Ollama or hosted as Cloudflare Clef on Workers AI: classify (choice), rate (score) or check a yes/no statement (noul), with probabilities you can threshold. Use it to triage tickets and emails, route requests, moderate posts, screen prompts for jailbreaks or injections, or any step where the agent needs a quick judgement it can act on, instead of reasoning it out in text. Also use it whenever the user names a decision model such as laya, winnow, tev1, nimble, clef or clef-flash, which are models, not commands. Works through the Ollaya MCP server (the `decide` tool), the `ollaya` CLI or local HTTP API, the `ollama` CLI or Ollama's local HTTP API, or the Cloudflare API MCP server.
Ships in timmo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Ollaya and Ollama run decision models on this machine, and Cloudflare hosts its Clef models on Workers AI. A decision model reads a state (a message, an email, a ticket, any JSON) and a set of typed questions, and returns a calibrated answer to each question in one forward pass, in about 10 ms on a local GPU and a few hundred ms on a CPU. It never generates text.
Reach for it when the answer is one of a known set of outcomes and you will act on it: route, label, block, escalate, pick a template. Keep reasoning in text for open-ended work.
| Situation | Use |
|---|---|
| Label, route or filter many items (tickets, emails, messages, rows) | decide on each item |
| A yes/no gate before an action (is this spam, a jailbreak, a refund request) | a noul question |
| A rating you will compare with a threshold (urgency, severity, frustration) | a score question |
| One of N categories, teams or intents | a choice question |
| Summaries, explanations, answers that need new text | not this skill |
A local decision costs no tokens and no API call, so it is fine to run one per item, per step. Hosted Clef requests are billed, so batch several questions about the same state into one request.
Two local runtimes serve decision models over the same TypeSafe API: Ollaya and Ollama. Neither is preferred; use whichever is installed. Cloudflare hosts Clef on Workers AI.
Model names such as laya, winnow:e4b and clef are models, not commands (see "Picking a
model"); there is no laya command. Don't search for one. Run them with ollaya run <model>,
ollama run <model> --ask, the decide tool, or either runtime's HTTP API.
Check what is available once per session:
command -v ollaya
curl -s http://127.0.0.1:11434/api/version
nvidia-smi --query-gpu=name,memory.total --format=csv,noheader 2>/dev/null
Ollama needs 0.35.0 or later for decision models, 0.35.1 for Clef, 0.40.0 for Laya, 0.40.7
for pplx-decider, 0.40.9 for d3, 0.40.12 for d1 (Apple silicon only in 0.40.12) and
0.40.15 for autotrust-jev (Apple silicon only in 0.40.15). When
both runtimes are installed, use the one that has the model you need: Ollaya for winnow, presets
and most of its catalogue, Ollama for tev1 and the 27B Clef.
The same name can mean a different model: Ollaya's clef is Clef-Flash (9B), while on Ollama
clef is the 27B Clef and clef-flash is the 9B. Likewise Ollaya's pplx-decider is the 4B
pplx-decider-flash, while Ollama's is Perplexity's 27B.
If the user names a model, runtime or provider, go straight to calling it. Otherwise start with the lightest model that suits the machine, and escalate only the answers it can't settle:
winnow:e4b, the best accuracy for its speed (about 90 ms per
decision on a GPU, by Ollaya's figures). From Ollaya 0.16.0 this also holds on Linux with an
AMD GPU when Ollaya's ROCm pack is installed (lib/ollaya/rocm/ under /usr/local or
~/.local, with the ROCm 7 runtime); only GGUF models such as winnow use the AMD GPU, and
ONNX models such as laya stay on the CPU there.clef-flash with 12 GB or more VRAM, otherwise tev1 (4B, about
4.5 GB).laya, about 1 s per decision on a CPU. laya reads only about 1k
tokens on Ollaya and 512 on Ollama (English only there), so trim the state to the lines that
matter (deduplicate logs, drop noise) or split it.clef (Clef-Flash on Ollaya, the 27B
Clef on Ollama). Otherwise rerun on hosted Clef on Workers AI.@cf/cloudflare/clef when the unclear answer came from Clef-Flash (local
clef-flash on Ollama or clef on Ollaya), and the default @cf/cloudflare/clef-flash
otherwise. An answer still unclear on Ollaya's clef can escalate there too.clef on
Ollaya or Ollama, not Workers AI. Warn once if it is likely to be slow or fail for memory, then
run it; fall back only if it actually fails, and say so.curl -fsSL https://ollaya.dev/install.sh | sh) or Ollama (https://ollama.com/download);
otherwise say the Cloudflare API MCP server is needed.Say which runtime or provider and which model answered.
Ollaya, in this order:
MCP (tool decide, server ollaya): pass state, and questions or preset, plus
optionally model. Other tools: list_models, show_model, pull_model. Resources
ollaya://presets/<name> show each preset's questions.
CLI (ollaya on PATH):
ollaya run laya --preset triage --format json "I was charged twice and want a refund."
ollaya run laya --questions questions.json --format json "$TEXT"
ollaya run laya --questions '{"angry":{"type":"noul"}}' --format json "$TEXT"
echo '{"subject": "…", "body": "…"}' | ollaya run laya --preset email --format json
--format json prints the full response. The CLI starts the server if it isn't running and
pulls the model on first use.
HTTP (http://127.0.0.1:11435), TypeSafe-compatible:
curl -s http://127.0.0.1:11435/v1/systemone -H 'Content-Type: application/json' \
-d '{"model": "laya", "state": "…", "questions": {…}}'
Hosted: Cloudflare Clef on Workers AI, for when no local runtime is available or strong enough (see below).
Pull the model first (ollama pull tev1). Ollama's Python and JavaScript libraries can't run
decision models yet.
CLI (Ollama 0.40.4 or later): ollama run <model> takes the state after the model name or
on stdin, text or JSON. Each --ask is a yes/no question unless --choice labels (a
choice) or --level levels, lowest first (a score), follow it:
ollama run tev1 --ask "Is a refund being requested?" --format json < ticket.txt
ollama run tev1 --ask "Which team should handle this?" \
--choice billing="Payments and refunds" --choice technical="Software problems" \
--ask "How urgent is this?" --level Routine --level Soon --level Immediate \
--format json < ticket.txt
Use --format json for the full response with probabilities; without it each answer prints
as a rounded summary line. In JSON, answers are keyed q1, q2 and so on in --ask order
(by the question text before 0.40.6); use HTTP when you need your own keys.
HTTP:
curl -s http://127.0.0.1:11434/v1/systemone -H 'Content-Type: application/json' \
-d '{"model": "tev1", "state": "…", "questions": {…}}'
Send 1 to 64 questions per request; choice and score take 2 to 26 options. clef,
clef-flash, d3, d1, d1-omni, autotrust-jev:35b and autotrust-jev:27b-vl also take
base64 PNG, JPEG or WebP images in images, and d1-omni takes base64 audio such as WAV there
too. Ollama has no presets: copy a
preset's questions from ollaya://presets/<name> when Ollaya is installed, or write your own
(see "Presets" for what each one asks).
Use the Cloudflare API MCP tool post_accounts_ai_run (the generic Workers AI run endpoint). Pass
the account ID and a JSON string body that names the model and nests the decision request under
input:
{
"model": "@cf/cloudflare/clef-flash",
"input": {
"state": "Checkout has been failing for every customer for the last hour.",
"questions": {
"urgent": { "type": "noul", "instructions": "Is this support request urgent?" }
}
}
}
Do not use post_accounts_ai_run_by_model_name for Clef: it returns No route for that URI.
When the session is authorised for one account, account_id may be omitted; otherwise look it up
with the accounts tool first. Without the MCP, the same body works against
POST https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run with an API token that has
Workers AI access. Add images to input.images when the decision depends on visual content.
| Model | Use |
|---|---|
@cf/cloudflare/clef-flash (default) | Fast, the cheapest, strong on tool and intent decisions |
@cf/cloudflare/clef | Higher precision on fine-grained intent, out-of-scope detection, long or hallucination-sensitive states |
@cf/cloudflare/clef-omni | Audio and video in the state as well as text and images |
Prices, context windows and the free daily allocation change, so never quote them from memory:
look them up on each model's page (https://developers.cloudflare.com/workers-ai/models/<model>/)
and the Workers AI pricing page
before estimating a cost. Only input tokens are billed. The response reports
usage.input_tokens, so measure one real request and multiply rather than guessing. Answers sit
under result.answers. Workers AI has no presets: copy a preset's questions from
ollaya://presets/<name> or write your own. State data is sent to Cloudflare, so prefer a local
runtime for private content.
| Model | Strength | Speed (5 questions) |
|---|---|---|
winnow:e4b (recommended with an NVIDIA GPU) | The best accuracy for its speed: 0.722 on typed decisions (Jev: 0.738); calibrated | ~90 ms GPU, ~5 s CPU |
laya (default when model is omitted) | English and 100+ languages, routed automatically; calibrated; the fastest | ~10 ms GPU, ~0.2–0.4 s CPU |
coba | Ollaya's own: laya's network on Ettin encoders, distilled from pplx-decider; English only, states up to 512 tokens; calibrated. coba:400m (default) 0.591 on typed decisions, coba:1b 0.608; the -ternary tags (68m to 400m) also run in a browser | coba:400m ~25 ms GPU, ~0.9 s CPU |
sura | From Ollaya 0.18.0: Ollaya's own Qwen3.5 decoders distilled from pplx-decider, sura:2b (default) and sura:0.8b; every question in one pass; calibrated. Below decider on the same bases, so prefer decider unless you need one pass | not published |
kev | Qwen3.5 decoder with a pointer head, 0.8b to 9b (kev:9b 0.722); calibrated | kev:4b ~0.35 s GPU |
decider | Qwen3.5 decoders, 0.8b to 4b (decider:4b 0.680). From Ollaya 0.18.0 decider:2b and decider:4b answer yes/no at temperature 0.05, so noul answers are sharp and rarely land between 0.2 and 0.8 | ~0.2–0.5 s GPU, ~1 s CPU |
decider:2b-vision | Questions about an image as well as the state: one PNG in images (base64) on /api/decide, --image in the CLI | ~0.2 s GPU for a small image |
clm | Contrastive: embeds the state and each option (Qwen3-8B); questions and options are cached; for agent, game and tool-calling states | ~0.15 s GPU with cached questions |
nli | Zero-shot, good at yes/no with clear statements | ~20 ms GPU |
gliclass | Zero-shot, many options in one pass | ~15 ms GPU |
gliclass-v4 | From Ollaya 0.18.0: Knowledgator's GLiClass v4 (Qwen3.5 decoder with a label scorer), gliclass-v4:2b (default) and :9b; a score per label, calibrated; text only; states up to 8,192 tokens. Unrelated to gliclass beyond the name | not published |
decision | Decision 1.0 Eos: fully fine-tuned Qwen3.5-0.8B with an endpoint head; rows up to 16k tokens; calibrated | ~0.2 s GPU, ~0.85 s CPU |
qwen3guard | Safety guard; answers only its built-in questions (send no questions) | ~40 ms GPU, ~2 s CPU |
von | ModernBERT-large, every option scored at its own marker; states up to 8k tokens; calibrated | ~25 ms GPU, ~0.8 s CPU |
decima | Decima-base (mmBERT-base, 321M): options read against the state one by one, order never matters; calibrated; states up to 512 tokens. decima:agent for coding-agent gates, tool choice and knowledge-graph judgments (8,192-token states), decima:guard (or the faster decima:guard-small, both previews) for OWASP LLM Top 10 checks on prompts, tool results and replies (2,048-token states), decima:small for a CPU | ~15 ms GPU, ~0.45 s CPU (decima:small ~0.15 s) |
arbiter | Gemma 3 4B IT with a LoRA and a fixed 24-slot head; noul, choices of up to 16 options, scores of exactly 6 levels (other questions are rejected); about 8 GB | ~0.15 s GPU for three or more questions |
nimble | Bespoke Labs' Nimble (LoRA on Qwen3.5-9B): reads the whole request as a schema; calibrated; up to 255 options; needs a 24 GB GPU | ~2.3 s GPU |
strands-decider | Strands Agents' Strands Decider (LoRA and pointer head on Qwen3.5-2B base): one row per question, options scored at their own lines; calibrated per type; up to 255 options; about 8 GB | ~0.35 s GPU |
pplx-decider | Perplexity's pplx-decider-flash (Qwen3.5-4B): every question in one sequence, read at a marker after each; calibrated; up to 255 options; about 9 GB | ~0.29 s GPU |
jeeves | PostHog's Jeeves-9B v2 (no thinking): Qwen3.5-9B with a pointer head; 0.790 on typed decisions but underconfident there at the authors' temperature (top probabilities run low), so lower choice thresholds or check answers against a second model; needs a 24 GB GPU | ~0.84 s GPU |
d3 | Decision 3.0 from the vLLM Semantic Router contributors: Qwen3.5 fine-tunes, d3:edge, lite, nano, mini (default, 4B) and flash (9B), one pass per question; d3:mini 0.737 on typed decisions. Text only on Ollaya: images are not served | d3:mini ~0.2 s GPU, ~9.6 s CPU |
clef | Cloudflare's Clef-Flash: Qwen3.5-9B with a joint schema head, all questions in one pass; well calibrated without a temperature; needs a 24 GB GPU | ~0.53 s GPU |
jeb | Jebadiah (Qwen3.5 4b/9b, Qwen3.8 27b) on llama.cpp; per-type calibration | jeb:9b ~0.12 s GPU |
cygnet | Frozen Gemma 4 12B IT with Cygnet's letter prompt; 0.683 on typed decisions; calibrated; up to 20 options | ~0.2 s GPU |
Start with winnow:e4b on an NVIDIA GPU or laya without one, and escalate unclear answers as
described in "Choose a runtime".
The table lists Ollaya's models. Ollama's decision models are laya, tev1 (4B, or
tev1:0.8b), nimble (9B), clef-flash (9B), clef (27B), pplx-decider (27B), d3
(vLLM Semantic Router's, in 2B, 4B, 9B and 27B sizes) and Liquid AI's d1 (d1:2b, built on
LFM3) and d1-omni, which adds audio, and AutoTrust's autotrust-jev (9b, 35b and
27b-vl; the last two also read images); see
https://ollama.com/search?c=decision for the current list.
Built-in question sets, usable as preset (MCP), --preset (CLI):
triage: intent (refund, technical_help, billing_question, information, cancellation, other),
is_urgent, frustration (0–3), refund_requested, churn_risk. State: a customer message.email: category, is_spam, is_phishing, urgency, needs_reply. State: an email body.guard: jailbreak, prompt_injection, sensitive_data, harm_severity, topic. State: a prompt.moderation: toxic, harassment, threat, spam, severity. State: a post.router: difficulty, domain, needs_tools, is_sensitive. State: a request.agent: action (run, ask, block), on_task, risk (0–2), destructive. Reviews a command an
agent is about to run. State: the user's request and the command.decima-guard: injection, harmful, toxic, owasp (which OWASP LLM Top 10 risk, or none). Decima's
own guard questions, for decima:guard. State: plain text.decima-guard-web: attack (benign, suspicious, attack), attack_class (none, SQL injection,
XSS, command injection and other web attacks, as an ordinal choice). For Decima models only.
State: an HTTP request or other web input as plain text.A preset's instructions refer to a field (message, body, prompt, post, request, or
request and command). Pass the
state as an object with that field, or as a plain string.
Questions are an object keyed by an id you choose:
{
"team": {
"type": "choice",
"instructions": "Which team should handle `ticket`?",
"criteria": {
"billing": "invoices, charges, refunds, plans",
"engineering": "bugs, outages, errors, integrations",
"sales": "pricing, demos, upgrades",
"other": "anything else"
}
},
"urgency": {
"type": "score",
"instructions": "How urgent is `ticket`?",
"criteria": ["can wait", "this week", "today", "right now: an outage or a deadline"]
},
"wants_refund": {
"type": "noul",
"instructions": "Does the customer ask for their money back?"
}
}
Rules that make answers better:
criteria, make the options mutually
exclusive, and include a catch-all (other). Up to a few dozen options work. On Ollaya's
decima models a choice whose labels are in order (none, low, high) can add
"ordinal": true (2 to 10 labels); every other model rejects the request with a 422.legend.instructions (`ticket`) when the state is an object.type | Fields |
|---|---|
choice | choice, confidence (0–1), probabilities per option |
score | score (expected level), confidence, legend, probabilities per level |
noul | noul: the probability that the statement is true |
Act on the answer only when it is clear, and escalate otherwise:
choice: act when confidence ≥ 0.6; below that, treat the top two options as candidates or
ask a human.noul: treat ≥ 0.8 as yes and ≤ 0.2 as no; in between, escalate or look closer.score: compare score with your threshold and look at confidence before acting on it.Tune thresholds on a handful of real examples when the stakes are high. Say in your output which model answered and the probability behind each action, so a person can audit it.
triage preset, or your own team/urgency set.decide with {"model": "laya", "state": {"message": ticket_text}, "preset": "triage"},
on Ollama POST the triage questions to /v1/systemone, or on Workers AI call
post_accounts_ai_run with the triage questions under input.intent, flag is_urgent ≥ 0.8 or frustration ≥ 2, and send churn_risk ≥ 0.8 to
a retention queue. Put every ticket with a low-confidence intent in a "needs review" list.What SKILL.md sets; muted values are Claude Code's defaults
/timmo:decision-modelsfrom timmo
npx claudepluginhub timmo001/skills --plugin timmo55 skills in this plugin
/agentic-workflowsDesign, create, update, debug, audit, or upgrade GitHub Agentic Workflows with the `gh aw` extension. Use when work involves workflow Markdown, compiled `.lock.yml` files, agent engines, MCP tools, safe outputs, work queues, scheduled memory consolidation, local SDLC issue bootstrap, or `gh aw` commands./asking-questionsDecide when to ask the user a question and how to present it. Use before any clarifying question, choice, or confirmation, whether through the Plannotator Inbox or in chat, and to decide whether to hold questions until findings are presented or divert to grilling; do not use to run light or full grilling rounds./broRe-pitch the immediately preceding response with enough context to follow, using plain, concise, unambiguous language. Use ONLY when the user explicitly invokes /bro or says the previous response did not land.Other plugins' skills for the same job