Context engineering

opencode-jev-compactor

@christian-taillon2TypeScriptMITupdated 2026-09-18runnable

Jev powered OpenCode compaction

christian-taillon/opencode-jev-compactor

Where it calls Jev

baseUrl: "https://api.typesafe.ai/v1/systemone",

src/plugin/options.ts:44

The link points at the commit we read, so the line number still holds.

What it asks Jev

These question sets are lifted from this project's source exactly as written.

from src/jev/compare.ts:43

  1. comparisonchoice

    Which of `left` or `right` better satisfies `criterion` in `context`? Choose tie when neither has a material advantage.

    • left`left` better satisfies the criterion.
    • right`right` better satisfies the criterion.
    • tieThey satisfy the criterion about equally, or state is insufficient to distinguish them.

Run it on your own text

The code
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    comparison: { type: 'choice', instructions: 'Which of `left` or `right` better satisfies `criterion` in `context`? Choose tie when neither has a material advantage.',
      criteria: { left: '`left` better satisfies the criterion.', right: '`right` better satisfies the criterion.', tie: 'They satisfy the criterion about equally, or state is insufficient to distinguish them.' } },
  },
});

Other projects in this category