Skip to content

Install and use ​

A skycmd model is one .gguf file. You send it a state and typed questions, and it returns a probability for every allowed answer in one forward pass. The same JSON request works everywhere on this page: in the browser, in Node, Deno and Bun, in Python, on the command line and over HTTP.

The end-of-turn detector (s6-ear2-nano) and the tool router (s6-route) have their own APIs, TurnDetector and ToolRouter, in the WebAssembly modules: Use it for real shows how to call them, and which files fit a real project.

wherepackages1 (modern-bert)s2 and s3 (skycmd-s2)
browser, Denohttps://maxgfr.github.io/skycmd/lib/skycmd.jsyesyes
Node >= 18, Bunpackages/skycmd-js, built from sourceyesyes
Python >= 3.9crates/sky-py, built from sourceyesyes
command line, HTTP serverskycmd binary, built from source with cargoyesyes
llama.cpp llama-server, wllamaupstreamyesno
Ollama, LM Studioupstreamno: no /v1/systemone for this head (tested versions in docs/compat.md)no

Nothing is published to npm, PyPI or Homebrew, and there are no prebuilt binaries: outside the browser, build from this repository as shown below.

s2 and s3 models, including the default s3-pico, run only in the skycmd engine (browser, Node, Deno, Bun, Python, CLI and server). Only s1 files run in llama.cpp and wllama. Tested versions and numbers are in docs/compat.md.

Models ​

modelarchitectureparametersfileruns in
s3-pico (default)s3, ternary0.45Ms3-pico.gguf (251 KB)skycmd engine only
s1-picos1, f160.2Ms1-pico.gguf (545 KB)skycmd engine, llama.cpp, wllama
s2-nanos2, ternary1.5Ms2-nano.gguf (702 KB)skycmd engine only
s2-nano-dooms2, ternary1.5Ms2-nano-doom.gguf (702 KB)skycmd engine only
s4-micro (experimental)s2, ternary5.6Ms4-micro.gguf (2.4 MB)skycmd engine only
s5-liteiso, q8_017Ms5-lite.gguf (20.7 MB)skycmd engine only
s6-nano (games and free-text questions)s6, ternary, full depth1.5Ms6-nano.gguf (715 KB)skycmd engine only
s6-micro (games and free-text questions; second version, passed its gate on a second look after v1 failed, see results)s6, ternary, full depth5.6Ms6-micro.gguf (2.4 MB)skycmd engine only
s6-secrets-pico (secret detection on its synthetic bench, its four questions only; not a scanner: it flags 59.8% of clean real files at p ≥ 0.9, see results)s6, ternary, full depth445Ks6-secrets-pico.gguf (250 KB)skycmd engine only
s6-route (a tool from a run-time list; two files fused, passed its gate on fresh slates with a system defined after v2's test was read; it needs distinctive tool names, see results)the s6-route-nano file and potion-base-2M packed to 4 bits (MIT), ToolRouter5.6M + a static embeddings6-route-nano.gguf (2.4 MB) and s6-route-embed.gguf (1.3 MB)skycmd engine only (ToolRouter in WASM, sky-route fuse natively)
s6-ear2-nano (end of turn from the last 4 s of audio; passed its gate, and weaker on real conversations, see results)skycmd-turn, ternary1.3Ms6-ear2-nano.gguf (632 KB)skycmd engine only (TurnDetector in WASM, sky-turn natively)

Every model is also on Hugging Face with its model card and a demo Space that runs in the browser: s6-route, s6-ear2-nano, s6-nano, s6-micro, s6-secrets-pico, s5-lite, s4-micro, s3-pico, s1-pico, s2-nano and s2-nano-doom.

Failed their gates, published as results. These nine s6 models failed their pre-registered gates; each file is published as a result (owner's decision of 15/11/2026), not for use. The verdicts do not change, and each card opens with the failure and its numbers:

modelresultparametersfileruns in
s6-micro-v1 (games and free-text questions; the first version of s6-micro)failed its calibration guard: ECE 0.0821 against 0.08 (0.547 on typed_decisions_bench)5,587,201s6-micro-v1.gguf (2.4 MB)skycmd engine only
s6-ear-nano (audio: end of turn, keywords)failed three of its four gates: end of turn 0.5681 against 0.9263 for Smart Turn v3.21,532,449s6-ear-nano.gguf (899 KB)skycmd engine only (decideAudio)
s6-ear3-nano (s6-ear v3: end of turn, v2's graph trained again on real conversations)failed E1, E2 and E3: on eot-bench 0.2 s into each pause, AUC 0.7197 against v2's 0.7448 (at least +0.02 asked); Smart Turn's clips 0.8978 (A1 holds); designed after v2's eot-bench reading, its label cross-check amended after a look at five training sessions (disclosed)1,306,178s6-ear3-nano.gguf (632 KB)skycmd engine only (TurnDetector in WASM, sky-turn natively)
s6-cast-pico (forecasting)failed: nGMASE 0.9471 (bar 0.838), nWQL 0.6646 (bar 0.587) on GIFT-Eval369,792s6-cast-pico.gguf (143 KB)skycmd engine only (Forecaster)
s6-cast2-pico (forecasting, v2)failed: nGMASE 0.8847 (bar 0.838), nWQL 0.6190 (bar 0.587) on GIFT-Eval377,568s6-cast2-pico.gguf (149 KB)skycmd engine only (Forecaster)
s6-secrets-verify-pico (one rule candidate in its context)failed G1 on its every-repository reading: line F1 0.8561 against 0.7332 + 0.15; the six other gates held445,345s6-secrets-verify-pico.gguf (250 KB)skycmd engine only
s6-route-nano (a tool from a run-time list, with a BM25 line in its state)failed G1 against BM25 (0.8395 against 0.8500 on tools never seen in training) and G4 (38.9 ms per request in WASM against 2 ms)5,587,201s6-route-nano.gguf (2.4 MB)skycmd engine only
s6-route7-nano (s6-route v7: the same pair, its model part trained again on rebuilt data)failed G1 against BM25 on fresh tools of a new family (0.5610 against 0.5675), G2, G3 (ECE 0.1845 against 0.05) and G6 (0.1969 with the request hidden, against at most 0.1929)5,587,201 + a static embeddings6-route7-nano.gguf (2.4 MB) and s6-route7-embed.gguf (1.3 MB)skycmd engine only (ToolRouter)
s6-sleep3-nano (s6-nano with a fast-weight memory)failed H1 (sleep +0.0030 [−0.0010, +0.0068], a lower bound above 0 asked) and H2 (Flappy 15.87 against 71.05 for its control); its memory is used (recall +0.2452 over the control)1,611,505s6-sleep3-nano.gguf (752 KB) and its control s6-sleep3-nano-control.gguf (715 KB)skycmd engine only

On Hugging Face, each with a demo Space (every published model gets a Space, failed gates included: owner's decision of 17/11/2026): s6-micro-v1, s6-ear-nano, s6-cast-pico, s6-cast2-pico, s6-secrets-verify-pico (its demo proposes candidates with a simplified rule, not secretgate's engine), s6-route-nano (its demo runs the file alone; the file, fused with a static embedding, is the model part of s6-route, which passed its own gate, above), s6-sleep3-nano (with its control), s6-route7-nano and s6-ear3-nano (its demo is v2's microphone demo, on this file).

Next to s6-cast-pico and s6-cast2-pico, the Forecast page runs two reference forecasters, which are not ours and keep their own licenses:

modelruns infilelicense
TinyCast (146K params, ported to Rust)skycmd engine (Forecaster)tinycast.gguf (596 KB)Apache-2.0 (notice)
Timestral-5M (Mistral AI, exported to ONNX)onnxruntime-webtimestral-5m.onnx (21.3 MB)Modified MIT (license)

s3-pico plays the four games of the Play page at the oracle's level (chapter 21).

sh
curl -LO https://maxgfr.github.io/skycmd/models/s3-pico.gguf
curl -LO https://maxgfr.github.io/skycmd/models/s1-pico.gguf   # for llama.cpp or wllama

The request ​

This is the body of POST /v1/systemone, the same format as llama.cpp's System One server.

json
{
  "state": "vy 0 dx 36 up 9 dn 7 nxt 10 alt 32",
  "questions": {
    "action": {
      "type": "choice",
      "instructions": "Which input keeps the drone flying through the next gap?",
      "criteria": {
        "thrust": "fire the rotors for an upward impulse",
        "glide": "let gravity pull the drone down"
      }
    },
    "danger": {
      "type": "noul",
      "instructions": "Will the drone crash within the next half second if it keeps gliding?"
    },
    "margin": {
      "type": "score",
      "instructions": "How much room is left above and below the drone?",
      "criteria": ["none", "tight", "comfortable"]
    }
  }
}
  • choice: criteria maps option keys to descriptions (an empty description shows the key only).
  • score: criteria lists 2 to 10 levels, from lowest to highest.
  • noul: a yes/no question. criteria is optional: {"false": "...", "true": "..."}.

The response keeps the question order. This is s3-pico's answer (skycmd decide, rounded to 4 decimals):

json
{
  "model": "skycmd-s3-pico",
  "answers": {
    "action": {
      "type": "choice",
      "choice": "thrust",
      "probabilities": { "thrust": 0.5190, "glide": 0.4810 },
      "confidence": 0.0381,
      "exit": 3,
      "layers_used": 4
    },
    "danger": { "type": "noul", "noul": 0.0563, "exit": 0, "layers_used": 1 },
    "margin": {
      "type": "score",
      "score": 1.1346,
      "legend": { "0": "none", "1": "tight", "2": "comfortable" },
      "probabilities": { "0": 0.0436, "1": 0.7782, "2": 0.1782 },
      "confidence": 0.6673,
      "exit": 0,
      "layers_used": 1
    }
  },
  "usage": { "input_tokens": 164, "output_tokens": 0 }
}

choice is the most likely key, confidence = (pmax - 1/n) / (1 - 1/n), score is the expected level and noul is the probability of "yes". s2 and s3 models also report, for each answer, the early exit they took (exit, counted from 0) and the state layers it used (layers_used): here the two confident answers stopped after the first pass of s3-pico's looped block, and the close action call went to the last exit. s1 answers have neither field.

Browser ​

No install and no bundler: import the module from this site. The WebAssembly engine (about 0.7 MB, 0.3 MB gzipped, SIMD128) loads from the same folder.

html
<script type="module">
  import SkyCmd from "https://maxgfr.github.io/skycmd/lib/skycmd.js";

  const model = await SkyCmd.load("https://maxgfr.github.io/skycmd/models/s3-pico.gguf");
  const r = model.decide({
    state: "vy 0 dx 36 up 9 dn 7 nxt 10 alt 32",
    questions: {
      action: {
        type: "choice",
        instructions: "Which input keeps the drone flying through the next gap?",
        criteria: {
          thrust: "fire the rotors for an upward impulse",
          glide: "let gravity pull the drone down",
        },
      },
    },
  });
  console.log(r.answers.action.choice, r.answers.action.probabilities);
</script>

SkyCmd.load accepts a URL, a Response, a Blob (for example from a file input), an ArrayBuffer or a Uint8Array.

For a game loop, decideRaw skips the JSON and caches the question and option tokens (s2 and s3 models also cache their encoding), so only the state is processed on each frame. It takes rendered options ("key: description", or ["false: ...", "true: ..."] for noul) and returns their probabilities in order:

js
const [pThrust, pGlide] = model.decideRaw(
  "choice",
  "Which input keeps the drone flying through the next gap?",
  ["thrust: fire the rotors for an upward impulse", "glide: let gravity pull the drone down"],
  `vy ${vy} dx ${dx} up ${up} dn ${dn} nxt ${nxt} alt ${alt}`,
);

Node, Deno and Bun ​

Deno imports the browser module directly:

js
// deno run --allow-read --allow-net main.js
import SkyCmd from "https://maxgfr.github.io/skycmd/lib/skycmd.js";

const model = await SkyCmd.load("./s3-pico.gguf");
const r = model.decide({
  state: "alt 12 vy -3",
  questions: { climb: { type: "noul", instructions: "Should the drone climb now?" } },
});
console.log(r.answers.climb.noul);

Node and Bun need the package built from the repository (Rust and wasm-pack):

sh
git clone https://github.com/maxgfr/skycmd && cd skycmd/packages/skycmd-js
npm run build && npm pack                # writes skycmd-0.1.0.tgz
cd /your/project && npm install /path/to/skycmd-0.1.0.tgz

Then import SkyCmd from "skycmd" works as above, and a plain path is read from disk. The package is plain ESM with TypeScript declarations (DecisionRequest, DecisionResponse, Answer, ...). Bundlers (Vite, webpack, esbuild) pick up sky_infer_bg.wasm through new URL(..., import.meta.url); if yours does not, serve the file yourself and pass its URL: SkyCmd.load(model, { wasm: "/assets/sky_infer_bg.wasm" }).

Call model.free() when you are done with a model to release its WebAssembly memory.

Python ​

Build the wheel from the repository (needs Rust, and pip >= 21.3 or uv):

sh
pip install "skycmd @ git+https://github.com/maxgfr/skycmd#subdirectory=crates/sky-py"
python
import skycmd

model = skycmd.Model("s3-pico.gguf")      # a path, or the file content as bytes
r = model.decide({
    "state": "vy 0 dx 36 up 9 dn 7 nxt 10 alt 32",
    "questions": {
        "action": {
            "type": "choice",
            "instructions": "Which input keeps the drone flying through the next gap?",
            "criteria": {
                "thrust": "fire the rotors for an upward impulse",
                "glide": "let gravity pull the drone down",
            },
        },
        "margin": {
            "type": "score",
            "instructions": "How much room is left above and below the drone?",
            "criteria": ["none", "tight", "comfortable"],
        },
    },
})
print(r["answers"]["action"]["choice"], r["answers"]["margin"]["score"])

# rendered options in, probabilities out (fast path for loops)
p = model.decide_raw("noul", "Should the drone climb now?",
                     ["false: no, the statement does not hold", "true: yes, the statement holds"],
                     "alt 12 vy -3")

decide also takes the request as JSON text, and decide_json returns JSON text. Calls release the GIL, and one Model can be shared between threads.

Command line ​

sh
cargo install --git https://github.com/maxgfr/skycmd sky-serve   # installs the `skycmd` binary

Commands ​

sh
skycmd decide --model s3-pico.gguf --request req.json --pretty   # one request from a file
cat req.json | skycmd decide --model s3-pico.gguf -               # or from stdin
skycmd info s3-pico.gguf                                          # sizes, temperatures, exit thresholds (JSON)
skycmd bench s3-pico.gguf                                         # latency on a 3-question frame

HTTP server ​

sh
skycmd serve --model s3-pico.gguf --port 8080

It serves POST /v1/systemone, GET /health and GET /v1/models, with the same request and response as llama.cpp, so clients written for one work with the other. Options: --host (default 127.0.0.1), --threads N (one engine per worker), --no-cors (CORS is on by default so pages can call it).

sh
curl -s http://127.0.0.1:8080/v1/systemone -H 'Content-Type: application/json' -d '{
  "state": "vy 0 dx 36 up 9 dn 7 nxt 10 alt 32",
  "questions": {
    "danger": {
      "type": "noul",
      "instructions": "Will the drone crash within the next half second if it keeps gliding?",
      "criteria": {"false": "the drone stays in the gap", "true": "the drone hits a wall or the ground"}
    }
  }
}'

Errors use HTTP 400 with {"error": {"code": 400, "message": "...", "type": "invalid_request_error"}}.

llama.cpp, wllama, Ollama, LM Studio (s1 only) ​

s1 files use llama.cpp's modern-bert architecture with the laya decision head (PR #29818), so recent llama.cpp builds read them without conversion. s2 and s3 files (skycmd-s2: s3-pico, s2-nano, s2-nano-doom) do not run there: use s1-pico.gguf with these runtimes.

llama.cpp ​

sh
llama-server -m s1-pico.gguf -ngl 0 --port 8080
curl -s http://127.0.0.1:8080/v1/systemone -H 'Content-Type: application/json' -d @req.json

Probabilities match the skycmd engine within about 5e-4 (llama.cpp rounds activations to F16 on the CPU; measured on the s1-pico checkpoint published before the DAgger rounds, docs/compat.md). One difference: llama.cpp rejects a request whose state does not fit in the context (256 tokens), while skycmd cuts the state to fit, as the models were trained.

wllama (browser) ​

js
import { Wllama } from "@wllama/wllama";

const wllama = new Wllama({ default: "/path/to/@wllama/wllama/esm/wasm/wllama.wasm" });
await wllama.loadModelFromUrl("https://maxgfr.github.io/skycmd/models/s1-pico.gguf", {
  n_gpu_layers: 0,
  n_ctx: 256,
});
const r = await wllama.createSystemOne({
  state: "vy 0 dx 36 up 9 dn 7 nxt 10 alt 32",
  questions: {
    danger: {
      type: "noul",
      instructions: "Will the drone crash within the next half second if it keeps gliding?",
    },
  },
});

Tested with wllama 3.8.1 in Chrome. For a 0.5 MB model the skycmd package is a smaller download.

Ollama ​

Ollama 0.40.3 imports the file (ollama create with packaging/ollama/Modelfile) and lists the decision capability, but its /v1/systemone answers unsupported decision encoding "laya". Serve the file with skycmd serve or llama-server instead.

LM Studio ​

LM Studio can import the file (lms import --copy s1-pico.gguf), but its server has no /v1/systemone endpoint; see packaging/lmstudio.

Apache-2.0. Civil use only. No trackers, no cookies: scores stay in your browser.