Agent tooling

jev-belay

@valentynkit9JavaScriptMITupdated 2026-09-19runnable

Claude Code Stop hook that blocks an unverified done: reads the transcript for evidence, asks Jev once, fails open on everything else

valentynkit/jev-belay

Where it calls Jev

const base = env.JEV_BASE_URL || "https://api.typesafe.ai";

belay.mjs:358

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 belay.mjs:274

  1. claims_donetrue/false

    Does `final_message` present the requested work as finished or working?

  2. claims_verifiedtrue/false

    Does `final_message` claim that tests, a build, or other checks were run and passed?

  3. verification_appliestrue/false

    Would running the project's tests, build, or lint be a meaningful way to check the work that `task` asks for?

  4. outcomechoice

    What does `final_message` report about `task`?

    • completeThe work is finished
    • partialProgress was made and remaining work is named
    • blockedA blocker is reported or the user is asked something
    • otherNone of these

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: {
    claims_done: { type: 'boolean', instructions: 'Does `final_message` present the requested work as finished or working?' },
    claims_verified: { type: 'boolean', instructions: 'Does `final_message` claim that tests, a build, or other checks were run and passed?' },
    verification_applies: { type: 'boolean', instructions: 'Would running the project\'s tests, build, or lint be a meaningful way to check the work that `task` asks for?' },
    outcome: { type: 'choice', instructions: 'What does `final_message` report about `task`?',
      criteria: { complete: 'The work is finished', partial: 'Progress was made and remaining work is named', blocked: 'A blocker is reported or the user is asked something', other: 'None of these' } },
  },
});

Other projects in this category