Skip to content

Jev directory

Jevlang — sumanmichael

Python with a smart if: .jev files add the ~ question operator and jev/case blocks that Jev answers with a number or a label, never text. Files are rewritten to plain Python at import time; every ~ is one paid TypeSafe API call.
Stars
5
Language
Python
License
MIT
Reading time
3 min
Published by
Community
Author
sumanmichael
Last verified
Oct 2026

sumanmichael/jevlang

User repository on GitHub

View on GitHub

The simplest way to write decision workflows in Python. Python with a smart if.

Forks
0
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.

Highlights

  • if ticket ~ "the customer wants a refund": fires at probability 0.5 or above; import jevlang installs an import hook so .jev files load like modules.
  • No new interpreter: .jev files are rewritten to Python at import time, and a .py file shadows a same-named .jev file, so the hook cannot hijack a module.
  • Callers receive float and string subclasses carrying .probs and friends, so the rest of your codebase never needs to know jevlang exists.
  • python -m jevlang hello.jev runs a file; python -m jevlang --show prints the plain Python it becomes without making an API call.
  • The README lists four things to know first: every ~ is a paid API call, the value left of ~ is what gets sent, and answers are probabilities, not facts.

Quickstart

bash
pip install jevlang
export TYPESAFE_API_KEY=...

Watch out

Copy reviewed against the repo README on 2026-10-15; the captured text is truncated inside the agent-skill section. The author labels jevlang a prototype - tested and working, with limits listed in the README - and branches that matter need guards because answers are probabilities.

Questions about this entry

Short answers drawn from the linked project or page.

Other listings of this project

Forks and copies of this project in the directory. This entry is the canonical one.

1GitHub stars
A policy engine for LLM decisions: declare routes, gates and actions once in TypeScript or Python and every decision comes back validated, explainable, replayable and audited. The model answers only declared questions — application code owns the branch.
Jev Repos & SDKs#community#catalog-import#logicrw

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai