fuzzy-jev
llms.txt2 starsChanged 2 months agoMITView on GitHub
A client for OpenRouter's decision models, TypeSafe's Jev by default, on the decisions endpoint (https://openrouter.ai/api/alpha/decisions): ask typed questions about a state (text, images, or any JSON) and get probabilities back instead of prose, with a Choice between named options, a Score on an ordered scale of up to ten levels, or a Noul, the probability that something is true. Fuzzy rules (a TOML file) combine those answers with AND, OR, NOT and hedges into decisions and crisp amounts, and draw…
- Reads credentials
- Installs packages
The file
We split this llms.txt into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Every question sees the same state and is answered on its own, so ask them all in one call.
≈ “Common” is an estimate: at least 1 in 5 of the 4,067 llms.txt 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
# fuzzy-jev > A client for OpenRouter's decision models, TypeSafe's Jev by default, on the decisions endpoint (`https://openrouter.ai/api/alpha/decisions`): ask typed questions about a state (text, images, or any JSON) and get probabilities back instead of prose, with a Choice between named options, a Score on an ordered scale of up to ten levels, or a Noul, the probability that something is true. Fuzzy rules (a TOML file) combine those answers with AND, OR, NOT and hedges into decisions and crisp amounts, and draw themselves as SVG. It comes as the `jev` command, a Rust library (crate `fuzzy-jev`, imported as `jev`, which also builds for wasm32), and a Python package (`pip install fuzzy-jev`, `import jev`). Things to know before using it: - It needs an OpenRouter key in `OPENROUTER_API_KEY`. The default model is `~typesafe/jev-latest`, and any model on the endpoint works. `jev model list` (`Client::list_models` in Rust, `Client.list_models` in Python) prints every one OpenRouter offers now, with its context window, price, inputs and limits, live, with no key; no list of models is kept in jev. `nace-ai/drex-max` takes at most 16 questions a call, `parallel/decisions-fast:free` 100 and `morph/reflex` 128. `respan/span-01`, `respan/span-01-lite` and `respan/span-01-lite:free` answer yes/no (Noul) questions only, and read only about 3,000 tokens of a state, its start and end, skipping the middle without saying so. - A state can hold PNG or JPEG images: `--image PATH` on the command line, `image_part` in the library. Most models read them (`image` among a model's inputs in `jev model list`), and one found to read text only is refused them before any call. For several, repeat `-i` once per file, not `-i *.jpg`. Every question sees all of them, and a request takes 4 to 64 or more depending on the model. - Ollama runs decision models locally, such as `d1` and `d1-omni`, which read images: `jev --ollama -m d1 …` asks one at `http://localhost:11434/v1/systemone`, with no key (`jev::OLLAMA_URL`, `jev.OLLAMA_URL`). Any URL whose path is `/v1/systemone` is sent Ollama's shape, images beside the state as bare base64, so `-i` and `image_part` work there too. - Jev doesn't write, summarize or rewrite text. It only answers the questions you define. - Every question sees the same state and is answered on its own, so ask them all in one call. - The id a question is sent under is never shown to the model, so its instructions must say everything. - Choice and Score answers carry a `confidence` (0 to 1) as well as each option's or level's probability. Gate on it, and send unsure answers to a person. A Noul's probability is its whole answer. - A rules file's support score is the policy's, not a probability. An output's value says where the support lies, not how much there is. - Questions and rules files are checked before any call, so a mistake in them costs nothing. ## Docs - [README](https://raw.githubusercontent.com/dsaad68/fuzzy-jev/main/README.md): installing, the `jev` command and its flags, a first rules file, drawings, the Agent Skill, and the Rust library - [Rules guide](https://raw.githubusercontent.com/dsaad68/fuzzy-jev/main/docs/rules.md): the whole of `rules.toml`, including terms, operators and hedges, AND/OR choices, items and thresholds, outputs, every formula, output formats, errors, and an example worked by hand - [Python guide](https://raw.githubusercontent.com/dsaad68/fuzzy-jev/main/docs/python.md): `import jev`, covering the client, questions, the reply, rules, drawings, errors, threads and asyncio, and the API reference ## Examples - [Triage questions](https://raw.githubusercontent.com/dsaad68/fuzzy-jev/main/examples/rules/triage.json): a questions file (`jev -q`), with a Choice, two Scores and a Noul in the endpoint's JSON shape - [Triage questions in TOML](https://raw.githubusercontent.com/dsaad68/fuzzy-jev/main/examples/rules/triage.questions.toml): the same questions file written as TOML, a `[[question]]` table per question - [Triage rules](https://raw.githubusercontent.com/dsaad68/fuzzy-jev/main/examples/rules/triage.toml): hedges, parentheses, a weight, `probsum`, a threshold, items and an output together - [Weather rules](https://raw.githubusercontent.com/dsaad68/fuzzy-jev/main/examples/rules/wear.toml): items from Scores and a Noul with AND, OR and NOT - [Irrigation rules](https://raw.githubusercontent.com/dsaad68/fuzzy-jev/main/examples/rules/irrigation.toml): an output, a crisp amount from fuzzy sets - [Rust example](https://raw.githubusercontent.com/dsaad68/fuzzy-jev/main/examples/triage.rs): triage a support message with the library - [Python example](https://raw.githubusercontent.com/dsaad68/fuzzy-jev/main/python/examples/triage.py): ask the triage questions, evaluate the rules, and write `triage.svg` ## Agent Skills - [jev skill](https://raw.githubusercontent.com/dsaad68/fuzzy-jev/main/skills/jev/SKILL.md): when and how an agent with a shell should ask Jev through the `jev` command - [jev-tool skill](https://raw.githubusercontent.com/dsaad68/fuzzy-jev/main/skills/jev-tool/SKILL.md): the same for an agent whose jev is a JSON tool call ## Optional - [Python type stubs](https://raw.githubusercontent.com/dsaad68/fuzzy-jev/main/python/jev/_jev.pyi): every Python class, method and exception, with types - [Rust API on docs.rs](https://docs.rs/fuzzy-jev): `Client`, `Question`, `DecisionResponse`, and the `rules`, `spec` and `print` modules - [A reply](https://raw.githubusercontent.com/dsaad68/fuzzy-jev/main/tests/fixtures/decision.json): the endpoint's JSON for a Noul, a Choice and a Score, with usage - [TypeSafe's primitives](https://docs.typesafe.ai/primitives): the endpoint's own documentation of the question types
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.

