Make decisions readable. A focused Rust CLI and local console for System One models.
Rone (Rust One) connects System One decision models — Clef, Laya, Jev and compatible endpoints — to command-line workflows. Send a state and typed questions; get structured choices and probabilities back.
Project status: the CLI, MCP server, deterministic mock server and embedded web console are implemented. The console manages profiles, presets and test requests (
rone serve).
Install the latest release:
curl -fsSL https://raw.githubusercontent.com/oteissonniere/rone/main/scripts/install.sh | shRun a preset against a ticket, then start the local web console if you want to manage profiles and presets in a browser:
rone ask --preset triage --text "I was billed twice, please refund the duplicate."
rone serveSee Installation for Homebrew, source builds, platform support and version-pinning options.
System One models don't write prose. Give them a state and typed questions, and they return probabilities for the allowed answers. That makes them useful for routing, triage and guardrails, though their JSON requests can be verbose.
Rone handles that request shape. Define questions once in a preset, choose an
endpoint profile, then send the input you want to evaluate. The request stays
inspectable with --dry-run; the result is readable in a terminal or
available as JSON for scripts.
Prebuilt binaries are published as GitHub release assets for four targets:
| Platform | Target triple | Notes |
|---|---|---|
| macOS, Apple Silicon (arm64) | aarch64-apple-darwin |
verified end-to-end via the installer script and Homebrew |
| macOS, Intel (x86_64) | x86_64-apple-darwin |
built and published by the release CI |
| Linux x86_64 (glibc) | x86_64-unknown-linux-gnu |
any 64-bit glibc distro: Debian, Ubuntu, Fedora, RHEL, Arch, ... |
| Linux ARM 64-bit (aarch64/arm64, glibc) | aarch64-unknown-linux-gnu |
needs a 64-bit OS — verified on Raspberry Pi with the standard 64-bit image |
Prebuilt binaries do not cover musl-based distros (Alpine), 32-bit systems or Windows. Building from source works anywhere Rust and its dependencies build; macOS and Linux are exercised in CI, other platforms are best-effort.
The same command installs on every platform above — the script detects your
system (uname -s / uname -m), downloads the matching tarball from the
latest GitHub Release, verifies its SHA-256 checksum and installs it into
~/.local/share/rone/<version>/ with a symlink in ~/.local/bin. The six
bundled presets come along next to the binary. No root needed: everything
stays inside your home directory. Requirements are sh, curl, tar and a
SHA-256 tool (sha256sum on Linux, shasum on macOS), all present by
default. The repository must be public on GitHub for this to work (the
script reads it from raw.githubusercontent.com and downloads release assets
unauthenticated):
The quick install command is in Quick start.
macOS: the download goes through curl, so the binary is not flagged with
Apple's "quarantine" attribute — no Gatekeeper approval step after
installing. If ~/.local/bin is not on your PATH (the installer tells you),
add this to your shell rc:
export PATH="$HOME/.local/bin:$PATH"Linux ARM: make sure the OS itself is 64-bit — uname -m must print
aarch64. On a Raspberry Pi that means the standard 64-bit Raspberry Pi
OS, not the legacy 32-bit one.
Options — pin an exact version instead of latest, or preview without installing:
curl -fsSL https://raw.githubusercontent.com/oteissonniere/rone/main/scripts/install.sh | sh -s -- 0.2.0 # install v0.2.0 exactly
curl -fsSL https://raw.githubusercontent.com/oteissonniere/rone/main/scripts/install.sh | sh -s -- --dry-run # show what would be done, then exitA --dry-run with a pinned version works fully offline (no GitHub API
call); online it resolves which release it would install.
Re-running the installer upgrades in place: the new version lands in
~/.local/share/rone/v<version>/, the ~/.local/bin/rone symlink is
repointed at it, and previously installed version directories are removed —
only one version is kept on disk.
On macOS you can also install rone from the project's Homebrew tap. The formula packages the same prebuilt release binaries published on GitHub:
brew tap oteissonniere/rone
brew trust oteissonniere/rone # first time only; Homebrew warns about external taps
brew install roneHomebrew installs the binary into <prefix>/Cellar/rone/<version>/bin/
(<prefix> is /opt/homebrew on Apple Silicon, /usr/local on Intel) and
links it as rone in <prefix>/bin, which is already on your PATH. Your
config, API keys and personal presets in ~/.config/rone/ work exactly as
with the other installs.
Rone is a single binary built with Rust (requires a Rust toolchain, e.g. via rustup). From a checkout of this repo:
cargo install --path . # installs rone (and mock_server) into ~/.cargo/binor build it in place:
cargo build --release # binary in target/release/ronerone upgrade detects how rone itself was installed (it resolves the
executable's symlinks, so a linked binary still finds its real location) and
does the right thing:
-
installer script — first checks the latest published release on GitHub: if rone is already up to date, it stops there with a "nothing to do" message. Otherwise it re-runs
scripts/install.sh: the latest release lands in~/.local/share/rone/v<version>/, the symlink is repointed and older version directories are removed (if the check cannot be done without network, it proceeds with the installer anyway); -
Homebrew — rone does not touch brew's installs, it only prints the command to run:
brew upgrade rone
Without the subcommand: re-run the one-liner from above (script install) or
brew upgrade rone (Homebrew).
An installer-based install touches exactly two things — the version directory
under ~/.local/share/rone/ and the symlink in ~/.local/bin. Your config,
API keys and personal presets in ~/.config/rone/ are untouched:
rm ~/.local/bin/rone # remove the symlink
rm -rf ~/.local/share/rone/v0.2.0 # remove one version (adjust the name)
# or everything installed by rone:
rm -rf ~/.local/share/roneRemove ~/.config/rone/ as well if you no longer want your local config and
personal presets. For a Homebrew install:
brew uninstall rone # remove rone (your ~/.config/rone stays)
brew untap oteissonniere/rone # optional: drop the tap tooFor a from-source install:
rm ~/.cargo/bin/rone ~/.cargo/bin/mock_serverSystem One models answer constrained questions in a single forward pass, with no text generation. Questions come in three types:
choice: pick exactly one option from a listscore: rate something on a scalenoul: a yes/no probability
Most implementations follow the request shape popularised by TypeSafe's Jev
(POST /v1/systemone): a model name, a state, and a map of questions,
answered with answers keyed by question id.
A raw request looks roughly like this:
{
"model": "laya",
"state": "I was billed twice, please refund the duplicate.",
"questions": {
"department": {
"type": "choice",
"instructions": "Who should handle this?",
"criteria": {
"billing": "billing issues",
"technical": "technical issues",
"sales": "sales issues"
}
}
}
}Note: the endpoint expects
criteriato be an object (option → description), not an array. This was verified against a live server.
The response is keyed by question id, with the shape below (verified against a live endpoint):
{
"answers": {
"department": {
"type": "choice",
"choice": "billing",
"confidence": 0.954,
"probabilities": {
"billing": 0.970,
"technical": 0.022,
"sales": 0.008
}
},
"needs_human": {
"type": "noul",
"noul": 0.344
}
}
}- Talk to any
/v1/systemone-compatible endpoint (LM Studio or another local server, a self-hosted gateway, a hosted API), with a configurable base URL. - Reusable presets: describe your questions once in a small config file, then reuse them by name.
- Composable presets:
--preset a,bmerges the question sets of several presets into a single request, so guardrails can be chained (triage + compliance, triage + severity, ...). - Parametrizable input: text from an argument, a file or stdin, plus variables injected into the question text.
- Readable output: a table of options with their probabilities, and a
--jsonmode for scripts. - Side-by-side comparison:
--profile a,bsends the same preset to several servers/models at once and renders their answers side by side. - Helpful validation: catch common mistakes before sending (empty option
lists, too many options in one
choicequestion, low confidence), with clear messages instead of raw server errors. - Offline debugging:
--dry-runprints the exact request that would be sent, without any network call.
- Working CLI (
src/main.rs):rone askbuilt onclap, withtokio/reqwestfor the HTTP call andserde/serde_json/tomlfor (de)serialization. - Library (
src/lib.rs): preset parsing, validation, request building, answer extraction and rendering are exposed as a public Rust API in the sameronecrate; the binary is a thin CLI on top of it, with no HTTP in the library. - Presets: reusable question sets loaded from
presets/<name>.toml(seepresets/triage.toml,presets/severity.toml,presets/escalation.toml,presets/intent.toml,presets/sentiment.tomlandpresets/compliance.toml);rone list-presetsshows the available presets. Presets resolve from thepresets/directory of the working directory, then from the user config directory (~/.config/rone/presets, honoringXDG_CONFIG_HOME), then frompresets/next to theroneexecutable (so an installed binary finds its presets). - Composable presets:
--preset a,b(inask) merges the questions of several presets into one/v1/systemonerequest. A question id defined in several presets is accepted only when the definitions are identical (the same question, deduplicated); conflicting definitions are a clear error. - Option descriptions: an optional
criteriatable in a preset describes eachchoiceoption; without one, the option name is its own description. - Parametrizable input: text from
--text,--file, or stdin. - Request building: sends a
/v1/systemonerequest withcriteriaas an object (option → description), as the endpoint expects. - Readable output: a probability table (
*marks the chosen option) and a--jsonmode for scripts. Text output is colored on a terminal (bold ids, green/yellow/red magnitudes); piping disables colors,--no-colorforces them off, and theNO_COLORenvironment variable is honored. - Request latency: in text mode, the duration of each request is shown
under the answer table (
elapsed: 842 ms, seconds above 1 s); in batch mode one line per input plus atotal:line for the whole run. - Validation: rejects empty
choiceoption lists and criteria entries for unknown options, and warns when a singlechoicequestion has many options. - Confidence threshold:
--min-confidenceaccepts answers only when the model is confident enough; below the threshold it warns and exits with code 3, so scripts can act conditionally. - Variables:
--var NAME=VALUE(repeatable) injects values into question instructions via{{name}}placeholders; an unknown placeholder is a clear error before anything is sent. - Dry run:
--dry-runprints the endpoint URL and the exact request body (after preset, variable and profile resolution) without sending it; in comparison mode one block is printed per profile. - Batch mode:
rone batchruns the same preset over many inputs (one state per line, from--fileor stdin);--jsonemits an array of{"input", "answers"}objects for scripts. - Eval mode:
rone evalruns a preset over a labeled dataset (a JSON array of{"input", "expected"}objects, from--fileor stdin) and reports per-question accuracy plus the list of misses, so you can check how a preset/model pair behaves before relying on it;--jsonemits the same report as a JSON object for scripts. - Profiles: a config file (
rone.toml) defines named server/model profiles (base_url,model,min_confidence,api_key,timeout); pick one with--profile(or theRONE_PROFILEenvironment variable) or set adefault_profile. Command-line flags override the profile.rone list-profilesshows the profiles of the loaded config file (the default is marked with*; literalapi_keyvalues are hidden,env:VARreferences are shown). Passing a comma-separated list (--profile a,b) sends the same preset to each listed profile and renders their answers side by side, one labeled block per profile; JSON mode emits an array of{profile, model, answers}objects. - MCP server mode:
rone mcpserves the presets as MCP tools over stdio (list_presets,list_profiles,ask,batch), so AI agents can call them; tool calls accept the same profiles as the CLI commands (via aprofileargument or theRONE_PROFILEenvironment variable). - Model listing:
rone modelsqueries the/modelsendpoint of the selected profile (or--base-url) and lists the available models, one per line (bold id, name and description when the server sends them); the profile'sapi_keyandtimeoutare honored. - Self-upgrade:
rone upgradedetects how rone itself was installed (installer script or Homebrew) by resolving the executable's symlinks; for a script install it re-runsscripts/install.shfrom GitHub, for a brew install it printsbrew upgrade ronewithout touching brew's installs. - Mock server (
src/bin/mock_server.rs): a local/v1/systemone-compatible endpoint with deterministic answers (a pure function of the input), so the CLI can be exercised end to end without an inference server; the integration tests intests/run against it. - Examples: sample tickets in
examples/tickets.txtfor batch mode, and a sample labeled dataset inexamples/evals/triage.jsonfor eval mode. - Verified against a live
/v1/systemoneendpoint (LM Studio).
- Publish on crates.io
- First-class example of a multi-question preset with
--varvariables
Illustrative only; names and flags may change.
# presets/triage.toml
[questions.department]
type = "choice"
instructions = "Who should handle this?"
options = ["billing", "technical", "sales"]
[questions.department.criteria]
# optional: describe each option for the model
billing = "billing issues"
technical = "technical issues"
sales = "sales issues"
[questions.needs_human]
type = "noul"
instructions = "A human must handle this."# one-off question
rone ask --preset triage --text "I was billed twice, please refund"
# merge several presets into a single request (e.g. triage + compliance guardrail)
rone ask --preset triage,compliance --text "I was billed twice, please refund"
# list the presets available in presets/
rone list-presets
# list the models served by a profile
rone models --profile local
# from a file or stdin, against a specific endpoint
cat ticket.txt | rone ask --preset triage --base-url http://localhost:1234/v1
# machine-readable output
rone ask --preset triage --file ticket.txt --json
# plain output, no colors even on a terminal
rone ask --preset triage --text "I was billed twice" --no-color
# act only when the model is confident enough (exit code 3 otherwise)
rone ask --preset triage --text "I was billed twice" --min-confidence 0.9
# compare two profiles (two servers/models) side by side
rone ask --preset triage --text "I was billed twice" --profile local,production
# inject variables into question instructions ({{name}} placeholders in the preset)
rone ask --preset triage --text "I was billed twice" --var team=support --var lang=fr
# show the exact request that would be sent, without sending it
rone ask --preset triage --text "I was billed twice" --dry-run
# many inputs at once: one state per line, from a file or stdin
rone batch --preset triage --file examples/tickets.txt
cat examples/tickets.txt | rone batch --preset triage --json
# evaluate a preset over a labeled dataset (a JSON array of {"input", "expected"})
rone eval --preset triage --file examples/evals/triage.json
rone eval --preset triage --file examples/evals/triage.json --json
# upgrade rone itself: re-runs the installer script when installed with it,
# prints `brew upgrade rone` for a Homebrew install
rone upgradeRone reads an optional TOML config file to define named profiles — a
base_url, a model, and optional min_confidence, api_key and
timeout bundled together. The first existing file in this order is used:
--config <path>(explicit)$RONE_CONFIG./rone.toml(current directory)~/.config/rone/rone.toml(or$XDG_CONFIG_HOME/rone/rone.toml)
If none exists, rone uses its built-in defaults (http://localhost:1234/v1,
model laya).
# rone.toml
default_profile = "local"
[profiles.local]
base_url = "http://localhost:1234/v1"
model = "laya"
min_confidence = 0.8
[profiles.production]
base_url = "https://api.example.com/v1"
model = "laya-2"
# Bearer token; "env:VAR" reads it from the environment
api_key = "env:RONE_API_KEY"
# request timeout in seconds
timeout = 30Pick a profile with --profile, or set the RONE_PROFILE environment
variable; without either, default_profile is used (and without that, the
built-in defaults). An explicit --profile flag wins over the environment
variable, and explicit flags always win over the profile. A comma-separated
list (--profile a,b) compares the listed profiles side by side:
# use the "production" profile
rone ask --preset triage --profile production --text "I was billed twice"
# the profile sets base_url/model, but a flag overrides it
rone ask --preset triage --profile local --model laya-2 --text "..."
# point at a specific config file
rone ask --preset triage --config ./ci.rone.toml --profile production --text "..."
# list the profiles of the loaded config file
rone list-profilesapi_key accepts a literal token or an env:VAR reference, resolved from
the environment when the profile is used, so the secret stays out of the
file. timeout is a number of seconds. Both can be overridden on the
command line with --api-key and --timeout.
See config.example.toml for a full annotated example.
rone mcp runs rone as a Model Context Protocol (MCP) server over stdio, so
an AI agent that speaks MCP (Claude Desktop, Cursor, or any client able to
launch and talk to a local process) can use your System One decision models:
it discovers the available presets, asks one state through a preset, or
batch-processes many — without you writing JSON requests by hand.
How it works:
- Transport is JSON-RPC 2.0 with one message per line on stdin/stdout; all logging goes to stderr so it can never corrupt the protocol stream.
- Supported protocol versions:
2025-06-18,2025-03-26and2024-11-05. - A failed call does not crash the server: errors come back as a normal tool
result flagged with
isError: trueplus a readable message, so an agent can react to them.
Four tools are exposed:
| Tool | Required arguments | Optional arguments |
|---|---|---|
list_presets |
— | — |
list_profiles |
— | — |
ask |
preset, state (the input text to analyze) |
vars, min_confidence, model, base_url, profile, json |
batch |
preset, states (an array of strings, or one state per line in a single string) |
same as ask |
Optional arguments:
vars: an object of strings substituted for the preset's{{name}}placeholders.min_confidence(0..1): when any answer falls below it, the call is flaggedisErrorand prefixed with a per-answer warning — the answers themselves are still returned, so the agent can decide what to do with them.model/base_url: override the profile's model and base_url for that call only.profile: a profile name fromrone.toml; it provides the call withbase_url,model,min_confidence,api_keyandtimeout.json: true: machine-readable JSON instead of the rendered table.
Endpoint resolution in MCP mode follows the same rules as the CLI commands.
For each call, the target is resolved from, in order: the profile argument,
then the RONE_PROFILE environment variable, then the config file's
default_profile, then the built-in defaults (model laya at
http://localhost:1234/v1). Per-call model, base_url and
min_confidence arguments override the profile's values for that call; only
the profile can carry an api_key and a request timeout. If your model
lives elsewhere, define a profile in rone.toml (or pass RONE_PROFILE)
and reference it per call:
{
"name": "ask",
"arguments": {
"preset": "triage",
"state": "I was billed twice",
"profile": "inference"
}
}An unknown profile name is a readable isError result telling you no
rone.toml was found — not a crash.
Client configuration (Claude Desktop, Cursor or any MCP client) — the server
is a local command, so command must resolve to your installed binary; use
the absolute path (~/.local/bin/rone) if it is not on the client's PATH:
{
"mcpServers": {
"rone": {
"command": "rone",
"args": ["mcp"]
}
}
}Presets resolve from the preset search chain: the presets/ directory of
the working directory the server is started in, then the user config
directory (~/.config/rone/presets), then presets/ next to the rone
executable (so an installed binary always finds its bundled presets). Desktop
clients usually start rone from an unknown working directory, so if you want
your own presets served through MCP, put them in ~/.config/rone/presets/ —
they will be found regardless of where the client launches the server.
A small /v1/systemone-compatible server (src/bin/mock_server.rs) answers
with deterministic, pseudo-random values generated from the input (FNV-1a),
so the full CLI path — request, network, rendering, exit codes — can be
exercised without an inference server:
cargo run --bin mock_server # http://127.0.0.1:8123
RONE_MOCK_PORT=9000 cargo run --bin mock_server # another portThen point the CLI at it:
rone ask --preset triage --text "I was billed twice" \
--base-url http://127.0.0.1:8123/v1 --model mock
rone batch --preset triage --file examples/tickets.txt \
--base-url http://127.0.0.1:8123/v1 --model mock
rone eval --preset triage --file examples/evals/triage.json \
--base-url http://127.0.0.1:8123/v1 --model mockAnswers are a pure function of the input: the same state and questions always
produce the same answers. choice answers carry a confidence between 0.85
and 0.99, noul answers a probability between 0.10 and 0.899, and score
answers a score on the default 1..5 scale — so both sides of a
--min-confidence threshold are reachable. The integration tests in
tests/mock_integration.rs pin the exact values.
rone serve starts an embedded web console (src/serve.rs) backing the
/v1/systemone API — a dashboard, a preset/profile editor and a test lab:
rone serve # http://127.0.0.1:8123
rone serve --host 0.0.0.0 --token t # non-loopback (token required)- Binds
127.0.0.1:8123by default;--hostand--portchange the bind. - On a non-loopback address,
--token(orRONE_SERVE_TOKEN) is required; without one rone refuses to start. On loopback, access is open. - On API routes, the token (if set) is required as
Authorization: Beareror via the HttpOnlyrone_tokencookie set byPOST /api/login.
The console shows the active config and presets (GET /api/state), profiles
(GET /api/profiles) and presets (GET /api/presets, GET /api/presets/{name}),
edits profiles and presets (POST /api/profiles, DELETE /api/profiles/{name},
POST /api/presets, DELETE /api/presets/{name}) and runs a test request
through the same chain as rone ask (POST /api/test, with dry_run and
latency); results respect min_confidence with a 200 + warning body below
threshold, 404 for an unknown preset, and 400/502 for invalid input and
an unreachable endpoint. POST /api/logout clears the login cookie.
Writes go to the user config location only — ~/.config/rone/rone.toml for
profiles and ~/.config/rone/presets/ for presets — never to the versioned
repository files. Presets bundled with rone are read-only in the editor (a
copy in the user directory shadows them).
Rone is not the first tool around System One models. Related work:
- Laya: the open non-autoregressive decision model
laya-decision: a pure-Rust port of Laya that runs inference on candlejigor-cli: a Rust CLI and HTTP gateway for several System One modelsopendecider: Python server and client, Jev-compatible, including LM Studio setups- Cloudflare Clef and TypeSafe Jev: the models and API this protocol comes from
Rone does not run models itself. It focuses on the client side: making the request and the result easy for humans to work with.
- Calibration varies by model and task; treat probabilities as signals, not guarantees.
- Questions with many options in a single
choicecan degrade results. - Support for the
/v1/systemoneendpoint depends on your inference server and model format. Check your server's documentation.
scripts/release.sh builds the release binary and packages it with its
presets and docs into a self-contained tarball:
./scripts/release.sh # for this machine's architecture
./scripts/release.sh x86_64-unknown-linux-gnu # or an explicit target tripleIt writes dist/rone-v<version>-<target>.tar.gz (extract to any directory,
run rone/ — the presets bundled next to it are picked up automatically) and a
.sha256 sidecar:
cd dist && shasum -a 256 -c rone-v0.1.0-aarch64-apple-darwin.tar.gz.sha256
# (or sha256sum -c on Linux)On GitHub, pushing a tag matching the Cargo.toml version (git push origin v0.1.0) triggers .github/workflows/release.yml, which builds every
supported target — macOS arm64/x86_64 and Linux x86_64/arm64 — and publishes
a GitHub Release with each tarball plus its .sha256 sidecar as assets.
Ideas, issues and pull requests are welcome.
Development loop — the same checks CI runs on every push and pull request:
cargo fmt && cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo testA few conventions:
- Presets live in
presets/<name>.toml, one file per use case;rone list-presetspicks them up from the working directory. - Profiles belong in a local
rone.toml(gitignored);config.example.tomlis the annotated reference for the format. - Integration tests in
tests/run against the bundled mock server (src/bin/mock_server.rs), so no inference server is needed to verify a change.
MIT. See LICENSE.
Rone is an independent project and is not affiliated with TypeSafe, Cloudflare, Convai or any model author mentioned above.
Rone uses forest ink #172A24, mist ivory #F3F4ED and decision lime
#D7F36B. The identity guide documents the logo,
palette and usage; the wordmark is available as SVG.