Search & retrieval

jgrep

@kyu12046TypeScriptMITupdated 2026-09-19runnable

grep for what code does, not what it's called. Semantic code search powered by TypeSafe Jev.

kyu1204/jgrep

Where it calls Jev

s.start("Checking the key against api.typesafe.ai");

src/init.ts:49

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/jgrep.test.ts:113

  1. beautytrue/false

    beauty content?

  2. catchoice

    category?

    • skincareskin
    • otherelse

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: {
    beauty: { type: 'boolean', instructions: 'beauty content?' },
    cat: { type: 'choice', instructions: 'category?',
      criteria: { skincare: 'skin', other: 'else' } },
  },
});

from src/jgrep.ts:224

  1. oktrue/false

    Is the state the word ping?

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: {
    ok: { type: 'boolean', instructions: 'Is the state the word ping?' },
  },
});

Other projects in this category