Skip to content
System One

Shashank-H/pi-jev-context-curator

A pi agent extension that curates the context sent to the LLM before each call, using a one-question-per-unit Jev judgment to decide which prior messages are still needed.

Shashank-H/pi-jev-context-curator on GitHub

Stars
5
Forks
2
Language
TypeScript
License
MIT
Last push
23 Sep 2026

Read from GitHub on . Counts change daily.

How it uses Jev

export const TAG = "jev-context-curator";

export const DEFAULT_BASE_URL = "https://api.typesafe.ai";
export const DEFAULT_MODEL = "jev-latest";
export const DEFAULT_THRESHOLD = 0.5;
export const DEFAULT_MIN_TOKENS = 8000;
export const DEFAULT_FREQUENCY = 5;

/** Keep Jev's `state` comfortably under its 32k token cap. */
export const MAX_STATE_TOKENS = 28000;
/** Evidence per unit sent to Jev (chars, ~4 chars/token). */
export const MAX_UNIT_CHARS = 1500;
export const JEV_TIMEOUT_MS = 15000;

/** Jev pricing: $42 per billion input tokens; outputs are free. */

View in extensions/curator-jev/config.ts

Open on GitHub

PrimitivesNoul

More like this

Keep browsing