Skip to content
System One

EliaAlberti/jev-rules

Uses Jev to pick which of your project's rules apply to a given prompt, so Claude only sees the relevant ones.

A vague prompt gets no rules. Then Claude edits a checkout file and the payments rule arrives, scored 0.97.
Image from github.com

EliaAlberti/jev-rules on GitHub

Stars
49
Forks
6
Language
JavaScript
License
MIT
Last push
22 Sep 2026

Read from GitHub on . Counts change daily.

How it uses Jev

export const BACKENDS = {
  typesafe: {
    url: "https://api.typesafe.ai/v1/systemone",
    model: "jev-latest",
    headers: (key) => ({ authorization: `Bearer ${key}`, "content-type": "application/json" }),
    encode: (state, questions) => ({
      state,
      model: "jev-latest",
      questions: Object.fromEntries(
        questions.map(({ id, instructions, criteria }) => [id, { type: "noul", instructions, ...(criteria && { criteria }) }]),
      ),
    }),
    decode: (json) => ({
      model: typeof json?.model === "string" ? json.model : "jev-latest",
      probabilities: mapAnswers(json?.answers, (a) => a?.noul),

View in plugins/jev-rules/hooks/lib/jev.mjs

Open on GitHub

More like this

Keep browsing