afrouter-systemone
Skill8 starsChanged 3 months agoMITView on GitHub
Typed decisions through AFRouter /v1/systemone (TypeSafe Jev 1.13 Free). Use when the user wants classification, routing, scoring or urgency detection with probabilities instead of generated text.
- Reads credentials
- Sends data out
In this repository11 other files it gives its agents.
- open-sse/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- afrouter-chatSkill
- afrouter-embeddingsSkill
- afrouter-imageSkill
- afrouterSkill
- afrouter-sttSkill
- afrouter-ttsSkill
- afrouter-videoSkill
- afrouter-web-fetchSkill
- afrouter-web-searchSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Call that id directly. GET /v1/models groups by saved connections, and opencode is a no-auth provider with no connection, so the catalog …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AFRouter — System One decisions (Jev 1.13 Free)
Auth: send Authorization: Bearer $AFROUTER_KEY (required unless the gateway has requireApiKey off). Setup: https://raw.githubusercontent.com/AFG473319/AFRouter/refs/heads/master/skills/afrouter/SKILL.md
BASE="${AFROUTER_URL:-http://localhost:20128}"Jev is a decisions-only model: it evaluates typed questions against a state and returns probabilities rather than generated text.
Discover
The model id is fixed: oc/jev-1.13-free. oc is the alias of the opencode provider, so opencode/jev-1.13-free is the same model. It runs on AFRouter's no-auth OpenCode provider, so it needs no OpenCode account and no credits.
Call that id directly. GET /v1/models groups by saved connections, and opencode is a no-auth provider with no connection, so the catalog omits it whenever the instance has any other provider connected.
/v1/models/info reports endpoint: /v1/chat/completions for Jev because it defaults to the LLM kind. Jev's real endpoint is /v1/systemone, as shown below.
Endpoint
POST $BASE/v1/systemone — model id oc/jev-1.13-free
Examples
curl -X POST $BASE/v1/systemone \
-H "Authorization: Bearer $AFROUTER_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"oc/jev-1.13-free","state":"Hi, my payouts have been failing for 3 days. Please help ASAP.","questions":{"is_urgent":{"type":"noul","instructions":"Does this convey urgency?"}}}'Full request with all three question types:
{
"model": "oc/jev-1.13-free",
"state": "Hi, my payouts have been failing for 3 days. Please help ASAP.",
"questions": {
"is_urgent": { "type": "noul", "instructions": "Does this convey urgency?" },
"department": { "type": "choice", "instructions": "Which team should handle this?",
"criteria": { "billing": "Payments, invoicing, refunds",
"technical": "Bugs, outages, integrations",
"sales": "Pricing, upgrades, new accounts" } },
"frustration": { "type": "score", "instructions": "How frustrated is the customer?",
"criteria": ["Calm", "Frustrated", "Very angry"] }
}
}Rules (gateway validates before forwarding): state (string/object/array) and at least one question are required; choice needs a non-empty criteria map (max 255 options); score needs a criteria array of 2–10 ordered levels. All questions in one call are evaluated in parallel against the same state.
JS:
const r = await fetch(`${process.env.AFROUTER_URL || "http://localhost:20128"}/v1/systemone`, {
method: "POST",
headers: { "Authorization": `Bearer ${process.env.AFROUTER_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
model: "oc/jev-1.13-free",
state: "Hi, my payouts have been failing for 3 days. Please help ASAP.",
questions: { is_urgent: { type: "noul", instructions: "Does this convey urgency?" } },
}),
});
const { answers } = await r.json();
console.log(answers.is_urgent.noul); // 0..1 probability of yesResponse shape
{ "model": "jev-1.13-free",
"answers": {
"department": { "type": "choice", "choice": "technical", "confidence": 0.73,
"probabilities": { "technical": 0.82, "billing": 0.18, "sales": 0 } },
"frustration": { "type": "score", "score": 1, "confidence": 1,
"legend": { "0": "Calm", "1": "Frustrated", "2": "Very angry" },
"probabilities": { "0": 0, "1": 1, "2": 0 } },
"is_urgent": { "type": "noul", "noul": 1 } },
"usage": { "input_tokens": 425, "output_tokens": 73 }, "cost": "0" }choice/score also return confidence (0–1, derived from the distribution); noul returns a 0 (no) → 1 (yes) probability. Free tier: cost: "0".
Provider quirks
| Provider | model format | Notes |
opencode (oc) | jev-1.13-free | Free, no-auth, served by the AFRouter gateway — no OpenCode account needed |
opencode-go (ocg) | — | Carries no System One model |
Jev ids route to https://opencode.ai/zen/v1/systemone; the request body is passed through untouched (no chat translation).
Errors
400validation text (missingstate/questions, bad question type, badcriteria) — fix the body and retry.400 Model <x> is not a System One model— you sent a chat model here; use/v1/chat/completionsfor it.400on/v1/chat/completionsnaming a System One model — switch to/v1/systemoneas shown above.401 Missing API key— auth is on by default; sendAuthorization: Bearer $AFROUTER_KEY.503 All accounts unavailable— upstream accounts exhausted; wait or add another provider account.
Upstream reference: https://docs.typesafe.ai/api
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

